mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 06:50:02 +00:00
update common/src/main/ets/default/uicomponents/FormManagerDialog.ets.
Signed-off-by: gengzhengxing <gengzhengxing1@h-partners.com>
This commit is contained in:
parent
feb6a03d4f
commit
a504dcf74c
@ -40,6 +40,7 @@ export struct FormManagerDialog {
|
||||
StyleConstants.FORM_MANAGER_VIEW_CARD_HEIGHT / 2,
|
||||
StyleConstants.FORM_MANAGER_VIEW_CARD_HEIGHT / 2,
|
||||
StyleConstants.FORM_MANAGER_VIEW_CARD_HEIGHT];
|
||||
@State enabledDomEventResponse: boolean = true;
|
||||
|
||||
mFormDialogController: CustomDialogController;
|
||||
cancel: (callback?) => void;
|
||||
@ -178,12 +179,20 @@ export struct FormManagerDialog {
|
||||
}
|
||||
.height('100%')
|
||||
.loop(false)
|
||||
.duration(80)
|
||||
.cachedCount(1)
|
||||
.index(0)
|
||||
.onChange((index: number) => {
|
||||
if (this.mSwiperIndex !== index) {
|
||||
this.mSwiperIndex = index;
|
||||
}
|
||||
})
|
||||
.onAnimationStart(() => {
|
||||
this.enabledDomEventResponse = false;
|
||||
})
|
||||
.onAnimationEnd(() => {
|
||||
this.enabledDomEventResponse = true;
|
||||
})
|
||||
}
|
||||
.height('85%')
|
||||
Flex({ justifyContent: FlexAlign.SpaceAround }) {
|
||||
@ -208,6 +217,7 @@ export struct FormManagerDialog {
|
||||
.fontSize(StyleConstants.DEFAULT_BADGE_FONT_SIZE)
|
||||
.fontColor(StyleConstants.BUTTON_FONT_COLOR)
|
||||
}
|
||||
.enabled(this.enabledDomEventResponse)
|
||||
.backgroundColor(StyleConstants.DEFAULT_BG_COLOR)
|
||||
.height(StyleConstants.DEFAULT_BUTTON_HEIGHT)
|
||||
.width(StyleConstants.DEFAULT_BUTTON_WIDTH)
|
||||
|
Loading…
Reference in New Issue
Block a user