弹框支持设置蒙版大小

弹框支持开发者自定义位置

Signed-off-by: zhouxiumin <zhouxiumin@huawei.com>
This commit is contained in:
zhouxiumin 2023-07-24 19:02:14 +08:00
parent db8a9c7644
commit a1ed361b02
7 changed files with 150 additions and 0 deletions

View File

@ -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;
}
/**

View File

@ -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;
}
/**

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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;
}
/**

View File

@ -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.
*

View File

@ -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;
}
/**