cloud-web-corejs 1.0.54-dev.483 → 1.0.54-dev.485

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,14 +113,14 @@ modules = {
113
113
  },
114
114
  },*/
115
115
  computed: {
116
- currentValue() {
116
+ /* currentValue() {
117
117
  let currentData =
118
118
  this.tableParam && this.tableParam.row
119
119
  ? this.tableParam.row
120
120
  : this.formModel;
121
121
  let currentValue = currentData[this.fieldKeyName];
122
122
  return currentValue;
123
- },
123
+ }, */
124
124
  formConfig: function () {
125
125
  return this.getFormConfig();
126
126
  },
@@ -154,6 +154,9 @@ modules = {
154
154
  },
155
155
  },
156
156
  methods: {
157
+ setFormScriptEnabled(value){
158
+ this.field.options.formScriptEnabled = value || false
159
+ },
157
160
  getOptionLabel(){
158
161
  if (this.fieldModel === null) {
159
162
  return null
@@ -63,6 +63,9 @@ modules = {
63
63
  this.callSetHidden();
64
64
  },
65
65
  methods: {
66
+ setFormScriptEnabled(value){
67
+ this.widget.options.formScriptEnabled = value || false
68
+ },
66
69
  unregisterFromRefList() { //销毁容器组件时注销组件ref
67
70
  if ((this.refList !== null) && !!this.widget.options.name) {
68
71
  let oldRefName = this.widget.options.name;