fix: item proxy
This commit is contained in:
parent
f558bfd08d
commit
4ba38af246
|
@ -60,7 +60,7 @@ export default function(Component) {
|
|||
const instance = this;
|
||||
const proxy = new Proxy(item, {
|
||||
set(target, property, value) {
|
||||
target[property] = value;
|
||||
slots[slot][property] = value;
|
||||
if ('qty' === property && value <= 0) {
|
||||
Component.markChange(instance.entity, 'slotChange', {[slot]: false});
|
||||
delete slots[slot];
|
||||
|
|
Loading…
Reference in New Issue
Block a user