mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] Collapse: fix misapprehensive type of params (#4113)
This commit is contained in:
parent
34d2395ad3
commit
b5c1abfbf5
@ -89,7 +89,7 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| v-model | Names of current active panels | `string[] | number[] | string | number` | - |
|
||||
| v-model | Names of current active panels | `(string | number)[] `(non-accordion mode) / `string | number`(accordion mode) | - |
|
||||
| accordion | Whether to be accordion mode | `boolean` | `false` |
|
||||
| border | Whether to show outer border | `boolean` | `true` |
|
||||
|
||||
@ -97,7 +97,7 @@ export default {
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|------|------|------|
|
||||
| change | Triggered when switch panel | activeNames: `string[] | number[] | string | number` |
|
||||
| change | Triggered when switch panel | activeNames: `(string | number)[] `(non-accordion mode) / `string | number`(accordion mode) |
|
||||
|
||||
### CollapseItem Props
|
||||
|
||||
|
@ -90,7 +90,7 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| v-model | 当前展开面板的 name | `string[] | number[] | string | number` | - | - |
|
||||
| v-model | 当前展开面板的 name | `(string | number)[] `(非手风琴模式) / `string | number`(手风琴模式) | - | - |
|
||||
| accordion | 是否开启手风琴模式 | `boolean` | `false` | - |
|
||||
| border | 是否显示外边框 | `boolean` | `true` | 1.6.9 |
|
||||
|
||||
@ -98,7 +98,7 @@ export default {
|
||||
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
|------|------|------|
|
||||
| change | 切换面板时触发 | activeNames: `string[] | number[] | string | number` |
|
||||
| change | 切换面板时触发 | activeNames: `(string | number)[] `(非手风琴模式) / `string | number`(手风琴模式) |
|
||||
|
||||
### CollapseItem Props
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user