tianheng-ui 0.0.102 → 0.0.103

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.
@@ -24,8 +24,6 @@ export const init = baseConfig => {
24
24
  return config;
25
25
  },
26
26
  error => {
27
- // Do something with request error
28
- console.log(error); // for debug
29
27
  Promise.reject(error);
30
28
  }
31
29
  );
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.0.102",
4
+ "version": "0.0.103",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -100,7 +100,7 @@ export default {
100
100
  for (const item of searchOptions) {
101
101
  for (let i = 0; i < this.fields.length; i++) {
102
102
  const element = this.fields[i];
103
- if (element.prop === item.prop) {
103
+ if (element.alias === item.prop) {
104
104
  searchFields.push(item);
105
105
  searchFieldsIndexs.push(i);
106
106
  }
@@ -123,7 +123,7 @@ export default {
123
123
  for (const item of tableOptions) {
124
124
  for (let i = 0; i < this.fields.length; i++) {
125
125
  const element = this.fields[i];
126
- if (element.prop === item.prop) {
126
+ if (element.alias === item.prop) {
127
127
  tableFields.push(item);
128
128
  tableFieldsIndexs.push(i);
129
129
  }
@@ -425,7 +425,7 @@ const tableConfig = {
425
425
  }
426
426
  }
427
427
  }
428
- };
428
+ };
429
429
 
430
430
  export const tableItemConfig = key => {
431
431
  const config = tableConfig[key] || null;
@@ -71,7 +71,7 @@
71
71
  v-for="item in fields"
72
72
  :key="item.prop"
73
73
  :label="item.label"
74
- :value="item.prop"
74
+ :value="item.alias"
75
75
  >
76
76
  </el-option>
77
77
  </el-select>