feat(Picker): add option slot (#7380)

This commit is contained in:
neverland
2020-10-21 21:52:12 +08:00
committed by GitHub
parent 7ec560fc82
commit ea210bb013
6 changed files with 91 additions and 18 deletions
+10 -9
View File
@@ -292,18 +292,19 @@ export default {
### Slots
| 名称 | 说明 |
| ------------------ | ---------------------- |
| default | 自定义整个顶部栏的内容 |
| title | 自定义标题内容 |
| confirm `v2.10.11` | 自定义确认按钮内容 |
| cancel `v2.10.11` | 自定义取消按钮内容 |
| columns-top | 自定义选项上方内容 |
| columns-bottom | 自定义选项方内容 |
| 名称 | 说明 | 参数 |
| ------------------ | ---------------------- | -------------------------- |
| default | 自定义整个顶部栏的内容 | - |
| title | 自定义标题内容 | - |
| confirm `v2.10.11` | 自定义确认按钮内容 | - |
| cancel `v2.10.11` | 自定义取消按钮内容 | - |
| option `v2.10.11` | 自定义选项内容 | _option: string \| object_ |
| columns-top | 自定义选项方内容 | - |
| columns-bottom | 自定义选项下方内容 | - |
### Column 数据结构
当传入多列数据时,`columns`为一个对象数组,数组中的每一个对象配置每一列,每一列有以下`key`
当传入多列数据时,`columns` 为一个对象数组,数组中的每一个对象配置每一列,每一列有以下 `key`:
| 键名 | 说明 | 类型 |
| ----------------- | -------------------------- | ---------- |