[new feature] Sku: update style & add several props (#3875)
This commit is contained in:
+10
-2
@@ -120,9 +120,11 @@ export default {
|
||||
| v-model | Whether to show sku | `boolean` | `false` |
|
||||
| sku | Sku data | `object` | - |
|
||||
| goods | Goods info | `object` | - |
|
||||
| goods-id | Goods id | `string | number` | - |
|
||||
| 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` | - | - |
|
||||
@@ -263,7 +265,13 @@ customStepperConfig: {
|
||||
Toast('not enough stock');
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// custom callback when stepper value change
|
||||
handleStepperChange: currentValue => {},
|
||||
// stock
|
||||
stockNum: 1999,
|
||||
// stock fomatter
|
||||
stockFormatter: stockNum => {},
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user