feat(Picker): some prop can be string type

This commit is contained in:
陈嘉涵
2020-01-29 10:36:36 +08:00
parent c6f424baa7
commit ecdaf3f837
5 changed files with 27 additions and 27 deletions
+8 -8
View File
@@ -259,18 +259,18 @@ export default {
| 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` |
| title | Toolbar title | *string* | - |
| 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` |
| value-key | Key of option text | *string* | `text` |
| toolbar-position | Toolbar position, cat be set to `bottom` | *string* | `top` |
| loading | Whether to show loading prompt | *boolean* | `false` |
| show-toolbar | Whether to show toolbar | *boolean* | `false` |
| 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 animationunit `ms` | *number* | `1000` |
| item-height | Option height | *number \| string* | `44` |
| visible-item-count | Count of visible columns | *number \| string* | `5` |
| swipe-duration `v2.2.10` | Duration of the momentum animationunit `ms` | *number \| string* | `1000` |
### Events