@das-fed/upf-ui 6.4.0-dev.276 → 6.4.0-dev.278
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.
- package/front-end/i18n/front-end-page/dasui_en-US.js +7 -7
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +7 -7
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +7 -7
- package/package.json +3 -3
- package/packages/components/search-form/index.js +584 -588
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +176 -176
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/type.d.ts +4 -4
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Select as
|
|
4
|
-
import { DasCheckbox as
|
|
5
|
-
import { vScrollbar as
|
|
6
|
-
import { DasTooltip as
|
|
7
|
-
import { vDasTooltip as
|
|
8
|
-
import { DasInput as
|
|
9
|
-
import { DasIconXiala as
|
|
10
|
-
import { DasIconEmpty as
|
|
11
|
-
import { DasErrorOverlayModel as
|
|
12
|
-
import { vHoverInside as
|
|
13
|
-
import { t as M, currentLang as
|
|
14
|
-
import { useZIndex as
|
|
15
|
-
import { useModelValue as
|
|
16
|
-
import { calcTextWidth as
|
|
1
|
+
import { withInstall as ol } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
+
import { defineComponent as nl, useCssVars as Yl, useAttrs as et, computed as s, ref as i, watch as j, useSlots as lt, onMounted as Ae, onUnmounted as Ye, watchEffect as el, nextTick as k, resolveComponent as tt, openBlock as f, createElementBlock as y, normalizeClass as ot, normalizeStyle as X, withModifiers as ue, createBlock as K, unref as c, createCommentVNode as L, withDirectives as Te, mergeProps as Le, createSlots as nt, withCtx as m, renderSlot as w, normalizeProps as ie, guardReactiveProps as ce, Fragment as ke, createTextVNode as Ie, toDisplayString as Z, createElementVNode as b, createVNode as I, withKeys as at } from "vue";
|
|
3
|
+
import { Select as rt, Tag as Ve } from "ant-design-vue";
|
|
4
|
+
import { DasCheckbox as ll } from "@das-fed/upf-ui/packages/components/checkbox/index";
|
|
5
|
+
import { vScrollbar as st } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
6
|
+
import { DasTooltip as ut } from "@das-fed/upf-ui/packages/components/tooltip/index";
|
|
7
|
+
import { vDasTooltip as tl } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
8
|
+
import { DasInput as it } from "@das-fed/upf-ui/packages/components/input/index";
|
|
9
|
+
import { DasIconXiala as ct } from "@das-fed/upf-ui/packages/icons/xiala/index";
|
|
10
|
+
import { DasIconEmpty as dt } from "@das-fed/upf-ui/packages/icons/empty/index";
|
|
11
|
+
import { DasErrorOverlayModel as ft } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
|
|
12
|
+
import { vHoverInside as vt } from "@das-fed/upf-utils/directive";
|
|
13
|
+
import { t as M, currentLang as pt, setI18nRule as ht } from "@das-fed/upf-web/packages/i18n/index";
|
|
14
|
+
import { useZIndex as mt } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
|
|
15
|
+
import { useModelValue as gt } from "@das-fed/upf-utils/vue";
|
|
16
|
+
import { calcTextWidth as yt } from "@das-fed/upf-utils/common-tools";
|
|
17
17
|
import "ant-design-vue/es/select/style/css";
|
|
18
18
|
import "ant-design-vue/es/tag/style/css";
|
|
19
|
-
import { SelectOption as
|
|
19
|
+
import { SelectOption as bt } from "ant-design-vue/es"
|
|
20
20
|
import '@das-fed/upf-ui/packages/components/select/style.css';
|
|
21
21
|
;
|
|
22
|
-
const
|
|
22
|
+
const Ct = { key: 0 }, St = ["onClick"], wt = { style: { display: "inline-block" } }, xt = ["innerHTML"], At = { key: 0 }, Tt = { key: 2 }, kt = { style: { display: "inline-block" } }, It = ["innerHTML"], Vt = ["innerHTML"], Lt = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "das-select-error-label-content das-select-label-content"
|
|
25
|
-
},
|
|
25
|
+
}, Mt = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Ot = { class: "ant-select-selection-item" }, zt = { class: "ant-select-selection-item-content" }, Pt = ["innerHTML"], _t = nl({
|
|
26
26
|
inheritAttrs: !1,
|
|
27
27
|
components: {
|
|
28
28
|
VNodes: (p, { attrs: E }) => E.vnodes
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
31
|
-
...
|
|
30
|
+
}), Nt = /* @__PURE__ */ nl({
|
|
31
|
+
..._t,
|
|
32
32
|
__name: "Select",
|
|
33
33
|
props: {
|
|
34
34
|
modelValue: { default: void 0 },
|
|
@@ -73,27 +73,27 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
|
|
75
75
|
setup(p, { expose: E, emit: D }) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
Yl((e) => ({
|
|
77
|
+
b6494b16: Il.value,
|
|
78
|
+
v467e0b50: Vl.value
|
|
79
79
|
}));
|
|
80
|
-
const t = p, x = D, J =
|
|
80
|
+
const t = p, x = D, J = et(), Me = s(() => {
|
|
81
81
|
const e = {};
|
|
82
82
|
for (const l in J)
|
|
83
83
|
l === "size" || l === "formSize" || l === "onClick" || l.startsWith("onClick") || l === "filterOption" || l === "onSearch" || l === "onPopupScroll" || (e[l] = J[l]);
|
|
84
84
|
return e;
|
|
85
|
-
}), a =
|
|
85
|
+
}), a = gt(t, "modelValue"), Q = s(() => {
|
|
86
86
|
var e;
|
|
87
87
|
return `<span class='key'>${((e = a.value) == null ? void 0 : e.length) ?? 0}</span>`;
|
|
88
88
|
}), rl = s(() => {
|
|
89
89
|
const e = Array.isArray(a.value) ? a.value.length : a.value ? 1 : 0;
|
|
90
90
|
return M("das-ui-select-selectedItemsCountWithPlaceholder", e);
|
|
91
|
-
}),
|
|
91
|
+
}), $ = i(null), Oe = i(null), C = i(!1), Y = s(() => t.isView ? t.noSetDefaultVal ? "" : "-" : t.placeholder || M("请选择")), de = s(() => $.value ? $.value.querySelector(".ant-select-selector") : null), B = i(0), W = i(0), sl = s(() => de.value ? t.isTooltip && O.value ? !1 : !t.isTooltip || _.value || !Xe.value || !be.value : !0), ul = s(() => (Array.isArray(a.value) ? a.value.length : a.value) ? Xe.value : Y.value), ze = () => {
|
|
92
92
|
const e = t.size === "table" ? 12 : 14;
|
|
93
|
-
return
|
|
94
|
-
},
|
|
93
|
+
return yt(Y.value, e);
|
|
94
|
+
}, Pe = () => {
|
|
95
95
|
var T, U, h;
|
|
96
|
-
const e = (T =
|
|
96
|
+
const e = (T = $.value) == null ? void 0 : T.querySelector(".ant-select-selection-placeholder"), l = (h = (U = A.value) == null ? void 0 : U.$el) == null ? void 0 : h.querySelectorAll(".ant-select-selection-item");
|
|
97
97
|
l && l.length && l.forEach((xe) => xe.removeAttribute("title"));
|
|
98
98
|
let n = (e == null ? void 0 : e.offsetWidth) ?? 0;
|
|
99
99
|
if (n === 0) return n;
|
|
@@ -102,12 +102,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
102
102
|
}, O = i(!1);
|
|
103
103
|
j(() => [Y.value, a.value], () => {
|
|
104
104
|
k(() => {
|
|
105
|
-
W.value =
|
|
105
|
+
W.value = Pe(), B.value = ze(), ((Array.isArray(a.value) ? a.value.length : a.value) || W.value === B.value || B.value - W.value < 1) && (O.value = !1);
|
|
106
106
|
});
|
|
107
107
|
}), j(
|
|
108
108
|
() => {
|
|
109
109
|
var e;
|
|
110
|
-
return (e =
|
|
110
|
+
return (e = Oe.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
111
111
|
},
|
|
112
112
|
(e) => {
|
|
113
113
|
e && (e.addEventListener("mouseenter", function() {
|
|
@@ -119,31 +119,31 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
|
-
const
|
|
122
|
+
const _e = i(null), Ne = s(() => t.dropdownMode ?? t.mode ?? ""), R = i(null), il = i(null), F = i(""), cl = () => {
|
|
123
123
|
R.value = !0;
|
|
124
124
|
}, dl = () => {
|
|
125
125
|
R.value = null;
|
|
126
|
-
},
|
|
126
|
+
}, Ee = () => {
|
|
127
127
|
F.value && (x("addCustomItem", F.value), k(() => {
|
|
128
128
|
A.value.focus(), F.value = "";
|
|
129
129
|
}));
|
|
130
|
-
},
|
|
131
|
-
t.dropdownMode === "custom" && !
|
|
130
|
+
}, De = lt(), fe = () => {
|
|
131
|
+
t.dropdownMode === "custom" && !De.dropdownRender && (R.value = !1, k(() => {
|
|
132
132
|
R.value = null;
|
|
133
133
|
}));
|
|
134
134
|
};
|
|
135
135
|
Ae(() => {
|
|
136
136
|
document.addEventListener("click", fe);
|
|
137
|
-
}),
|
|
137
|
+
}), Ye(() => {
|
|
138
138
|
document.removeEventListener("click", fe);
|
|
139
139
|
});
|
|
140
|
-
const A = i(), H = i(""), ee = i(0),
|
|
140
|
+
const A = i(), H = i(""), ee = i(0), $e = `__DAS_SELECT_COLLAPSED_${Math.random().toString(36).slice(2)}__`, V = s(() => {
|
|
141
141
|
var e;
|
|
142
142
|
return t.fieldNames && t.fieldNames.label ? (e = t.fieldNames) == null ? void 0 : e.label : "label";
|
|
143
143
|
}), g = s(() => {
|
|
144
144
|
var e;
|
|
145
145
|
return t.fieldNames && t.fieldNames.value ? (e = t.fieldNames) == null ? void 0 : e.value : "value";
|
|
146
|
-
}), ve = i(/* @__PURE__ */ new Map()), fl = s(() => t.mode
|
|
146
|
+
}), ve = i(/* @__PURE__ */ new Map()), fl = s(() => t.mode), Be = {
|
|
147
147
|
large: "large",
|
|
148
148
|
middle: "middle",
|
|
149
149
|
default: "middle",
|
|
@@ -154,12 +154,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
154
154
|
large: "36px",
|
|
155
155
|
middle: "32px",
|
|
156
156
|
small: "24px"
|
|
157
|
-
}, pl = (e) => e && e in Be ? e : "middle", hl = s(() => pl(t.size)),
|
|
157
|
+
}, pl = (e) => e && e in Be ? e : "middle", hl = s(() => pl(t.size)), We = s(() => Be[hl.value]), ml = s(() => t.height ?? vl[We.value]), Re = s(() => {
|
|
158
158
|
const e = Number(t.optionPageSize);
|
|
159
159
|
return Number.isFinite(e) && e > 0 ? Math.floor(e) : 80;
|
|
160
|
-
}),
|
|
160
|
+
}), Fe = (e, l) => {
|
|
161
161
|
Array.isArray(e) && e.forEach((n) => {
|
|
162
|
-
l(n), Array.isArray(n == null ? void 0 : n.children) &&
|
|
162
|
+
l(n), Array.isArray(n == null ? void 0 : n.children) && Fe(n.children, l);
|
|
163
163
|
});
|
|
164
164
|
}, le = (e, l) => {
|
|
165
165
|
if (Array.isArray(e))
|
|
@@ -171,7 +171,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}, gl = (e) => {
|
|
174
|
-
|
|
174
|
+
Fe(e, (l) => {
|
|
175
175
|
l && l[g.value] != null && l[V.value] != null && ve.value.set(l[g.value], l[V.value]);
|
|
176
176
|
});
|
|
177
177
|
}, pe = (e) => {
|
|
@@ -193,10 +193,10 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
193
193
|
__dasGhostOption: !0
|
|
194
194
|
});
|
|
195
195
|
}), l.map((o) => (o.title = o.title ? o.title : "", o))) : l.map((o) => (o.title = o.title ? o.title : "", o));
|
|
196
|
-
}, bl = (e) => Array.isArray(e) ? e.some((l) => Array.isArray(l == null ? void 0 : l.children) && l.children.length > 0) : !1, te = s(() => !!t.optionPaging && Array.isArray(t.options) && !bl(t.options)),
|
|
196
|
+
}, bl = (e) => Array.isArray(e) ? e.some((l) => Array.isArray(l == null ? void 0 : l.children) && l.children.length > 0) : !1, te = s(() => !!t.optionPaging && Array.isArray(t.options) && !bl(t.options)), He = (e, ...l) => {
|
|
197
197
|
const n = J[e];
|
|
198
198
|
Array.isArray(n) ? n.forEach((o) => typeof o == "function" && o(...l)) : typeof n == "function" && n(...l);
|
|
199
|
-
},
|
|
199
|
+
}, qe = (e, l) => {
|
|
200
200
|
const n = e == null ? "" : String(e), o = J.filterOption;
|
|
201
201
|
if (typeof o == "function")
|
|
202
202
|
try {
|
|
@@ -205,23 +205,23 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
205
205
|
return !1;
|
|
206
206
|
}
|
|
207
207
|
if (o === !1) return !0;
|
|
208
|
-
const u =
|
|
208
|
+
const u = Je.value, r = (l == null ? void 0 : l[u]) ?? (l == null ? void 0 : l[V.value]) ?? (l == null ? void 0 : l[g.value]);
|
|
209
209
|
return String(r ?? "").toLowerCase().indexOf(n.toLowerCase()) >= 0;
|
|
210
210
|
}, he = s(() => {
|
|
211
211
|
if (!Array.isArray(t.options)) return;
|
|
212
212
|
const e = yl(t.options);
|
|
213
213
|
return Array.isArray(t.options) && gl(t.options), e;
|
|
214
|
-
}),
|
|
214
|
+
}), Ze = s(() => {
|
|
215
215
|
const e = he.value ?? [];
|
|
216
|
-
return !te.value || !H.value ? e : e.filter((l) =>
|
|
216
|
+
return !te.value || !H.value ? e : e.filter((l) => qe(H.value, l));
|
|
217
217
|
}), z = (e) => {
|
|
218
218
|
t.optionPagingDebug && k(() => {
|
|
219
219
|
});
|
|
220
|
-
}, oe = s(() => t.mode !== "combobox" && Array.isArray(a.value) ? a.value : a.value !== null && a.value !== void 0 && a.value !== "" ? [a.value] : []),
|
|
220
|
+
}, oe = s(() => t.mode !== "combobox" && Array.isArray(a.value) ? a.value : a.value !== null && a.value !== void 0 && a.value !== "" ? [a.value] : []), Ke = s(() => new Set(oe.value)), Cl = s(() => {
|
|
221
221
|
const e = Number(t.largeSelectionCollapseThreshold);
|
|
222
222
|
return Number.isFinite(e) && e >= 0 ? Math.floor(e) : 200;
|
|
223
|
-
}),
|
|
224
|
-
if (H.value ||
|
|
223
|
+
}), S = s(() => t.mode !== "combobox" && oe.value.length > Cl.value), Sl = s(() => S.value ? [$e] : a.value), Ge = s(() => Array.isArray(t.options) ? t.options.filter((e) => !(e != null && e.disabled)) : []), ne = s(() => Ge.value.map((e) => e == null ? void 0 : e[g.value])), me = s(() => ne.value.reduce((e, l) => Ke.value.has(l) ? e + 1 : e, 0)), wl = (e, l) => {
|
|
224
|
+
if (H.value || S.value || !oe.value.length) return e;
|
|
225
225
|
const n = new Set(e.map((u) => u == null ? void 0 : u[g.value])), o = [];
|
|
226
226
|
return oe.value.forEach((u) => {
|
|
227
227
|
if (n.has(u)) return;
|
|
@@ -230,26 +230,26 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
230
230
|
}), o.length ? o.concat(e) : e;
|
|
231
231
|
}, xl = s(() => {
|
|
232
232
|
if (!te.value) return he.value;
|
|
233
|
-
const e =
|
|
233
|
+
const e = Ze.value.slice(0, ee.value);
|
|
234
234
|
return wl(e, he.value ?? []);
|
|
235
|
-
}),
|
|
236
|
-
ee.value =
|
|
235
|
+
}), Ue = () => {
|
|
236
|
+
ee.value = Re.value, z();
|
|
237
237
|
}, Al = () => {
|
|
238
238
|
te.value && (ee.value = Math.min(
|
|
239
|
-
ee.value +
|
|
240
|
-
|
|
239
|
+
ee.value + Re.value,
|
|
240
|
+
Ze.value.length
|
|
241
241
|
), z());
|
|
242
242
|
};
|
|
243
243
|
j(
|
|
244
244
|
() => [t.options, t.optionPaging, t.optionPageSize, H.value, V.value, g.value],
|
|
245
|
-
|
|
245
|
+
Ue,
|
|
246
246
|
{ immediate: !0 }
|
|
247
247
|
);
|
|
248
248
|
const ge = i(!1), ye = s(() => {
|
|
249
249
|
if (R.value !== null) return R.value;
|
|
250
250
|
if (t.open !== void 0) return t.open;
|
|
251
|
-
}), P = 1e6, d = i(100), v = i(100), Tl = s(() =>
|
|
252
|
-
|
|
251
|
+
}), P = 1e6, d = i(100), v = i(100), Tl = s(() => S.value ? 0 : d.value), _ = i(!1), be = i(!0), Ce = i(!1);
|
|
252
|
+
el(() => {
|
|
253
253
|
a.value && t.mode == "combobox" && (be.value = !0, setTimeout(() => {
|
|
254
254
|
var l;
|
|
255
255
|
let e = (l = A.value) == null ? void 0 : l.$el.querySelectorAll(".ant-select-selection-item");
|
|
@@ -262,18 +262,18 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
262
262
|
});
|
|
263
263
|
const kl = () => {
|
|
264
264
|
setTimeout(async () => {
|
|
265
|
-
d.value = 100, await N(), d.value = v.value,
|
|
265
|
+
d.value = 100, await N(), d.value = v.value, C.value = !0;
|
|
266
266
|
}, 100);
|
|
267
267
|
};
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
el(() => {
|
|
269
|
+
Ce.value === !0 && t.mode != "combobox" && a.value && a.value.length > 0 && t.options.length > 0 && (Ce.value = !1, kl());
|
|
270
270
|
}), Ae(() => {
|
|
271
|
-
|
|
271
|
+
Ce.value = !0, t.focusOpen || (v.value = 1, d.value = v.value, C.value = !0);
|
|
272
272
|
});
|
|
273
|
-
const Il = s(() => t.width ? t.width : "230px"), Vl = s(() => t.height ? t.height : "auto"),
|
|
274
|
-
"z-index":
|
|
275
|
-
})),
|
|
276
|
-
if (
|
|
273
|
+
const Il = s(() => t.width ? t.width : "230px"), Vl = s(() => t.height ? t.height : "auto"), je = i(3e3), Ll = s(() => ({
|
|
274
|
+
"z-index": je.value
|
|
275
|
+
})), Xe = s(() => {
|
|
276
|
+
if (S.value)
|
|
277
277
|
return rl.value;
|
|
278
278
|
let e = [];
|
|
279
279
|
if (t.mode != "combobox" && Array.isArray(a.value))
|
|
@@ -285,47 +285,47 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
285
285
|
const l = pe(a.value);
|
|
286
286
|
l != null ? e.push(l) : a.value !== null && a.value !== void 0 && a.value !== "" && e.push(String(a.value));
|
|
287
287
|
}
|
|
288
|
-
return
|
|
289
|
-
}), Ml = s(() => t.mode === "combobox" ? !1 : ne.value.length > 0 && me.value === ne.value.length), Ol = s(() => t.mode === "combobox" ? !1 : me.value > 0 && me.value < ne.value.length),
|
|
288
|
+
return pt.value === "zh-CN" ? e.join("、") : e.join(", ");
|
|
289
|
+
}), Ml = s(() => t.mode === "combobox" ? !1 : ne.value.length > 0 && me.value === ne.value.length), Ol = s(() => t.mode === "combobox" ? !1 : me.value > 0 && me.value < ne.value.length), Je = s(() => {
|
|
290
290
|
var e, l;
|
|
291
291
|
return t.optionFilterProp ? t.optionFilterProp : (e = t.fieldNames) != null && e.label ? (l = t.fieldNames) == null ? void 0 : l.label : "label";
|
|
292
292
|
}), zl = s(() => ({
|
|
293
293
|
width: typeof t.width == "number" ? t.width + "px" : t.width,
|
|
294
294
|
"--das-select-resolved-height": ml.value
|
|
295
|
-
})),
|
|
295
|
+
})), Se = i(!1), Pl = i({
|
|
296
296
|
display: "block",
|
|
297
297
|
color: "var(--upf-color-error)",
|
|
298
298
|
"white-space": "break-spaces"
|
|
299
299
|
}), q = i(), _l = () => {
|
|
300
300
|
var n;
|
|
301
|
-
W.value =
|
|
301
|
+
W.value = Pe(), B.value = ze();
|
|
302
302
|
let e = (n = A.value) == null ? void 0 : n.$el.querySelectorAll(".ant-select-selection-item");
|
|
303
|
-
!!(Array.isArray(a.value) ? a.value.length : e != null && e.length) || W.value ===
|
|
303
|
+
!!(Array.isArray(a.value) ? a.value.length : e != null && e.length) || W.value === B.value || B.value - W.value < 1 ? O.value = !1 : (O.value = !0, q.value && clearTimeout(q.value)), Se.value = !0;
|
|
304
304
|
}, Nl = () => {
|
|
305
305
|
q.value = setTimeout(() => {
|
|
306
306
|
O.value = !1;
|
|
307
|
-
}, 200),
|
|
307
|
+
}, 200), Se.value = !1;
|
|
308
308
|
}, El = (e, l) => {
|
|
309
309
|
e ? _l() : Nl();
|
|
310
310
|
}, Dl = (e) => {
|
|
311
|
-
e ? (
|
|
311
|
+
e ? (je.value = mt().nextZIndex(), F.value = "", Ue(), z()) : (H.value = "", z()), ae.value = e, t.mode == "combobox" && (e || setTimeout(() => {
|
|
312
312
|
var l, n;
|
|
313
313
|
(n = (l = A.value) == null ? void 0 : l.blur) == null || n.call(l);
|
|
314
314
|
})), x("dropdownVisibleChange", e);
|
|
315
|
-
},
|
|
316
|
-
H.value = e ?? "", z(),
|
|
317
|
-
},
|
|
318
|
-
if (
|
|
315
|
+
}, $l = (e) => {
|
|
316
|
+
H.value = e ?? "", z(), He("onSearch", e);
|
|
317
|
+
}, Bl = s(() => typeof t.showSearch == "boolean" ? { ...Me.value, showSearch: t.showSearch } : Me.value), Wl = (e) => {
|
|
318
|
+
if (He("onPopupScroll", e), !te.value) return;
|
|
319
319
|
const l = e.target;
|
|
320
320
|
if (!l) return;
|
|
321
321
|
l.scrollHeight - l.scrollTop - l.clientHeight <= 24 && Al();
|
|
322
|
-
},
|
|
322
|
+
}, Rl = (e) => {
|
|
323
323
|
let l = e.toString();
|
|
324
324
|
return l.length > t.maxTagTextLength && (l = l.substr(0, t.maxTagTextLength) + "..."), l;
|
|
325
|
-
},
|
|
325
|
+
}, Fl = (e) => t.isRenderNode ? $.value : t.getPopupContainer === void 0 ? document.body : t.getPopupContainer(e), Hl = (e) => {
|
|
326
326
|
if (e) {
|
|
327
327
|
const l = new Set(Array.isArray(a.value) ? a.value : []), n = Array.isArray(a.value) ? a.value.slice() : [], o = [];
|
|
328
|
-
|
|
328
|
+
Ge.value.forEach((u) => {
|
|
329
329
|
const r = u[g.value];
|
|
330
330
|
l.has(r) || (l.add(r), n.push(r), o.push(u));
|
|
331
331
|
}), a.value = n, se(n, o, "inner");
|
|
@@ -333,43 +333,43 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
333
333
|
const l = Array.isArray(t.options) ? t.options : [], n = new Set(l.map((r) => r == null ? void 0 : r[g.value])), o = new Set(l.filter((r) => r == null ? void 0 : r.disabled).map((r) => r == null ? void 0 : r[g.value])), u = (Array.isArray(a.value) ? a.value : []).filter((r) => n.has(r) && o.has(r));
|
|
334
334
|
a.value = u, se(u, [], "inner");
|
|
335
335
|
}
|
|
336
|
-
},
|
|
336
|
+
}, ql = (e) => {
|
|
337
337
|
const l = Array.isArray(a.value) ? a.value.slice() : [], n = l.findIndex((o) => o === e);
|
|
338
338
|
return n > -1 ? l.splice(n, 1) : l.push(e), l;
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
if (!
|
|
339
|
+
}, Zl = (e) => {
|
|
340
|
+
S.value && (e.preventDefault(), e.stopPropagation());
|
|
341
|
+
}, Kl = (e, l) => {
|
|
342
|
+
if (!S.value || e != null && e.disabled) return;
|
|
343
343
|
l.preventDefault(), l.stopPropagation();
|
|
344
344
|
const n = e == null ? void 0 : e[g.value];
|
|
345
345
|
if (n === void 0) return;
|
|
346
|
-
const o =
|
|
346
|
+
const o = ql(n);
|
|
347
347
|
a.value = o, se(o, e, "inner");
|
|
348
|
-
},
|
|
348
|
+
}, Gl = (e) => {
|
|
349
349
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
350
350
|
return e.children[0];
|
|
351
|
-
},
|
|
351
|
+
}, Ul = (e) => {
|
|
352
352
|
if (t.mode == "combobox") {
|
|
353
353
|
x("focus", e);
|
|
354
354
|
return;
|
|
355
355
|
}
|
|
356
|
-
ge.value = !0, t.focusOpen && !t.isExterControlCount && (d.value = P,
|
|
357
|
-
}, ae = i(!1),
|
|
356
|
+
ge.value = !0, t.focusOpen && !t.isExterControlCount && (d.value = P, C.value = !1), x("focus", e);
|
|
357
|
+
}, ae = i(!1), jl = () => {
|
|
358
358
|
ae.value || setTimeout(() => {
|
|
359
359
|
var e, l;
|
|
360
360
|
(l = (e = A.value) == null ? void 0 : e.blur) == null || l.call(e);
|
|
361
361
|
}), t.mode != "combobox";
|
|
362
|
-
},
|
|
362
|
+
}, Qe = (e) => {
|
|
363
363
|
if (k(() => {
|
|
364
364
|
ae.value = !1;
|
|
365
365
|
}), t.mode == "combobox") {
|
|
366
366
|
x("blur", e);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
|
-
ge.value = !1, t.focusOpen && !t.isExterControlCount && (N(), d.value = v.value,
|
|
370
|
-
},
|
|
369
|
+
ge.value = !1, t.focusOpen && !t.isExterControlCount && (N(), d.value = v.value, C.value = !0), x("blur", e);
|
|
370
|
+
}, Xl = (e) => {
|
|
371
371
|
e.onClose(), d.value = 100, k(() => {
|
|
372
|
-
t.mode !== "combobox" && ye.value || t.focusOpen && (N(), d.value = v.value,
|
|
372
|
+
t.mode !== "combobox" && ye.value || t.focusOpen && (N(), d.value = v.value, C.value = !0);
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
375
|
j(
|
|
@@ -378,29 +378,29 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
378
378
|
if (e && t.mode !== "combobox") {
|
|
379
379
|
ge.value = !1;
|
|
380
380
|
let l = new Event("blur");
|
|
381
|
-
|
|
381
|
+
Qe(l);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
);
|
|
385
385
|
let G = i(!1);
|
|
386
|
-
const
|
|
386
|
+
const Jl = (e) => {
|
|
387
387
|
G.value = e, _.value = !0, k(() => {
|
|
388
|
-
_.value = !1, t.focusOpen && (N(), d.value = e ? P : v.value,
|
|
388
|
+
_.value = !1, t.focusOpen && (N(), d.value = e ? P : v.value, C.value = !e);
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
391
|
let re = null;
|
|
392
392
|
Ae(() => {
|
|
393
393
|
re = new IntersectionObserver((e) => {
|
|
394
394
|
e && e[0] && e[0].intersectionRatio > 0 && t.focusOpen && d.value === 0 && (d.value = 100, k(() => {
|
|
395
|
-
N(), d.value = v.value,
|
|
395
|
+
N(), d.value = v.value, C.value = !0;
|
|
396
396
|
}));
|
|
397
|
-
}), re.observe(
|
|
398
|
-
}),
|
|
397
|
+
}), re.observe($.value);
|
|
398
|
+
}), Ye(() => {
|
|
399
399
|
re && re.disconnect();
|
|
400
400
|
});
|
|
401
401
|
const N = () => {
|
|
402
402
|
var U;
|
|
403
|
-
if (
|
|
403
|
+
if (S.value) {
|
|
404
404
|
v.value = 0;
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
@@ -410,7 +410,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
410
410
|
if (!l) return;
|
|
411
411
|
let n = l.offsetWidth - 5;
|
|
412
412
|
t.borderType === "underline" && (n -= 10);
|
|
413
|
-
const u = Math.ceil(
|
|
413
|
+
const u = Math.ceil(_e.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
414
414
|
let r = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
415
415
|
if (r.length < 1) return;
|
|
416
416
|
d.value = P;
|
|
@@ -424,7 +424,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
424
424
|
}
|
|
425
425
|
if (v.value === 0) {
|
|
426
426
|
let h = r[0], xe = h.querySelector(".anticon-close") ? 86 : 69;
|
|
427
|
-
h && !h.classList.contains("ant-select-selection-overflow-item-rest") && xe <= n - u && !
|
|
427
|
+
h && !h.classList.contains("ant-select-selection-overflow-item-rest") && xe <= n - u && !De.tagRender && (v.value = 1, h.classList.add("ellipsis"));
|
|
428
428
|
}
|
|
429
429
|
}, we = i(!1);
|
|
430
430
|
j(
|
|
@@ -434,14 +434,14 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
434
434
|
we.value = !1;
|
|
435
435
|
return;
|
|
436
436
|
}
|
|
437
|
-
t.mode !== "combobox" && ye.value || (_.value = !0, d.value = P, await k(), await N(), _.value = !1, t.isExterControlCount && t.focusOpen ? (d.value = G.value ? P : v.value,
|
|
437
|
+
t.mode !== "combobox" && ye.value || (_.value = !0, d.value = P, await k(), await N(), _.value = !1, t.isExterControlCount && t.focusOpen ? (d.value = G.value ? P : v.value, C.value = !G.value) : (d.value = v.value, C.value = !0));
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
|
-
const
|
|
441
|
-
if (!
|
|
440
|
+
const Ql = (e) => {
|
|
441
|
+
if (!S.value || t.mode === "combobox") return e;
|
|
442
442
|
const l = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
443
443
|
if (!l.length) return [];
|
|
444
|
-
const n = Array.from(new Set(l.filter((u) => u !==
|
|
444
|
+
const n = Array.from(new Set(l.filter((u) => u !== $e)));
|
|
445
445
|
if (!n.length) return;
|
|
446
446
|
let o = Array.isArray(a.value) ? a.value.slice() : [];
|
|
447
447
|
return n.forEach((u) => {
|
|
@@ -450,45 +450,45 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
450
450
|
}), o;
|
|
451
451
|
}, se = async (e, l, n = "antdv") => {
|
|
452
452
|
ae.value = !1, t.mode === "combobox" && fe();
|
|
453
|
-
let o = n === "antdv" ?
|
|
453
|
+
let o = n === "antdv" ? Ql(e) : e;
|
|
454
454
|
if (o === void 0) {
|
|
455
455
|
z();
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
|
-
we.value = !0, t.noDropdown && Array.isArray(o) && t.maxTagsLength < o.length && (o = o.slice(), o.pop()), n === "antdv" &&
|
|
458
|
+
we.value = !0, t.noDropdown && Array.isArray(o) && t.maxTagsLength < o.length && (o = o.slice(), o.pop()), n === "antdv" && S.value && (a.value = o), _.value = !0, x("update:model-value", o), x("change", o, l), z(), d.value = P, await k(), await N(), _.value = !1, t.isExterControlCount && t.focusOpen && (d.value = G.value ? P : v.value, C.value = !G.value), t.focusOpen || (d.value = v.value);
|
|
459
459
|
};
|
|
460
460
|
return E({
|
|
461
461
|
$select: A,
|
|
462
|
-
toChangeMaxCount:
|
|
462
|
+
toChangeMaxCount: Jl
|
|
463
463
|
}), (e, l) => {
|
|
464
|
-
const n =
|
|
464
|
+
const n = tt("v-nodes");
|
|
465
465
|
return f(), y(
|
|
466
466
|
"div",
|
|
467
467
|
{
|
|
468
|
-
class:
|
|
468
|
+
class: ot(["das-ui-select", [
|
|
469
469
|
t.borderType,
|
|
470
470
|
t.isView ? "readonly" : "",
|
|
471
471
|
t.error ? "is-error" : "",
|
|
472
|
-
|
|
472
|
+
C.value ? "show-ellipsis" : ""
|
|
473
473
|
]]),
|
|
474
474
|
ref_key: "$selectBox",
|
|
475
|
-
ref:
|
|
475
|
+
ref: $,
|
|
476
476
|
style: X(zl.value),
|
|
477
|
-
onClick: ue(
|
|
477
|
+
onClick: ue(jl, ["stop"])
|
|
478
478
|
},
|
|
479
479
|
[
|
|
480
|
-
de.value ? (f(), K(c(
|
|
480
|
+
de.value ? (f(), K(c(ut), {
|
|
481
481
|
key: 0,
|
|
482
482
|
ref_key: "inputTooltipRef",
|
|
483
|
-
ref:
|
|
483
|
+
ref: Oe,
|
|
484
484
|
placement: "top",
|
|
485
485
|
"virtual-triggering": "",
|
|
486
486
|
"virtual-ref": de.value,
|
|
487
487
|
disabled: sl.value,
|
|
488
488
|
content: ul.value
|
|
489
489
|
}, null, 8, ["virtual-ref", "disabled", "content"])) : L("v-if", !0),
|
|
490
|
-
Te((f(), K(c(
|
|
491
|
-
value:
|
|
490
|
+
Te((f(), K(c(rt), Le({ mode: fl.value }, Bl.value, {
|
|
491
|
+
value: Sl.value,
|
|
492
492
|
ref_key: "$select",
|
|
493
493
|
ref: A,
|
|
494
494
|
options: xl.value,
|
|
@@ -498,21 +498,21 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
498
498
|
showArrow: !0,
|
|
499
499
|
open: t.noDropdown ? !1 : ye.value,
|
|
500
500
|
placeholder: Y.value,
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
size: $e.value,
|
|
501
|
+
optionFilterProp: Je.value,
|
|
502
|
+
filterOption: qe,
|
|
503
|
+
size: We.value,
|
|
505
504
|
style: t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {},
|
|
506
505
|
dropdownClassName: "das-ui-select-dorpdown " + p.dropdownClassName,
|
|
507
506
|
maxTagCount: Tl.value,
|
|
508
|
-
getPopupContainer:
|
|
507
|
+
getPopupContainer: Fl,
|
|
509
508
|
dropdownStyle: Ll.value,
|
|
510
509
|
onDropdownVisibleChange: Dl,
|
|
511
510
|
onChange: l[4] || (l[4] = (o, u) => se(o, u, "antdv")),
|
|
512
|
-
onFocus:
|
|
513
|
-
onBlur:
|
|
514
|
-
|
|
515
|
-
|
|
511
|
+
onFocus: Ul,
|
|
512
|
+
onBlur: Qe,
|
|
513
|
+
onSearch: $l,
|
|
514
|
+
onPopupScroll: Wl
|
|
515
|
+
}), nt({
|
|
516
516
|
option: m((o) => [
|
|
517
517
|
w(e.$slots, "option", ie(ce(o)), () => [
|
|
518
518
|
o.children && typeof o.children == "function" ? (f(), K(n, {
|
|
@@ -523,14 +523,14 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
523
523
|
{ key: 1 },
|
|
524
524
|
[
|
|
525
525
|
L(' :option="{value, label, [disabled, key, title]}" '),
|
|
526
|
-
p.mode === "combobox" ? Te((f(), y("div",
|
|
526
|
+
p.mode === "combobox" ? Te((f(), y("div", Ct, [
|
|
527
527
|
Ie(
|
|
528
528
|
Z(o[V.value]),
|
|
529
529
|
1
|
|
530
530
|
/* TEXT */
|
|
531
531
|
)
|
|
532
532
|
])), [
|
|
533
|
-
[c(
|
|
533
|
+
[c(tl)]
|
|
534
534
|
]) : (f(), y(
|
|
535
535
|
ke,
|
|
536
536
|
{ key: 1 },
|
|
@@ -538,25 +538,25 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
538
538
|
L(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
539
539
|
b("div", {
|
|
540
540
|
class: "das-multiple-option-item",
|
|
541
|
-
onMousedown:
|
|
542
|
-
onClick: (u) =>
|
|
541
|
+
onMousedown: Zl,
|
|
542
|
+
onClick: (u) => Kl(o, u)
|
|
543
543
|
}, [
|
|
544
|
-
(f(), K(c(
|
|
544
|
+
(f(), K(c(ll), {
|
|
545
545
|
class: "das-select-checkbox",
|
|
546
|
-
modelValue:
|
|
546
|
+
modelValue: Ke.value.has(o[g.value]),
|
|
547
547
|
key: o[g.value],
|
|
548
548
|
disabled: o.disabled
|
|
549
549
|
}, null, 8, ["modelValue", "disabled"])),
|
|
550
|
-
Te((f(), y("div",
|
|
550
|
+
Te((f(), y("div", wt, [
|
|
551
551
|
Ie(
|
|
552
552
|
Z(o[V.value]),
|
|
553
553
|
1
|
|
554
554
|
/* TEXT */
|
|
555
555
|
)
|
|
556
556
|
])), [
|
|
557
|
-
[c(
|
|
557
|
+
[c(tl)]
|
|
558
558
|
])
|
|
559
|
-
], 40,
|
|
559
|
+
], 40, St)
|
|
560
560
|
],
|
|
561
561
|
2112
|
|
562
562
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -570,22 +570,22 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
570
570
|
tagRender: m((o) => [
|
|
571
571
|
w(e.$slots, "tagRender", ie(ce(o)), () => [
|
|
572
572
|
I(c(Ve), {
|
|
573
|
-
closable: !
|
|
573
|
+
closable: !S.value && o.closable,
|
|
574
574
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
575
|
-
onClose: (u) =>
|
|
575
|
+
onClose: (u) => Xl(o)
|
|
576
576
|
}, {
|
|
577
577
|
default: m(() => [
|
|
578
|
-
|
|
578
|
+
S.value ? (f(), y("span", {
|
|
579
579
|
key: 0,
|
|
580
580
|
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
581
|
-
}, null, 8,
|
|
581
|
+
}, null, 8, xt)) : (f(), y(
|
|
582
582
|
"span",
|
|
583
583
|
{
|
|
584
584
|
key: 1,
|
|
585
585
|
class: "tag-span",
|
|
586
586
|
style: X(t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {})
|
|
587
587
|
},
|
|
588
|
-
Z(
|
|
588
|
+
Z(Rl(pe(o.value) ?? o.label ?? String(o.value))),
|
|
589
589
|
5
|
|
590
590
|
/* TEXT, STYLE */
|
|
591
591
|
))
|
|
@@ -599,9 +599,9 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
599
599
|
w(e.$slots, "dropdownRender", ie(ce({ menuNode: o })), () => {
|
|
600
600
|
var u;
|
|
601
601
|
return [
|
|
602
|
-
|
|
602
|
+
Ne.value === "combobox" ? (f(), y("div", At, [
|
|
603
603
|
I(n, { vnodes: o }, null, 8, ["vnodes"])
|
|
604
|
-
])) :
|
|
604
|
+
])) : Ne.value === "custom" ? (f(), y("div", {
|
|
605
605
|
key: 1,
|
|
606
606
|
onClick: l[2] || (l[2] = ue(() => {
|
|
607
607
|
}, ["stop"]))
|
|
@@ -614,12 +614,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
614
614
|
onMousedown: l[1] || (l[1] = (r) => r.preventDefault())
|
|
615
615
|
},
|
|
616
616
|
[
|
|
617
|
-
I(c(
|
|
617
|
+
I(c(it), Le({
|
|
618
618
|
ref_key: "testInput",
|
|
619
619
|
ref: il,
|
|
620
620
|
modelValue: F.value,
|
|
621
621
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => F.value = r),
|
|
622
|
-
onKeyup:
|
|
622
|
+
onKeyup: at(Ee, ["enter"]),
|
|
623
623
|
onFocus: ue(cl, ["stop"]),
|
|
624
624
|
onBlur: ue(dl, ["stop"]),
|
|
625
625
|
width: "100%",
|
|
@@ -629,7 +629,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
631
|
class: "addBtn",
|
|
632
|
-
onClick:
|
|
632
|
+
onClick: Ee
|
|
633
633
|
},
|
|
634
634
|
Z(c(M)("添加")),
|
|
635
635
|
1
|
|
@@ -639,7 +639,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
639
639
|
32
|
|
640
640
|
/* NEED_HYDRATION */
|
|
641
641
|
)
|
|
642
|
-
])) : (f(), y("div",
|
|
642
|
+
])) : (f(), y("div", Tt, [
|
|
643
643
|
I(n, { vnodes: o }, null, 8, ["vnodes"]),
|
|
644
644
|
(u = t.options) != null && u.length && t.showSelectAll ? (f(), y(
|
|
645
645
|
"div",
|
|
@@ -649,11 +649,11 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
649
649
|
onMousedown: l[3] || (l[3] = (r) => r.preventDefault())
|
|
650
650
|
},
|
|
651
651
|
[
|
|
652
|
-
b("div",
|
|
653
|
-
I(c(
|
|
652
|
+
b("div", kt, [
|
|
653
|
+
I(c(ll), {
|
|
654
654
|
modelValue: Ml.value,
|
|
655
655
|
indeterminate: Ol.value,
|
|
656
|
-
onChange:
|
|
656
|
+
onChange: Hl,
|
|
657
657
|
style: { display: "flex" }
|
|
658
658
|
}, {
|
|
659
659
|
default: m(() => [
|
|
@@ -670,7 +670,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
670
670
|
b("span", {
|
|
671
671
|
class: "das-ui-dropdown-has-checked",
|
|
672
672
|
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
673
|
-
}, null, 8,
|
|
673
|
+
}, null, 8, It)
|
|
674
674
|
],
|
|
675
675
|
32
|
|
676
676
|
/* NEED_HYDRATION */
|
|
@@ -681,7 +681,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
681
681
|
]),
|
|
682
682
|
clearIcon: m(() => [
|
|
683
683
|
w(e.$slots, "clearIcon", {}, () => [
|
|
684
|
-
I(c(
|
|
684
|
+
I(c(dt), { size: "medium" })
|
|
685
685
|
], !0)
|
|
686
686
|
]),
|
|
687
687
|
maxTagPlaceholder: m((o) => [
|
|
@@ -693,7 +693,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
693
693
|
default: m(() => [
|
|
694
694
|
b("span", {
|
|
695
695
|
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
696
|
-
}, null, 8,
|
|
696
|
+
}, null, 8, Vt)
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
/* STABLE */
|
|
@@ -714,7 +714,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
714
714
|
]),
|
|
715
715
|
suffixIcon: m(() => [
|
|
716
716
|
w(e.$slots, "suffixIcon", {}, () => [
|
|
717
|
-
I(c(
|
|
717
|
+
I(c(ct), {
|
|
718
718
|
class: "das-suffix-icon",
|
|
719
719
|
size: "medium"
|
|
720
720
|
})
|
|
@@ -747,15 +747,15 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
747
747
|
]),
|
|
748
748
|
key: "2"
|
|
749
749
|
} : void 0
|
|
750
|
-
]), 1040, ["mode", "value", "options", "fieldNames", "bordered", "disabled", "open", "placeholder", "
|
|
751
|
-
[c(
|
|
752
|
-
[c(
|
|
750
|
+
]), 1040, ["mode", "value", "options", "fieldNames", "bordered", "disabled", "open", "placeholder", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
|
|
751
|
+
[c(st), { target: Gl, x: !1 }],
|
|
752
|
+
[c(vt), El]
|
|
753
753
|
]),
|
|
754
754
|
p.error && p.errorLabel ? (f(), y(
|
|
755
755
|
ke,
|
|
756
756
|
{ key: 1 },
|
|
757
757
|
[
|
|
758
|
-
p.errorMode === "default" ? (f(), y("div",
|
|
758
|
+
p.errorMode === "default" ? (f(), y("div", Lt, [
|
|
759
759
|
b(
|
|
760
760
|
"span",
|
|
761
761
|
{
|
|
@@ -766,7 +766,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
766
766
|
/* TEXT, STYLE */
|
|
767
767
|
)
|
|
768
768
|
])) : L("v-if", !0),
|
|
769
|
-
p.errorMode === "overlay" &&
|
|
769
|
+
p.errorMode === "overlay" && Se.value ? (f(), K(c(ft), {
|
|
770
770
|
key: 1,
|
|
771
771
|
errorLabel: p.errorLabel,
|
|
772
772
|
getEl: () => A.value.$el,
|
|
@@ -781,20 +781,20 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
781
781
|
{
|
|
782
782
|
class: "ant-select-selection-overflow",
|
|
783
783
|
ref_key: "virtualTotalCount",
|
|
784
|
-
ref:
|
|
784
|
+
ref: _e,
|
|
785
785
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
786
786
|
},
|
|
787
787
|
[
|
|
788
|
-
b("div",
|
|
789
|
-
b("div",
|
|
790
|
-
b("span",
|
|
788
|
+
b("div", Mt, [
|
|
789
|
+
b("div", Ot, [
|
|
790
|
+
b("span", zt, [
|
|
791
791
|
I(c(Ve), {
|
|
792
792
|
style: X(t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {})
|
|
793
793
|
}, {
|
|
794
794
|
default: m(() => [
|
|
795
795
|
b("span", {
|
|
796
796
|
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
797
|
-
}, null, 8,
|
|
797
|
+
}, null, 8, Pt)
|
|
798
798
|
]),
|
|
799
799
|
_: 1
|
|
800
800
|
/* STABLE */
|
|
@@ -812,14 +812,14 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
812
812
|
);
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
}),
|
|
815
|
+
}), al = (p, E) => {
|
|
816
816
|
const D = p.__vccOpts || p;
|
|
817
817
|
for (const [t, x] of E)
|
|
818
818
|
D[t] = x;
|
|
819
819
|
return D;
|
|
820
|
-
},
|
|
821
|
-
function
|
|
822
|
-
const D =
|
|
820
|
+
}, Et = /* @__PURE__ */ al(Nt, [["__scopeId", "data-v-4f981506"]]), Dt = {};
|
|
821
|
+
function $t(p, E) {
|
|
822
|
+
const D = bt;
|
|
823
823
|
return f(), K(
|
|
824
824
|
D,
|
|
825
825
|
Le({ class: "das-ui-select-option" }, p.$attrs),
|
|
@@ -828,7 +828,7 @@ function Wt(p, E) {
|
|
|
828
828
|
/* FULL_PROPS */
|
|
829
829
|
);
|
|
830
830
|
}
|
|
831
|
-
const
|
|
831
|
+
const Bt = /* @__PURE__ */ al(Dt, [["render", $t]]), Wt = {
|
|
832
832
|
添加: { "zh-CN": "添加", en: "Add", "zh-MO": "添加", _appCode: "framework" },
|
|
833
833
|
全选: { "zh-CN": "全选", en: "Select All", "zh-MO": "全選", _appCode: "framework" },
|
|
834
834
|
已选: { "zh-CN": "已选", en: "Selected", "zh-MO": "已選", _appCode: "framework" },
|
|
@@ -839,10 +839,10 @@ const Rt = /* @__PURE__ */ nl($t, [["render", Wt]]), Ft = {
|
|
|
839
839
|
_appCode: "framework"
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
|
-
|
|
843
|
-
const
|
|
842
|
+
ht(Wt);
|
|
843
|
+
const so = ol(Et), uo = ol(Bt), io = { name: "select 选择器" };
|
|
844
844
|
export {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
845
|
+
so as DasSelect,
|
|
846
|
+
uo as DasSelectOption,
|
|
847
|
+
io as default
|
|
848
848
|
};
|