tianheng-ui 0.0.102 → 0.0.104
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
@@ -89,9 +89,11 @@ export default {
|
|
89
89
|
},
|
90
90
|
methods: {
|
91
91
|
initConfig() {
|
92
|
-
if (Object.keys(this.config).length)
|
93
|
-
|
94
|
-
|
92
|
+
if (!this.config || Object.keys(this.config).length === 0) return;
|
93
|
+
|
94
|
+
console.log("initConfig =>", this.config, this.fields);
|
95
|
+
|
96
|
+
this.$refs.configRef.tableConfig = this.config;
|
95
97
|
|
96
98
|
const searchFields = [];
|
97
99
|
const searchFieldsIndexs = [];
|
@@ -100,7 +102,7 @@ export default {
|
|
100
102
|
for (const item of searchOptions) {
|
101
103
|
for (let i = 0; i < this.fields.length; i++) {
|
102
104
|
const element = this.fields[i];
|
103
|
-
if (element.
|
105
|
+
if (element.alias === item.prop) {
|
104
106
|
searchFields.push(item);
|
105
107
|
searchFieldsIndexs.push(i);
|
106
108
|
}
|
@@ -123,7 +125,7 @@ export default {
|
|
123
125
|
for (const item of tableOptions) {
|
124
126
|
for (let i = 0; i < this.fields.length; i++) {
|
125
127
|
const element = this.fields[i];
|
126
|
-
if (element.
|
128
|
+
if (element.alias === item.prop) {
|
127
129
|
tableFields.push(item);
|
128
130
|
tableFieldsIndexs.push(i);
|
129
131
|
}
|