[new feature] Sku: update style & add several props (#3875)

This commit is contained in:
codpoe
2019-07-22 10:51:40 +08:00
committed by neverland
parent e8c528a6f6
commit 503fe5f469
13 changed files with 301 additions and 165 deletions
+10 -2
View File
@@ -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 => {},
}
```