@tripup-company/element-ui-extended 0.0.76 → 0.0.79

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.
@@ -1 +1 @@
1
- {"version":3,"file":"filter-convertor.d.ts","sourceRoot":"","sources":["../../../../src/components/GenericFilters/filter-convertor.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,eAAe;IAGlC,WAAW,CAAC,MAAM,KAAA;;;;CAiBnB"}
1
+ {"version":3,"file":"filter-convertor.d.ts","sourceRoot":"","sources":["../../../../src/components/GenericFilters/filter-convertor.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,eAAe;IAGlC,WAAW,CAAC,MAAM,KAAA;;;;CAkBnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.76",
3
+ "version": "0.0.79",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve && tsc --emitDeclarationOnly",
@@ -192,7 +192,7 @@ export default {
192
192
  return {
193
193
  isEditMode: false,
194
194
  model: "",
195
- selectListLocal: [],
195
+ selectListLocal: this.selectList,
196
196
  };
197
197
  },
198
198
  computed: {
@@ -215,9 +215,6 @@ export default {
215
215
  },
216
216
  },
217
217
  },
218
- mounted() {
219
- this.selectListLocal = this.selectList;
220
- },
221
218
  methods: {
222
219
  createList() {
223
220
  let label = "";
@@ -226,7 +223,7 @@ export default {
226
223
  let values = [];
227
224
  this.value.forEach((element) => {
228
225
  const compareValue = this.selectJson ? element[this.selectKey] : element;
229
- const labArray = this.selectList.find(
226
+ const labArray = this.selectListLocal.find(
230
227
  x => x[this.selectKey] === compareValue
231
228
  );
232
229
  if (labArray && labArray[this.selectLabel]) {
@@ -237,8 +234,8 @@ export default {
237
234
  } else {
238
235
  label = "-";
239
236
  }
240
- } else if (this.selectList.length) {
241
- label = this.selectList.find((x) => x[this.selectKey] === this.value)[
237
+ } else if (this.selectListLocal.length) {
238
+ label = this.selectListLocal.find((x) => x[this.selectKey] === this.value)[
242
239
  this.selectLabel
243
240
  ];
244
241
  } else {
@@ -12,7 +12,14 @@
12
12
  :sortable="field.sortable ? field.sortable : null"
13
13
  >
14
14
  <el-link
15
- @click="field.callback(field.prop, context.$index, context.row)"
15
+ :href="
16
+ field.href
17
+ ? typeof field.href === 'function'
18
+ ? field.href(field.prop, context.$index, context.row)
19
+ : field.href
20
+ : '#'
21
+ "
22
+ @click.prevent="field.callback(field.prop, context.$index, context.row)"
16
23
  >
17
24
  {{
18
25
  typeof field.formatter === "function"