evui 3.4.10 → 3.4.11

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": "evui",
3
- "version": "3.4.10",
3
+ "version": "3.4.11",
4
4
  "description": "A EXEM Library project",
5
5
  "author": "exem <dev_client@ex-em.com>",
6
6
  "license": "MIT",
@@ -56,22 +56,27 @@
56
56
  class="filtering-items__item"
57
57
  @click.stop="onClickFilteringItem(
58
58
  {
59
- caption: filteringItemsByColumn[field]?.[idx].caption,
59
+ caption: filteringItemsByColumn[field]
60
+ ?.[filteringItemsByColumn[field].length - 1].caption,
60
61
  field: field,
61
62
  },
62
63
  filteringItemsByColumn[field],
63
64
  )"
64
65
  >
65
66
  <span class="filtering-items__item--title">
66
- {{ filteringItemsByColumn[field]?.[idx].caption }}
67
+ {{ filteringItemsByColumn[field]
68
+ ?.[filteringItemsByColumn[field].length - 1].caption }}
67
69
  </span>
68
70
  <span
69
71
  v-if="filteringItemsByColumn[field].length < 2"
70
72
  class="filtering-items__item--value"
71
- :title="`${filteringItemsByColumn[field][idx].value}`"
73
+ :title="`${filteringItemsByColumn[field]
74
+ ?.[filteringItemsByColumn[field].length - 1].value}`"
72
75
  >
73
- {{ filteringItemsByColumn[field]?.[idx].comparison }}
74
- {{ filteringItemsByColumn[field]?.[idx].value }}
76
+ {{ filteringItemsByColumn[field]
77
+ ?.[filteringItemsByColumn[field].length - 1].comparison }}
78
+ {{ filteringItemsByColumn[field]
79
+ ?.[filteringItemsByColumn[field].length - 1].value }}
75
80
  </span>
76
81
  <span
77
82
  v-else
@@ -1132,6 +1137,7 @@ export default {
1132
1137
  filterInfo.filteringItemsByColumn[field]?.splice(idx, 1);
1133
1138
  if (!filterInfo.filteringItemsByColumn[field].length) {
1134
1139
  delete filterInfo.filteringItemsByColumn[field];
1140
+ isShowFilteringItemsBox.value = false;
1135
1141
  }
1136
1142
  stores.filterStore = [];
1137
1143
  setStore([], false);