@tripup-company/element-ui-extended 0.0.72 → 0.0.75

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.72",
3
+ "version": "0.0.75",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve && tsc --emitDeclarationOnly",
@@ -7,11 +7,10 @@
7
7
  v-if="value && ['input', 'textarea', 'number'].includes(type)"
8
8
  v-html="value"
9
9
  />
10
- <el-checkbox
11
- v-else-if="type === 'checkbox'"
12
- v-model="value"
13
- disabled
14
- />
10
+ <div v-else-if="type === 'checkbox'">
11
+ <i v-if="value === true" class="el-icon-check"></i>
12
+ <div v-else> {{ placeholder ? placeholder : '-' }}</div>
13
+ </div>
15
14
  <el-date-picker
16
15
  v-else-if="type === 'date-picker'"
17
16
  v-model="value"
@@ -131,7 +131,7 @@ export default {
131
131
  enumOperatorsMultiple: [{ value: "in", label: "in" }],
132
132
  enumOperatorsInObject: [{ value: "in_object", label: "in_object" }],
133
133
  dateOperators: [{ value: "between", label: "between" }],
134
- boolOperators: [{ value: "equal", label: "is" }],
134
+ boolOperators: [{ value: "bool", label: "is" }],
135
135
  selectListLocal: selectValues,
136
136
 
137
137
  };
@@ -191,22 +191,17 @@ export default {
191
191
  }
192
192
  },
193
193
  search(newValue) {
194
- console.log("seach updated");
195
194
  if (newValue !== this.search) {
196
195
  this.searchLocal = Object.assign({}, this.search);
197
196
  }
198
-
199
- console.log(this.searchLocal);
200
197
  },
201
198
  searchLocal: {
202
199
  deep: true,
203
200
  handler() {
204
- console.log("searchLocal updated");
205
201
  this.$emit("update:search", {
206
202
  name: this.name,
207
203
  value: this.searchLocal,
208
204
  });
209
- console.log(this.searchLocal);
210
205
  if (this.searchLocal.operator == "") {
211
206
  this.showFilter = false;
212
207
  }
@@ -23,7 +23,7 @@ export default {
23
23
  filters: {
24
24
  type: Array,
25
25
  default: () => {
26
- return {};
26
+ return [];
27
27
  },
28
28
  },
29
29
  search: {