mirror of
https://github.com/youzan/vant.git
synced 2026-03-02 02:04:16 +08:00
fix(Sku): stepper emit valid num (#5210)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user