@jx3box/jx3box-common-ui 8.0.17 → 8.0.18

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": "@jx3box/jx3box-common-ui",
3
- "version": "8.0.17",
3
+ "version": "8.0.18",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div class="w-filter-client">
3
3
  <ul>
4
+ <li class="u-client" :class="{on: client == ''}" @click="filter('')">
5
+ 全部
6
+ </li>
4
7
  <li
5
8
  class="u-client"
6
9
  :class="{ on: client == value }"
@@ -23,7 +26,7 @@ export default {
23
26
  props: ["type", "clients"],
24
27
  data: function () {
25
28
  return {
26
- client: this.type || "all",
29
+ client: this.type || "",
27
30
  };
28
31
  },
29
32
  computed: {
@@ -20,32 +20,6 @@
20
20
  </el-dropdown-menu>
21
21
  </el-dropdown>
22
22
  </span>
23
- <!-- <div class="w-filter-mark" :class="{ on: visible }" v-else>
24
- <span class="u-label" @click="toggleFilter">
25
- <span class="u-current-filter">筛选 : {{ current || "全部" }}</span>
26
- <span class="u-toggle">
27
- <i class="el-icon-arrow-down"></i>
28
- <i class="el-icon-arrow-up"></i>
29
- </span>
30
- </span>
31
- <span class="u-options">
32
- <span
33
- class="u-mode u-all"
34
- :class="{ on: mark == '' }"
35
- @click="filter('')"
36
- ><i class="el-icon-s-operation"></i> 全部</span
37
- >
38
- <span
39
- class="u-mode"
40
- :class="{ on: mark == key }"
41
- v-for="(label, key) in marks"
42
- :key="key"
43
- @click="filter(key)"
44
- ><i class="el-icon-user"></i> {{ label }}</span
45
- >
46
- <slot></slot>
47
- </span>
48
- </div> -->
49
23
  </template>
50
24
 
51
25
  <script>
@@ -62,9 +36,9 @@ export default {
62
36
  type: String,
63
37
  default: "",
64
38
  },
65
- mode: {
39
+ type: {
66
40
  type: String,
67
- default: "",
41
+ default: "mark",
68
42
  },
69
43
  marks: {
70
44
  type: Object,
@@ -91,7 +65,7 @@ export default {
91
65
  },
92
66
  filter: function(key) {
93
67
  this.mark = key;
94
- this.$emit("filter", { type: "mark", val: key });
68
+ this.$emit("filter", { type: this.type, val: key });
95
69
  this.visible = false;
96
70
  },
97
71
  },