tianheng-ui 0.1.1 → 0.1.3

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.1",
4
+ "version": "0.1.3",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -74,7 +74,6 @@ export default {
74
74
  watch: {
75
75
  fields: {
76
76
  handler(val, oldVal) {
77
- console.log("watch fields =>", val);
78
77
  if (oldVal.length === 0) {
79
78
  this.initConfig();
80
79
  }
@@ -82,18 +81,14 @@ export default {
82
81
  deep: true
83
82
  },
84
83
  config(val) {
85
- console.log("watch config =>", val);
86
84
  this.initConfig();
87
85
  }
88
86
  },
89
87
  mounted() {
90
- console.log("mounted =>", this.config, this.fields);
91
88
  this.initConfig();
92
89
  },
93
90
  methods: {
94
91
  initConfig() {
95
- console.log("initConfig =>", this.config, this.fields);
96
-
97
92
  if (!this.config || Object.keys(this.config).length === 0) return;
98
93
 
99
94
  this.$refs.configRef.tableConfig = this.config;
@@ -105,7 +100,7 @@ export default {
105
100
  for (const item of searchOptions) {
106
101
  for (let i = 0; i < this.fields.length; i++) {
107
102
  const element = this.fields[i];
108
- if (element.alias === item.prop) {
103
+ if (element.prop === item.prop) {
109
104
  searchFields.push(item);
110
105
  searchFieldsIndexs.push(i);
111
106
  }
@@ -128,7 +123,7 @@ export default {
128
123
  for (const item of tableOptions) {
129
124
  for (let i = 0; i < this.fields.length; i++) {
130
125
  const element = this.fields[i];
131
- if (element.alias === item.prop) {
126
+ if (element.prop === item.prop) {
132
127
  tableFields.push(item);
133
128
  tableFieldsIndexs.push(i);
134
129
  }