[Doc] optimize data structure table (#3854)

This commit is contained in:
neverland
2019-07-15 17:00:41 +08:00
committed by GitHub
parent 5c70473f87
commit d15315b8e4
11 changed files with 35 additions and 35 deletions
+6 -6
View File
@@ -213,13 +213,13 @@ Picker events will pass different parameters according to the columns are single
|------|------|
| title | Custom title |
### Column Data Struct
### Data Structure of Column
| key | Description |
|------|------|
| values | Value of column |
| defaultIndex | Default value index |
| className | ClassName for this column |
| Key | Description | Type |
|------|------|------|
| values | Value of column | `string[]` |
| defaultIndex | Default value index | `number` |
| className | ClassName for this column | `any` |
### Methods
+5 -5
View File
@@ -225,11 +225,11 @@ Picker 组件的事件会根据 columns 是单列或多列返回不同的参数
当传入多列数据时,`columns`为一个对象数组,数组中的每一个对象配置每一列,每一列有以下`key`
| key | 说明 |
|------|------|
| values | 列中对应的备选值 |
| defaultIndex | 初始选中项的索引,默认为 0 |
| className | 为对应列添加额外的`class` |
| 键名 | 说明 | 类型 |
|------|------|------|
| values | 列中对应的备选值 | `string[]`
| defaultIndex | 初始选中项的索引,默认为 0 | `number` |
| className | 为对应列添加额外的类名 | `any` |
### 方法