mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-24 15:39:15 +08:00
[new feature] Sku: Add custom settings in stepper stock (#2839)
This commit is contained in:
parent
e4de9221e3
commit
6fff26caa1
@ -43,6 +43,10 @@ export default sfc({
|
||||
|
||||
computed: {
|
||||
stock() {
|
||||
const { stockNum } = this.customStepperConfig;
|
||||
if (stockNum !== undefined) {
|
||||
return stockNum;
|
||||
}
|
||||
if (this.selectedSkuComb) {
|
||||
return this.selectedSkuComb.stock_num;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user