Fix(购物车):[#1016]商品购买限制数量
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user