feat(Dialog): allow to render JSX message (#8420)

* feat(Dialog): allow to render JSX message

* types: add DialogMessage type
This commit is contained in:
neverland
2021-03-29 15:51:02 +08:00
committed by GitHub
parent 1a6930fa73
commit eec186ac19
6 changed files with 60 additions and 21 deletions
+2 -2
View File
@@ -142,7 +142,7 @@ export default {
| --- | --- | --- | --- |
| title | Title | _string_ | - |
| width | Dialog width | _number \| string_ | `320px` |
| message | Message | _string_ | - |
| message | Message | _string \| () => JSX.ELement_ | - |
| messageAlign | Message text aligncan be set to `left` `right` | _string_ | `center` |
| theme | Theme stylecan be set to `round-button` | _string_ | `default` |
| className | Custom className | _string \| Array \| object_ | - |
@@ -170,7 +170,7 @@ export default {
| v-model:show | Whether to show dialog | _boolean_ | - |
| title | Title | _string_ | - |
| width | Width | _number \| string_ | `320px` |
| message | Message | _string_ | - |
| message | Message | _string \| () => JSX.ELement_ | - |
| message-align | Message aligncan be set to `left` `right` | _string_ | `center` |
| theme | Theme stylecan be set to `round-button` | _string_ | `default` |
| show-confirm-button | Whether to show confirm button | _boolean_ | `true` |