feat(Dialog): allow to render JSX message (#8420)
* feat(Dialog): allow to render JSX message * types: add DialogMessage type
This commit is contained in:
@@ -175,7 +175,7 @@ export default {
|
||||
| --- | --- | --- | --- |
|
||||
| title | 标题 | _string_ | - |
|
||||
| width | 弹窗宽度,默认单位为 `px` | _number \| string_ | `320px` |
|
||||
| message | 文本内容,支持通过 `\n` 换行 | _string_ | - |
|
||||
| message | 文本内容,支持通过 `\n` 换行 | _string \| () => JSX.ELement_ | - |
|
||||
| messageAlign | 内容对齐方式,可选值为 `left` `right` | _string_ | `center` |
|
||||
| theme | 样式风格,可选值为 `round-button` | _string_ | `default` |
|
||||
| className | 自定义类名 | _string \| Array \| object_ | - |
|
||||
@@ -205,8 +205,8 @@ export default {
|
||||
| v-model:show | 是否显示弹窗 | _boolean_ | - |
|
||||
| title | 标题 | _string_ | - |
|
||||
| width | 弹窗宽度,默认单位为 `px` | _number \| string_ | `320px` |
|
||||
| message | 文本内容,支持通过 `\n` 换行 | _string_ | - |
|
||||
| message-align | 内容对齐方式,可选值为 `left` `right` | _string_ | `center` |
|
||||
| message | 文本内容,支持通过 `\n` 换行 | _string \| () => JSX.ELement_ | - |
|
||||
| message-align | 内容水平对齐方式,可选值为 `left` `right` | _string_ | `center` |
|
||||
| theme | 样式风格,可选值为 `round-button` | _string_ | `default` |
|
||||
| show-confirm-button | 是否展示确认按钮 | _boolean_ | `true` |
|
||||
| show-cancel-button | 是否展示取消按钮 | _boolean_ | `false` |
|
||||
|
||||
Reference in New Issue
Block a user