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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.1.17",
4
+ "version": "0.1.18",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -73,7 +73,7 @@ export default {
73
73
  return {};
74
74
  }
75
75
  },
76
- data: {
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.data,
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
- data(val) {
119
+ config(val) {
120
120
  this.setJSON(val);
121
121
  },
122
122
  formJson: {
@@ -118,9 +118,7 @@ export default {
118
118
  },
119
119
  props: {},
120
120
  mixins: [configComponent],
121
- mounted() {
122
- console.log(this.widget);
123
- },
121
+ mounted() {},
124
122
  methods: {
125
123
  handleAddImage() {
126
124
  const obj = {
@@ -194,7 +194,7 @@ export default {
194
194
  GenerateForm
195
195
  },
196
196
  props: {
197
- data: {
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.data,
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
- data(val) {
299
+ config(val) {
300
300
  if (val && val.config) {
301
301
  val.config = Object.assign(this.baseConfig, val.config);
302
302
  }
@@ -36,7 +36,7 @@ export default {
36
36
  name: "ThTableMaking",
37
37
  components: { WidgetTools, WidgetTable, WidgetConfig },
38
38
  props: {
39
- data: {
39
+ config: {
40
40
  type: Object,
41
41
  default: () => {
42
42
  return deepClone(tableConfig);