|
@@ -120,19 +120,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, true).v;
|
|
|
+ let path = this.prop;
|
|
|
+ if (path.indexOf(':') !== -1) {
|
|
|
+ path = path.replace(/:/, '.');
|
|
|
}
|
|
|
+
|
|
|
+ return getPropByPath(model, path, true).v;
|
|
|
},
|
|
|
isRequired() {
|
|
|
let rules = this.getRules();
|