hys-ui 0.1.0 → 0.1.1

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/README.md +16 -6
  3. package/dist/components/HysAlert/HysAlert.vue.js +14 -14
  4. package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +23 -20
  5. package/dist/components/HysBadge/HysBadge.vue.js +1 -1
  6. package/dist/components/HysBadge/HysBadge2.vue.js +20 -19
  7. package/dist/components/HysCalendar/HysCalendar.vue.js +48 -40
  8. package/dist/components/HysCard/HysCard.vue.js +2 -2
  9. package/dist/components/HysCard/HysCard2.vue.js +9 -9
  10. package/dist/components/HysCascader/HysCascader.vue.js +88 -76
  11. package/dist/components/HysCheckbox/HysCheckbox.vue.js +5 -39
  12. package/dist/components/HysCheckbox/HysCheckbox2.vue.js +85 -2
  13. package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +52 -51
  14. package/dist/components/HysCommentEditor/HysCommentEditor.vue.js +17 -17
  15. package/dist/components/HysDataGrid/HysDataGrid2.vue.js +22 -22
  16. package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
  17. package/dist/components/HysDrawer/HysDrawer2.vue.js +55 -54
  18. package/dist/components/HysFileManager/HysFileManager.vue.js +5 -63
  19. package/dist/components/HysFileManager/HysFileManager2.vue.js +85 -2
  20. package/dist/components/HysForm/HysForm.vue.js +2 -2
  21. package/dist/components/HysForm/HysForm2.vue.js +66 -64
  22. package/dist/components/HysFormItem/HysFormItem.vue.js +53 -37
  23. package/dist/components/HysGantt/HysGantt.vue.js +5 -264
  24. package/dist/components/HysGantt/HysGantt2.vue.js +302 -2
  25. package/dist/components/HysInput/HysInput.vue.js +1 -1
  26. package/dist/components/HysInput/HysInput2.vue.js +42 -41
  27. package/dist/components/HysModal/HysModal.vue.js +2 -2
  28. package/dist/components/HysModal/HysModal2.vue.js +35 -35
  29. package/dist/components/HysNotificationCenter/HysNotificationCenter.vue.js +37 -36
  30. package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
  31. package/dist/components/HysNumberInput/HysNumberInput2.vue.js +49 -40
  32. package/dist/components/HysOrgTree/HysOrgTree.vue.js +34 -32
  33. package/dist/components/HysPagination/HysPagination.vue.js +2 -2
  34. package/dist/components/HysPagination/HysPagination2.vue.js +91 -91
  35. package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +5 -41
  36. package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +100 -2
  37. package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +5 -40
  38. package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +80 -2
  39. package/dist/components/HysResizablePanel/HysResizablePanel.vue.js +46 -28
  40. package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +2 -2
  41. package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +86 -67
  42. package/dist/components/HysSearch/HysSearch.vue.js +49 -38
  43. package/dist/components/HysSegmented/HysSegmented.vue.js +39 -34
  44. package/dist/components/HysSelect/HysSelect.vue.js +2 -2
  45. package/dist/components/HysSelect/HysSelect2.vue.js +130 -109
  46. package/dist/components/HysSlider/HysSlider.vue.js +2 -2
  47. package/dist/components/HysSlider/HysSlider2.vue.js +40 -40
  48. package/dist/components/HysSplitPane/HysSplitPane.vue.js +48 -42
  49. package/dist/components/HysSteps/HysSteps.vue.js +2 -2
  50. package/dist/components/HysSteps/HysSteps2.vue.js +15 -14
  51. package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
  52. package/dist/components/HysSwitch/HysSwitch2.vue.js +38 -27
  53. package/dist/components/HysTable/HysTable.vue.js +2 -2
  54. package/dist/components/HysTable/HysTable2.vue.js +42 -38
  55. package/dist/components/HysTabs/HysTabs.vue.js +1 -1
  56. package/dist/components/HysTabs/HysTabs2.vue.js +8 -6
  57. package/dist/components/HysTextarea/HysTextarea.vue.js +58 -48
  58. package/dist/components/HysToast/HysToast.vue.js +2 -2
  59. package/dist/components/HysToast/HysToast2.vue.js +121 -38
  60. package/dist/components/HysTour/HysTour.vue.js +47 -42
  61. package/dist/components/HysTransfer/HysTransfer.vue.js +159 -143
  62. package/dist/components/HysTree/HysTree.vue.js +2 -2
  63. package/dist/components/HysTree/HysTree2.vue.js +62 -61
  64. package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +64 -57
  65. package/dist/components/HysUpload/HysUpload.vue.js +2 -2
  66. package/dist/components/HysUpload/HysUpload2.vue.js +95 -77
  67. package/dist/composables/formContext.js +9 -3
  68. package/dist/composables/toastEscape.js +16 -0
  69. package/dist/composables/useDialog.js +16 -16
  70. package/dist/composables/useFloating.js +40 -40
  71. package/dist/composables/useHysToast.js +148 -0
  72. package/dist/config.js +18 -15
  73. package/dist/index.js +10 -7
  74. package/dist/style.css +1 -1
  75. package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +2 -0
  76. package/dist/types/components/HysCard/HysCard.vue.d.ts +5 -1
  77. package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +21 -4
  78. package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -0
  79. package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +6 -2
  80. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +6 -0
  81. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -0
  82. package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +3 -1
  83. package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +8 -1
  84. package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +40 -17
  85. package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +6 -0
  86. package/dist/types/components/HysSelect/HysSelect.vue.d.ts +7 -1
  87. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +6 -0
  88. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -0
  89. package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +1 -1
  90. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +1 -1
  91. package/dist/types/components/HysToast/HysToast.vue.d.ts +55 -7
  92. package/dist/types/components/HysTour/HysTour.vue.d.ts +3 -1
  93. package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +11 -1
  94. package/dist/types/composables/formContext.d.ts +5 -0
  95. package/dist/types/composables/toastEscape.d.ts +1 -0
  96. package/dist/types/composables/useFloating.d.ts +1 -1
  97. package/dist/types/composables/useHysToast.d.ts +50 -0
  98. package/dist/types/index.d.ts +5 -0
  99. package/package.json +46 -11
@@ -1,9 +1,9 @@
1
- import { defineComponent as y, ref as b, computed as h, openBlock as i, createElementBlock as a, mergeProps as v, unref as f, createElementVNode as t, toDisplayString as l, Fragment as k, renderList as C, normalizeClass as _, createCommentVNode as g } from "vue";
2
- import { useHysRootAttrs as x } from "../../config.js";
3
- const $ = { class: "hys-ui-ent-toolbar" }, B = ["disabled"], N = { class: "hys-ui-ent-toolbar" }, A = ["aria-pressed"], E = ["aria-pressed"], H = { class: "hys-ui-ent-notices" }, R = ["onClick"], T = {
1
+ import { defineComponent as y, ref as h, computed as v, openBlock as d, createElementBlock as n, mergeProps as f, unref as k, createElementVNode as l, toDisplayString as i, Fragment as C, renderList as g, normalizeClass as p, createCommentVNode as x } from "vue";
2
+ import { useHysRootAttrs as $ } from "../../config.js";
3
+ const B = { class: "hys-ui-ent-toolbar" }, N = ["disabled"], A = { class: "hys-ui-ent-toolbar" }, E = ["disabled", "aria-pressed"], H = ["disabled", "aria-pressed"], R = { class: "hys-ui-ent-notices" }, T = ["disabled", "onClick"], V = {
4
4
  key: 0,
5
5
  class: "hys-ui-ent-muted"
6
- }, D = /* @__PURE__ */ y({
6
+ }, F = /* @__PURE__ */ y({
7
7
  __name: "HysNotificationCenter",
8
8
  props: {
9
9
  items: {},
@@ -12,50 +12,51 @@ const $ = { class: "hys-ui-ent-toolbar" }, B = ["disabled"], N = { class: "hys-u
12
12
  disabled: { type: Boolean }
13
13
  },
14
14
  emits: ["read", "read-all", "open"],
15
- setup(n, { emit: c }) {
16
- const m = x(), p = n, r = c, o = b("all"), d = h(() => p.items.filter((u) => o.value === "all" || !u.read));
17
- return (u, s) => (i(), a("section", v(f(m), { class: "hys-ui-ent-panel" }), [
18
- t("header", $, [
19
- t("strong", null, l(n.title || "通知中心") + " (" + l(n.items.filter((e) => !e.read).length) + ")", 1),
20
- t("button", {
15
+ setup(e, { emit: b }) {
16
+ const c = $(), m = e, o = b, a = h("all"), r = v(() => m.items.filter((u) => a.value === "all" || !u.read));
17
+ return (u, s) => (d(), n("section", f(k(c), { class: "hys-ui-ent-panel" }), [
18
+ l("header", B, [
19
+ l("strong", null, i(e.title || "通知中心") + " (" + i(e.items.filter((t) => !t.read).length) + ")", 1),
20
+ l("button", {
21
21
  type: "button",
22
- disabled: n.disabled,
23
- onClick: s[0] || (s[0] = (e) => r("read-all"))
24
- }, "全部已读", 8, B)
22
+ disabled: e.disabled,
23
+ onClick: s[0] || (s[0] = (t) => !e.disabled && o("read-all"))
24
+ }, "全部已读", 8, N)
25
25
  ]),
26
- t("div", N, [
27
- t("button", {
26
+ l("div", A, [
27
+ l("button", {
28
28
  type: "button",
29
- "aria-pressed": o.value === "all",
30
- onClick: s[1] || (s[1] = (e) => o.value = "all")
31
- }, "全部", 8, A),
32
- t("button", {
29
+ disabled: e.disabled,
30
+ "aria-pressed": a.value === "all",
31
+ onClick: s[1] || (s[1] = (t) => !e.disabled && (a.value = "all"))
32
+ }, "全部", 8, E),
33
+ l("button", {
33
34
  type: "button",
34
- "aria-pressed": o.value === "unread",
35
- onClick: s[2] || (s[2] = (e) => o.value = "unread")
36
- }, "未读", 8, E)
35
+ disabled: e.disabled,
36
+ "aria-pressed": a.value === "unread",
37
+ onClick: s[2] || (s[2] = (t) => !e.disabled && (a.value = "unread"))
38
+ }, "未读", 8, H)
37
39
  ]),
38
- t("ul", H, [
39
- (i(!0), a(k, null, C(d.value, (e) => (i(), a("li", {
40
- key: e.id,
41
- class: _({ "hys-ui-unread": !e.read })
40
+ l("ul", R, [
41
+ (d(!0), n(C, null, g(r.value, (t) => (d(), n("li", {
42
+ key: t.id,
43
+ class: p({ "hys-ui-unread": !t.read })
42
44
  }, [
43
- t("button", {
45
+ l("button", {
44
46
  type: "button",
45
- onClick: (V) => {
46
- r("open", e.id), r("read", e.id);
47
- }
47
+ disabled: e.disabled,
48
+ onClick: (w) => !e.disabled && (o("open", t.id), o("read", t.id))
48
49
  }, [
49
- t("strong", null, l(e.title), 1),
50
- t("span", null, l(e.detail), 1),
51
- t("small", null, l(e.time), 1)
52
- ], 8, R)
50
+ l("strong", null, i(t.title), 1),
51
+ l("span", null, i(t.detail), 1),
52
+ l("small", null, i(t.time), 1)
53
+ ], 8, T)
53
54
  ], 2))), 128))
54
55
  ]),
55
- d.value.length ? g("", !0) : (i(), a("p", T, l(n.emptyText || "暂无通知"), 1))
56
+ r.value.length ? x("", !0) : (d(), n("p", V, i(e.emptyText || "暂无通知"), 1))
56
57
  ], 16));
57
58
  }
58
59
  });
59
60
  export {
60
- D as default
61
+ F as default
61
62
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./HysNumberInput2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-063332f4"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b83b3123"]]);
5
5
  export {
6
- f as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as g, ref as M, computed as w, openBlock as m, createElementBlock as s, mergeProps as B, unref as r, createVNode as f, createCommentVNode as c, createElementVNode as C } from "vue";
2
- import { Minus as N, Plus as z } from "lucide-vue-next";
3
- import { useHysRootAttrs as A } from "../../config.js";
4
- const F = ["disabled"], D = ["aria-label", "value", "min", "max", "step", "disabled", "readonly"], S = ["disabled"], L = /* @__PURE__ */ g({
1
+ import { defineComponent as g, ref as w, computed as C, openBlock as m, createElementBlock as r, mergeProps as M, unref as b, createVNode as y, createCommentVNode as c, createElementVNode as B } from "vue";
2
+ import { Minus as A, Plus as F } from "lucide-vue-next";
3
+ import { useHysRootAttrs as p } from "../../config.js";
4
+ const z = ["disabled"], D = ["aria-label", "value", "min", "max", "step", "disabled", "readonly"], I = ["disabled"], L = /* @__PURE__ */ g({
5
5
  __name: "HysNumberInput",
6
6
  props: {
7
7
  modelValue: {},
@@ -17,70 +17,79 @@ const F = ["disabled"], D = ["aria-label", "value", "min", "max", "step", "disab
17
17
  selectOnFocus: { type: Boolean, default: !1 },
18
18
  size: { default: "md" }
19
19
  },
20
- emits: ["update:modelValue", "change", "focus", "blur"],
21
- setup(l, { expose: x, emit: v }) {
22
- const a = l, d = v, V = A(), i = M(), n = w(() => Math.abs(a.step) || 1), b = (e) => Math.max(0, (String(e).split(".")[1] || "").length);
23
- function h(e) {
24
- let t = Number.isFinite(e) ? e : 0;
25
- return a.stepStrictly && (t = Math.round(t / n.value) * n.value), t = Math.min(a.max ?? 1 / 0, Math.max(a.min ?? -1 / 0, t)), Number(t.toFixed(Math.min(12, Math.max(0, a.precision ?? Math.max(b(n.value), b(a.modelValue))))));
20
+ emits: ["update:modelValue", "change", "input", "focus", "blur"],
21
+ setup(l, { expose: v, emit: x }) {
22
+ const a = l, d = x, V = p(), u = w(), i = C(() => Number.isFinite(a.step) && a.step !== 0 ? Math.abs(a.step) : 1), s = (t) => {
23
+ const [e, n = "0"] = String(t).toLowerCase().split("e");
24
+ return Math.max(0, (e.split(".")[1] || "").length - Number(n));
25
+ };
26
+ function h(t) {
27
+ let e = Number.isFinite(t) ? t : 0;
28
+ return a.stepStrictly && (e = Math.round(e / i.value) * i.value), e = Math.min(a.max ?? 1 / 0, Math.max(a.min ?? -1 / 0, e)), Number(e.toFixed(Math.min(12, Math.max(0, a.precision ?? Math.max(s(i.value), s(a.modelValue), s(e))))));
26
29
  }
27
- function o(e) {
30
+ function o(t) {
28
31
  if (a.disabled || a.readonly) return;
29
- const t = h(e);
30
- t !== a.modelValue ? (d("update:modelValue", t), d("change", t)) : i.value && (i.value.value = String(t));
32
+ const e = h(t);
33
+ e !== a.modelValue ? (d("update:modelValue", e), d("change", e)) : u.value && (u.value.value = String(e));
31
34
  }
32
- function k(e) {
33
- e.key === "ArrowUp" || e.key === "ArrowDown" ? (e.preventDefault(), o(a.modelValue + (e.key === "ArrowUp" ? n.value : -n.value))) : e.key === "Home" && a.min !== void 0 ? (e.preventDefault(), o(a.min)) : e.key === "End" && a.max !== void 0 && (e.preventDefault(), o(a.max));
35
+ function k(t) {
36
+ if (a.disabled || a.readonly) return;
37
+ const e = t.target;
38
+ d("input", e.value !== "" && Number.isFinite(e.valueAsNumber) ? e.valueAsNumber : null);
39
+ }
40
+ function N(t) {
41
+ t.key === "ArrowUp" || t.key === "ArrowDown" ? (t.preventDefault(), o(a.modelValue + (t.key === "ArrowUp" ? i.value : -i.value))) : t.key === "Home" && a.min !== void 0 ? (t.preventDefault(), o(a.min)) : t.key === "End" && a.max !== void 0 && (t.preventDefault(), o(a.max));
34
42
  }
35
- return x({ focus: () => {
36
- var e;
37
- return (e = i.value) == null ? void 0 : e.focus();
43
+ return v({ focus: () => {
44
+ var t;
45
+ return (t = u.value) == null ? void 0 : t.focus();
38
46
  }, blur: () => {
39
- var e;
40
- return (e = i.value) == null ? void 0 : e.blur();
47
+ var t;
48
+ return (t = u.value) == null ? void 0 : t.blur();
41
49
  }, select: () => {
42
- var e;
43
- return (e = i.value) == null ? void 0 : e.select();
44
- } }), (e, t) => (m(), s("div", B(r(V), {
50
+ var t;
51
+ return (t = u.value) == null ? void 0 : t.select();
52
+ } }), (t, e) => (m(), r("div", M(b(V), {
45
53
  class: ["hys-ui-ex-number", [{ "hys-ui-ex-number-disabled": l.disabled }, "hys-ui-number-" + l.size]]
46
54
  }), [
47
- l.showControls ? (m(), s("button", {
55
+ l.showControls ? (m(), r("button", {
48
56
  key: 0,
49
57
  type: "button",
50
58
  "aria-label": "减少",
51
59
  disabled: l.disabled || l.readonly || l.min !== void 0 && l.modelValue <= l.min,
52
- onClick: t[0] || (t[0] = (u) => o(l.modelValue - n.value))
60
+ onClick: e[0] || (e[0] = (n) => o(l.modelValue - i.value))
53
61
  }, [
54
- f(r(N), { size: 16 })
55
- ], 8, F)) : c("", !0),
56
- C("input", {
62
+ y(b(A), { size: 16 })
63
+ ], 8, z)) : c("", !0),
64
+ B("input", {
57
65
  ref_key: "input",
58
- ref: i,
66
+ ref: u,
59
67
  type: "number",
60
68
  "aria-label": l.ariaLabel || "数值",
61
69
  value: l.modelValue,
62
70
  min: l.min,
63
71
  max: l.max,
64
- step: n.value,
72
+ step: i.value,
65
73
  disabled: l.disabled,
66
74
  readonly: l.readonly,
67
- onFocus: t[1] || (t[1] = (u) => {
68
- var y;
69
- l.selectOnFocus && ((y = i.value) == null || y.select()), d("focus", u);
75
+ onFocus: e[1] || (e[1] = (n) => {
76
+ var f;
77
+ l.selectOnFocus && ((f = u.value) == null || f.select()), d("focus", n);
70
78
  }),
71
- onBlur: t[2] || (t[2] = (u) => d("blur", u)),
72
- onKeydown: k,
73
- onChange: t[3] || (t[3] = (u) => o(Number(u.target.value)))
79
+ onBlur: e[2] || (e[2] = (n) => d("blur", n)),
80
+ onKeydown: N,
81
+ onInput: k,
82
+ onChange: e[3] || (e[3] = (n) => o(Number(n.target.value)))
74
83
  }, null, 40, D),
75
- l.showControls ? (m(), s("button", {
84
+ l.showControls ? (m(), r("button", {
76
85
  key: 1,
77
86
  type: "button",
78
87
  "aria-label": "增加",
79
88
  disabled: l.disabled || l.readonly || l.max !== void 0 && l.modelValue >= l.max,
80
- onClick: t[4] || (t[4] = (u) => o(l.modelValue + n.value))
89
+ onClick: e[4] || (e[4] = (n) => o(l.modelValue + i.value))
81
90
  }, [
82
- f(r(z), { size: 16 })
83
- ], 8, S)) : c("", !0)
91
+ y(b(F), { size: 16 })
92
+ ], 8, I)) : c("", !0)
84
93
  ], 16));
85
94
  }
86
95
  });
@@ -1,53 +1,55 @@
1
- import { defineComponent as f, computed as k, openBlock as y, createBlock as b, mergeProps as I, unref as K } from "vue";
2
- import { useHysRootAttrs as V } from "../../config.js";
3
- import g from "../HysTree/HysTree.vue.js";
4
- const x = /* @__PURE__ */ f({
1
+ import { defineComponent as h, computed as k, openBlock as y, createBlock as b, mergeProps as I, unref as g } from "vue";
2
+ import { useHysRootAttrs as v } from "../../config.js";
3
+ import K from "../HysTree/HysTree.vue.js";
4
+ const x = /* @__PURE__ */ h({
5
5
  __name: "HysOrgTree",
6
6
  props: {
7
7
  nodes: {},
8
8
  modelValue: {},
9
- searchable: { type: Boolean },
9
+ searchable: { type: Boolean, default: !0 },
10
10
  checkable: { type: Boolean },
11
11
  checkedKeys: {}
12
12
  },
13
13
  emits: ["update:modelValue", "update:checkedKeys"],
14
- setup(a, { emit: u }) {
15
- const p = V(), s = a, l = u, m = k(() => {
16
- var o;
17
- const d = /* @__PURE__ */ new Map();
18
- for (const e of s.nodes) d.has(e.id) || d.set(e.id, { id: e.id, label: e.name, disabled: e.disabled, children: [] });
19
- const t = [];
20
- for (const e of s.nodes) {
21
- const c = d.get(e.id);
22
- if (e.parentId && e.parentId !== e.id && d.has(e.parentId)) {
23
- let n = e.parentId;
14
+ setup(d, { emit: i }) {
15
+ const p = v(), m = d, n = i, f = k(() => {
16
+ var l;
17
+ const a = /* @__PURE__ */ new Map();
18
+ for (const e of m.nodes) a.has(e.id) || a.set(e.id, e);
19
+ const t = /* @__PURE__ */ new Map();
20
+ for (const e of a.values()) t.has(e.id) || t.set(e.id, { id: e.id, label: e.name, disabled: e.disabled, children: [] });
21
+ const o = [];
22
+ for (const e of a.values()) {
23
+ const c = t.get(e.id);
24
+ if (e.parentId && e.parentId !== e.id && t.has(e.parentId)) {
25
+ let s = e.parentId;
24
26
  const r = /* @__PURE__ */ new Set([e.id]);
25
- let i = !1;
26
- for (; n; ) {
27
- if (r.has(n)) {
28
- i = !0;
27
+ let u = !1;
28
+ for (; s; ) {
29
+ if (r.has(s)) {
30
+ u = !0;
29
31
  break;
30
32
  }
31
- r.add(n), n = ((o = s.nodes.find((h) => h.id === n)) == null ? void 0 : o.parentId) || "";
33
+ r.add(s), s = ((l = a.get(s)) == null ? void 0 : l.parentId) || "";
32
34
  }
33
- if (!i) {
34
- d.get(e.parentId).children.push(c);
35
+ if (!u) {
36
+ t.get(e.parentId).children.push(c);
35
37
  continue;
36
38
  }
37
39
  }
38
- t.push(c);
40
+ o.push(c);
39
41
  }
40
- return t;
42
+ return o;
41
43
  });
42
- return (d, t) => (y(), b(g, I(K(p), {
43
- nodes: m.value,
44
- "model-value": a.modelValue,
45
- "checked-keys": a.checkedKeys,
46
- checkable: a.checkable,
47
- searchable: a.searchable !== !1,
44
+ return (a, t) => (y(), b(K, I(g(p), {
45
+ nodes: f.value,
46
+ "model-value": d.modelValue,
47
+ "checked-keys": d.checkedKeys,
48
+ checkable: d.checkable,
49
+ searchable: d.searchable !== !1,
48
50
  "default-expand-all": "",
49
- "onUpdate:modelValue": t[0] || (t[0] = (o) => l("update:modelValue", o)),
50
- "onUpdate:checkedKeys": t[1] || (t[1] = (o) => l("update:checkedKeys", o))
51
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => n("update:modelValue", o)),
52
+ "onUpdate:checkedKeys": t[1] || (t[1] = (o) => n("update:checkedKeys", o))
51
53
  }), null, 16, ["nodes", "model-value", "checked-keys", "checkable", "searchable"]));
52
54
  }
53
55
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./HysPagination2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-11dca672"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4358cc82"]]);
5
5
  export {
6
- m as default
6
+ i as default
7
7
  };