对话框 Dialog
可以包含多个元素的对话框。
Attributes
| 属性 | 描述 | 类型 | 推荐值 | 默认 |
|---|---|---|---|---|
| model-value / v-model | 绑定值 | boolean | - | false |
| width | 对话框宽度 | string | - | - |
| title | 标题 | string | - | - |
| cancel | 取消按钮的文字 | string | - | cancel |
| done | 确定按钮的文字 | string | - | done |
| beforeDone | 确定按钮触发前的回调 | function | - | done => done() |
| maskClose | 点击背景是否可以关闭 | boolean | - | true |
| header slot | 标题(插槽) | - | - | - |
| footer slot | 底部(插槽) | - | - | - |
events
| 事件名称 | 描述 | 回调参数 |
|---|---|---|
| close | 模态框关闭时的回调 | () => void |
| ok | 确认按钮点击的回调,若使用 slot#footer 则无效 | () => void |