fix: 🐛 should apply prop hooks when update props by prop() method

This commit is contained in:
bubkoo
2021-01-26 14:49:04 +08:00
parent a5998e4c35
commit 5c461e0324

View File

@ -253,7 +253,9 @@ export class Cell<
if (typeof key === 'string') {
this.store.set(key, value, options)
} else {
this.store.set(ObjectExt.merge({}, this.getProp(), key), value)
const props = this.preprocess(key)
this.store.set(ObjectExt.merge({}, this.getProp(), props), value)
this.postprocess(key)
}
return this
}