This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
|
||||
<div>
|
||||
<v-layout align-center justify-left row wrap>
|
||||
<template v-for="item in this.$store.state.formCustomTemplate[formKey]">
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div v-else-if="item.type === 'text'">
|
||||
<v-textarea
|
||||
v-model="$data[item.dataKey]"
|
||||
v-model="_self[item.dataKey]"
|
||||
:readonly="readOnly"
|
||||
:label="lt(item.fld)"
|
||||
auto-grow
|
||||
@@ -94,8 +94,8 @@ CUSTOM FIELD DATA:
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
c1:null,
|
||||
c2: "Here is my WidgetCustom2 Data!",
|
||||
c1: null,
|
||||
//c2: "Here is my WidgetCustom2 Data!",
|
||||
c3: null,
|
||||
c4: null,
|
||||
c5: null,
|
||||
@@ -124,16 +124,20 @@ export default {
|
||||
this.$emit("change", val);
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
c2: {
|
||||
get: function() {
|
||||
debugger;
|
||||
return "this is my test";
|
||||
},
|
||||
set: function(newValue) {
|
||||
debugger;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
lt: function(ltkey) {
|
||||
return this.$gzlocale.get(ltkey);
|
||||
},
|
||||
bindName: function() {
|
||||
return this.obj.c2;
|
||||
},
|
||||
translateFieldNameToDataObjectKeyName: function(fldName){
|
||||
return "c2";
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
|
||||
Reference in New Issue
Block a user