cloud-web-corejs 1.0.54-dev.261 → 1.0.54-dev.262

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.261",
4
+ "version": "1.0.54-dev.262",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -102,9 +102,6 @@ modules = {
102
102
  }
103
103
  }
104
104
  }
105
- if (this.hasCofig("a")) {
106
-
107
- }
108
105
  },
109
106
  mounted() {
110
107
  },
@@ -186,23 +183,30 @@ modules = {
186
183
  this.setReadonly(this.field.options.readonly)
187
184
  },
188
185
  initConfig() {
189
- let options = this.field.options;
190
- let config = this.designer.getFieldWidgetByType(this.field.type);
191
- Object.keys(config).forEach(function (k) {
192
- if (!options.hasOwnProperty(k)) {
193
- let val = config[k]
194
- if (Array.isArray(val)) {
195
- options[k] = []
196
- } else {
197
- options[k] = null
198
- }
186
+ /*if (this.designState) {
187
+ let config = this.designer.getFieldWidgetByType(this.field.type);
188
+ if(config){
189
+ let defaultOptions = config.options;
190
+ let options = this.field.options;
191
+ Object.keys(defaultOptions).forEach(function (k) {
192
+ if (!options.hasOwnProperty(k)) {
193
+ let val = defaultOptions[k]
194
+ if (Array.isArray(val)) {
195
+ options[k] = []
196
+ } else {
197
+ options[k] = null
198
+ }
199
+ }
200
+ })
199
201
  }
200
- })
201
- this.field.options = Object.assign(
202
+
203
+ }*/
204
+
205
+ /*this.field.options = Object.assign(
202
206
  {},
203
207
  config.options,
204
208
  this.field.options
205
- );
209
+ );*/
206
210
  },
207
211
  findInArray: function (e, t) {
208
212
  if (!Array.isArray(e)) return -1;