mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
docs: type highlight (#4264)
This commit is contained in:
@@ -61,10 +61,10 @@ export default {
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| items | Required datasets for the component | `Item[]` | `[]` | - |
|
||||
| height | Height | `string | number` | `300` | - |
|
||||
| main-Active-index | The index of selected parent node | `number` | `0` | - |
|
||||
| active-id | Id of selected item | `string | number | (string | number)[]` | `0` | - |
|
||||
| items | Required datasets for the component | *Item[]* | `[]` | - |
|
||||
| height | Height | *string \| number* | `300` | - |
|
||||
| main-Active-index | The index of selected parent node | *number* | `0` | - |
|
||||
| active-id | Id of selected item | *string \| number \| (string \| number)[]* | `0` | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
@@ -65,10 +65,10 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| items | 分类显示所需的数据 | `Item[]` | `[]` | - |
|
||||
| height | 高度,默认单位为 px | `string | number` | `300` | - |
|
||||
| main-active-index | 左侧高亮选项的索引 | `number` | `0` | - |
|
||||
| active-id | 右侧高亮选项的 id,支持传入数组 | `string | number | (string | number)[]` | `0` | - |
|
||||
| items | 分类显示所需的数据 | *Item[]* | `[]` | - |
|
||||
| height | 高度,默认单位为 px | *string \| number* | `300` | - |
|
||||
| main-active-index | 左侧高亮选项的索引 | *number* | `0` | - |
|
||||
| active-id | 右侧高亮选项的 id,支持传入数组 | *string \| number \| (string \| number)[]* | `0` | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
Reference in New Issue
Block a user