mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[new feature] Sku: Add custom settings in stepper stock (#2839)
This commit is contained in:
@@ -43,6 +43,10 @@ export default sfc({
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
stock() {
|
stock() {
|
||||||
|
const { stockNum } = this.customStepperConfig;
|
||||||
|
if (stockNum !== undefined) {
|
||||||
|
return stockNum;
|
||||||
|
}
|
||||||
if (this.selectedSkuComb) {
|
if (this.selectedSkuComb) {
|
||||||
return this.selectedSkuComb.stock_num;
|
return this.selectedSkuComb.stock_num;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user