[Doc] remove Accepted Values (#990)
This commit is contained in:
@@ -63,14 +63,14 @@ Actionsheet will get another style if there is a `title` prop.
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| actions | Options | `Array` | `[]` | - |
|
||||
| title | Title | `String` | - | - |
|
||||
| cancel-text | Text of cancel button | `String` | - | - |
|
||||
| overlay | Whether to show overlay | `Boolean` | - | - |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | - | - |
|
||||
| get-container | Return the mount node for actionsheet | `Function` | - | `() => HTMLElement` |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| actions | Options | `Array` | `[]` |
|
||||
| title | Title | `String` | - |
|
||||
| cancel-text | Text of cancel button | `String` | - |
|
||||
| overlay | Whether to show overlay | `Boolean` | - |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | - |
|
||||
| get-container | Return the mount node for actionsheet | `() => HTMLElement` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -59,18 +59,18 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| area-list | Area List | `Object` | - | - |
|
||||
| address-info | Address Info | `Object` | `{}` | - |
|
||||
| search-result | Address search result | `Array` | `[]` | - |
|
||||
| show-postal | Whether to show postal field | `Boolean` | `false` | - |
|
||||
| show-delete | Whether to show delete button | `Boolean` | `false` | - |
|
||||
| show-set-default | Whether to show default address switch | `Boolean` | `false` | - |
|
||||
| show-search-result | Whether to show address search result | `Boolean` | `false` | - |
|
||||
| is-saving | Whether to show save button loading status | `Boolean` | `false` | - |
|
||||
| is-deleting | Whether to show delete button loading status | `Boolean` | `false` | - |
|
||||
| tel-validator | The method to validate tel | `(tel: string) => boolean` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| area-list | Area List | `Object` | - |
|
||||
| address-info | Address Info | `Object` | `{}` |
|
||||
| search-result | Address search result | `Array` | `[]` |
|
||||
| show-postal | Whether to show postal field | `Boolean` | `false` |
|
||||
| show-delete | Whether to show delete button | `Boolean` | `false` |
|
||||
| show-set-default | Whether to show default address switch | `Boolean` | `false` |
|
||||
| show-search-result | Whether to show address search result | `Boolean` | `false` |
|
||||
| is-saving | Whether to show save button loading status | `Boolean` | `false` |
|
||||
| is-deleting | Whether to show delete button loading status | `Boolean` | `false` |
|
||||
| tel-validator | The method to validate tel | `(tel: string) => boolean` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -55,11 +55,11 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Id of chosen address | String | - | - |
|
||||
| list | Address list | Array | `[]` | - |
|
||||
| add-button-text | Add button text | String | `Add new address` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Id of chosen address | String | - |
|
||||
| list | Address list | Array | `[]` |
|
||||
| add-button-text | Add button text | String | `Add new address` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -39,15 +39,15 @@ Set `columns-num` with 2, you'll have a 2 level picker.
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| value | the `code` of selected area | `String` | - | - |
|
||||
| title | Toolbar title | `String` | `''` | - |
|
||||
| area-list | an object contains these properties: `province_list`, `city_list` and `county_list` | `Object` | - | - |
|
||||
| columns-num | level of picker | `String`,`Number` | 3 | - |
|
||||
| item-height | Option height | `Number` | `44` | - |
|
||||
| loading | Whether to show loading prompt | `Boolean` | `false` | - |
|
||||
| visible-item-count | Count of visible columns | `Number` | `5` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| value | the `code` of selected area | `String` | - |
|
||||
| title | Toolbar title | `String` | - |
|
||||
| area-list | Area data | `Object` | - |
|
||||
| columns-num | level of picker | `String | Number` | `3` |
|
||||
| item-height | Option height | `Number` | `44` |
|
||||
| loading | Whether to show loading prompt | `Boolean` | `false` |
|
||||
| visible-item-count | Count of visible columns | `Number` | `5` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -39,13 +39,13 @@ export default {
|
||||
|
||||
### BadgeGroup API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| active-key | Index of chosen badge | `String | Number` | `0` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| active-key | Index of chosen badge | `String | Number` | `0` |
|
||||
|
||||
### Badge API
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| title | Content | `String` | `''` | - |
|
||||
| info | Info Message | `String | Number` | `''` | - |
|
||||
| url | Link | `String` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| title | Content | `String` | `''` |
|
||||
| info | Info Message | `String | Number` | `''` |
|
||||
| url | Link | `String` | - |
|
||||
|
||||
@@ -41,15 +41,15 @@ Use `slot` to custom content.
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| thumb | Left thumb | `String` | - | - |
|
||||
| title | Title | `String` | - | - |
|
||||
| desc | Description | `String` | - | - |
|
||||
| num | Number of goods | `String | Number` | - | - |
|
||||
| price | Price of goods | `String | Number` | - | - |
|
||||
| centered | Whether content vertical centered | `String` | `false` | - |
|
||||
| currency | Currency symbol | `String` | `¥` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| thumb | Left thumb | `String` | - |
|
||||
| title | Title | `String` | - |
|
||||
| desc | Description | `String` | - |
|
||||
| num | Number of goods | `String | Number` | - |
|
||||
| price | Price of goods | `String | Number` | - |
|
||||
| centered | Whether content vertical centered | `String` | `false` |
|
||||
| currency | Currency symbol | `String` | `¥` |
|
||||
|
||||
### Slot
|
||||
|
||||
|
||||
@@ -58,11 +58,11 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| left-width | Width of the left scrollable area | `Number` | `0` | - |
|
||||
| right-width | Width of the right scrollable area | `Number` | `0` | - |
|
||||
| on-close | Callback function before close | `Function` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| left-width | Width of the left scrollable area | `Number` | `0` |
|
||||
| right-width | Width of the right scrollable area | `Number` | `0` |
|
||||
| on-close | Callback function before close | `Function` | - |
|
||||
|
||||
### Slot
|
||||
|
||||
|
||||
+17
-17
@@ -62,26 +62,26 @@ Vue.use(Cell).use(CellGroup);
|
||||
|
||||
### CellGroup API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| border | Whether to show outer border | `Boolean` | `true` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| border | Whether to show outer border | `Boolean` | `true` |
|
||||
|
||||
### Cell API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| icon | Left Icon | `String` | - | - |
|
||||
| title | Title | `String` | - | - |
|
||||
| value | Right text | `String` | - | - |
|
||||
| label | Description below the title | `String` | - | - |
|
||||
| border | Whether to show inner border | `Boolean` | `true` | - |
|
||||
| center | Whether to center content vertically | `Boolean` | `true` | - |
|
||||
| url | Link | `String` | - | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |
|
||||
| clickable | Whether to show click feedback when clicked | `Boolean` | `false` | - |
|
||||
| is-link | Whether to show link icon | `Boolean` | `false` | - |
|
||||
| required | Whether to show required mark | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| icon | Left Icon | `String` | - |
|
||||
| title | Title | `String` | - |
|
||||
| value | Right text | `String` | - |
|
||||
| label | Description below the title | `String` | - |
|
||||
| border | Whether to show inner border | `Boolean` | `true` |
|
||||
| center | Whether to center content vertically | `Boolean` | `true` |
|
||||
| url | Link | `String` | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` |
|
||||
| clickable | Whether to show click feedback when clicked | `Boolean` | `false` |
|
||||
| is-link | Whether to show link icon | `Boolean` | `false` |
|
||||
| required | Whether to show required mark | `Boolean` | `false` |
|
||||
|
||||
### Cell Event
|
||||
|
||||
|
||||
@@ -55,18 +55,18 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Current rate | `Number` | - | - |
|
||||
| rate | Target rate | `Number` | `100` | - |
|
||||
| size | Circle size | `String` | `100px` | - |
|
||||
| color | Progress bar color | `String` | `#38f` | - |
|
||||
| layer-color | Layer color | `String` | `#fff` | - |
|
||||
| fill | Fill color | `String` | `none` | - |
|
||||
| speed | Animate speed(rate/s)| `Number` | - | - |
|
||||
| text | Text | `String` | - | - |
|
||||
| stroke-width | Stroke width | `Number` | `40` | - |
|
||||
| clockwise | Is clockwise | `Boolean` | `true` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Current rate | `Number` | - |
|
||||
| rate | Target rate | `Number` | `100` |
|
||||
| size | Circle size | `String` | `100px` |
|
||||
| color | Progress bar color | `String` | `#38f` |
|
||||
| layer-color | Layer color | `String` | `#fff` |
|
||||
| fill | Fill color | `String` | `none` |
|
||||
| speed | Animate speed(rate/s)| `Number` | - |
|
||||
| text | Text | `String` | - |
|
||||
| stroke-width | Stroke width | `Number` | `40` |
|
||||
| clockwise | Is clockwise | `Boolean` | `true` |
|
||||
|
||||
### Cell Slot
|
||||
|
||||
|
||||
@@ -69,10 +69,10 @@ export default {
|
||||
|
||||
### Collapse API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | names of current active panels | `Array | String | Number` | - | - |
|
||||
| accordion | Whether to be accordion mode | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | names of current active panels | `Array | String | Number` | - |
|
||||
| accordion | Whether to be accordion mode | `Boolean` | `false` |
|
||||
|
||||
### Collapse Event
|
||||
|
||||
@@ -82,10 +82,10 @@ export default {
|
||||
|
||||
### CollapseItem API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| name | Name | `String | Number` | `index` | - |
|
||||
| title | Title | `String` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| name | Name | `String | Number` | `index` |
|
||||
| title | Title | `String` | - |
|
||||
|
||||
### CollapseItem Slot
|
||||
|
||||
|
||||
@@ -140,11 +140,11 @@ export default {
|
||||
| add-text | Add card text | `String` | `Add contact info` | - |
|
||||
|
||||
### ContactList API
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Id of chosen contact | `String | Number` | - | - |
|
||||
| list | Contact list | `Array` | `[]` | - |
|
||||
| add-text | Add button text | `String` | `Add new contact` | - |
|
||||
| v-model | Id of chosen contact | `String | Number` | - |
|
||||
| list | Contact list | `Array` | `[]` |
|
||||
| add-text | Add button text | `String` | `Add new contact` |
|
||||
|
||||
### ContactList Event
|
||||
|
||||
@@ -155,13 +155,13 @@ export default {
|
||||
| select | Triggered when select contact | item: contact object |
|
||||
|
||||
### ContactEdit API
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| contact-info | Contact Info | `Object` | `[]` | - |
|
||||
| is-edit | Whether is editing | `Boolean` | `false` | - |
|
||||
| is-saving | Whether to show save button loading status | `Boolean` | `false` | - |
|
||||
| is-deleting | Whether to show delete button loading status | `Boolean` | `false` | - |
|
||||
| tel-validator | The method to validate tel | `(tel: string) => boolean` | - | - |
|
||||
| contact-info | Contact Info | `Object` | `[]` |
|
||||
| is-edit | Whether is editing | `Boolean` | `false` |
|
||||
| is-saving | Whether to show save button loading status | `Boolean` | `false` |
|
||||
| is-deleting | Whether to show delete button loading status | `Boolean` | `false` |
|
||||
| tel-validator | The method to validate tel | `(tel: string) => boolean` | - |
|
||||
|
||||
### ContactEdit Event
|
||||
|
||||
|
||||
@@ -67,29 +67,29 @@ export default {
|
||||
|
||||
### CouponCell API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| title | Cell title | `String` | `Coupon` | - |
|
||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` | - |
|
||||
| coupons | Coupon list | `Array` | `[]` | - |
|
||||
| editable | Cell editable | `Boolean` | `true` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| title | Cell title | `String` | `Coupon` |
|
||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
|
||||
| coupons | Coupon list | `Array` | `[]` |
|
||||
| editable | Cell editable | `Boolean` | `true` |
|
||||
|
||||
### CouponList API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Current exchange code | `String` | - | - |
|
||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` | - |
|
||||
| coupons | Coupon list | `Array` | `[]` | - |
|
||||
| disabled-coupons | Disabled voupon list | `Array` | `[]` | - |
|
||||
| exchange-button-text | Exchange button text | `String` | `Exchange` | - |
|
||||
| exchange-button-loading | Whether to show loading in exchange button | `Boolean` | `false` | - |
|
||||
| exchange-button-disabled | Whether to disable exchange button | `Boolean` | `false` | - |
|
||||
| exchange-min-length | Min length to enable exchange button | `Number` | `1` | - |
|
||||
| displayed-coupon-index | Index of displayed coupon | `Number` | - | - |
|
||||
| close-button-text | Close button text | `String` | `Close` | - |
|
||||
| disabled-list-title | Disabled list title | `String` | `Unavailable` | - |
|
||||
| input-placeholder | Input placeholder | `String` | `Coupon code` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Current exchange code | `String` | - |
|
||||
| chosen-coupon | Index of chosen coupon | `Number` | `-1` |
|
||||
| coupons | Coupon list | `Array` | `[]` |
|
||||
| disabled-coupons | Disabled voupon list | `Array` | `[]` |
|
||||
| exchange-button-text | Exchange button text | `String` | `Exchange` |
|
||||
| exchange-button-loading | Whether to show loading in exchange button | `Boolean` | `false` |
|
||||
| exchange-button-disabled | Whether to disable exchange button | `Boolean` | `false` |
|
||||
| exchange-min-length | Min length to enable exchange button | `Number` | `1` |
|
||||
| displayed-coupon-index | Index of displayed coupon | `Number` | - |
|
||||
| close-button-text | Close button text | `String` | `Close` |
|
||||
| disabled-list-title | Disabled list title | `String` | `Unavailable` |
|
||||
| input-placeholder | Input placeholder | `String` | `Coupon code` |
|
||||
|
||||
### CouponList Event
|
||||
|
||||
|
||||
@@ -66,18 +66,18 @@ export default {
|
||||
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| title | Title | `String` | - | - |
|
||||
| message | Message | `String` | - | - |
|
||||
| showConfirmButton | Whether to show confirm button | `Boolean` | `true` | - |
|
||||
| showCancelButton | Whether to show cancel button | `Boolean` | `false` | - |
|
||||
| confirmButtonText | Confirm button text | `String` | `Confirm` | - |
|
||||
| cancelButtonText | Cancel button test | `String` | `Cancel` | - |
|
||||
| overlay | Whether to show overlay | `Boolean` | `true` | - |
|
||||
| closeOnClickOverlay | Whether to close when click overlay | `Boolean` | `false` | - |
|
||||
| lockScroll | Whether to lock body scroll | `Boolean` | `true` | - |
|
||||
| beforeClose | Callback before close,call done to close dialog | (action: string, done: function) => void | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| title | Title | `String` | - |
|
||||
| message | Message | `String` | - |
|
||||
| showConfirmButton | Whether to show confirm button | `Boolean` | `true` |
|
||||
| showCancelButton | Whether to show cancel button | `Boolean` | `false` |
|
||||
| confirmButtonText | Confirm button text | `String` | `Confirm` |
|
||||
| cancelButtonText | Cancel button test | `String` | `Cancel` |
|
||||
| overlay | Whether to show overlay | `Boolean` | `true` |
|
||||
| closeOnClickOverlay | Whether to close when click overlay | `Boolean` | `false` |
|
||||
| lockScroll | Whether to lock body scroll | `Boolean` | `true` |
|
||||
| beforeClose | Callback before close,call done to close dialog | (action: string, done: function) => void | - |
|
||||
|
||||
#### Advanced Usage
|
||||
If you need to render vue components within a dialog, you can use dialog component.
|
||||
@@ -124,20 +124,20 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Whether to show dialog | `Boolean` | - | - |
|
||||
| title | Title | `String` | - | - |
|
||||
| message | Message | `String` | - | - |
|
||||
| async-confirm | Whether to close async,The incoming function is triggered when you click confirm. | `Function` | - | - |
|
||||
| show-confirm-button | Whether to show confirm button | `Boolean` | `true` | - |
|
||||
| show-cancel-button | Whether to show cancel button | `Boolean` | `false` | - |
|
||||
| confirm-button-text | Confirm button text | `String` | `Confirm` | - |
|
||||
| cancel-button-text | Cancel button test | `String` | `Cancel` | - |
|
||||
| overlay | Whether to show overlay | `Boolean` | `true` | - |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | `false` | - |
|
||||
| lock-scroll | Whether to lock background scroll | `Boolean` | `true` | - |
|
||||
| before-close | Callback before close,call done to close dialog | (action: string, done: function) => void | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Whether to show dialog | `Boolean` | - |
|
||||
| title | Title | `String` | - |
|
||||
| message | Message | `String` | - |
|
||||
| async-confirm | Whether to close async,The incoming function is triggered when you click confirm. | `Function` | - |
|
||||
| show-confirm-button | Whether to show confirm button | `Boolean` | `true` |
|
||||
| show-cancel-button | Whether to show cancel button | `Boolean` | `false` |
|
||||
| confirm-button-text | Confirm button text | `String` | `Confirm` |
|
||||
| cancel-button-text | Cancel button test | `String` | `Cancel` |
|
||||
| overlay | Whether to show overlay | `Boolean` | `true` |
|
||||
| close-on-click-overlay | Whether to close when click overlay | `Boolean` | `false` |
|
||||
| lock-scroll | Whether to lock background scroll | `Boolean` | `true` |
|
||||
| before-close | Callback before close,call done to close dialog | (action: string, done: function) => void | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -56,23 +56,23 @@ Use `info` prop to show messages in upper right corner of icon
|
||||
|
||||
#### GoodsActionMiniBtn
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| text | Button text | `String` | - | - |
|
||||
| icon | Icon | `String` | - | - |
|
||||
| icon-class | Icon class name | `String` | `''` | - |
|
||||
| info | Info message | `String | Number` | - | - |
|
||||
| url | Link | `String` | - | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| text | Button text | `String` | - |
|
||||
| icon | Icon | `String` | - |
|
||||
| icon-class | Icon class name | `String` | `''` |
|
||||
| info | Info message | `String | Number` | - |
|
||||
| url | Link | `String` | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` |
|
||||
|
||||
|
||||
#### GoodsActionBigBtn
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| text | Button text | `String` | - | - |
|
||||
| primary | Is primary button (red color) | `Boolean` | `false` | - |
|
||||
| url | Link | `String` | - | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| text | Button text | `String` | - |
|
||||
| primary | Is primary button (red color) | `Boolean` | `false` |
|
||||
| url | Link | `String` | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` |
|
||||
|
||||
@@ -46,10 +46,10 @@ import 'vant/lib/vant-css/icon-local.css';
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| name | Icon name | `String` | `''` | - |
|
||||
| info | Info message | `String | Number` | `''` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| name | Icon name | `String` | `''` |
|
||||
| info | Info message | `String | Number` | `''` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -52,12 +52,14 @@ Set grid spacing using `gutter` attribute. The default value is 0
|
||||
### API
|
||||
|
||||
#### Row
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| gutter | grid spacing(px) | `String | Number` | - | - |
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| gutter | grid spacing(px) | `String | Number` | - |
|
||||
|
||||
#### Column
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| span | number of column the grid spans | `String | Number` | - | - |
|
||||
| offset | number of spacing on the left side of the grid | `String | Number` | - | - |
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| span | number of column the grid spans | `String | Number` | - |
|
||||
| offset | number of spacing on the left side of the grid | `String | Number` | - |
|
||||
|
||||
@@ -47,15 +47,15 @@ Use `v-lazy:background-image` to set background url, and declare the height of t
|
||||
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| loading | Src of the image while loading | `String` | - | - |
|
||||
| error | Src of the image upon load fail | `String` | - | - |
|
||||
| preload | Proportion of pre-loading height | `String` | - | - |
|
||||
| attempt | Attempts count | `Number` | `3` | - |
|
||||
| listenEvents | Events that you want vue listen for | `Array` | `scroll`... | - |
|
||||
| adapter | Dynamically modify the attribute of element | `Object` | - | - |
|
||||
| filter | The image's listener filter | `Object` | - | - |
|
||||
| lazyComponent | Lazyload component | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| loading | Src of the image while loading | `String` | - |
|
||||
| error | Src of the image upon load fail | `String` | - |
|
||||
| preload | Proportion of pre-loading height | `String` | - |
|
||||
| attempt | Attempts count | `Number` | `3` |
|
||||
| listenEvents | Events that you want vue listen for | `Array` | `scroll`... |
|
||||
| adapter | Dynamically modify the attribute of element | `Object` | - |
|
||||
| filter | The image's listener filter | `Object` | - |
|
||||
| lazyComponent | Lazyload component | `Boolean` | `false` |
|
||||
|
||||
See more:[ vue-lazyload ](https://github.com/hilongjw/vue-lazyload)
|
||||
|
||||
@@ -51,13 +51,13 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| loading | Whether to show loading info,the `load` event will not be triggered when loading | `Boolean` | `false` | - |
|
||||
| finished | Whether loading is finished,the `load` event will not be triggered when finished | `Boolean` | `false` | - |
|
||||
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | `Number` | `300` | - |
|
||||
| loading-text | Loading text | `String` | `Loading...` | - |
|
||||
| immediate-check | Whether to check loading position immediately after mounted | `Boolean` | `true` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| loading | Whether to show loading info,the `load` event will not be triggered when loading | `Boolean` | `false` |
|
||||
| finished | Whether loading is finished,the `load` event will not be triggered when finished | `Boolean` | `false` |
|
||||
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | `Number` | `300` |
|
||||
| loading-text | Loading text | `String` | `Loading...` |
|
||||
| immediate-check | Whether to check loading position immediately after mounted | `Boolean` | `true` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -45,14 +45,15 @@ export default {
|
||||
|
||||
|
||||
### API
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| title | Title | `String` | `''` | - |
|
||||
| left-text | Left Text | `String` | `''` | - |
|
||||
| right-text | Right Text | `String` | `''` | - |
|
||||
| left-arrow | Whether to show left arrow | `Boolean` | `false` | - |
|
||||
| fixed | Whether to fixed top | `Boolean` | `false` | - |
|
||||
| z-index | Z-index | `Number` | `1` | - |
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| title | Title | `String` | `''` |
|
||||
| left-text | Left Text | `String` | `''` |
|
||||
| right-text | Right Text | `String` | `''` |
|
||||
| left-arrow | Whether to show left arrow | `Boolean` | `false` |
|
||||
| fixed | Whether to fixed top | `Boolean` | `false` |
|
||||
| z-index | Z-index | `Number` | `1` |
|
||||
|
||||
### Slot
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Current page number | `Number` | - | - |
|
||||
| mode | Mode | `String` | `multi` | `simple` |
|
||||
| mode | Mode | `String` | `multi` | `simple` |
|
||||
| items-per-page | Item number per page | `Number` | `10` | - |
|
||||
| prev-text | Previous text | `String` | `Previous` | - |
|
||||
| next-text | Next text | `String` | `Next` | - |
|
||||
|
||||
@@ -31,11 +31,11 @@ Vue.use(Panel);
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| title | Title | `String` | - | - |
|
||||
| desc | Description | `String` | - | - |
|
||||
| status | Status | `String` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| title | Title | `String` | - |
|
||||
| desc | Description | `String` | - |
|
||||
| status | Status | `String` | - |
|
||||
|
||||
|
||||
### Slot
|
||||
|
||||
@@ -51,12 +51,12 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| value | Password value | `String` | `''` | - |
|
||||
| length | Maxlength of password | `Number` | `6` | - |
|
||||
| info | Bottom info | `String` | - | - |
|
||||
| error-info | Bottom error info | `String` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| value | Password value | `String` | `''` |
|
||||
| length | Maxlength of password | `Number` | `6` |
|
||||
| info | Bottom info | `String` | - |
|
||||
| error-info | Bottom error info | `String` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -126,17 +126,17 @@ When Picker columns data is acquired asynchronously, use `loading` prop to show
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| columns | Columns data | `Array` | `[]` | - |
|
||||
| show-toolbar | Whether to show toolbar | `Boolean` | `false` | - |
|
||||
| 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` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| columns | Columns data | `Array` | `[]` |
|
||||
| show-toolbar | Whether to show toolbar | `Boolean` | `false` |
|
||||
| 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` |
|
||||
|
||||
### Event
|
||||
Picker events will pass different parameters according to the columns are single or multiple
|
||||
|
||||
@@ -39,11 +39,11 @@ Use `pivot-text` to custom text,use `color` to custom bar color
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| inactive | Whether to be gray | `Boolean` | `false` | - |
|
||||
| percentage | Percentage | `Number` | `false` | `0-100` |
|
||||
| show-pivot | Whether to show text | `Boolean` | `true` | - |
|
||||
| pivot-text | Text | `String` | percentage | - |
|
||||
| color | Color | `String` | `#38f` | hexvalue |
|
||||
| text-color | Text color | `String` | `#fff` | hexvalue |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| inactive | Whether to be gray | `Boolean` | `false` |
|
||||
| percentage | Percentage | `Number` | `false` |
|
||||
| show-pivot | Whether to show text | `Boolean` | `true` |
|
||||
| pivot-text | Text | `String` | percentage |
|
||||
| color | Color | `String` | `#38f` |
|
||||
| text-color | Text color | `String` | `#fff` |
|
||||
|
||||
@@ -41,14 +41,14 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Loading status | `Boolean` | - | - |
|
||||
| pulling-text | Text to show when pulling | `String` | `Pull to refresh...` | - |
|
||||
| loosing-text | Text to show when loosing | `String` | `Loose to refresh...` | - |
|
||||
| loading-text | Text to show when loading | `String` | `Loading...` | - |
|
||||
| animation-duration | Animation duration | `Number` | `300` | - |
|
||||
| head-height | Height of head | `Number` | `50` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Loading status | `Boolean` | - |
|
||||
| pulling-text | Text to show when pulling | `String` | `Pull to refresh...` |
|
||||
| loosing-text | Text to show when loosing | `String` | `Loose to refresh...` |
|
||||
| loading-text | Text to show when loading | `String` | `Loading...` |
|
||||
| animation-duration | Animation duration | `Number` | `300` |
|
||||
| head-height | Height of head | `Number` | `50` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -56,17 +56,17 @@ export default {
|
||||
|
||||
### Radio API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| name | Radio name | `any` | - | - |
|
||||
| disabled | Whether to disable radio | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| name | Radio name | `any` | - |
|
||||
| disabled | Whether to disable radio | `Boolean` | `false` |
|
||||
|
||||
### RadioGroup API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Name of checked radio | `any` | - | - |
|
||||
| disabled | Diable all radios | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Name of checked radio | `any` | - |
|
||||
| disabled | Diable all radios | `Boolean` | `false` |
|
||||
|
||||
### RadioGroup Event
|
||||
|
||||
|
||||
@@ -58,11 +58,11 @@ Use `action` slot to custom right button, `cancel` event will no longer be trigg
|
||||
### API
|
||||
Search support all native properties of input tag,such as `maxlength`、`placeholder`、`readonly`、`autofocus`
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| placeholder | Input placeholder | `String` | - | - |
|
||||
| background | Background color | `String` | `#f2f2f2` | - |
|
||||
| show-action | Whether to show right button | `Boolean` | false | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| placeholder | Input placeholder | `String` | - |
|
||||
| background | Background color | `String` | `#f2f2f2` |
|
||||
| show-action | Whether to show right button | `Boolean` | `false` |
|
||||
|
||||
### Event
|
||||
Search support all native events of input tag,such as `focus`、`blur`、`keypress`
|
||||
|
||||
+18
-18
@@ -83,24 +83,24 @@ Vue.use(Sku);
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Whether to show sku | `Boolean` | `false` | - |
|
||||
| sku | Sku data | `Object` | - | - |
|
||||
| goods | Goods info | `Object` | - | - |
|
||||
| goods-id | Goods id | `String | Number` | - | - |
|
||||
| hide-stock | Whether to hide stock | `Boolean` | `false` | - |
|
||||
| show-add-cart-btn | Whether to show cart button | `Boolean` | `true` | - |
|
||||
| quota | Quota (0 as no limit) | `Number` | `0` | - |
|
||||
| quota-used | Used quota | `Number` | `0` | - |
|
||||
| reset-stepper-on-hide | Whether to reset stepper when hide | `Boolean` | `false` | - |
|
||||
| reset-selected-sku-on-hide | Whether to reset selected sku when hide | `Boolean` | `false` | - |
|
||||
| disable-stepper-input | Whether to disable stepper input | `Boolean` | `false` | - |
|
||||
| close-on-click-overlay | Whether to close sku popup when click overlay | `Boolean` | `false` | - |
|
||||
| stepper-title | Quantity title | `String` | `Quantity` | - |
|
||||
| custom-stepper-config | Custom stepper related config | `Object` | `{}` | - |
|
||||
| message-config | Message related config | `Object` | `{}` | - |
|
||||
| get-container | Return the mount node for sku | `Function` | - | `() => HTMLElement` |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Whether to show sku | `Boolean` | `false` |
|
||||
| sku | Sku data | `Object` | - |
|
||||
| goods | Goods info | `Object` | - |
|
||||
| goods-id | Goods id | `String | Number` | - |
|
||||
| hide-stock | Whether to hide stock | `Boolean` | `false` |
|
||||
| show-add-cart-btn | Whether to show cart button | `Boolean` | `true` |
|
||||
| quota | Quota (0 as no limit) | `Number` | `0` |
|
||||
| quota-used | Used quota | `Number` | `0` |
|
||||
| reset-stepper-on-hide | Whether to reset stepper when hide | `Boolean` | `false` |
|
||||
| reset-selected-sku-on-hide | Whether to reset selected sku when hide | `Boolean` | `false` |
|
||||
| disable-stepper-input | Whether to disable stepper input | `Boolean` | `false` |
|
||||
| close-on-click-overlay | Whether to close sku popup when click overlay | `Boolean` | `false` |
|
||||
| stepper-title | Quantity title | `String` | `Quantity` |
|
||||
| custom-stepper-config | Custom stepper related config | `Object` | `{}` |
|
||||
| message-config | Message related config | `Object` | `{}` |
|
||||
| get-container | Return the mount node for sku | `() => HTMLElement` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -62,16 +62,16 @@ Use slot to add custom contents.
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| price | Price | `Number` | - | - |
|
||||
| label | Price label | `String` | `合计:` | - |
|
||||
| button-text | Button text | `String` | - | - |
|
||||
| button-type | Button type | `String` | `danger` | - |
|
||||
| tip | Tip | `String` | - | - |
|
||||
| disabled | Whether to disable button | `Boolean` | `false` | - |
|
||||
| loading | Whether to show loading icon | `Boolean` | `false` | - |
|
||||
| currency | Currency symbol | `String` | `¥` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| price | Price | `Number` | - |
|
||||
| label | Price label | `String` | `合计:` |
|
||||
| button-text | Button text | `String` | - |
|
||||
| button-type | Button type | `String` | `danger` |
|
||||
| tip | Tip | `String` | - |
|
||||
| disabled | Whether to disable button | `Boolean` | `false` |
|
||||
| loading | Whether to show loading icon | `Boolean` | `false` |
|
||||
| currency | Currency symbol | `String` | `¥` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -79,15 +79,15 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| autoplay | Autoplay interval (ms) | `Number` | - | - |
|
||||
| duration | Animation duration (ms) | `Number` | `500` | - |
|
||||
| loop | Whether to enable loop | `Boolean` | `true` | - |
|
||||
| vertical | Vertical Scrolling | `Boolean` | `false` | - |
|
||||
| touchable | Whether touchable | `Boolean` | `true` | - |
|
||||
| show-indicators | Whether to show indocators | `Boolean` | `true` | - |
|
||||
| initial-swipe | Index of initial swipe, start from 0 | `Number` | `0` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| autoplay | Autoplay interval (ms) | `Number` | - |
|
||||
| duration | Animation duration (ms) | `Number` | `500` |
|
||||
| loop | Whether to enable loop | `Boolean` | `true` |
|
||||
| vertical | Vertical Scrolling | `Boolean` | `false` |
|
||||
| touchable | Whether touchable | `Boolean` | `true` |
|
||||
| show-indicators | Whether to show indocators | `Boolean` | `true` |
|
||||
| initial-swipe | Index of initial swipe, start from 0 | `Number` | `0` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -50,12 +50,12 @@ use `loading` property to keep component in loading state
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | on-off state of the switch | `Boolean` | - | - |
|
||||
| title | the leftside title | `String` | `''` | - |
|
||||
| loading | whether the component is in loading state | `Boolean` | `false` | - |
|
||||
| disabled | whether to disable the component | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | on-off state of the switch | `Boolean` | - |
|
||||
| title | the leftside title | `String` | `''` |
|
||||
| loading | whether the component is in loading state | `Boolean` | `false` |
|
||||
| disabled | whether to disable the component | `Boolean` | `false` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -67,12 +67,12 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Check status of Switch | `Boolean` | `false` | - |
|
||||
| loading | Whether to show loading icon | `Boolean` | `false` | - |
|
||||
| disabled | Whether to disable switch | `Boolean` | `false` | - |
|
||||
| size | Size of switch | `String` | `30px` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Check status of Switch | `Boolean` | `false` |
|
||||
| loading | Whether to show loading icon | `Boolean` | `false` |
|
||||
| disabled | Whether to disable switch | `Boolean` | `false` |
|
||||
| size | Size of switch | `String` | `30px` |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -62,9 +62,9 @@ export default {
|
||||
|
||||
### Tabbar API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-model | Index of current tab | `Number` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-model | Index of current tab | `Number` | - |
|
||||
|
||||
### Tabbar Event
|
||||
|
||||
@@ -74,14 +74,14 @@ export default {
|
||||
|
||||
### TabbarItem API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| icon | Icon name | `String` | - | Names from Icon Component |
|
||||
| dot | Whether to show red dot | `Boolean` | - | - |
|
||||
| info | Info message | `String | Number` | - | - |
|
||||
| url | Link | `String` | - | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| icon | Icon name | `String` | - |
|
||||
| dot | Whether to show red dot | `Boolean` | - |
|
||||
| info | Info message | `String | Number` | - |
|
||||
| url | Link | `String` | - |
|
||||
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - |
|
||||
| replace | If true, the navigation will not leave a history record | `String` | `false` |
|
||||
|
||||
### TabbarItem Slot
|
||||
|
||||
|
||||
@@ -38,11 +38,11 @@ Vue.use(Tag);
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| type | Type | `String` | `''`| `primary` `success` `danger` |
|
||||
| plain | Whether to be plain style | `Boolean` | `false` | - |
|
||||
| mark | Wtether to be mark style | `Boolean` | `false` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| type | Type, can be set to `primary` `success` `danger` | `String` | `''`|
|
||||
| plain | Whether to be plain style | `Boolean` | `false` |
|
||||
| mark | Wtether to be mark style | `Boolean` | `false` |
|
||||
|
||||
### Slot
|
||||
|
||||
|
||||
@@ -93,11 +93,11 @@ toast2.clear();
|
||||
|
||||
### Options
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| type | Type | `String` | `text` | `loading` `success` `fail` `html` |
|
||||
| message | Message | `String` | `''` | - |
|
||||
| position | Position | `String` | `middle` | `top` `bottom` |
|
||||
| mask | Whether to show mask | `Boolean` | `false` | - |
|
||||
| forbidClick | Whether to forbid click background | `Boolean` | `false` | - |
|
||||
| duration | Toast duration(ms) | `Number` | `3000` | Toast won't disappear if value is 0 |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| type | Can be set to `loading` `success` `fail` `html` | `String` | `text` |
|
||||
| position | Can be set to `top` `middle` `bottom` | `String` | `middle` |
|
||||
| message | Message | `String` | `''` |
|
||||
| mask | Whether to show mask | `Boolean` | `false` |
|
||||
| forbidClick | Whether to forbid click background | `Boolean` | `false` |
|
||||
| duration | Toast duration(ms), won't disappear if value is 0 | `Number` | `3000` |
|
||||
@@ -47,11 +47,11 @@ export default {
|
||||
|
||||
#### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| items | Required datasets for the component, see Data Structure for detail. | `Array` | `[]` | - |
|
||||
| main-Active-index | The index of selected parent node | `Number` | `0` | - |
|
||||
| active-id | Id of selected item | `Number` | `0` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| items | Required datasets for the component, see Data Structure for detail. | `Array` | `[]` |
|
||||
| main-Active-index | The index of selected parent node | `Number` | `0` |
|
||||
| active-id | Id of selected item | `Number` | `0` |
|
||||
|
||||
#### Event
|
||||
| Event | Description | Arguments |
|
||||
|
||||
@@ -40,14 +40,14 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| result-type | Type of file read result | `String` | `dataUrl` | `text` |
|
||||
| accept | Accepted file type | `String` | `image/*` | - |
|
||||
| disabled | Whether to disabled the upload | `Boolean` | `false` | - |
|
||||
| before-read | Hook before reading the file, return false to stop reading the file | `Function` | - | - |
|
||||
| after-read | Hook after reading the file | `Function` | - | - |
|
||||
| max-size | Max size of file | `Number` | - | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| result-type | Type of file read result, can be set to `dataUrl` `text` | `String` | `dataUrl` |
|
||||
| accept | Accepted file type | `String` | `image/*` |
|
||||
| disabled | Whether to disabled the upload | `Boolean` | `false` |
|
||||
| before-read | Hook before reading the file, return false to stop reading the file | `Function` | - |
|
||||
| after-read | Hook after reading the file | `Function` | - |
|
||||
| max-size | Max size of file | `Number` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -69,9 +69,9 @@ export default {
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| v-waterfall-lower | Function to trigger when scroll to bottom | `Function` | - | - |
|
||||
| v-waterfall-upper | Function to trigger when scroll to top | `Function` | - | - |
|
||||
| waterfall-disabled | Key of the property to control disable status in instance | `String` | - | - |
|
||||
| waterfall-offset | Offset to trigger callback function | `Number` | `300` | - |
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| v-waterfall-lower | Function to trigger when scroll to bottom | `Function` | - |
|
||||
| v-waterfall-upper | Function to trigger when scroll to top | `Function` | - |
|
||||
| waterfall-disabled | Key of the property to control disable status in instance | `String` | - |
|
||||
| waterfall-offset | Offset to trigger callback function | `Number` | `300` |
|
||||
|
||||
Reference in New Issue
Block a user