docs: type highlight (#4264)
This commit is contained in:
+14
-14
@@ -186,17 +186,17 @@ When Picker columns data is acquired asynchronously, use `loading` prop to show
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| 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` | `''` | - |
|
||||
| loading | Whether to show loading prompt | `boolean` | `false` | - |
|
||||
| value-key | Key of option text | `string` | `text` | - |
|
||||
| item-height | Option height | `number` | `44` | - |
|
||||
| confirm-button-text | Text of confirm button | `string` | `Confirm` | - |
|
||||
| cancel-button-text | Text of cancel button | `string` | `Cancel` | - |
|
||||
| visible-item-count | Count of visible columns | `number` | `5` | - |
|
||||
| default-index | Default value index of single column picker | `number` | `0` | - |
|
||||
| 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* | `''` | - |
|
||||
| loading | Whether to show loading prompt | *boolean* | `false` | - |
|
||||
| value-key | Key of option text | *string* | `text` | - |
|
||||
| item-height | Option height | *number* | `44` | - |
|
||||
| confirm-button-text | Text of confirm button | *string* | `Confirm` | - |
|
||||
| cancel-button-text | Text of cancel button | *string* | `Cancel` | - |
|
||||
| visible-item-count | Count of visible columns | *number* | `5` | - |
|
||||
| default-index | Default value index of single column picker | *number* | `0` | - |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -218,9 +218,9 @@ Picker events will pass different parameters according to the columns are single
|
||||
|
||||
| Key | Description | Type |
|
||||
|------|------|------|
|
||||
| values | Value of column | `string[]` |
|
||||
| defaultIndex | Default value index | `number` |
|
||||
| className | ClassName for this column | `any` |
|
||||
| values | Value of column | *string[]* |
|
||||
| defaultIndex | Default value index | *number* |
|
||||
| className | ClassName for this column | *any* |
|
||||
|
||||
### Methods
|
||||
|
||||
|
||||
+14
-14
@@ -194,17 +194,17 @@ export default {
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| columns | 对象数组,配置每一列显示的数据 | `Column[]` | `[]` | - |
|
||||
| show-toolbar | 是否显示顶部栏 | `boolean` | `false` | - |
|
||||
| toolbar-position | 顶部栏位置,可选值为`bottom` | `string` | `top` | - |
|
||||
| title | 顶部栏标题 | `string` | `''` | - |
|
||||
| loading | 是否显示加载状态 | `boolean` | `false` | - |
|
||||
| value-key | 选项对象中,文字对应的 key | `string` | `text` | - |
|
||||
| item-height | 选项高度 | `number` | `44` | - |
|
||||
| confirm-button-text | 确认按钮文字 | `string` | `确认` | - |
|
||||
| cancel-button-text | 取消按钮文字 | `string` | `取消` | - |
|
||||
| visible-item-count | 可见的选项个数 | `number` | `5` | - |
|
||||
| default-index | 单列选择器的默认选中项索引,<br>多列选择器请参考下方的 Columns 配置 | `number` | `0` | - |
|
||||
| columns | 对象数组,配置每一列显示的数据 | *Column[]* | `[]` | - |
|
||||
| show-toolbar | 是否显示顶部栏 | *boolean* | `false` | - |
|
||||
| toolbar-position | 顶部栏位置,可选值为`bottom` | *string* | `top` | - |
|
||||
| title | 顶部栏标题 | *string* | `''` | - |
|
||||
| loading | 是否显示加载状态 | *boolean* | `false` | - |
|
||||
| value-key | 选项对象中,文字对应的 key | *string* | `text` | - |
|
||||
| item-height | 选项高度 | *number* | `44` | - |
|
||||
| confirm-button-text | 确认按钮文字 | *string* | `确认` | - |
|
||||
| cancel-button-text | 取消按钮文字 | *string* | `取消` | - |
|
||||
| visible-item-count | 可见的选项个数 | *number* | `5` | - |
|
||||
| default-index | 单列选择器的默认选中项索引,<br>多列选择器请参考下方的 Columns 配置 | *number* | `0` | - |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -228,9 +228,9 @@ Picker 组件的事件会根据 columns 是单列或多列返回不同的参数
|
||||
|
||||
| 键名 | 说明 | 类型 |
|
||||
|------|------|------|
|
||||
| values | 列中对应的备选值 | `string[]`
|
||||
| defaultIndex | 初始选中项的索引,默认为 0 | `number` |
|
||||
| className | 为对应列添加额外的类名 | `any` |
|
||||
| values | 列中对应的备选值 | *string[]*
|
||||
| defaultIndex | 初始选中项的索引,默认为 0 | *number* |
|
||||
| className | 为对应列添加额外的类名 | *any* |
|
||||
|
||||
### 方法
|
||||
|
||||
|
||||
Reference in New Issue
Block a user