@dazhicheng/ui 1.5.262 → 1.5.264

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,90 +1,108 @@
1
1
  import "axios";
2
- import "element-plus";
3
- import { isString as x } from "../../../../packages/utils/src/is.js";
4
- import { ref as A, computed as c, toValue as E, watch as z, nextTick as y } from "vue";
5
- import { calcWordsWidth as L } from "../../../../packages/utils/src/tool.js";
2
+ import { MINIMUM_INPUT_WIDTH as N } from "element-plus";
3
+ import { isString as V } from "../../../../packages/utils/src/is.js";
4
+ import { ref as z, shallowRef as K, computed as d, toValue as O, onScopeDispose as X, watch as H, nextTick as j } from "vue";
5
+ import "xe-utils";
6
+ import "dayjs";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
6
9
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
7
10
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
8
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
9
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
10
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
11
14
  import "lodash-es";
12
- import { useResizeObserver as F } from "@vueuse/core";
13
- function J(r) {
14
- const o = A(1), s = ["ElSelect", "ElSelectV2", "TtPanelSelect"], u = () => r.value.component, a = () => E(r.value.componentProps), p = () => r.value.selectWrapRef, T = () => r.value.selectRef, f = c(() => {
15
- const e = u();
16
- return x(e) && s.includes(e);
17
- }), m = c(() => {
18
- var l;
19
- const e = u(), t = a();
20
- return e === "TtApiComponent" && s.includes((l = t == null ? void 0 : t.component) == null ? void 0 : l.name);
21
- }), R = c(() => {
22
- const e = a();
23
- if (f.value || m.value) {
15
+ import { useResizeObserver as J } from "@vueuse/core";
16
+ const Q = 6, Y = 40, Z = 20, P = 1;
17
+ let u;
18
+ function W(l, c) {
19
+ return u === void 0 && (u = document.createElement("canvas").getContext("2d")), u ? (u.font = c, u.measureText(l).width) : 0;
20
+ }
21
+ function ee(l) {
22
+ return `${l.fontStyle} ${l.fontWeight} ${l.fontSize} ${l.fontFamily}`;
23
+ }
24
+ function q(l) {
25
+ return l ? l.getBoundingClientRect().width : 0;
26
+ }
27
+ function I(l, c) {
28
+ const i = q(l) - q(l == null ? void 0 : l.querySelector(".el-select__tags-text"));
29
+ return i > 0 ? i : c;
30
+ }
31
+ function Te(l) {
32
+ const c = z(1), i = K(null), S = ["ElSelect", "ElSelectV2", "TtPanelSelect"], T = () => l.value.component, f = () => O(l.value.componentProps), v = () => l.value.selectWrapRef, M = () => l.value.selectRef, _ = d(() => {
33
+ const e = T();
34
+ return V(e) && S.includes(e);
35
+ }), h = d(() => {
36
+ var o;
37
+ const e = T(), t = f();
38
+ return e === "TtApiComponent" && S.includes((o = t == null ? void 0 : t.component) == null ? void 0 : o.name);
39
+ }), $ = d(() => {
40
+ const e = f();
41
+ if (_.value || h.value) {
24
42
  const t = {
25
43
  clearable: (e == null ? void 0 : e.clearable) ?? !0,
26
44
  filterable: (e == null ? void 0 : e.filterable) ?? !0
27
45
  };
28
- return e != null && e.multiple && (t.collapseTagsTooltip = !0, t.collapseTags = !0, t.maxCollapseTags = o.value, (e == null ? void 0 : e.placeholder) === void 0 && (t.placeholder = "支持多选")), t;
46
+ return e != null && e.multiple && (t.collapseTagsTooltip = !0, t.collapseTags = !0, t.maxCollapseTags = c.value, (e == null ? void 0 : e.placeholder) === void 0 && (t.placeholder = "支持多选")), t;
29
47
  }
30
48
  return {};
31
49
  });
32
- function v() {
33
- var t, l, n, i;
34
- const e = T();
35
- if (m.value)
36
- return (n = (l = (t = e.value) == null ? void 0 : t.getComponentRef) == null ? void 0 : l.call(t)) == null ? void 0 : n.selectedLabel;
37
- if (f.value)
38
- return (i = e.value) == null ? void 0 : i.selectedLabel;
50
+ function C() {
51
+ var t, o, r, s;
52
+ const e = M();
53
+ if (h.value)
54
+ return (r = (o = (t = e.value) == null ? void 0 : t.getComponentRef) == null ? void 0 : o.call(t)) == null ? void 0 : r.selectedLabel;
55
+ if (_.value)
56
+ return (s = e.value) == null ? void 0 : s.selectedLabel;
39
57
  }
40
- function d() {
41
- var C;
42
- if (!((C = a()) != null && C.multiple)) {
43
- o.value = 1;
44
- return;
45
- }
46
- const e = v();
47
- if (!Array.isArray(e)) {
48
- o.value = 1;
49
- return;
58
+ function G(e, t) {
59
+ var E, L;
60
+ const o = window.getComputedStyle(t), r = Number.parseFloat(o.columnGap || o.gap) || Q, s = Array.from(t.querySelectorAll(".el-select__selected-item > .el-tag")).filter(
61
+ (n) => !n.classList.contains("in-tooltip")
62
+ ), b = s.find((n) => n.querySelector(".el-tag__close")), x = s.find((n) => !n.querySelector(".el-tag__close")), R = (E = b ?? x) == null ? void 0 : E.querySelector(".el-select__tags-text"), y = ee(R ? window.getComputedStyle(R) : o), k = I(b, Y), B = I(x, Z), F = !!((L = t.closest(".el-select__wrapper")) != null && L.classList.contains("is-filterable")) ? r + N : 0, w = t.clientWidth - P, p = e.length;
63
+ let m = 0, g = 0;
64
+ for (let n = 0; n < p; n++) {
65
+ if (m += (n > 0 ? r : 0) + k + W(e[n] ?? "", y), n === p - 1 && m + F <= w) {
66
+ g = p;
67
+ break;
68
+ }
69
+ const D = r + B + W(` + ${p - n - 1}`, y);
70
+ if (m + D + F > w)
71
+ break;
72
+ g = n + 1;
50
73
  }
51
- if (!e.length) {
52
- o.value = 1;
53
- return;
54
- }
55
- const t = p().value;
56
- if (!t) {
57
- o.value = 1;
58
- return;
59
- }
60
- const l = t.querySelector(".el-select__selection");
61
- if (!l) {
62
- o.value = 1;
63
- return;
64
- }
65
- const n = window.getComputedStyle(l), i = n.fontFamily, W = n.fontSize, g = l.clientWidth - 48;
66
- if (g <= 0) {
67
- o.value = 1;
74
+ return Math.max(1, g);
75
+ }
76
+ function U() {
77
+ var o, r;
78
+ const e = C(), t = ((o = v().value) == null ? void 0 : o.querySelector(".el-select__selection")) ?? null;
79
+ if (i.value = t, !((r = f()) != null && r.multiple) || !Array.isArray(e) || !e.length || !t) {
80
+ c.value = 1;
68
81
  return;
69
82
  }
70
- let S = 0, h = 0;
71
- e.slice(0).forEach((w) => {
72
- const b = L(w, W, i) + 32 + 8;
73
- S + b < g && (S += b, h += 1);
74
- }), o.value = Math.max(1, h);
83
+ c.value = G(
84
+ e.map((s) => String(s ?? "")),
85
+ t
86
+ );
87
+ }
88
+ let a = null;
89
+ function A() {
90
+ a === null && (a = requestAnimationFrame(() => {
91
+ a = null, U();
92
+ }));
75
93
  }
76
- return z(
77
- v,
94
+ return X(() => {
95
+ a !== null && cancelAnimationFrame(a);
96
+ }), H(
97
+ C,
78
98
  async () => {
79
- await y(), d();
99
+ await j(), A();
80
100
  },
81
101
  { flush: "post", deep: !0 }
82
- ), F(p(), async () => {
83
- await y(), d();
84
- }), {
85
- selectComponentProps: R
102
+ ), J([v(), i], () => A()), {
103
+ selectComponentProps: $
86
104
  };
87
105
  }
88
106
  export {
89
- J as useSelectCollapseOptions
107
+ Te as useSelectCollapseOptions
90
108
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as i, createElementBlock as f, openBlock as u, normalizeClass as t, createVNode as a, unref as r, withCtx as o } from "vue";
2
- import { Search as c } from "@element-plus/icons-vue";
3
- import { ElInput as m, ElIcon as h, ElTreeV2 as k } from "element-plus";
4
- const x = /* @__PURE__ */ i({
1
+ import { defineComponent as E, computed as k, createElementBlock as y, openBlock as C, normalizeClass as n, createVNode as t, unref as a, withCtx as i } from "vue";
2
+ import { Search as _ } from "@element-plus/icons-vue";
3
+ import { ElInput as v, ElIcon as b, ElTreeV2 as H } from "element-plus";
4
+ const T = 26, g = 320, x = 60, D = /* @__PURE__ */ E({
5
5
  name: "PanelLeft",
6
6
  __name: "PanelLeft",
7
7
  props: {
@@ -12,45 +12,51 @@ const x = /* @__PURE__ */ i({
12
12
  leftPlaceholder: {}
13
13
  },
14
14
  emits: ["update:keyword", "select"],
15
- setup(y, { emit: s }) {
16
- const d = s;
17
- function n(e, l) {
18
- l.isLeaf && d("select", e);
15
+ setup(c, { emit: p }) {
16
+ const u = c, o = p, f = k(() => {
17
+ const e = (r) => r.reduce((h, s) => {
18
+ var d;
19
+ return h + 1 + ((d = s.children) != null && d.length ? e(s.children) : 0);
20
+ }, 0), l = e(u.treeData);
21
+ return l ? Math.min(l * T, g) : x;
22
+ });
23
+ function m(e, l) {
24
+ l.isLeaf && o("select", e);
19
25
  }
20
- return (e, l) => (u(), f("div", {
21
- class: t(`${e.prefixCls}__left`)
26
+ return (e, l) => (C(), y("div", {
27
+ class: n(`${e.prefixCls}__left`)
22
28
  }, [
23
- a(r(m), {
29
+ t(a(v), {
24
30
  "model-value": e.keyword,
25
- class: t(`${e.prefixCls}__search`),
31
+ class: n(`${e.prefixCls}__search`),
26
32
  placeholder: e.leftPlaceholder,
27
33
  clearable: "",
28
- "onUpdate:modelValue": l[0] || (l[0] = (p) => d("update:keyword", p))
34
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => o("update:keyword", r))
29
35
  }, {
30
- prefix: o(() => [
31
- a(r(h), null, {
32
- default: o(() => [
33
- a(r(c))
36
+ prefix: i(() => [
37
+ t(a(b), null, {
38
+ default: i(() => [
39
+ t(a(_))
34
40
  ]),
35
41
  _: 1
36
42
  })
37
43
  ]),
38
44
  _: 1
39
45
  }, 8, ["model-value", "class", "placeholder"]),
40
- a(r(k), {
41
- class: t(`${e.prefixCls}__tree`),
46
+ t(a(H), {
47
+ class: n(`${e.prefixCls}__tree`),
42
48
  data: e.treeData,
43
49
  props: { label: "label", children: "children", disabled: "disabled", value: "value" },
44
- height: 320,
50
+ height: f.value,
45
51
  "node-key": "value",
46
52
  "default-expanded-keys": e.expandedKeys,
47
53
  "highlight-current": "",
48
54
  "empty-text": "暂无数据",
49
- onNodeClick: n
50
- }, null, 8, ["class", "data", "default-expanded-keys"])
55
+ onNodeClick: m
56
+ }, null, 8, ["class", "data", "height", "default-expanded-keys"])
51
57
  ], 2));
52
58
  }
53
59
  });
54
60
  export {
55
- x as default
61
+ D as default
56
62
  };
@@ -157,7 +157,7 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
157
157
  };
158
158
  $forceUpdate: () => void;
159
159
  $nextTick: typeof nextTick;
160
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
160
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.TtText, typeof __VLS_components.TtText, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
161
161
  } & Readonly<{
162
162
  type: import('element-plus').InputType;
163
163
  disabled: boolean;
@@ -307,7 +307,7 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
307
307
  };
308
308
  $forceUpdate: () => void;
309
309
  $nextTick: typeof nextTick;
310
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
310
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.TtText, typeof __VLS_components.TtText, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
311
311
  } & Readonly<{
312
312
  tabindex: number | string;
313
313
  height: number | string;
@@ -1,9 +1,10 @@
1
- import { defineComponent as ie, useTemplateRef as ue, ref as f, computed as v, watch as x, nextTick as L, createElementBlock as d, openBlock as s, normalizeClass as n, createElementVNode as w, createCommentVNode as Y, createVNode as p, createBlock as I, unref as i, withCtx as u, createTextVNode as $, normalizeStyle as M, Fragment as A, renderList as H, toDisplayString as V } from "vue";
2
- import { TtButton as de } from "../../../tt-button/index.js";
1
+ import { defineComponent as ue, useTemplateRef as de, ref as v, computed as p, watch as I, nextTick as L, createElementBlock as d, openBlock as s, normalizeClass as n, createElementVNode as y, createCommentVNode as O, createVNode as c, createBlock as M, unref as i, withCtx as u, createTextVNode as $, normalizeStyle as A, Fragment as V, renderList as H, toDisplayString as P } from "vue";
2
+ import { TtButton as pe } from "../../../tt-button/index.js";
3
3
  import { TtText as _ } from "../../../tt-text/index.js";
4
- import { Search as pe } from "@element-plus/icons-vue";
5
- import { ElInput as ce, ElIcon as fe, ElCheckbox as P, ElScrollbar as ve } from "element-plus";
6
- const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ */ ie({
4
+ import { Search as ce } from "@element-plus/icons-vue";
5
+ import { useResizeObserver as fe } from "@vueuse/core";
6
+ import { ElInput as ve, ElIcon as he, ElCheckbox as F, ElScrollbar as me } from "element-plus";
7
+ const ge = ["data-virtual-index", "data-flash-seed"], Y = 2, _e = /* @__PURE__ */ ue({
7
8
  name: "PanelMiddle",
8
9
  __name: "PanelMiddle",
9
10
  props: {
@@ -28,61 +29,68 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
28
29
  },
29
30
  emits: ["update:keyword", "checkAll", "allCheck", "groupCheck", "optionCheck", "optionsCheck"],
30
31
  setup(W, { expose: j, emit: J }) {
31
- const l = W, c = J, y = ue("scrollbarRef"), F = f(), Q = f(), S = f(0), G = f(0), m = f(""), k = f(), q = f(0), T = f(!1);
32
- let B;
33
- const X = v(() => l.rows.length * l.rowHeight), Z = v(() => Math.max(1, Math.ceil(G.value / l.rowHeight))), g = v(() => Math.max(0, Math.floor(S.value / l.rowHeight) - O)), ee = v(() => Math.min(l.rows.length, g.value + Z.value + O * 2)), le = v(() => g.value * l.rowHeight), ae = v(() => l.rows.slice(g.value, ee.value)), oe = v(() => {
32
+ const l = W, f = J, m = de("scrollbarRef"), G = v(), Q = v(), S = v(0), q = v(0), g = v(""), k = v(), D = v(0), R = v(!1);
33
+ let T;
34
+ const X = p(() => l.rows.length * l.rowHeight), Z = p(() => Math.max(1, Math.ceil(q.value / l.rowHeight))), w = p(() => Math.max(0, Math.floor(S.value / l.rowHeight) - Y)), ee = p(() => Math.min(l.rows.length, w.value + Z.value + Y * 2)), le = p(() => w.value * l.rowHeight), ae = p(() => l.rows.slice(w.value, ee.value)), oe = p(() => {
34
35
  var e;
35
36
  return ((e = l.rows[0]) == null ? void 0 : e.type) === "group";
36
- }), te = v(
37
+ }), te = p(() => new Set(l.selectedValues)), re = p(
37
38
  () => l.rows.filter((e) => e.type === "options").flatMap((e) => e.options).filter((e) => !e.disabled)
38
39
  );
39
- x(
40
+ I(
40
41
  () => l.keyword,
41
42
  (e) => {
42
- m.value = e;
43
+ g.value = e;
43
44
  },
44
45
  { immediate: !0 }
45
46
  );
46
- function D() {
47
+ function x() {
47
48
  var a;
48
- const e = (a = y.value) == null ? void 0 : a.wrapRef;
49
- e && (Q.value = e, G.value = e.clientHeight, S.value = e.scrollTop);
49
+ const e = (a = m.value) == null ? void 0 : a.wrapRef;
50
+ e && (Q.value = e, q.value = e.clientHeight, S.value = e.scrollTop);
50
51
  }
52
+ fe(
53
+ () => {
54
+ var e;
55
+ return (e = m.value) == null ? void 0 : e.wrapRef;
56
+ },
57
+ () => x()
58
+ );
51
59
  function E() {
52
60
  var a;
53
- const e = (a = y.value) == null ? void 0 : a.wrapRef;
61
+ const e = (a = m.value) == null ? void 0 : a.wrapRef;
54
62
  e && (S.value = e.scrollTop);
55
63
  }
56
- function re(e) {
57
- k.value = void 0, q.value += 1, requestAnimationFrame(() => {
58
- k.value = e, B && clearTimeout(B), B = setTimeout(() => {
64
+ function se(e) {
65
+ k.value = void 0, D.value += 1, requestAnimationFrame(() => {
66
+ k.value = e, T && clearTimeout(T), T = setTimeout(() => {
59
67
  k.value = void 0;
60
68
  }, 1400);
61
69
  });
62
70
  }
63
71
  async function N(e) {
64
72
  var h;
65
- await L(), D();
73
+ await L(), x();
66
74
  const a = l.rows.findIndex((t) => t.type === "group" && t.group.value === e);
67
75
  if (a < 0) return;
68
76
  const o = a * l.rowHeight;
69
- (h = y.value) == null || h.setScrollTop(o), requestAnimationFrame(() => {
70
- E(), re(e);
77
+ (h = m.value) == null || h.setScrollTop(o), requestAnimationFrame(() => {
78
+ E(), se(e);
71
79
  });
72
80
  }
73
- function se(e) {
74
- var U;
81
+ function ne(e) {
82
+ var K;
75
83
  if (l.disabled)
76
84
  return;
77
85
  e.preventDefault();
78
- const a = ((U = e.clipboardData) == null ? void 0 : U.getData("text")) || "";
79
- m.value = a.trim(), l.pasteSearch ? c("update:keyword", m.value) : (T.value = !0, requestAnimationFrame(() => {
80
- T.value = !1;
86
+ const a = ((K = e.clipboardData) == null ? void 0 : K.getData("text")) || "";
87
+ g.value = a.trim(), l.pasteSearch ? f("update:keyword", g.value) : (R.value = !0, requestAnimationFrame(() => {
88
+ R.value = !1;
81
89
  }));
82
90
  const h = (l.separator || ",").replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), t = new RegExp(`${h}|\\r?\\n|\\t`, "g"), C = a.split(t).map((r) => r.trim()).filter(Boolean), b = () => {
83
91
  requestAnimationFrame(() => {
84
- var z;
85
- const r = (z = F.value) == null ? void 0 : z.input;
92
+ var U;
93
+ const r = (U = G.value) == null ? void 0 : U.input;
86
94
  r == null || r.focus(), r == null || r.select();
87
95
  });
88
96
  };
@@ -90,30 +98,30 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
90
98
  b();
91
99
  return;
92
100
  }
93
- const K = new Set(C), R = te.value.filter((r) => K.has(r.label) || K.has(String(r.value))).map((r) => r.value);
94
- if (!R.length) {
101
+ const z = new Set(C), B = re.value.filter((r) => z.has(r.label) || z.has(String(r.value))).map((r) => r.value);
102
+ if (!B.length) {
95
103
  b();
96
104
  return;
97
105
  }
98
106
  if (l.multiple) {
99
- c("optionsCheck", R, !0), b();
107
+ f("optionsCheck", B, !0), b();
100
108
  return;
101
109
  }
102
- c("optionCheck", R.at(-1), !0), b();
110
+ f("optionCheck", B.at(-1), !0), b();
103
111
  }
104
- function ne(e) {
105
- m.value = e, !T.value && c("update:keyword", e);
112
+ function ie(e) {
113
+ g.value = e, !R.value && f("update:keyword", e);
106
114
  }
107
- return x(
115
+ return I(
108
116
  () => l.scrollToGroupValue,
109
117
  async (e) => {
110
118
  e !== void 0 && await N(e);
111
119
  },
112
120
  { flush: "post" }
113
- ), x(
121
+ ), I(
114
122
  () => l.rows.length,
115
123
  async () => {
116
- await L(), D();
124
+ await L(), x();
117
125
  },
118
126
  { immediate: !0 }
119
127
  ), j({
@@ -121,52 +129,52 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
121
129
  }), (e, a) => (s(), d("div", {
122
130
  class: n(`${e.prefixCls}__list`)
123
131
  }, [
124
- w("div", {
132
+ y("div", {
125
133
  class: n(`${e.prefixCls}__toolbar`)
126
134
  }, [
127
- p(i(ce), {
135
+ c(i(ve), {
128
136
  ref_key: "searchInputRef",
129
- ref: F,
130
- "model-value": m.value,
137
+ ref: G,
138
+ "model-value": g.value,
131
139
  class: n(`${e.prefixCls}__search`),
132
140
  placeholder: l.middlePlaceholder,
133
141
  clearable: "",
134
- "onUpdate:modelValue": ne,
135
- onPaste: se
142
+ "onUpdate:modelValue": ie,
143
+ onPaste: ne
136
144
  }, {
137
145
  prefix: u(() => [
138
- p(i(fe), null, {
146
+ c(i(he), null, {
139
147
  default: u(() => [
140
- p(i(pe))
148
+ c(i(ce))
141
149
  ]),
142
150
  _: 1
143
151
  })
144
152
  ]),
145
153
  _: 1
146
154
  }, 8, ["model-value", "class", "placeholder"]),
147
- e.multiple ? (s(), I(i(de), {
155
+ e.multiple ? (s(), M(i(pe), {
148
156
  key: 0,
149
157
  disabled: e.disabled,
150
158
  plain: "",
151
- onClick: a[0] || (a[0] = () => c("checkAll", !0))
159
+ onClick: a[0] || (a[0] = () => f("checkAll", !0))
152
160
  }, {
153
161
  default: u(() => [...a[2] || (a[2] = [
154
- w("span", null, "全选", -1)
162
+ y("span", null, "全选", -1)
155
163
  ])]),
156
164
  _: 1
157
- }, 8, ["disabled"])) : Y("", !0)
165
+ }, 8, ["disabled"])) : O("", !0)
158
166
  ], 2),
159
167
  l.showAll ? (s(), d("div", {
160
168
  key: 0,
161
169
  class: n([`${e.prefixCls}__panel-head`, oe.value ? "is-standalone" : ""])
162
170
  }, [
163
- p(i(P), {
171
+ c(i(F), {
164
172
  disabled: e.disabled,
165
173
  "model-value": l.allChecked,
166
- onChange: a[1] || (a[1] = (o) => c("allCheck", !!o))
174
+ onChange: a[1] || (a[1] = (o) => f("allCheck", !!o))
167
175
  }, {
168
176
  default: u(() => [
169
- p(i(_), null, {
177
+ c(i(_), null, {
170
178
  default: u(() => [...a[3] || (a[3] = [
171
179
  $("全部", -1)
172
180
  ])]),
@@ -175,60 +183,60 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
175
183
  ]),
176
184
  _: 1
177
185
  }, 8, ["disabled", "model-value"])
178
- ], 2)) : Y("", !0),
179
- w("div", {
186
+ ], 2)) : O("", !0),
187
+ y("div", {
180
188
  class: n(`${e.prefixCls}__checkbox-group`)
181
189
  }, [
182
- p(i(ve), {
190
+ c(i(me), {
183
191
  ref_key: "scrollbarRef",
184
- ref: y,
192
+ ref: m,
185
193
  class: n(`${e.prefixCls}__middle-scrollbar`),
186
194
  onScroll: E
187
195
  }, {
188
196
  default: u(() => [
189
- w("div", {
197
+ y("div", {
190
198
  class: n(`${e.prefixCls}__middle-virtual-host`),
191
- style: M({ height: `${X.value}px` })
199
+ style: A({ height: `${X.value}px` })
192
200
  }, [
193
- w("div", {
194
- style: M({ transform: `translateY(${le.value}px)` })
201
+ y("div", {
202
+ style: A({ transform: `translateY(${le.value}px)` })
195
203
  }, [
196
- (s(!0), d(A, null, H(ae.value, (o, h) => (s(), d("div", {
204
+ (s(!0), d(V, null, H(ae.value, (o, h) => (s(), d("div", {
197
205
  key: o.key,
198
- style: M({ height: `${e.rowHeight}px` }),
206
+ style: A({ height: `${e.rowHeight}px` }),
199
207
  class: n([
200
208
  `${e.prefixCls}__middle-row`,
201
209
  o.type === "group" ? `${e.prefixCls}__middle-group` : `${e.prefixCls}__middle-options`,
202
210
  o.type === "options" && o.isLast ? "is-last" : "",
203
- o.type === "options" && g.value + h === 0 && !l.showAll ? "is-first" : "",
211
+ o.type === "options" && w.value + h === 0 && !l.showAll ? "is-first" : "",
204
212
  k.value === o.group.value ? `${e.prefixCls}__group-flash` : ""
205
213
  ]),
206
- "data-virtual-index": g.value + h,
207
- "data-flash-seed": q.value
214
+ "data-virtual-index": w.value + h,
215
+ "data-flash-seed": D.value
208
216
  }, [
209
217
  o.type === "group" ? (s(), d("div", {
210
218
  key: 0,
211
219
  class: n(`${e.prefixCls}__panel-head`)
212
220
  }, [
213
- l.multiple ? (s(), I(i(P), {
221
+ l.multiple ? (s(), M(i(F), {
214
222
  key: 0,
215
223
  "model-value": e.groupCheckedMap[String(o.group.value)],
216
224
  indeterminate: e.groupIndeterminateMap[String(o.group.value)],
217
225
  disabled: e.disabled,
218
- onChange: (t) => c("groupCheck", o.group.value, !!t)
226
+ onChange: (t) => f("groupCheck", o.group.value, !!t)
219
227
  }, {
220
228
  default: u(() => [
221
- p(i(_), null, {
229
+ c(i(_), null, {
222
230
  default: u(() => [
223
- $(V(o.group.label), 1)
231
+ $(P(o.group.label), 1)
224
232
  ]),
225
233
  _: 2
226
234
  }, 1024)
227
235
  ]),
228
236
  _: 2
229
- }, 1032, ["model-value", "indeterminate", "disabled", "onChange"])) : (s(), I(i(_), { key: 1 }, {
237
+ }, 1032, ["model-value", "indeterminate", "disabled", "onChange"])) : (s(), M(i(_), { key: 1 }, {
230
238
  default: u(() => [
231
- $(V(o.group.label), 1)
239
+ $(P(o.group.label), 1)
232
240
  ]),
233
241
  _: 2
234
242
  }, 1024))
@@ -236,20 +244,20 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
236
244
  key: 1,
237
245
  class: n(`${e.prefixCls}__option-row`)
238
246
  }, [
239
- (s(!0), d(A, null, H(o.options, (t) => (s(), d("div", {
247
+ (s(!0), d(V, null, H(o.options, (t) => (s(), d("div", {
240
248
  key: t.value,
241
249
  class: n(`${e.prefixCls}__option-cell`)
242
250
  }, [
243
- p(i(P), {
244
- "model-value": e.selectedValues.includes(t.value),
245
- disabled: e.disabled ?? t.disabled,
251
+ c(i(F), {
252
+ "model-value": te.value.has(t.value),
253
+ disabled: e.disabled || t.disabled,
246
254
  class: n(`${e.prefixCls}__option`),
247
- onChange: (C) => c("optionCheck", t.value, !!C)
255
+ onChange: (C) => f("optionCheck", t.value, !!C)
248
256
  }, {
249
257
  default: u(() => [
250
- p(i(_), { "tool-tip-line": 2 }, {
258
+ c(i(_), { "tool-tip-line": 2 }, {
251
259
  default: u(() => [
252
- $(V(t.label), 1)
260
+ $(P(t.label), 1)
253
261
  ]),
254
262
  _: 2
255
263
  }, 1024)
@@ -257,12 +265,12 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
257
265
  _: 2
258
266
  }, 1032, ["model-value", "disabled", "class", "onChange"])
259
267
  ], 2))), 128)),
260
- (s(!0), d(A, null, H(e.optionPerRow - o.options.length, (t) => (s(), d("div", {
268
+ (s(!0), d(V, null, H(e.optionPerRow - o.options.length, (t) => (s(), d("div", {
261
269
  key: `empty-${o.key}-${t}`,
262
270
  class: n(`${e.prefixCls}__option-cell`)
263
271
  }, null, 2))), 128))
264
272
  ], 2))
265
- ], 14, he))), 128))
273
+ ], 14, ge))), 128))
266
274
  ], 4)
267
275
  ], 6)
268
276
  ]),
@@ -273,5 +281,5 @@ const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ *
273
281
  }
274
282
  });
275
283
  export {
276
- Ce as default
284
+ _e as default
277
285
  };