@das-fed/ui 6.4.0-dev.55.8 → 6.4.0-dev.55.9

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