docs: type highlight (#4264)

This commit is contained in:
neverland
2019-08-27 22:09:21 +08:00
committed by GitHub
parent a79750d00c
commit ecbdc2bede
129 changed files with 1493 additions and 1484 deletions
+21 -21
View File
@@ -118,27 +118,27 @@ export default {
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| v-model | Whether to show sku | `boolean` | `false` | - |
| sku | Sku data | `object` | - | - |
| goods | Goods info | `object` | - | - |
| goods-id | Goods id | `string | `number` | - | - |
| price-tag | Tag behind the price | `string` | - | - |
| hide-stock | Whether to hide stock | `boolean` | `false` | - |
| hide-quota-text | Whether to hide quota text | `boolean` | `false` | - |
| hide-selected-text | Whether to hide selected text | `boolean` | `false` | - |
| show-add-cart-btn | Whether to show cart button | `boolean` | `true` | - |
| buy-text | Buy button text | `string` | - | - | - |
| add-cart-text | Add cart button text | `string` | - | - | - |
| 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 | `string | () => HTMLElement` | - | - |
| v-model | Whether to show sku | *boolean* | `false` | - |
| sku | Sku data | *object* | - | - |
| goods | Goods info | *object* | - | - |
| goods-id | Goods id | `string | *number* | - | - |
| price-tag | Tag behind the price | *string* | - | - |
| hide-stock | Whether to hide stock | *boolean* | `false` | - |
| hide-quota-text | Whether to hide quota text | *boolean* | `false` | - |
| hide-selected-text | Whether to hide selected text | *boolean* | `false` | - |
| show-add-cart-btn | Whether to show cart button | *boolean* | `true` | - |
| buy-text | Buy button text | *string* | - | - | - |
| add-cart-text | Add cart button text | *string* | - | - | - |
| 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 | *string \| () => HTMLElement* | - | - |
### Events