@das-fed/ui 6.4.0-test.10 → 6.4.0-test.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.
Files changed (107) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/change-enterprises/index.d.ts +5 -5
  3. package/packages/business-components/change-enterprises/src/index.vue.d.ts +1 -1
  4. package/packages/business-components/device-panel/i18n/index.d.ts +13 -8
  5. package/packages/business-components/device-panel/index.js +13878 -13786
  6. package/packages/business-components/device-panel/index.js.gz +0 -0
  7. package/packages/business-components/device-panel/style.css +1 -1
  8. package/packages/business-components/device-panel/style.css.gz +0 -0
  9. package/packages/business-components/export-button/index.js +24 -24
  10. package/packages/business-components/export-button/index.js.gz +0 -0
  11. package/packages/business-components/import-button/index.js +2 -2
  12. package/packages/business-components/import-button/index.js.gz +0 -0
  13. package/packages/business-components/payment/index.js +186 -172
  14. package/packages/business-components/payment/index.js.gz +0 -0
  15. package/packages/business-components/payment/style.css +1 -1
  16. package/packages/business-components/process-form/index.js +764 -759
  17. package/packages/business-components/process-form/index.js.gz +0 -0
  18. package/packages/components/button/index.js +89 -87
  19. package/packages/components/button/index.js.gz +0 -0
  20. package/packages/components/button/style.css +1 -1
  21. package/packages/components/button/style.css.gz +0 -0
  22. package/packages/components/cascader/index.d.ts +7 -7
  23. package/packages/components/cascader/index.js +194 -156
  24. package/packages/components/cascader/index.js.gz +0 -0
  25. package/packages/components/cascader/src/Index.vue.d.ts +1 -1
  26. package/packages/components/cascader/style.css +1 -1
  27. package/packages/components/cascader/style.css.gz +0 -0
  28. package/packages/components/checkbox/index.js +1 -1
  29. package/packages/components/checkbox/index.js.gz +0 -0
  30. package/packages/components/checkbox/style.css +1 -1
  31. package/packages/components/checkbox/style.css.gz +0 -0
  32. package/packages/components/date-picker/index.d.ts +12 -0
  33. package/packages/components/date-picker/index.js +988 -774
  34. package/packages/components/date-picker/index.js.gz +0 -0
  35. package/packages/components/date-picker/src/DatePicker.vue.d.ts +1 -0
  36. package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
  37. package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
  38. package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
  39. package/packages/components/date-picker/src/type.d.ts +96 -1
  40. package/packages/components/date-picker/style.css +1 -1
  41. package/packages/components/date-picker/style.css.gz +0 -0
  42. package/packages/components/edit-table/index.js +588 -607
  43. package/packages/components/edit-table/index.js.gz +0 -0
  44. package/packages/components/edit-table/style.css +1 -1
  45. package/packages/components/edit-table/style.css.gz +0 -0
  46. package/packages/components/form-item/index.js +2 -2
  47. package/packages/components/form-item/index.js.gz +0 -0
  48. package/packages/components/form-item/style.css +1 -1
  49. package/packages/components/form-item/style.css.gz +0 -0
  50. package/packages/components/image-viewer/index.js +106 -106
  51. package/packages/components/image-viewer/index.js.gz +0 -0
  52. package/packages/components/input/index.js +118 -117
  53. package/packages/components/input/index.js.gz +0 -0
  54. package/packages/components/input/style.css +1 -1
  55. package/packages/components/input/style.css.gz +0 -0
  56. package/packages/components/input-dialog-select/index.js +92 -88
  57. package/packages/components/input-dialog-select/index.js.gz +0 -0
  58. package/packages/components/input-dialog-select/style.css +1 -1
  59. package/packages/components/input-dialog-select/style.css.gz +0 -0
  60. package/packages/components/input-dialog-select/theme/index.d.ts +1 -1
  61. package/packages/components/input-number/index.d.ts +136 -0
  62. package/packages/components/input-number/index.js +202 -152
  63. package/packages/components/input-number/index.js.gz +0 -0
  64. package/packages/components/input-number/src/App.vue.d.ts +1 -5671
  65. package/packages/components/input-number/src/type.d.ts +3 -0
  66. package/packages/components/input-number/style.css +1 -1
  67. package/packages/components/input-number/style.css.gz +0 -0
  68. package/packages/components/input-number/theme/index.d.ts +1 -1
  69. package/packages/components/search/index.d.ts +12 -98
  70. package/packages/components/search/index.js +143 -129
  71. package/packages/components/search/index.js.gz +0 -0
  72. package/packages/components/search/src/Index.vue.d.ts +13 -152
  73. package/packages/components/search/src/type.d.ts +25 -5
  74. package/packages/components/search/style.css +1 -1
  75. package/packages/components/search/style.css.gz +0 -0
  76. package/packages/components/search-form/index.js +740 -737
  77. package/packages/components/search-form/index.js.gz +0 -0
  78. package/packages/components/search-form/src/SearchDateRange.vue.d.ts +1 -0
  79. package/packages/components/search-form/src/hooks/searchFormItem.d.ts +2 -0
  80. package/packages/components/search-form/src/type.d.ts +3 -0
  81. package/packages/components/search-form/style.css +1 -1
  82. package/packages/components/search-form/style.css.gz +0 -0
  83. package/packages/components/select/index.js +374 -356
  84. package/packages/components/select/index.js.gz +0 -0
  85. package/packages/components/select/style.css +1 -1
  86. package/packages/components/select/style.css.gz +0 -0
  87. package/packages/components/select-input/index.d.ts +1 -0
  88. package/packages/components/select-input/index.js +82 -52
  89. package/packages/components/select-input/index.js.gz +0 -0
  90. package/packages/components/select-input/src/Index.vue.d.ts +1 -0
  91. package/packages/components/select-input/src/hooks/use-select-input.d.ts +1 -0
  92. package/packages/components/select-input/src/type.d.ts +2 -0
  93. package/packages/components/select-input/style.css +1 -1
  94. package/packages/components/select-input/style.css.gz +0 -0
  95. package/packages/components/table/index.js +1 -1
  96. package/packages/components/table/index.js.gz +0 -0
  97. package/packages/components/table/style.css +1 -1
  98. package/packages/components/table/style.css.gz +0 -0
  99. package/packages/components/tooltip/index.js +74 -69
  100. package/packages/components/tooltip/index.js.gz +0 -0
  101. package/packages/components/tooltip/style.css +1 -1
  102. package/packages/components/tooltip/style.css.gz +0 -0
  103. package/packages/components/tree-select/index.js +246 -246
  104. package/packages/components/tree-select/index.js.gz +0 -0
  105. package/packages/components/tree-select/src/App.vue.d.ts +3 -1
  106. package/packages/global/theme/index.js +2 -1
  107. package/packages/global/theme/index.js.gz +0 -0
@@ -1,32 +1,33 @@
1
1
  import '@das-fed/ui/packages/components/select/style.css';
2
- import { withInstall as ze } from "@das-fed/utils/with-install/index";
3
- import { defineComponent as _e, useCssVars as il, computed as d, ref as r, useSlots as ul, onMounted as ue, onUnmounted as we, watchEffect as de, watch as ce, nextTick as k, resolveComponent as dl, openBlock as u, createElementBlock as b, normalizeClass as cl, normalizeStyle as T, createVNode as x, unref as n, withCtx as p, withDirectives as X, createTextVNode as j, toDisplayString as I, createBlock as R, mergeProps as Ne, isRef as vl, withModifiers as G, createSlots as fl, renderSlot as C, normalizeProps as J, guardReactiveProps as Q, Fragment as Y, createCommentVNode as S, createElementVNode as m, withKeys as pl, Teleport as ml } from "vue";
4
- import { Select as hl, Tag as ve } from "ant-design-vue";
2
+ import { withInstall as Fe } from "@das-fed/utils/with-install/index";
3
+ import { defineComponent as Ae, useCssVars as ml, computed as i, ref as n, watch as Z, useSlots as hl, onMounted as fe, onUnmounted as Le, watchEffect as pe, nextTick as T, resolveComponent as bl, openBlock as d, createElementBlock as y, normalizeClass as yl, normalizeStyle as k, createVNode as x, unref as r, withDirectives as me, createBlock as U, mergeProps as De, isRef as gl, withModifiers as ee, createSlots as xl, withCtx as h, renderSlot as C, normalizeProps as le, guardReactiveProps as te, Fragment as oe, createCommentVNode as I, createTextVNode as he, toDisplayString as S, createElementVNode as m, withKeys as Cl, Teleport as wl } from "vue";
4
+ import { Select as Tl, Tag as be } from "ant-design-vue";
5
+ import { DasCheckbox as Ne } from "@das-fed/ui/packages/components/checkbox/index";
6
+ import { vScrollbar as kl } from "@das-fed/ui/packages/components/scrollbar/index";
7
+ import { DasTooltip as Il } from "@das-fed/ui/packages/components/tooltip/index";
8
+ import { vDasTooltip as _e } from "@das-fed/ui/packages/components/text-tooltip/index";
9
+ import { DasInput as Sl } from "@das-fed/ui/packages/components/input/index";
10
+ import { DasIconXiala as Vl } from "@das-fed/ui/packages/icons/xiala/index";
11
+ import { DasIconEmpty as zl } from "@das-fed/ui/packages/icons/empty/index";
12
+ import { vHoverInside as Ml } from "@das-fed/utils/directive";
13
+ import { getVarValue as $e, getVar as Be, setThemeRule as Ll } from "@das-fed/web/packages/theme/index";
14
+ import { useZIndex as Nl } from "@das-fed/utils/hooks/popup-manager/use-zindex";
15
+ import { t as H, setI18nRule as _l } from "@das-fed/web/packages/i18n/index";
16
+ import { useModelValue as $l } from "@das-fed/utils/vue";
17
+ import { calcTextWidth as Bl } from "@das-fed/utils/common-tools";
5
18
  import "ant-design-vue/es/select/style/css";
6
19
  import "ant-design-vue/es/tag/style/css";
7
- import { DasCheckbox as ke } from "@das-fed/ui/packages/components/checkbox/index";
8
- import { vScrollbar as Te } from "@das-fed/ui/packages/components/scrollbar/index";
9
- import { DasTooltip as bl } from "@das-fed/ui/packages/components/tooltip/index";
10
- import { vDasTooltip as Ie } from "@das-fed/ui/packages/components/text-tooltip/index";
11
- import { DasInput as gl } from "@das-fed/ui/packages/components/input/index";
12
- import { DasIconXiala as yl } from "@das-fed/ui/packages/icons/xiala/index";
13
- import { DasIconEmpty as xl } from "@das-fed/ui/packages/icons/empty/index";
14
- import { vHoverInside as Cl } from "@das-fed/utils/directive";
15
- import { getVarValue as Se, getVar as Me, setThemeRule as wl } from "@das-fed/web/packages/theme/index";
16
- import { useZIndex as kl } from "@das-fed/utils/hooks/popup-manager/use-zindex";
17
- import { t as P, setI18nRule as Tl } from "@das-fed/web/packages/i18n/index";
18
- import { useModelValue as Il } from "@das-fed/utils/vue";
19
- import { SelectOption as Sl } from "ant-design-vue/es";
20
- const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key: 0 }, _l = { class: "das-multiple-option-item" }, Nl = { style: { display: "inline-block" } }, Vl = { key: 0 }, Bl = { key: 2 }, $l = { style: { display: "inline-block" } }, Ll = ["innerHTML"], Fl = ["innerHTML"], Dl = {
20
+ import { SelectOption as Fl } from "ant-design-vue/es";
21
+ const Al = { key: 0 }, Dl = { class: "das-multiple-option-item" }, Wl = { style: { display: "inline-block" } }, Ol = { key: 0 }, Pl = { key: 2 }, Rl = { style: { display: "inline-block" } }, El = ["innerHTML"], Hl = ["innerHTML"], ql = {
21
22
  key: 0,
22
23
  class: "das-select-error-label-content das-select-label-content"
23
- }, Ol = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Pl = { class: "ant-select-selection-item" }, Al = { class: "ant-select-selection-item-content" }, Wl = ["innerHTML"], El = _e({
24
+ }, Kl = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Zl = { class: "ant-select-selection-item" }, Ul = { class: "ant-select-selection-item-content" }, Xl = ["innerHTML"], jl = Ae({
24
25
  inheritAttrs: !1,
25
26
  components: {
26
- VNodes: (M, { attrs: L }) => L.vnodes
27
+ VNodes: (V, { attrs: F }) => F.vnodes
27
28
  }
28
- }), Rl = /* @__PURE__ */ _e({
29
- ...El,
29
+ }), Gl = /* @__PURE__ */ Ae({
30
+ ...jl,
30
31
  __name: "Select",
31
32
  props: {
32
33
  modelValue: { default: void 0 },
@@ -62,359 +63,376 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
62
63
  dropdownMode: {}
63
64
  },
64
65
  emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
65
- setup(M, { expose: L, emit: F }) {
66
- il((e) => ({
67
- "431c7aa2": Pe.value,
68
- "06a3dfcb": Ae.value
66
+ setup(V, { expose: F, emit: A }) {
67
+ ml((e) => ({
68
+ "0c9f33b7": Ze.value,
69
+ "6d784956": Ue.value
69
70
  }));
70
- const l = M, w = F, s = Il(l, "modelValue"), ee = d(() => {
71
+ const l = V, w = A, s = $l(l, "modelValue"), ae = i(() => {
71
72
  var e;
72
73
  return `<span class='key'>${((e = s.value) == null ? void 0 : e.length) ?? 0}</span>`;
73
- }), y = r(!1), Be = d(() => l.placeholder || P("请选择")), $e = d(() => A.value ? A.value.querySelector(".ant-select-selector") : null), fe = r(null), pe = d(() => l.dropdownMode ?? l.mode ?? ""), D = r(null), Le = r(null), O = r(""), Fe = () => {
74
- D.value = !0;
75
- }, De = () => {
76
- D.value = null;
74
+ }), D = n(null), ye = n(null), g = n(!1), X = i(() => l.isView ? l.noSetDefaultVal ? "" : "-" : l.placeholder || H("请选择")), Oe = i(() => D.value ? D.value.querySelector(".ant-select-selector") : null), W = n(0), O = n(0), Pe = i(() => l.isTooltip && z.value ? !1 : !l.isTooltip || N.value || !Ve.value || !re.value), Re = i(() => (Array.isArray(s.value) ? s.value.length : s.value) ? Ve.value : X.value), ge = () => {
75
+ const e = l.size === "table" ? 12 : 14;
76
+ return Bl(X.value, e);
77
+ }, xe = () => {
78
+ const e = D.value.querySelector(".ant-select-selection-placeholder");
79
+ let t = (e == null ? void 0 : e.offsetWidth) ?? 0;
80
+ if (t === 0) return t;
81
+ const a = window.getComputedStyle(e, null), o = parseFloat(a.paddingRight), v = parseFloat(a.paddingLeft);
82
+ return t - o - v;
83
+ }, z = n(!1);
84
+ Z(() => [X.value, s.value], () => {
85
+ T(() => {
86
+ O.value = xe(), W.value = ge(), ((Array.isArray(s.value) ? s.value.length : s.value) || O.value === W.value || W.value - O.value < 1) && (z.value = !1);
87
+ });
88
+ }), Z(
89
+ () => {
90
+ var e;
91
+ return (e = ye.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
92
+ },
93
+ (e) => {
94
+ e && (e.addEventListener("mouseenter", function() {
95
+ z.value = !0, E.value && clearTimeout(E.value);
96
+ }), e.addEventListener("mouseleave", function() {
97
+ E.value = setTimeout(() => {
98
+ z.value = !1;
99
+ }, 200);
100
+ }));
101
+ }
102
+ );
103
+ const Ce = n(null), we = i(() => l.dropdownMode ?? l.mode ?? ""), P = n(null), Ee = n(null), R = n(""), He = () => {
104
+ P.value = !0;
105
+ }, qe = () => {
106
+ P.value = null;
77
107
  };
78
- let z = null;
79
- const me = () => {
80
- if (!O.value) return;
81
- z && z();
108
+ let M = null;
109
+ const Te = () => {
110
+ if (!R.value) return;
111
+ M && M();
82
112
  let e = l.options.length;
83
- w("addCustomItem", O.value), O.value = "", z = ce(
113
+ w("addCustomItem", R.value), R.value = "", M = Z(
84
114
  () => l.options,
85
- (o) => {
86
- o.length !== e && (l.mode === "combobox" ? k(() => {
87
- g.value.focus(), z && z();
88
- }) : (g.value.focus(), z && z()));
115
+ (t) => {
116
+ t.length !== e && (l.mode === "combobox" ? T(() => {
117
+ b.value.focus(), M && M();
118
+ }) : (b.value.focus(), M && M()));
89
119
  },
90
120
  { deep: !0 }
91
121
  );
92
- }, he = ul(), le = () => {
93
- l.mode === "combobox" && l.dropdownMode === "custom" && !he.dropdownRender && (D.value = !1, k(() => {
94
- D.value = null;
122
+ }, ke = hl(), se = () => {
123
+ l.mode === "combobox" && l.dropdownMode === "custom" && !ke.dropdownRender && (P.value = !1, T(() => {
124
+ P.value = null;
95
125
  }));
96
126
  };
97
- ue(() => {
98
- document.addEventListener("click", le);
99
- }), we(() => {
100
- document.removeEventListener("click", le);
127
+ fe(() => {
128
+ document.addEventListener("click", se);
129
+ }), Le(() => {
130
+ document.removeEventListener("click", se);
101
131
  });
102
- const g = r(), be = r(), H = r(!1), oe = d(() => D.value !== null ? D.value : l.open === void 0 ? l.mode === "combobox" ? void 0 : H.value : l.open), _ = 1e6, i = r(100), c = r(100), N = r(!1), te = r(!0), ae = r(!1);
103
- de(() => {
104
- s.value && l.mode == "combobox" && (te.value = !0, setTimeout(() => {
105
- var o;
106
- let e = (o = g.value) == null ? void 0 : o.$el.querySelectorAll(".ant-select-selection-item");
132
+ const b = n(), Ie = n(), j = n(!1), ne = i(() => P.value !== null ? P.value : l.open === void 0 ? l.mode === "combobox" ? void 0 : j.value : l.open), L = 1e6, u = n(100), c = n(100), N = n(!1), re = n(!0), ue = n(!1);
133
+ pe(() => {
134
+ s.value && l.mode == "combobox" && (re.value = !0, setTimeout(() => {
135
+ var t;
136
+ let e = (t = b.value) == null ? void 0 : t.$el.querySelectorAll(".ant-select-selection-item");
107
137
  if (e && e.length > 0)
108
138
  for (let a = 0; a < e.length; a++) {
109
- let t = e[a];
110
- t.scrollWidth <= t.offsetWidth && (te.value = !1), t.title = "";
139
+ let o = e[a];
140
+ o.scrollWidth <= o.offsetWidth && (re.value = !1), o.title = "";
111
141
  }
112
142
  }, 300));
113
- }), de(() => {
114
- l.options && (be.value = l.options.map((e) => (e.title = e.title ? e.title : "", e)));
143
+ }), pe(() => {
144
+ l.options && (Ie.value = l.options.map((e) => (e.title = e.title ? e.title : "", e)));
115
145
  });
116
- const Oe = () => {
146
+ const Ke = () => {
117
147
  setTimeout(async () => {
118
- i.value = 100, await B(), i.value = c.value, y.value = !0;
148
+ u.value = 100, await $(), u.value = c.value, g.value = !0;
119
149
  }, 100);
120
150
  };
121
- de(() => {
122
- ae.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (ae.value = !1, Oe());
123
- }), ue(() => {
124
- ae.value = !0, l.focusOpen || (c.value = 1, i.value = c.value, y.value = !0);
151
+ pe(() => {
152
+ ue.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (ue.value = !1, Ke());
153
+ }), fe(() => {
154
+ ue.value = !0, l.focusOpen || (c.value = 1, u.value = c.value, g.value = !0);
125
155
  });
126
- const Pe = d(() => l.width ? l.width : "230px"), Ae = d(() => l.height ? l.height : "auto"), ge = r(3e3), We = d(() => ({
127
- "z-index": ge.value
128
- })), ye = d(() => {
129
- var o;
156
+ const Ze = i(() => l.width ? l.width : "230px"), Ue = i(() => l.height ? l.height : "auto"), Se = n(3e3), Xe = i(() => ({
157
+ "z-index": Se.value
158
+ })), Ve = i(() => {
159
+ var t;
130
160
  let e = [];
131
161
  if (l.mode != "combobox" && Array.isArray(s.value))
132
162
  s.value.map((a) => {
133
- var h;
134
- let t = (h = l.options) == null ? void 0 : h.find((v) => v[V.value] == a);
135
- t && e.push(t[q.value]);
163
+ var v;
164
+ let o = (v = l.options) == null ? void 0 : v.find((f) => f[_.value] == a);
165
+ o && e.push(o[G.value]);
136
166
  });
137
167
  else if (l.mode == "combobox" && s.value) {
138
- let a = (o = l.options) == null ? void 0 : o.find((t) => t[V.value] == s.value);
139
- a && e.push(a[q.value]);
168
+ let a = (t = l.options) == null ? void 0 : t.find((o) => o[_.value] == s.value);
169
+ a && e.push(a[G.value]);
140
170
  }
141
171
  return e.join("、");
142
- }), Ee = d(() => l.isView ? l.noSetDefaultVal ? "" : "-" : Be.value), Re = d(() => {
143
- var e, o;
144
- return l.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) == ((o = l.options) == null ? void 0 : o.length));
145
- }), He = d(() => {
146
- var e, o, a;
147
- return l.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) > 0 && ((o = s.value) == null ? void 0 : o.length) < ((a = l.options) == null ? void 0 : a.length));
148
- }), qe = d(() => {
149
- var e, o;
150
- return l.optionFilterProp ? l.optionFilterProp : (e = l.fieldNames) != null && e.label ? (o = l.fieldNames) == null ? void 0 : o.label : "label";
151
- }), q = d(() => {
172
+ }), je = i(() => {
173
+ var e, t;
174
+ return l.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) == ((t = l.options) == null ? void 0 : t.length));
175
+ }), Ge = i(() => {
176
+ var e, t, a;
177
+ return l.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) > 0 && ((t = s.value) == null ? void 0 : t.length) < ((a = l.options) == null ? void 0 : a.length));
178
+ }), Je = i(() => {
179
+ var e, t;
180
+ return l.optionFilterProp ? l.optionFilterProp : (e = l.fieldNames) != null && e.label ? (t = l.fieldNames) == null ? void 0 : t.label : "label";
181
+ }), G = i(() => {
152
182
  var e;
153
183
  return l.fieldNames && l.fieldNames.label ? (e = l.fieldNames) == null ? void 0 : e.label : "label";
154
- }), V = d(() => {
184
+ }), _ = i(() => {
155
185
  var e;
156
186
  return l.fieldNames && l.fieldNames.value ? (e = l.fieldNames) == null ? void 0 : e.value : "value";
157
- }), Ke = d(() => ({
187
+ }), Qe = i(() => ({
158
188
  width: typeof l.width == "number" ? l.width + "px" : l.width
159
- })), se = r(!1), K = r({
189
+ })), ie = n(!1), J = n({
160
190
  x: 0,
161
191
  y: 0
162
- }), xe = r(0), Ce = d(() => ({
192
+ }), ze = n(0), Me = i(() => ({
163
193
  "font-size": "12px",
164
- "background-color": Se("--das-ui-input-number-overlay-error-bg-color").value,
194
+ "background-color": $e("--das-ui-color-overlay-error").value,
165
195
  "box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
166
196
  "border-radius": "1px",
167
197
  padding: "4px 8px",
168
198
  "box-sizing": "border-box",
169
199
  "z-index": l.errorModelZIndex
170
- })), Ze = d(() => ({
171
- ...Ce.value,
172
- width: xe.value + "px",
200
+ })), Ye = i(() => ({
201
+ ...Me.value,
202
+ width: ze.value + "px",
173
203
  position: "fixed",
174
204
  visibility: "visible",
175
- top: K.value.y + "px",
176
- left: K.value.x + "px"
177
- })), re = r({
205
+ top: J.value.y + "px",
206
+ left: J.value.x + "px"
207
+ })), de = n({
178
208
  display: "block",
179
- color: Se("--das-ui-input-error-color").value,
209
+ color: $e("--das-ui-input-error-color").value,
180
210
  "white-space": "break-spaces"
181
- // 'word-break': 'break-all',
182
- }), Ue = () => {
183
- var t, h, v, $, E, f;
184
- const { top: e = 0, left: o = 0 } = ((h = (t = g.value) == null ? void 0 : t.$el) == null ? void 0 : h.getBoundingClientRect()) ?? {}, a = ($ = (v = g.value) == null ? void 0 : v.$el) == null ? void 0 : $.clientHeight;
185
- xe.value = (f = (E = g.value) == null ? void 0 : E.$el) == null ? void 0 : f.clientWidth, K.value.x = o, K.value.y = e + a;
186
- }, Xe = () => {
187
- Ue(), se.value = !0;
188
- }, je = () => {
189
- se.value = !1;
190
- }, Ge = (e, o) => {
191
- e ? Xe() : je();
192
- }, Je = (e) => {
193
- e && (ge.value = kl().nextZIndex(), O.value = ""), l.mode == "combobox" && (Z.value = e, e || setTimeout(() => {
194
- var o, a;
195
- (a = (o = g.value) == null ? void 0 : o.blur) == null || a.call(o);
211
+ }), el = () => {
212
+ var o, v, f, B, K, p;
213
+ const { top: e = 0, left: t = 0 } = ((v = (o = b.value) == null ? void 0 : o.$el) == null ? void 0 : v.getBoundingClientRect()) ?? {}, a = (B = (f = b.value) == null ? void 0 : f.$el) == null ? void 0 : B.clientHeight;
214
+ ze.value = (p = (K = b.value) == null ? void 0 : K.$el) == null ? void 0 : p.clientWidth, J.value.x = t, J.value.y = e + a;
215
+ }, E = n(), ll = () => {
216
+ O.value = xe(), W.value = ge(), (Array.isArray(s.value) ? s.value.length : s.value) || O.value === W.value || W.value - O.value < 1 ? z.value = !1 : (z.value = !0, E.value && clearTimeout(E.value)), el(), ie.value = !0;
217
+ }, tl = () => {
218
+ E.value = setTimeout(() => {
219
+ z.value = !1;
220
+ }, 200), ie.value = !1;
221
+ }, ol = (e, t) => {
222
+ e ? ll() : tl();
223
+ }, al = (e) => {
224
+ e && (Se.value = Nl().nextZIndex(), R.value = ""), l.mode == "combobox" && (Q.value = e, e || setTimeout(() => {
225
+ var t, a;
226
+ (a = (t = b.value) == null ? void 0 : t.blur) == null || a.call(t);
196
227
  })), w("dropdownVisibleChange", e);
197
- }, Qe = (e) => {
198
- let o = e.toString();
199
- return o.length > l.maxTagTextLength && (o = o.substr(0, l.maxTagTextLength) + "..."), o;
200
- }, A = r(), Ye = (e) => l.isRenderNode ? A.value : l.getPopupContainer === void 0 ? document.body : l.getPopupContainer(e), el = (e) => {
228
+ }, sl = (e) => {
229
+ let t = e.toString();
230
+ return t.length > l.maxTagTextLength && (t = t.substr(0, l.maxTagTextLength) + "..."), t;
231
+ }, nl = (e) => l.isRenderNode ? D.value : l.getPopupContainer === void 0 ? document.body : l.getPopupContainer(e), rl = (e) => {
201
232
  if (e) {
202
233
  Array.isArray(s.value) || (s.value = []);
203
- let o = s.value, a = [];
204
- l.options.forEach((t) => {
205
- !s.value.includes(t[V.value]) && !t.disabled && (o.push(t[V.value]), a.push(t));
206
- }), s.value = o, ie(s.value, a);
234
+ let t = s.value, a = [];
235
+ l.options.forEach((o) => {
236
+ !s.value.includes(o[_.value]) && !o.disabled && (t.push(o[_.value]), a.push(o));
237
+ }), s.value = t, ve(s.value, a);
207
238
  } else {
208
- let o = s.value;
209
- s.value = o.filter((a) => !!l.options.find((t) => t[V.value] === a).disabled), ie(s.value, []);
239
+ let t = s.value;
240
+ s.value = t.filter((a) => !!l.options.find((o) => o[_.value] === a).disabled), ve(s.value, []);
210
241
  }
211
- }, ll = (e) => {
242
+ }, ul = (e) => {
212
243
  if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
213
244
  return e.children[0];
214
- }, ol = (e) => {
245
+ }, il = (e) => {
215
246
  if (l.mode == "combobox") {
216
247
  w("focus", e);
217
248
  return;
218
249
  }
219
- H.value = !0, l.focusOpen && !l.isExterControlCount && (i.value = _, y.value = !1), w("focus", e);
220
- }, Z = r(!1), tl = () => {
221
- var e, o;
250
+ j.value = !0, l.focusOpen && !l.isExterControlCount && (u.value = L, g.value = !1), w("focus", e);
251
+ }, Q = n(!1), dl = () => {
252
+ var e, t;
222
253
  if (l.mode == "combobox") {
223
- Z.value || setTimeout(() => {
224
- var a, t;
225
- (t = (a = g.value) == null ? void 0 : a.blur) == null || t.call(a);
254
+ Q.value || setTimeout(() => {
255
+ var a, o;
256
+ (o = (a = b.value) == null ? void 0 : a.blur) == null || o.call(a);
226
257
  });
227
258
  return;
228
259
  }
229
- (o = (e = g.value) == null ? void 0 : e.blur) == null || o.call(e), k(() => {
230
- var a, t;
231
- (t = (a = g.value) == null ? void 0 : a.focus) == null || t.call(a);
260
+ (t = (e = b.value) == null ? void 0 : e.blur) == null || t.call(e), T(() => {
261
+ var a, o;
262
+ (o = (a = b.value) == null ? void 0 : a.focus) == null || o.call(a);
232
263
  });
233
- }, al = (e) => {
264
+ }, cl = (e) => {
234
265
  if (l.mode == "combobox") {
235
- k(() => {
236
- Z.value = !1;
266
+ T(() => {
267
+ Q.value = !1;
237
268
  }), w("blur", e);
238
269
  return;
239
270
  }
240
- H.value = !1, l.focusOpen && !l.isExterControlCount && (B(), i.value = c.value, y.value = !0), w("blur", e);
241
- }, sl = (e) => {
242
- e.onClose(), i.value = 100, k(() => {
243
- l.mode !== "combobox" && oe.value || l.focusOpen && (B(), i.value = c.value, y.value = !0);
271
+ j.value = !1, l.focusOpen && !l.isExterControlCount && ($(), u.value = c.value, g.value = !0), w("blur", e);
272
+ }, vl = (e) => {
273
+ e.onClose(), u.value = 100, T(() => {
274
+ l.mode !== "combobox" && ne.value || l.focusOpen && ($(), u.value = c.value, g.value = !0);
244
275
  });
245
276
  };
246
- ce(
277
+ Z(
247
278
  () => l.disabled || l.isView,
248
279
  (e) => {
249
- e && l.mode !== "combobox" && (H.value = !1);
280
+ e && l.mode !== "combobox" && (j.value = !1);
250
281
  }
251
282
  );
252
- let W = r(!1);
253
- const rl = (e) => {
254
- W.value = e, N.value = !0, k(() => {
255
- N.value = !1, l.focusOpen && (B(), i.value = e ? _ : c.value, y.value = !e);
283
+ let q = n(!1);
284
+ const fl = (e) => {
285
+ q.value = e, N.value = !0, T(() => {
286
+ N.value = !1, l.focusOpen && ($(), u.value = e ? L : c.value, g.value = !e);
256
287
  });
257
288
  };
258
- let U = null;
259
- ue(() => {
260
- U = new IntersectionObserver((e) => {
261
- e && e[0] && e[0].intersectionRatio > 0 && l.focusOpen && i.value === 0 && (i.value = 100, k(() => {
262
- B(), i.value = c.value, y.value = !0;
289
+ let Y = null;
290
+ fe(() => {
291
+ Y = new IntersectionObserver((e) => {
292
+ e && e[0] && e[0].intersectionRatio > 0 && l.focusOpen && u.value === 0 && (u.value = 100, T(() => {
293
+ $(), u.value = c.value, g.value = !0;
263
294
  }));
264
- }), U.observe(A.value);
265
- }), we(() => {
266
- U && U.disconnect();
295
+ }), Y.observe(D.value);
296
+ }), Le(() => {
297
+ Y && Y.disconnect();
267
298
  });
268
- const B = () => {
269
- var E;
270
- let e = (E = g.value) == null ? void 0 : E.$el;
299
+ const $ = () => {
300
+ var K;
301
+ let e = (K = b.value) == null ? void 0 : K.$el;
271
302
  if (!e) return;
272
- let o = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
273
- if (!o) return;
274
- let a = o.offsetWidth - 5;
303
+ let t = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
304
+ if (!t) return;
305
+ let a = t.offsetWidth - 5;
275
306
  l.borderType === "underline" && (a -= 10);
276
- const h = Math.ceil(fe.value.querySelector(".ant-tag").offsetWidth) + 4;
277
- let v = e.querySelectorAll(".ant-select-selection-overflow-item");
278
- if (v.length < 1) return;
279
- i.value = _;
280
- let $ = 0;
281
- for (let f = 0; f < v.length - 1 && !v[f].classList.contains("ant-select-selection-overflow-item-rest"); f++)
282
- if ($ += Math.ceil(v[f].offsetWidth), $ <= a - h)
283
- f >= s.value.length - 1 && $ < a ? c.value = s.value.length : c.value = f + 1;
307
+ const v = Math.ceil(Ce.value.querySelector(".ant-tag").offsetWidth) + 4;
308
+ let f = e.querySelectorAll(".ant-select-selection-overflow-item");
309
+ if (f.length < 1) return;
310
+ u.value = L;
311
+ let B = 0;
312
+ for (let p = 0; p < f.length - 1 && !f[p].classList.contains("ant-select-selection-overflow-item-rest"); p++)
313
+ if (B += Math.ceil(f[p].offsetWidth), B <= a - v)
314
+ p >= s.value.length - 1 && B < a ? c.value = s.value.length : c.value = p + 1;
284
315
  else {
285
- f >= s.value.length - 1 && $ < a ? c.value = s.value.length : c.value = f;
316
+ p >= s.value.length - 1 && B < a ? c.value = s.value.length : c.value = p;
286
317
  break;
287
318
  }
288
319
  if (c.value === 0) {
289
- let f = v[0], nl = f.querySelector(".anticon-close") ? 86 : 69;
290
- f && !f.classList.contains("ant-select-selection-overflow-item-rest") && nl <= a - h && !he.tagRender && (c.value = 1, f.classList.add("ellipsis"));
320
+ let p = f[0], pl = p.querySelector(".anticon-close") ? 86 : 69;
321
+ p && !p.classList.contains("ant-select-selection-overflow-item-rest") && pl <= a - v && !ke.tagRender && (c.value = 1, p.classList.add("ellipsis"));
291
322
  }
292
- }, ne = r(!1);
293
- ce(
323
+ }, ce = n(!1);
324
+ Z(
294
325
  () => s.value,
295
326
  async () => {
296
- if (ne.value) {
297
- ne.value = !1;
327
+ if (ce.value) {
328
+ ce.value = !1;
298
329
  return;
299
330
  }
300
- l.mode !== "combobox" && oe.value || (N.value = !0, i.value = _, await k(), await B(), N.value = !1, l.isExterControlCount && l.focusOpen ? (i.value = W.value ? _ : c.value, y.value = !W.value) : (i.value = c.value, y.value = !0));
331
+ l.mode !== "combobox" && ne.value || (N.value = !0, u.value = L, await T(), await $(), N.value = !1, l.isExterControlCount && l.focusOpen ? (u.value = q.value ? L : c.value, g.value = !q.value) : (u.value = c.value, g.value = !0));
301
332
  }
302
333
  );
303
- const ie = async (e, o) => {
304
- ne.value = !0, l.mode === "combobox" && (le(), Z.value = !1);
334
+ const ve = async (e, t) => {
335
+ ce.value = !0, l.mode === "combobox" && (se(), Q.value = !1);
305
336
  const a = e;
306
- l.noDropdown && l.maxTagsLength < a.length && a.pop(), N.value = !0, w("update:model-value", a), w("change", a, o), i.value = _, await k(), await B(), N.value = !1, l.isExterControlCount && l.focusOpen && (i.value = W.value ? _ : c.value, y.value = !W.value), l.focusOpen || (i.value = c.value);
337
+ l.noDropdown && l.maxTagsLength < a.length && a.pop(), N.value = !0, w("update:model-value", a), w("change", a, t), u.value = L, await T(), await $(), N.value = !1, l.isExterControlCount && l.focusOpen && (u.value = q.value ? L : c.value, g.value = !q.value), l.focusOpen || (u.value = c.value);
307
338
  };
308
- return L({
309
- $select: g,
310
- toChangeMaxCount: rl
311
- }), (e, o) => {
312
- const a = dl("v-nodes");
313
- return u(), b(
339
+ return F({
340
+ $select: b,
341
+ toChangeMaxCount: fl
342
+ }), (e, t) => {
343
+ const a = bl("v-nodes");
344
+ return d(), y(
314
345
  "div",
315
346
  {
316
- class: cl(["das-ui-select", [
347
+ class: yl(["das-ui-select", [
317
348
  l.borderType,
318
349
  l.isView ? "readonly" : "",
319
350
  l.error ? "is-error" : "",
320
- y.value ? "show-ellipsis" : ""
351
+ g.value ? "show-ellipsis" : ""
321
352
  ]]),
322
353
  ref_key: "$selectBox",
323
- ref: A,
324
- style: T(Ke.value)
354
+ ref: D,
355
+ style: k(Qe.value)
325
356
  },
326
357
  [
327
- x(n(bl), {
358
+ x(r(Il), {
359
+ ref_key: "inputTooltipRef",
360
+ ref: ye,
328
361
  placement: "top",
329
- trigger: "hover",
330
362
  "virtual-triggering": "",
331
- "virtual-ref": $e.value,
332
- disabled: !e.isTooltip || N.value || !ye.value || !te.value
333
- }, {
334
- content: p(() => [
335
- X((u(), b("div", Ml, [
336
- j(
337
- I(ye.value),
338
- 1
339
- /* TEXT */
340
- )
341
- ])), [
342
- [n(Te)]
343
- ])
344
- ]),
345
- _: 1
346
- /* STABLE */
347
- }, 8, ["virtual-ref", "disabled"]),
348
- X((u(), R(n(hl), Ne(e.$attrs, {
349
- value: n(s),
350
- "onUpdate:value": o[4] || (o[4] = (t) => vl(s) ? s.value = t : null),
363
+ "virtual-ref": Oe.value,
364
+ disabled: Pe.value,
365
+ content: Re.value
366
+ }, null, 8, ["virtual-ref", "disabled", "content"]),
367
+ me((d(), U(r(Tl), De({ mode: e.mode }, e.$attrs, {
368
+ value: r(s),
369
+ "onUpdate:value": t[4] || (t[4] = (o) => gl(s) ? s.value = o : null),
351
370
  ref_key: "$select",
352
- ref: g,
353
- options: be.value,
354
- mode: e.mode,
371
+ ref: b,
372
+ options: Ie.value,
355
373
  fieldNames: e.fieldNames,
356
374
  bordered: l.borderType === "bordered",
357
375
  disabled: l.disabled || l.isView,
358
376
  showArrow: !0,
359
- open: l.noDropdown ? !1 : oe.value,
360
- placeholder: Ee.value,
361
- optionFilterProp: qe.value,
377
+ open: l.noDropdown ? !1 : ne.value,
378
+ placeholder: X.value,
379
+ optionFilterProp: Je.value,
362
380
  size: l.size == "middle" ? "defalut" : l.size == "mini" ? "small" : l.size,
363
381
  style: l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {},
364
382
  dropdownClassName: "das-ui-select-dorpdown " + e.dropdownClassName,
365
- maxTagCount: i.value,
366
- getPopupContainer: Ye,
367
- dropdownStyle: We.value,
368
- onDropdownVisibleChange: Je,
369
- onChange: ie,
370
- onFocus: ol,
383
+ maxTagCount: u.value,
384
+ getPopupContainer: nl,
385
+ dropdownStyle: Xe.value,
386
+ onDropdownVisibleChange: al,
387
+ onChange: ve,
388
+ onFocus: il,
371
389
  onClick: [
372
- tl,
373
- o[5] || (o[5] = G(() => {
390
+ dl,
391
+ t[5] || (t[5] = ee(() => {
374
392
  }, ["stop"]))
375
393
  ],
376
- onBlur: al
377
- }), fl({
378
- option: p((t) => [
379
- C(e.$slots, "option", J(Q(t)), () => {
380
- var h;
394
+ onBlur: cl
395
+ }), xl({
396
+ option: h((o) => [
397
+ C(e.$slots, "option", le(te(o)), () => {
398
+ var v;
381
399
  return [
382
- t.children && typeof t.children == "function" ? (u(), R(a, {
400
+ o.children && typeof o.children == "function" ? (d(), U(a, {
383
401
  key: 0,
384
- vnodes: t.children()
385
- }, null, 8, ["vnodes"])) : (u(), b(
386
- Y,
402
+ vnodes: o.children()
403
+ }, null, 8, ["vnodes"])) : (d(), y(
404
+ oe,
387
405
  { key: 1 },
388
406
  [
389
- S(' :option="{value, label, [disabled, key, title]}" '),
390
- e.mode === "combobox" ? X((u(), b("div", zl, [
391
- j(
392
- I(t[q.value]),
407
+ I(' :option="{value, label, [disabled, key, title]}" '),
408
+ e.mode === "combobox" ? me((d(), y("div", Al, [
409
+ he(
410
+ S(o[G.value]),
393
411
  1
394
412
  /* TEXT */
395
413
  )
396
414
  ])), [
397
- [n(Ie)]
398
- ]) : (u(), b(
399
- Y,
415
+ [r(_e)]
416
+ ]) : (d(), y(
417
+ oe,
400
418
  { key: 1 },
401
419
  [
402
- S(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
403
- m("div", _l, [
404
- (u(), R(n(ke), {
420
+ I(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
421
+ m("div", Dl, [
422
+ (d(), U(r(Ne), {
405
423
  class: "das-select-checkbox",
406
- modelValue: (h = n(s)) == null ? void 0 : h.includes(t[V.value]),
407
- key: t[V.value],
408
- disabled: t.disabled
424
+ modelValue: (v = r(s)) == null ? void 0 : v.includes(o[_.value]),
425
+ key: o[_.value],
426
+ disabled: o.disabled
409
427
  }, null, 8, ["modelValue", "disabled"])),
410
- X((u(), b("div", Nl, [
411
- j(
412
- I(t[q.value]),
428
+ me((d(), y("div", Wl, [
429
+ he(
430
+ S(o[G.value]),
413
431
  1
414
432
  /* TEXT */
415
433
  )
416
434
  ])), [
417
- [n(Ie)]
435
+ [r(_e)]
418
436
  ])
419
437
  ])
420
438
  ],
@@ -428,21 +446,21 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
428
446
  ];
429
447
  }, !0)
430
448
  ]),
431
- tagRender: p((t) => [
432
- C(e.$slots, "tagRender", J(Q(t)), () => [
433
- x(n(ve), {
434
- closable: t.closable,
449
+ tagRender: h((o) => [
450
+ C(e.$slots, "tagRender", le(te(o)), () => [
451
+ x(r(be), {
452
+ closable: o.closable,
435
453
  style: { "margin-right": "3px", "background-color": "transparent" },
436
- onClose: (h) => sl(t)
454
+ onClose: (v) => vl(o)
437
455
  }, {
438
- default: p(() => [
456
+ default: h(() => [
439
457
  m(
440
458
  "span",
441
459
  {
442
460
  class: "tag-span",
443
- style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
461
+ style: k(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
444
462
  },
445
- I(Qe(t.label)),
463
+ S(sl(o.label)),
446
464
  5
447
465
  /* TEXT, STYLE */
448
466
  )
@@ -452,33 +470,33 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
452
470
  }, 1032, ["closable", "onClose"])
453
471
  ], !0)
454
472
  ]),
455
- dropdownRender: p(({ menuNode: t }) => [
456
- C(e.$slots, "dropdownRender", J(Q({ menuNode: t })), () => {
457
- var h;
473
+ dropdownRender: h(({ menuNode: o }) => [
474
+ C(e.$slots, "dropdownRender", le(te({ menuNode: o })), () => {
475
+ var v;
458
476
  return [
459
- pe.value === "combobox" ? (u(), b("div", Vl, [
460
- x(a, { vnodes: t }, null, 8, ["vnodes"])
461
- ])) : pe.value === "custom" ? (u(), b("div", {
477
+ we.value === "combobox" ? (d(), y("div", Ol, [
478
+ x(a, { vnodes: o }, null, 8, ["vnodes"])
479
+ ])) : we.value === "custom" ? (d(), y("div", {
462
480
  key: 1,
463
- onClick: o[2] || (o[2] = G(() => {
481
+ onClick: t[2] || (t[2] = ee(() => {
464
482
  }, ["stop"]))
465
483
  }, [
466
- x(a, { vnodes: t }, null, 8, ["vnodes"]),
484
+ x(a, { vnodes: o }, null, 8, ["vnodes"]),
467
485
  m(
468
486
  "div",
469
487
  {
470
488
  class: "customDropdown",
471
- onMousedown: o[1] || (o[1] = (v) => v.preventDefault())
489
+ onMousedown: t[1] || (t[1] = (f) => f.preventDefault())
472
490
  },
473
491
  [
474
- x(n(gl), {
492
+ x(r(Sl), {
475
493
  ref_key: "testInput",
476
- ref: Le,
477
- modelValue: O.value,
478
- "onUpdate:modelValue": o[0] || (o[0] = (v) => O.value = v),
479
- onKeyup: pl(me, ["enter"]),
480
- onFocus: G(Fe, ["stop"]),
481
- onBlur: G(De, ["stop"]),
494
+ ref: Ee,
495
+ modelValue: R.value,
496
+ "onUpdate:modelValue": t[0] || (t[0] = (f) => R.value = f),
497
+ onKeyup: Cl(Te, ["enter"]),
498
+ onFocus: ee(He, ["stop"]),
499
+ onBlur: ee(qe, ["stop"]),
482
500
  width: "100%",
483
501
  borderType: "bordered"
484
502
  }, null, 8, ["modelValue"]),
@@ -486,9 +504,9 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
486
504
  "div",
487
505
  {
488
506
  class: "addBtn",
489
- onClick: me
507
+ onClick: Te
490
508
  },
491
- I(n(P)("添加")),
509
+ S(r(H)("添加")),
492
510
  1
493
511
  /* TEXT */
494
512
  )
@@ -496,26 +514,26 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
496
514
  32
497
515
  /* NEED_HYDRATION */
498
516
  )
499
- ])) : (u(), b("div", Bl, [
500
- x(a, { vnodes: t }, null, 8, ["vnodes"]),
501
- (h = l.options) != null && h.length ? (u(), b(
517
+ ])) : (d(), y("div", Pl, [
518
+ x(a, { vnodes: o }, null, 8, ["vnodes"]),
519
+ (v = l.options) != null && v.length ? (d(), y(
502
520
  "div",
503
521
  {
504
522
  key: 0,
505
523
  class: "das-ui-select-dropdown-checkall",
506
- onMousedown: o[3] || (o[3] = (v) => v.preventDefault())
524
+ onMousedown: t[3] || (t[3] = (f) => f.preventDefault())
507
525
  },
508
526
  [
509
- m("div", $l, [
510
- x(n(ke), {
511
- modelValue: Re.value,
512
- indeterminate: He.value,
513
- onChange: el,
527
+ m("div", Rl, [
528
+ x(r(Ne), {
529
+ modelValue: je.value,
530
+ indeterminate: Ge.value,
531
+ onChange: rl,
514
532
  style: { display: "flex" }
515
533
  }, {
516
- default: p(() => [
517
- j(
518
- I(n(P)("全选")),
534
+ default: h(() => [
535
+ he(
536
+ S(r(H)("全选")),
519
537
  1
520
538
  /* TEXT */
521
539
  )
@@ -526,47 +544,47 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
526
544
  ]),
527
545
  m("span", {
528
546
  class: "das-ui-dropdown-has-checked",
529
- innerHTML: n(P)("das-ui-select-selectedItemsCountWithPlaceholder", ee.value)
530
- }, null, 8, Ll)
547
+ innerHTML: r(H)("das-ui-select-selectedItemsCountWithPlaceholder", ae.value)
548
+ }, null, 8, El)
531
549
  ],
532
550
  32
533
551
  /* NEED_HYDRATION */
534
- )) : S("v-if", !0)
552
+ )) : I("v-if", !0)
535
553
  ]))
536
554
  ];
537
555
  }, !0)
538
556
  ]),
539
- clearIcon: p(() => [
557
+ clearIcon: h(() => [
540
558
  C(e.$slots, "clearIcon", {}, () => [
541
- x(n(xl), { size: "medium" })
559
+ x(r(zl), { size: "medium" })
542
560
  ], !0)
543
561
  ]),
544
- maxTagPlaceholder: p((t) => [
545
- C(e.$slots, "maxTagPlaceholder", J(Q(t)), () => [
546
- S(" 隐藏tag时显示的内容 "),
547
- x(n(ve), {
548
- style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
562
+ maxTagPlaceholder: h((o) => [
563
+ C(e.$slots, "maxTagPlaceholder", le(te(o)), () => [
564
+ I(" 隐藏tag时显示的内容 "),
565
+ x(r(be), {
566
+ style: k(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
549
567
  }, {
550
- default: p(() => [
568
+ default: h(() => [
551
569
  m("span", {
552
- innerHTML: n(P)("das-ui-select-selectedItemsCountWithPlaceholder", ee.value)
553
- }, null, 8, Fl)
570
+ innerHTML: r(H)("das-ui-select-selectedItemsCountWithPlaceholder", ae.value)
571
+ }, null, 8, Hl)
554
572
  ]),
555
573
  _: 1
556
574
  /* STABLE */
557
575
  }, 8, ["style"]),
558
- S(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
576
+ I(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
559
577
  ], !0)
560
578
  ]),
561
- suffixIcon: p(() => [
579
+ suffixIcon: h(() => [
562
580
  C(e.$slots, "suffixIcon", {}, () => [
563
- x(n(yl), {
581
+ x(r(Vl), {
564
582
  class: "das-suffix-icon",
565
583
  size: "medium"
566
584
  })
567
585
  ], !0)
568
586
  ]),
569
- default: p(() => [
587
+ default: h(() => [
570
588
  C(e.$slots, "default", {}, void 0, !0)
571
589
  ]),
572
590
  _: 2
@@ -574,76 +592,76 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
574
592
  }, [
575
593
  e.$slots.menuItemSelectedIcon ? {
576
594
  name: "menuItemSelectedIcon",
577
- fn: p(() => [
595
+ fn: h(() => [
578
596
  C(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
579
597
  ]),
580
598
  key: "0"
581
599
  } : void 0,
582
600
  e.$slots.notFoundContent ? {
583
601
  name: "notFoundContent",
584
- fn: p(() => [
602
+ fn: h(() => [
585
603
  C(e.$slots, "notFoundContent", {}, void 0, !0)
586
604
  ]),
587
605
  key: "1"
588
606
  } : void 0,
589
607
  e.$slots.placeholder ? {
590
608
  name: "placeholder",
591
- fn: p(() => [
609
+ fn: h(() => [
592
610
  C(e.$slots, "placeholder", {}, void 0, !0)
593
611
  ]),
594
612
  key: "2"
595
613
  } : void 0,
596
614
  e.$slots.removeIcon ? {
597
615
  name: "removeIcon",
598
- fn: p(() => [
616
+ fn: h(() => [
599
617
  C(e.$slots, "removeIcon", {}, void 0, !0)
600
618
  ]),
601
619
  key: "3"
602
620
  } : void 0
603
- ]), 1040, ["value", "options", "mode", "fieldNames", "bordered", "disabled", "open", "placeholder", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
604
- [n(Te), { target: ll, x: !1 }],
605
- [n(Cl), Ge]
621
+ ]), 1040, ["mode", "value", "options", "fieldNames", "bordered", "disabled", "open", "placeholder", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
622
+ [r(kl), { target: ul, x: !1 }],
623
+ [r(Ml), ol]
606
624
  ]),
607
- S(` <div\r
625
+ I(` <div\r
608
626
  :class="[errorMode === 'default' ? 'das-select-error-label-content' : 'das-select-overlay-error-label-content', 'das-select-label-content']"\r
609
627
  v-if="(errorMode === 'default' || (errorMode === 'overlay' && isHoverInInput)) && error && !!errorLabel"\r
610
628
  >\r
611
629
  <span v-if="error" class="das-select-error-label label">{{ errorLabel }}</span>\r
612
630
  </div> `),
613
- e.error && e.errorLabel ? (u(), b(
614
- Y,
631
+ e.error && e.errorLabel ? (d(), y(
632
+ oe,
615
633
  { key: 0 },
616
634
  [
617
- e.errorMode === "default" ? (u(), b("div", Dl, [
635
+ e.errorMode === "default" ? (d(), y("div", ql, [
618
636
  m(
619
637
  "span",
620
638
  {
621
- style: T(re.value)
639
+ style: k(de.value)
622
640
  },
623
- I(e.errorLabel),
641
+ S(e.errorLabel),
624
642
  5
625
643
  /* TEXT, STYLE */
626
644
  )
627
- ])) : e.errorMode === "overlay" && se.value ? (u(), b(
628
- Y,
645
+ ])) : e.errorMode === "overlay" && ie.value ? (d(), y(
646
+ oe,
629
647
  { key: 1 },
630
648
  [
631
- e.teleported ? (u(), R(ml, {
649
+ e.teleported ? (d(), U(wl, {
632
650
  key: 0,
633
651
  to: "body"
634
652
  }, [
635
653
  m(
636
654
  "div",
637
655
  {
638
- style: T(Ze.value)
656
+ style: k(Ye.value)
639
657
  },
640
658
  [
641
659
  m(
642
660
  "span",
643
661
  {
644
- style: T(re.value)
662
+ style: k(de.value)
645
663
  },
646
- I(e.errorLabel),
664
+ S(e.errorLabel),
647
665
  5
648
666
  /* TEXT, STYLE */
649
667
  )
@@ -651,20 +669,20 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
651
669
  4
652
670
  /* STYLE */
653
671
  )
654
- ])) : (u(), b(
672
+ ])) : (d(), y(
655
673
  "div",
656
674
  {
657
675
  key: 1,
658
- style: T(Ce.value),
676
+ style: k(Me.value),
659
677
  class: "das-select-error-label label"
660
678
  },
661
679
  [
662
680
  m(
663
681
  "span",
664
682
  {
665
- style: T(re.value)
683
+ style: k(de.value)
666
684
  },
667
- I(e.errorLabel),
685
+ S(e.errorLabel),
668
686
  5
669
687
  /* TEXT, STYLE */
670
688
  )
@@ -675,30 +693,30 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
675
693
  ],
676
694
  64
677
695
  /* STABLE_FRAGMENT */
678
- )) : S("v-if", !0)
696
+ )) : I("v-if", !0)
679
697
  ],
680
698
  64
681
699
  /* STABLE_FRAGMENT */
682
- )) : S("v-if", !0),
700
+ )) : I("v-if", !0),
683
701
  m(
684
702
  "div",
685
703
  {
686
704
  class: "ant-select-selection-overflow",
687
705
  ref_key: "virtualTotalCount",
688
- ref: fe,
706
+ ref: Ce,
689
707
  style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
690
708
  },
691
709
  [
692
- m("div", Ol, [
693
- m("div", Pl, [
694
- m("span", Al, [
695
- x(n(ve), {
696
- style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
710
+ m("div", Kl, [
711
+ m("div", Zl, [
712
+ m("span", Ul, [
713
+ x(r(be), {
714
+ style: k(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
697
715
  }, {
698
- default: p(() => [
716
+ default: h(() => [
699
717
  m("span", {
700
- innerHTML: n(P)("das-ui-select-selectedItemsCountWithPlaceholder", ee.value)
701
- }, null, 8, Wl)
718
+ innerHTML: r(H)("das-ui-select-selectedItemsCountWithPlaceholder", ae.value)
719
+ }, null, 8, Xl)
702
720
  ]),
703
721
  _: 1
704
722
  /* STABLE */
@@ -716,32 +734,32 @@ const Ml = { style: { "max-height": "200px", overflow: "hidden" } }, zl = { key:
716
734
  );
717
735
  };
718
736
  }
719
- }), Ve = (M, L) => {
720
- const F = M.__vccOpts || M;
721
- for (const [l, w] of L)
722
- F[l] = w;
723
- return F;
724
- }, Hl = /* @__PURE__ */ Ve(Rl, [["__scopeId", "data-v-dbe56523"]]), ql = {};
725
- function Kl(M, L) {
726
- const F = Sl;
727
- return u(), R(
728
- F,
729
- Ne({ class: "das-ui-select-option" }, M.$attrs),
737
+ }), We = (V, F) => {
738
+ const A = V.__vccOpts || V;
739
+ for (const [l, w] of F)
740
+ A[l] = w;
741
+ return A;
742
+ }, Jl = /* @__PURE__ */ We(Gl, [["__scopeId", "data-v-620dd382"]]), Ql = {};
743
+ function Yl(V, F) {
744
+ const A = Fl;
745
+ return d(), U(
746
+ A,
747
+ De({ class: "das-ui-select-option" }, V.$attrs),
730
748
  null,
731
749
  16
732
750
  /* FULL_PROPS */
733
751
  );
734
752
  }
735
- const Zl = /* @__PURE__ */ Ve(ql, [["render", Kl]]), Ul = {
753
+ const et = /* @__PURE__ */ We(Ql, [["render", Yl]]), lt = {
736
754
  "--das-ui-select-color-bg": "#FFFFFF",
737
755
  // 默认背景色
738
- "--das-ui-select-color-primary": Me("--das-ui-color-primary"),
756
+ "--das-ui-select-color-primary": Be("--das-ui-color-primary"),
739
757
  // 主题色
740
758
  "--das-ui-select-color-text": "#212121",
741
759
  // 主文本色
742
760
  "--das-ui-select-color-border": "#d9d9d9",
743
761
  // 边框基础色
744
- "--das-ui-select-color-underline": Me("--das-ui-color-help"),
762
+ "--das-ui-select-color-underline": Be("--das-ui-color-help"),
745
763
  // 下划线基础色
746
764
  "--das-ui-select-color-error": "#FB2323",
747
765
  // 错误边框色
@@ -779,7 +797,7 @@ const Zl = /* @__PURE__ */ Ve(ql, [["render", Kl]]), Ul = {
779
797
  // 多选框字体大小-lg
780
798
  "--das-ui-select-overlay-error-color": "#FB2323",
781
799
  "--das-ui-select-overlay-error-bg-color": "#FFDBE0"
782
- }, Xl = {
800
+ }, tt = {
783
801
  添加: { "zh-CN": "添加", en: "Add", _appCode: "framework" },
784
802
  全选: { "zh-CN": "全选", en: "Select All", _appCode: "framework" },
785
803
  已选: { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
@@ -789,11 +807,11 @@ const Zl = /* @__PURE__ */ Ve(ql, [["render", Kl]]), Ul = {
789
807
  _appCode: "framework"
790
808
  }
791
809
  };
792
- Tl(Xl);
793
- wl(Ul);
794
- const po = ze(Hl), mo = ze(Zl), ho = { name: "select 选择器" };
810
+ _l(tt);
811
+ Ll(lt);
812
+ const Tt = Fe(Jl), kt = Fe(et), It = { name: "select 选择器" };
795
813
  export {
796
- po as DasSelect,
797
- mo as DasSelectOption,
798
- ho as default
814
+ Tt as DasSelect,
815
+ kt as DasSelectOption,
816
+ It as default
799
817
  };