@das-fed/upf-ui 6.4.0-dev.210 → 6.4.0-dev.212

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