mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
弹框支持设置蒙版大小
弹框支持开发者自定义位置 Signed-off-by: zhouxiumin <zhouxiumin@huawei.com>
This commit is contained in:
parent
db8a9c7644
commit
a1ed361b02
10
api/@internal/component/ets/action_sheet.d.ts
vendored
10
api/@internal/component/ets/action_sheet.d.ts
vendored
@ -306,6 +306,16 @@ interface ActionSheetOptions
|
||||
* @since 10
|
||||
*/
|
||||
offset?: { dx: number | string | Resource; dy: number | string | Resource };
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
}
|
||||
|
||||
/**
|
||||
|
10
api/@internal/component/ets/alert_dialog.d.ts
vendored
10
api/@internal/component/ets/alert_dialog.d.ts
vendored
@ -323,6 +323,16 @@ declare interface AlertDialogParam {
|
||||
* @since 10
|
||||
*/
|
||||
gridCount?: number;
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -158,6 +158,16 @@ declare interface CustomDialogControllerOptions {
|
||||
*/
|
||||
maskColor?: ResourceColor;
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
|
||||
/**
|
||||
* Animation parameters of dialog opening.
|
||||
*
|
||||
|
30
api/@internal/component/ets/date_picker.d.ts
vendored
30
api/@internal/component/ets/date_picker.d.ts
vendored
@ -366,6 +366,36 @@ declare interface DatePickerDialogOptions extends DatePickerOptions {
|
||||
*/
|
||||
selectedTextStyle?: PickerTextStyle;
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
|
||||
/**
|
||||
* Defines the dialog alignment of the screen.
|
||||
*
|
||||
* @type { ?DialogAlignment }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
alignment?: DialogAlignment;
|
||||
|
||||
/**
|
||||
* Defines the dialog offset.
|
||||
*
|
||||
* @type { ?Offset }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
offset?: Offset;
|
||||
|
||||
/**
|
||||
* Called when the OK button in the dialog is clicked.
|
||||
*
|
||||
|
30
api/@internal/component/ets/text_picker.d.ts
vendored
30
api/@internal/component/ets/text_picker.d.ts
vendored
@ -482,6 +482,36 @@ declare interface TextPickerDialogOptions extends TextPickerOptions {
|
||||
* @since 10
|
||||
*/
|
||||
onChange?: (value: TextPickerResult) => void;
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
|
||||
/**
|
||||
* Defines the dialog alignment of the screen.
|
||||
*
|
||||
* @type { ?DialogAlignment }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
alignment?: DialogAlignment;
|
||||
|
||||
/**
|
||||
* Defines the dialog offset.
|
||||
*
|
||||
* @type { ?Offset }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
offset?: Offset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
30
api/@internal/component/ets/time_picker.d.ts
vendored
30
api/@internal/component/ets/time_picker.d.ts
vendored
@ -285,6 +285,36 @@ declare interface TimePickerDialogOptions extends TimePickerOptions {
|
||||
*/
|
||||
selectedTextStyle?: PickerTextStyle;
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
|
||||
/**
|
||||
* Defines the dialog alignment of the screen.
|
||||
*
|
||||
* @type { ?DialogAlignment }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
alignment?: DialogAlignment;
|
||||
|
||||
/**
|
||||
* Defines the dialog offset.
|
||||
*
|
||||
* @type { ?Offset }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
offset?: Offset;
|
||||
|
||||
/**
|
||||
* Called when the OK button in the dialog is clicked.
|
||||
*
|
||||
|
30
api/@ohos.promptAction.d.ts
vendored
30
api/@ohos.promptAction.d.ts
vendored
@ -243,6 +243,36 @@ declare namespace promptAction {
|
||||
* @since 10
|
||||
*/
|
||||
buttons?: [Button, Button?, Button?];
|
||||
|
||||
/**
|
||||
* Mask Region of dialog. The size cannot exceed the main window.
|
||||
*
|
||||
* @type { ?Rectangle }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
maskRect?: Rectangle;
|
||||
|
||||
/**
|
||||
* Defines the dialog alignment of the screen.
|
||||
*
|
||||
* @type { ?DialogAlignment }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
alignment?: DialogAlignment;
|
||||
|
||||
/**
|
||||
* Defines the dialog offset.
|
||||
*
|
||||
* @type { ?Offset }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 10
|
||||
*/
|
||||
offset?: Offset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user