# Dialog
# 基本使用
1
2
3
4
5
6
7
8
9
10
复制代码
# 插槽使用
插槽使用Dialog
1
2
3
4
5
6
7
8
9
10
复制代码
# 自定义 footer 按钮
1
2
3
4
5
6
7
8
9
10
复制代码
# Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
width | dialog 宽度 | string | 600px |
round | 是否圆角状态 | boolean | true |
button | 自定义的 footer 按钮 | array | [{ type: 'default', prop: 'cancel', label: '取消' }, { type: 'primary', prop: 'submit', label: '确定' }] |
其他参数 | 同 element-ui 的 dialog 参数 | _ | _ |
# Slots
name | 说明 |
---|---|
_ | Dialog 的内容 |
title | Dialog 标题区的内容 |
footer | Dialog footer 的内容 |
# Events
事件名称 | 说明 | 参数 |
---|---|---|
event | footer 按钮的点击回调 | 当前点击按钮的数据 |
其他事件 | 同 element-ui 的 dialog 事件 | _ |