tianheng-ui 0.1.17 → 0.1.18
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
@@ -73,7 +73,7 @@ export default {
|
|
73
73
|
return {};
|
74
74
|
}
|
75
75
|
},
|
76
|
-
|
76
|
+
config: {
|
77
77
|
type: Object,
|
78
78
|
default: () => {
|
79
79
|
return {};
|
@@ -101,7 +101,7 @@ export default {
|
|
101
101
|
},
|
102
102
|
data() {
|
103
103
|
return {
|
104
|
-
formJson: this.
|
104
|
+
formJson: this.config,
|
105
105
|
models: {},
|
106
106
|
componentsData: [],
|
107
107
|
axios: null
|
@@ -116,7 +116,7 @@ export default {
|
|
116
116
|
}
|
117
117
|
},
|
118
118
|
watch: {
|
119
|
-
|
119
|
+
config(val) {
|
120
120
|
this.setJSON(val);
|
121
121
|
},
|
122
122
|
formJson: {
|
@@ -194,7 +194,7 @@ export default {
|
|
194
194
|
GenerateForm
|
195
195
|
},
|
196
196
|
props: {
|
197
|
-
|
197
|
+
config: {
|
198
198
|
type: Object,
|
199
199
|
default: () => {
|
200
200
|
return { config: {}, list: [] };
|
@@ -261,7 +261,7 @@ export default {
|
|
261
261
|
this.layoutComponents = layoutComponents;
|
262
262
|
this.baseConfig = deepClone(baseConfig);
|
263
263
|
return {
|
264
|
-
widgetFormData: this.
|
264
|
+
widgetFormData: this.config,
|
265
265
|
widgetFormSelect: {},
|
266
266
|
widgetValue: {},
|
267
267
|
configTab: "widget",
|
@@ -296,7 +296,7 @@ export default {
|
|
296
296
|
this.$emit("on-change", val);
|
297
297
|
}
|
298
298
|
},
|
299
|
-
|
299
|
+
config(val) {
|
300
300
|
if (val && val.config) {
|
301
301
|
val.config = Object.assign(this.baseConfig, val.config);
|
302
302
|
}
|