You need to sign in or sign up before continuing.
未验证 提交 9632e817 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md.

Signed-off-by: NLiAn <lian15@huawei.com>
Signed-off-by: NLiAn <lian15@huawei.com>
上级 5e242081
...@@ -14,40 +14,32 @@ ...@@ -14,40 +14,32 @@
CustomDialogController(value:{builder: CustomDialog, cancel?: () =&gt; void, autoCancel?: boolean, alignment?: DialogAlignment, offset?: Offset, customStyle?: boolean}) CustomDialogController(value:{builder: CustomDialog, cancel?: () =&gt; void, autoCancel?: boolean, alignment?: DialogAlignment, offset?: Offset, customStyle?: boolean})
- 参数 **参数:**
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ---------------------- | ---------------------------------------- | ---- | ----------------------- | ---------------------- | | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| builder | [CustomDialog](../../quick-start/arkts-dynamic-ui-elememt-building.md#customdialog) | 是 | - | 自定义弹窗内容构造器。 | | ---------------------- | ---------------------------------------- | ---- | ----------------------- | ---------------------- |
| cancel | ()&nbsp;=&gt;&nbsp;void | 否 | - | 点击遮障层退出时的回调。 | | builder | [CustomDialog](../../quick-start/arkts-dynamic-ui-elememt-building.md#customdialog) | 是 | - | 自定义弹窗内容构造器。 |
| autoCancel | boolean | 否 | true | 是否允许点击遮障层退出。 | | cancel | ()&nbsp;=&gt;&nbsp;void | 否 | - | 点击遮障层退出时的回调。 |
| alignment | DialogAlignment | 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 | | autoCancel | boolean | 否 | true | 是否允许点击遮障层退出。 |
| offset | {<br/>dx:&nbsp;Length&nbsp;\|&nbsp;[Resource](ts-types.md#resource类型),<br/>dy:&nbsp;Length&nbsp;&nbsp;\|&nbsp;[Resource](ts-types.md#resource类型)<br/>} | 否 | - | 弹窗相对alignment所在位置的偏移量。 | | alignment | DialogAlignment | 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| customStyle | boolean | 否 | false | 弹窗容器样式是否自定义。 | | offset | {<br/>dx:&nbsp;Length&nbsp;\|&nbsp;[Resource](ts-types.md#resource类型),<br/>dy:&nbsp;Length&nbsp;&nbsp;\|&nbsp;[Resource](ts-types.md#resource类型)<br/>} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| gridCount<sup>8+</sup> | number | 否 | - | 弹窗宽度占栅格宽度的个数。 | | customStyle | boolean | 否 | false | 弹窗容器样式是否自定义。 |
| gridCount<sup>8+</sup> | number | 否 | - | 弹窗宽度占栅格宽度的个数。 |
- DialogAlignment枚举说明
| 名称 | 描述 | ## DialogAlignment枚举说明
| ------------------------ | ------------------------------------------------------ |
| Top | 垂直顶部对齐。 | | 名称 | 描述 |
| Center | 垂直居中对齐。 | | ------------------------ | ------------------------------------------------------ |
| Bottom | 垂直底部对齐。 | | Top | 垂直顶部对齐。 |
| Default | 默认对齐。<br/>**说明:**<br/>与枚举值Center效果相同。 | | Center | 垂直居中对齐。 |
| TopStart<sup>8+</sup> | 左上对齐。 | | Bottom | 垂直底部对齐。 |
| TopEnd<sup>8+</sup> | 右上对齐。 | | Default | 默认对齐。<br/>**说明:**<br/>与枚举值Center效果相同。 |
| CenterStart<sup>8+</sup> | 左中对齐。 | | TopStart<sup>8+</sup> | 左上对齐。 |
| CenterEnd<sup>8+</sup> | 右中对齐。 | | TopEnd<sup>8+</sup> | 右上对齐。 |
| BottomStart<sup>8+</sup> | 左下对齐。 | | CenterStart<sup>8+</sup> | 左中对齐。 |
| BottomEnd<sup>8+</sup> | 右下对齐。 | | CenterEnd<sup>8+</sup> | 右中对齐。 |
| BottomStart<sup>8+</sup> | 左下对齐。 |
| 参数名 | 参数类型 | 必填 | 参数描述 | | BottomEnd<sup>8+</sup> | 右下对齐。 |
| ---------------------- | ---------------------------------------- | ------------------------- | ---------------------- |
| builder | [CustomDialog](../../ui/ts-component-based-customdialog.md) | 是 | 自定义弹窗内容构造器。 |
| cancel | ()&nbsp;=&gt;&nbsp;void | 否 | 点击遮障层退出时的回调。 |
| autoCancel | boolean | 否 | 是否允许点击遮障层退出。<br>默认值:true |
| alignment | [DialogAlignment](ts-methods-alert-dialog-box.md#dialogalignment枚举说明) | 否 | 弹窗在竖直方向上的对齐方式。<br>默认值:DialogAlignment.Default |
| offset | {<br/>dx:&nbsp;Length&nbsp;\|&nbsp;[Resource](ts-types.md#resource),<br/>dy:&nbsp;Length&nbsp;&nbsp;\|&nbsp;[Resource](ts-types.md#resource)<br/>} | 否 | 弹窗相对alignment所在位置的偏移量。 |
| customStyle | boolean | 否 | 弹窗容器样式是否自定义。<br>默认值:false |
| gridCount<sup>8+</sup> | number | 否 | 弹窗宽度占栅格宽度的个数。 |
## CustomDialogController ## CustomDialogController
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册