@dazhicheng/ui 1.6.14 → 1.6.16

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,4 +1,4 @@
1
- import { defineComponent as se, useTemplateRef as q, ref as h, computed as v, watch as A, nextTick as U, createElementBlock as p, openBlock as r, normalizeClass as s, createElementVNode as C, createCommentVNode as z, createVNode as c, createBlock as B, unref as n, withCtx as i, createTextVNode as b, normalizeStyle as I, Fragment as M, renderList as P, toDisplayString as H } from "vue";
1
+ import { defineComponent as se, useTemplateRef as q, ref as h, computed as v, watch as A, nextTick as U, createElementBlock as p, openBlock as r, normalizeClass as s, createElementVNode as C, createCommentVNode as z, createVNode as c, createBlock as B, unref as n, withCtx as u, createTextVNode as b, normalizeStyle as I, Fragment as M, renderList as P, toDisplayString as H } from "vue";
2
2
  import { TtButton as ne } from "../../../tt-button/index.js";
3
3
  import { TtText as _ } from "../../../tt-text/index.js";
4
4
  import { Search as ie } from "@element-plus/icons-vue";
@@ -70,12 +70,12 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
70
70
  });
71
71
  }
72
72
  async function G(e) {
73
- var u;
73
+ var d;
74
74
  await U(), x();
75
75
  const a = l.rows.findIndex((t) => t.type === "group" && t.group.value === e);
76
76
  if (a < 0) return;
77
77
  const o = a * l.rowHeight;
78
- (u = m.value) == null || u.setScrollTop(o), requestAnimationFrame(() => {
78
+ (d = m.value) == null || d.setScrollTop(o), requestAnimationFrame(() => {
79
79
  D(), oe(e);
80
80
  });
81
81
  }
@@ -88,27 +88,27 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
88
88
  g.value = a.trim(), l.pasteSearch ? f("update:keyword", g.value) : ($.value = !0, requestAnimationFrame(() => {
89
89
  $.value = !1;
90
90
  }));
91
- const o = ve(a, l.separator), u = () => {
91
+ const o = ve(a, l.separator), d = () => {
92
92
  requestAnimationFrame(() => {
93
93
  var N;
94
- const d = (N = S.value) == null ? void 0 : N.input;
95
- d == null || d.focus(), d == null || d.select();
94
+ const i = (N = S.value) == null ? void 0 : N.input;
95
+ i == null || i.focus(), i == null || i.select();
96
96
  });
97
97
  };
98
98
  if (!o.length) {
99
- u();
99
+ d();
100
100
  return;
101
101
  }
102
- const t = new Set(o), y = ae.value.filter((d) => t.has(d.label)).map((d) => d.value);
102
+ const t = new Set(o), y = ae.value.filter((i) => t.has(i.label) || t.has(String(i.value))).map((i) => i.value);
103
103
  if (!y.length) {
104
- u();
104
+ d();
105
105
  return;
106
106
  }
107
107
  if (l.multiple) {
108
- f("optionsCheck", y, !0), u();
108
+ f("optionsCheck", y, !0), d();
109
109
  return;
110
110
  }
111
- f("optionCheck", y.at(-1), !0), u();
111
+ f("optionCheck", y.at(-1), !0), d();
112
112
  }
113
113
  function re(e) {
114
114
  g.value = e, !$.value && f("update:keyword", e);
@@ -147,9 +147,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
147
147
  "onUpdate:modelValue": re,
148
148
  onPaste: te
149
149
  }, {
150
- prefix: i(() => [
150
+ prefix: u(() => [
151
151
  c(n(pe), null, {
152
- default: i(() => [
152
+ default: u(() => [
153
153
  c(n(ie))
154
154
  ]),
155
155
  _: 1
@@ -163,7 +163,7 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
163
163
  plain: "",
164
164
  onClick: a[0] || (a[0] = () => f("checkAll", !0))
165
165
  }, {
166
- default: i(() => [...a[2] || (a[2] = [
166
+ default: u(() => [...a[2] || (a[2] = [
167
167
  C("span", null, "全选", -1)
168
168
  ])]),
169
169
  _: 1
@@ -178,9 +178,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
178
178
  "model-value": l.allChecked,
179
179
  onChange: a[1] || (a[1] = (o) => f("allCheck", !!o))
180
180
  }, {
181
- default: i(() => [
181
+ default: u(() => [
182
182
  c(n(_), null, {
183
- default: i(() => [...a[3] || (a[3] = [
183
+ default: u(() => [...a[3] || (a[3] = [
184
184
  b("全部", -1)
185
185
  ])]),
186
186
  _: 1
@@ -198,7 +198,7 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
198
198
  class: s(`${e.prefixCls}__middle-scrollbar`),
199
199
  onScroll: D
200
200
  }, {
201
- default: i(() => [
201
+ default: u(() => [
202
202
  C("div", {
203
203
  class: s(`${e.prefixCls}__middle-virtual-host`),
204
204
  style: I({ height: `${J.value}px` })
@@ -206,17 +206,17 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
206
206
  C("div", {
207
207
  style: I({ transform: `translateY(${Z.value}px)` })
208
208
  }, [
209
- (r(!0), p(M, null, P(ee.value, (o, u) => (r(), p("div", {
209
+ (r(!0), p(M, null, P(ee.value, (o, d) => (r(), p("div", {
210
210
  key: o.key,
211
211
  style: I({ height: `${e.rowHeight}px` }),
212
212
  class: s([
213
213
  `${e.prefixCls}__middle-row`,
214
214
  o.type === "group" ? `${e.prefixCls}__middle-group` : `${e.prefixCls}__middle-options`,
215
215
  o.type === "options" && o.isLast ? "is-last" : "",
216
- o.type === "options" && w.value + u === 0 && !l.showAll ? "is-first" : "",
216
+ o.type === "options" && w.value + d === 0 && !l.showAll ? "is-first" : "",
217
217
  k.value === o.group.value ? `${e.prefixCls}__group-flash` : ""
218
218
  ]),
219
- "data-virtual-index": w.value + u,
219
+ "data-virtual-index": w.value + d,
220
220
  "data-flash-seed": F.value
221
221
  }, [
222
222
  o.type === "group" ? (r(), p("div", {
@@ -230,9 +230,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
230
230
  disabled: e.disabled,
231
231
  onChange: (t) => f("groupCheck", o.group.value, !!t)
232
232
  }, {
233
- default: i(() => [
233
+ default: u(() => [
234
234
  c(n(_), null, {
235
- default: i(() => [
235
+ default: u(() => [
236
236
  b(H(o.group.label), 1)
237
237
  ]),
238
238
  _: 2
@@ -240,7 +240,7 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
240
240
  ]),
241
241
  _: 2
242
242
  }, 1032, ["model-value", "indeterminate", "disabled", "onChange"])) : (r(), B(n(_), { key: 1 }, {
243
- default: i(() => [
243
+ default: u(() => [
244
244
  b(H(o.group.label), 1)
245
245
  ]),
246
246
  _: 2
@@ -259,9 +259,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
259
259
  class: s(`${e.prefixCls}__option`),
260
260
  onChange: (y) => f("optionCheck", t.value, !!y)
261
261
  }, {
262
- default: i(() => [
262
+ default: u(() => [
263
263
  c(n(_), { "tool-tip-line": 2 }, {
264
- default: i(() => [
264
+ default: u(() => [
265
265
  b(H(t.label), 1)
266
266
  ]),
267
267
  _: 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/ui",
3
- "version": "1.6.14",
3
+ "version": "1.6.16",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -69,8 +69,8 @@
69
69
  "vue-router": "^5.0.2",
70
70
  "vxe-pc-ui": "^4.14.15",
71
71
  "vxe-table": "^4.18.13",
72
- "@dazhicheng/utils": "1.3.52",
73
- "@dazhicheng/hooks": "1.4.55"
72
+ "@dazhicheng/hooks": "1.4.56",
73
+ "@dazhicheng/utils": "1.3.53"
74
74
  },
75
75
  "files": [
76
76
  "dist"