docs: update version tag
This commit is contained in:
+28
-28
@@ -184,21 +184,21 @@ When Picker columns data is acquired asynchronously, use `loading` prop to show
|
||||
|
||||
### Props
|
||||
|
||||
| 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` | - |
|
||||
| allow-html | Whether to allow HTML in option text | *boolean* | `true` | 2.1.8 |
|
||||
| default-index | Default value index of single column picker | *number* | `0` | - |
|
||||
| swipe-duration | Duration of the momentum animation,unit `ms` | *number* | `1000` | 2.2.10 |
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| 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` |
|
||||
| allow-html `v2.1.8` | Whether to allow HTML in option text | *boolean* | `true` |
|
||||
| default-index | Default value index of single column picker | *number* | `0` |
|
||||
| swipe-duration `v2.2.10` | Duration of the momentum animation,unit `ms` | *number* | `1000` |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -229,16 +229,16 @@ Picker events will pass different parameters according to the columns are single
|
||||
|
||||
Use [ref](https://vuejs.org/v2/api/#ref) to get Picker instance and call instance methods
|
||||
|
||||
| Name | Description | Attribute | Return value | Version |
|
||||
|------|------|------|------|------|
|
||||
| getValues | Get current values of all columns | - | values | - |
|
||||
| setValues | Set current values of all columns | values | - | - |
|
||||
| getIndexes | Get current indexes of all columns | - | indexes | - |
|
||||
| setIndexes | Set current indexes of all columns | indexes | - | - |
|
||||
| getColumnValue | Get current value of the column | columnIndex | value | - |
|
||||
| setColumnValue | Set current value of the column | columnIndex, value | - | - |
|
||||
| getColumnIndex | Get current index of the column | columnIndex | optionIndex | - |
|
||||
| setColumnIndex | Set current index of the column | columnIndex, optionIndex | - | - |
|
||||
| getColumnValues | Get columns data of the column | columnIndex | values | - |
|
||||
| setColumnValues | Set columns data of the column | columnIndex, values | - | - |
|
||||
| confirm | Stop scrolling and emit confirm event | - | - | 2.4.0 |
|
||||
| Name | Description | Attribute | Return value |
|
||||
|------|------|------|------|
|
||||
| getValues | Get current values of all columns | - | values |
|
||||
| setValues | Set current values of all columns | values | - |
|
||||
| getIndexes | Get current indexes of all columns | - | indexes |
|
||||
| setIndexes | Set current indexes of all columns | indexes | - |
|
||||
| getColumnValue | Get current value of the column | columnIndex | value |
|
||||
| setColumnValue | Set current value of the column | columnIndex, value | - |
|
||||
| getColumnIndex | Get current index of the column | columnIndex | optionIndex |
|
||||
| setColumnIndex | Set current index of the column | columnIndex, optionIndex | - |
|
||||
| getColumnValues | Get columns data of the column | columnIndex | values |
|
||||
| setColumnValues | Set columns data of the column | columnIndex, values | - |
|
||||
| confirm `v2.4.0` | Stop scrolling and emit confirm event | - | - |
|
||||
|
||||
+28
-28
@@ -192,21 +192,21 @@ export default {
|
||||
|
||||
### Props
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| 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` | - |
|
||||
| allow-html | 是否允许选项内容中渲染 HTML | *boolean* | `true` | 2.1.8 |
|
||||
| default-index | 单列选择器的默认选中项索引,<br>多列选择器请参考下方的 Columns 配置 | *number* | `0` | - |
|
||||
| swipe-duration | 快速滑动时惯性滚动的时长,单位`ms` | *number* | `1000` | 2.2.10 |
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| 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` |
|
||||
| allow-html `v2.1.8` | 是否允许选项内容中渲染 HTML | *boolean* | `true` |
|
||||
| default-index | 单列选择器的默认选中项索引,<br>多列选择器请参考下方的 Columns 配置 | *number* | `0` |
|
||||
| swipe-duration `v2.2.10` | 快速滑动时惯性滚动的时长,单位`ms` | *number* | `1000` |
|
||||
|
||||
### Events
|
||||
|
||||
@@ -241,19 +241,19 @@ Picker 组件的事件会根据 columns 是单列或多列返回不同的参数
|
||||
|
||||
通过 [ref](https://cn.vuejs.org/v2/api/#ref) 可以获取到 Picker 实例并调用实例方法
|
||||
|
||||
| 方法名 | 说明 | 参数 | 返回值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| getValues | 获取所有列选中的值 | - | values | - |
|
||||
| setValues | 设置所有列选中的值 | values | - | - |
|
||||
| getIndexes | 获取所有列选中值对应的索引 | - | indexes | - |
|
||||
| setIndexes | 设置所有列选中值对应的索引 | indexes | - | - |
|
||||
| getColumnValue | 获取对应列选中的值 | columnIndex | value | - |
|
||||
| setColumnValue | 设置对应列选中的值 | columnIndex, value | - | - |
|
||||
| getColumnIndex | 获取对应列选中项的索引 | columnIndex | optionIndex | - |
|
||||
| setColumnIndex | 设置对应列选中项的索引 | columnIndex, optionIndex | - | - |
|
||||
| getColumnValues | 获取对应列中所有选项 | columnIndex | values | - |
|
||||
| setColumnValues | 设置对应列中所有选项 | columnIndex, values | - | - |
|
||||
| confirm | 停止惯性滚动并触发 confirm 事件 | - | - | 2.4.0 |
|
||||
| 方法名 | 说明 | 参数 | 返回值 |
|
||||
|------|------|------|------|
|
||||
| getValues | 获取所有列选中的值 | - | values |
|
||||
| setValues | 设置所有列选中的值 | values | - |
|
||||
| getIndexes | 获取所有列选中值对应的索引 | - | indexes |
|
||||
| setIndexes | 设置所有列选中值对应的索引 | indexes | - |
|
||||
| getColumnValue | 获取对应列选中的值 | columnIndex | value |
|
||||
| setColumnValue | 设置对应列选中的值 | columnIndex, value | - |
|
||||
| getColumnIndex | 获取对应列选中项的索引 | columnIndex | optionIndex |
|
||||
| setColumnIndex | 设置对应列选中项的索引 | columnIndex, optionIndex | - |
|
||||
| getColumnValues | 获取对应列中所有选项 | columnIndex | values |
|
||||
| setColumnValues | 设置对应列中所有选项 | columnIndex, values | - |
|
||||
| confirm `v2.4.0` | 停止惯性滚动并触发 confirm 事件 | - | - |
|
||||
|
||||
## 常见问题
|
||||
|
||||
|
||||
Reference in New Issue
Block a user