[Doc] detailed Array typing
This commit is contained in:
@@ -185,7 +185,7 @@ When Picker columns data is acquired asynchronously, use `loading` prop to show
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| columns | Columns data | `Array` | `[]` |
|
||||
| columns | Columns data | `Column[]` | `[]` |
|
||||
| show-toolbar | Whether to show toolbar | `boolean` | `false` |
|
||||
| toolbar-position | Toolbar position, cat be set to `bottom` | `string` | `top` |
|
||||
| title | Toolbar title | `string` | `''` |
|
||||
@@ -198,6 +198,7 @@ When Picker columns data is acquired asynchronously, use `loading` prop to show
|
||||
| default-index | Default value index of single column picker | `number` | `0` |
|
||||
|
||||
### Events
|
||||
|
||||
Picker events will pass different parameters according to the columns are single or multiple
|
||||
|
||||
| Event | Description | Arguments |
|
||||
@@ -212,7 +213,7 @@ Picker events will pass different parameters according to the columns are single
|
||||
|------|------|
|
||||
| title | Custom title |
|
||||
|
||||
### Data struct of columns
|
||||
### Column Data Struct
|
||||
|
||||
| key | Description |
|
||||
|------|------|
|
||||
|
||||
@@ -193,7 +193,7 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| columns | 对象数组,配置每一列显示的数据 | `Array` | `[]` | - |
|
||||
| columns | 对象数组,配置每一列显示的数据 | `Column[]` | `[]` | - |
|
||||
| show-toolbar | 是否显示顶部栏 | `boolean` | `false` | - |
|
||||
| toolbar-position | 顶部栏位置,可选值为`bottom` | `string` | `top` | 2.0.0 |
|
||||
| title | 顶部栏标题 | `string` | `''` | - |
|
||||
@@ -221,7 +221,7 @@ Picker 组件的事件会根据 columns 是单列或多列返回不同的参数
|
||||
|------|------|
|
||||
| title | 自定义标题内容 |
|
||||
|
||||
### Columns 数据结构
|
||||
### Column 数据结构
|
||||
|
||||
当传入多列数据时,`columns`为一个对象数组,数组中的每一个对象配置每一列,每一列有以下`key`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user