mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Sku): stepper emit valid num (#5210)
This commit is contained in:
parent
c45a08fead
commit
47c3d61584
@ -42,7 +42,9 @@ export default createComponent({
|
||||
watch: {
|
||||
currentNum(num) {
|
||||
const intValue = parseInt(num, 10);
|
||||
this.skuEventBus.$emit('sku:numChange', intValue);
|
||||
if (intValue >= this.stepperMinLimit && intValue <= this.stepperLimit) {
|
||||
this.skuEventBus.$emit('sku:numChange', intValue);
|
||||
}
|
||||
},
|
||||
|
||||
stepperLimit(limit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user