Fix(购物车):[#1016]商品购买限制数量

This commit is contained in:
lifizer
2024-04-01 21:54:45 +08:00
parent 195035f7ba
commit 624c7f17a2
3 changed files with 208 additions and 118 deletions
@@ -275,6 +275,9 @@
},
// 发出change事件
emitChange(value) {
const {
type
} = this
// 如果开启了异步变更值,则不修改内部的值,需要用户手动在外部通过v-model变更
if (!this.asyncChange) {
this.$nextTick(() => {
@@ -284,6 +287,7 @@
})
}
this.$emit('change', {
type,
value,
name: this.name,
});