just remore the cache
This commit is contained in:
梁灏 2019-02-27 18:00:15 +08:00
parent 6e97df10d9
commit 856cf774f1

View file

@ -114,19 +114,16 @@
// }
// return parent;
// },
fieldValue: {
cache: false,
get() {
const model = this.form.model;
if (!model || !this.prop) { return; }
fieldValue () {
const model = this.form.model;
if (!model || !this.prop) { return; }
let path = this.prop;
if (path.indexOf(':') !== -1) {
path = path.replace(/:/, '.');
}
return getPropByPath(model, path).v;
let path = this.prop;
if (path.indexOf(':') !== -1) {
path = path.replace(/:/, '.');
}
return getPropByPath(model, path).v;
},
labelStyles () {
let style = {};