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

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