@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.
- package/front-end/i18n/front-end-page/dasui_en-US.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +5 -5
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +5 -5
- package/package.json +5 -5
- package/packages/business-components/ai-panel/{index-BgyMyjJo.js → index-BybM3Q9u.js} +700 -711
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +142 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-Bw7rNZmA.js → index-CwdJKHy0.js} +9 -9
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8773 -8873
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +50 -50
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +149 -149
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +60 -60
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +128 -130
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +896 -904
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +246 -249
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/button/index.js +182 -178
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/calendar/index.js +104 -104
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +27 -27
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +54 -54
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +459 -459
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +61 -63
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +22 -23
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +223 -224
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +42 -44
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +63 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +32 -32
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +51 -51
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +44 -44
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +832 -834
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +431 -437
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +33 -33
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4556 -4586
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +2 -2
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.d.ts +3 -0
- package/packages/components/select/index.js +348 -310
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.js +6 -10
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +35 -35
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +101 -102
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +599 -604
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree/index.js +173 -182
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +427 -409
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +8 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +10 -4
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1208 -1240
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js +0 -143
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- 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
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { Select as
|
|
5
|
-
import { DasCheckbox as
|
|
6
|
-
import { vScrollbar as
|
|
7
|
-
import { DasTooltip as
|
|
8
|
-
import { vDasTooltip as
|
|
9
|
-
import { DasInput as
|
|
10
|
-
import { DasIconXiala as
|
|
11
|
-
import { DasIconEmpty as
|
|
12
|
-
import { DasErrorOverlayModel as
|
|
13
|
-
import { vHoverInside as
|
|
14
|
-
import { getVarValue as
|
|
15
|
-
import { t as
|
|
16
|
-
import { useZIndex as
|
|
17
|
-
import { useModelValue as
|
|
18
|
-
import { calcTextWidth as
|
|
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
|
|
22
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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: (
|
|
31
|
+
VNodes: (S, { attrs: z }) => z.vnodes
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
...
|
|
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(
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
73
|
+
setup(S, { expose: z, emit: N }) {
|
|
74
|
+
hl((e) => ({
|
|
75
|
+
"2d187413": Xe.value,
|
|
76
|
+
"5c27147a": Je.value
|
|
76
77
|
}));
|
|
77
|
-
const l =
|
|
78
|
+
const l = S, w = N, we = bl(), Pe = i(() => {
|
|
78
79
|
const e = {};
|
|
79
|
-
for (const t in
|
|
80
|
-
t === "onClick" || t.startsWith("onClick") || (e[t] =
|
|
80
|
+
for (const t in we)
|
|
81
|
+
t === "onClick" || t.startsWith("onClick") || (e[t] = we[t]);
|
|
81
82
|
return e;
|
|
82
|
-
}),
|
|
83
|
+
}), n = Ol(l, "modelValue"), ee = i(() => {
|
|
83
84
|
var e;
|
|
84
|
-
return `<span class='key'>${((e =
|
|
85
|
-
}),
|
|
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
|
|
88
|
-
},
|
|
89
|
-
var
|
|
90
|
-
const e = (
|
|
91
|
-
t && t.length && t.forEach((
|
|
92
|
-
let
|
|
93
|
-
if (
|
|
94
|
-
const
|
|
95
|
-
return
|
|
96
|
-
}, I =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
}),
|
|
102
|
+
}), X(
|
|
102
103
|
() => {
|
|
103
104
|
var e;
|
|
104
|
-
return (e =
|
|
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
|
-
|
|
109
|
+
I.value = !0, E.value && clearTimeout(E.value);
|
|
109
110
|
}), e.addEventListener("mouseleave", function() {
|
|
110
|
-
|
|
111
|
+
E.value = setTimeout(() => {
|
|
111
112
|
I.value = !1;
|
|
112
113
|
}, 200);
|
|
113
114
|
}));
|
|
114
115
|
}
|
|
115
116
|
);
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
D.value && (w("addCustomItem", D.value),
|
|
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
|
-
},
|
|
125
|
-
l.dropdownMode === "custom" && !
|
|
126
|
-
|
|
125
|
+
}, Ae = yl(), te = () => {
|
|
126
|
+
l.dropdownMode === "custom" && !Ae.dropdownRender && (O.value = !1, k(() => {
|
|
127
|
+
O.value = null;
|
|
127
128
|
}));
|
|
128
129
|
};
|
|
129
|
-
|
|
130
|
+
pe(() => {
|
|
130
131
|
document.addEventListener("click", te);
|
|
131
|
-
}),
|
|
132
|
+
}), Ne(() => {
|
|
132
133
|
document.removeEventListener("click", te);
|
|
133
134
|
});
|
|
134
|
-
const C =
|
|
135
|
-
|
|
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
|
-
}),
|
|
138
|
-
|
|
139
|
-
|
|
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
|
|
144
|
-
let
|
|
145
|
-
|
|
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
|
-
}),
|
|
149
|
-
l.options && (
|
|
191
|
+
}), me(() => {
|
|
192
|
+
l.options && (Ue(l.options), Le.value = je(l.options));
|
|
150
193
|
});
|
|
151
|
-
const
|
|
194
|
+
const Ge = () => {
|
|
152
195
|
setTimeout(async () => {
|
|
153
|
-
u.value = 100, await
|
|
196
|
+
u.value = 100, await V(), u.value = d.value, b.value = !0;
|
|
154
197
|
}, 100);
|
|
155
198
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}),
|
|
159
|
-
|
|
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
|
|
162
|
-
"z-index":
|
|
163
|
-
})),
|
|
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(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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" &&
|
|
173
|
-
|
|
174
|
-
|
|
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
|
|
177
|
-
}),
|
|
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(
|
|
187
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
})),
|
|
233
|
+
})), de = s(!1), ol = s({
|
|
199
234
|
display: "block",
|
|
200
|
-
color:
|
|
235
|
+
color: zl("--das-ui-select-overlay-error-color").value,
|
|
201
236
|
"white-space": "break-spaces"
|
|
202
|
-
}),
|
|
203
|
-
var
|
|
204
|
-
|
|
205
|
-
let e = (
|
|
206
|
-
!!(Array.isArray(
|
|
207
|
-
},
|
|
208
|
-
|
|
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),
|
|
211
|
-
},
|
|
212
|
-
e ?
|
|
213
|
-
},
|
|
214
|
-
e && (
|
|
215
|
-
var t,
|
|
216
|
-
(
|
|
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
|
-
},
|
|
253
|
+
}, ul = (e) => {
|
|
219
254
|
let t = e.toString();
|
|
220
255
|
return t.length > l.maxTagTextLength && (t = t.substr(0, l.maxTagTextLength) + "..."), t;
|
|
221
|
-
},
|
|
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(
|
|
224
|
-
let t =
|
|
225
|
-
l.options.forEach((
|
|
226
|
-
!
|
|
227
|
-
}),
|
|
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 =
|
|
230
|
-
|
|
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
|
-
},
|
|
270
|
+
}, cl = (e) => {
|
|
233
271
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
234
272
|
return e.children[0];
|
|
235
|
-
},
|
|
273
|
+
}, fl = (e) => {
|
|
236
274
|
if (l.mode == "combobox") {
|
|
237
275
|
w("focus", e);
|
|
238
276
|
return;
|
|
239
277
|
}
|
|
240
|
-
|
|
241
|
-
}, j =
|
|
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
|
-
},
|
|
247
|
-
if (
|
|
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
|
-
|
|
254
|
-
},
|
|
255
|
-
e.onClose(), u.value = 100,
|
|
256
|
-
l.mode !== "combobox" &&
|
|
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
|
-
|
|
297
|
+
X(
|
|
260
298
|
() => l.disabled || l.isView,
|
|
261
299
|
(e) => {
|
|
262
300
|
if (e && l.mode !== "combobox") {
|
|
263
|
-
|
|
301
|
+
se.value = !1;
|
|
264
302
|
let t = new Event("blur");
|
|
265
|
-
|
|
303
|
+
ze(t);
|
|
266
304
|
}
|
|
267
305
|
}
|
|
268
306
|
);
|
|
269
|
-
let
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
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
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
e && e[0] && e[0].intersectionRatio > 0 && l.focusOpen && u.value === 0 && (u.value = 100,
|
|
279
|
-
|
|
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
|
-
}),
|
|
282
|
-
}),
|
|
283
|
-
|
|
319
|
+
}), G.observe(B.value);
|
|
320
|
+
}), Ne(() => {
|
|
321
|
+
G && G.disconnect();
|
|
284
322
|
});
|
|
285
|
-
const
|
|
286
|
-
var
|
|
287
|
-
let e = (
|
|
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
|
|
292
|
-
l.borderType === "underline" && (
|
|
293
|
-
const m = Math.ceil(
|
|
294
|
-
let
|
|
295
|
-
if (
|
|
296
|
-
u.value =
|
|
297
|
-
let
|
|
298
|
-
for (let
|
|
299
|
-
if (
|
|
300
|
-
|
|
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
|
-
|
|
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
|
|
307
|
-
|
|
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
|
-
},
|
|
310
|
-
|
|
311
|
-
() =>
|
|
347
|
+
}, ce = s(!1);
|
|
348
|
+
X(
|
|
349
|
+
() => n.value,
|
|
312
350
|
async () => {
|
|
313
|
-
if (
|
|
314
|
-
|
|
351
|
+
if (ce.value) {
|
|
352
|
+
ce.value = !1;
|
|
315
353
|
return;
|
|
316
354
|
}
|
|
317
|
-
l.mode !== "combobox" &&
|
|
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
|
|
321
|
-
|
|
322
|
-
const
|
|
323
|
-
l.noDropdown && l.maxTagsLength <
|
|
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
|
|
363
|
+
return z({
|
|
326
364
|
$select: C,
|
|
327
|
-
toChangeMaxCount:
|
|
365
|
+
toChangeMaxCount: ml
|
|
328
366
|
}), (e, t) => {
|
|
329
|
-
const
|
|
330
|
-
return
|
|
331
|
-
class:
|
|
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:
|
|
339
|
-
style:
|
|
340
|
-
onClick: J(
|
|
376
|
+
ref: B,
|
|
377
|
+
style: Z(tl.value),
|
|
378
|
+
onClick: J(vl, ["stop"])
|
|
341
379
|
}, [
|
|
342
|
-
le.value ? (
|
|
380
|
+
le.value ? (v(), R(r(Il), {
|
|
343
381
|
key: 0,
|
|
344
382
|
ref_key: "inputTooltipRef",
|
|
345
|
-
ref:
|
|
383
|
+
ref: Ce,
|
|
346
384
|
placement: "top",
|
|
347
385
|
"virtual-triggering": "",
|
|
348
386
|
"virtual-ref": le.value,
|
|
349
|
-
disabled:
|
|
350
|
-
content:
|
|
351
|
-
}, null, 8, ["virtual-ref", "disabled", "content"])) :
|
|
352
|
-
|
|
353
|
-
value: r(
|
|
354
|
-
"onUpdate:value": t[4] || (t[4] = (
|
|
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:
|
|
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 :
|
|
363
|
-
placeholder:
|
|
364
|
-
optionFilterProp:
|
|
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:
|
|
370
|
-
dropdownStyle:
|
|
371
|
-
onDropdownVisibleChange:
|
|
372
|
-
onChange:
|
|
373
|
-
onFocus:
|
|
374
|
-
onBlur:
|
|
375
|
-
}),
|
|
376
|
-
option: p((
|
|
377
|
-
|
|
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
|
-
|
|
418
|
+
o.children && typeof o.children == "function" ? (v(), R(a, {
|
|
381
419
|
key: 0,
|
|
382
|
-
vnodes:
|
|
383
|
-
}, null, 8, ["vnodes"])) : (
|
|
384
|
-
e.mode === "combobox" ?
|
|
385
|
-
|
|
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(
|
|
388
|
-
]) : (
|
|
389
|
-
(
|
|
425
|
+
[r($e)]
|
|
426
|
+
]) : (v(), y("div", Pl, [
|
|
427
|
+
(v(), R(r(Fe), {
|
|
390
428
|
class: "das-select-checkbox",
|
|
391
|
-
modelValue: (m = r(
|
|
392
|
-
key:
|
|
393
|
-
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
|
-
|
|
396
|
-
|
|
433
|
+
he((v(), y("div", Rl, [
|
|
434
|
+
be(W(o[A.value]), 1)
|
|
397
435
|
])), [
|
|
398
|
-
[r(
|
|
436
|
+
[r($e)]
|
|
399
437
|
])
|
|
400
438
|
]))
|
|
401
439
|
], 64))
|
|
402
440
|
];
|
|
403
441
|
}, !0)
|
|
404
442
|
]),
|
|
405
|
-
tagRender: p((
|
|
406
|
-
|
|
407
|
-
x(r(
|
|
408
|
-
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) =>
|
|
448
|
+
onClose: (m) => pl(o)
|
|
411
449
|
}, {
|
|
412
450
|
default: p(() => [
|
|
413
451
|
h("span", {
|
|
414
452
|
class: "tag-span",
|
|
415
|
-
style:
|
|
416
|
-
},
|
|
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:
|
|
423
|
-
|
|
460
|
+
dropdownRender: p(({ menuNode: o }) => [
|
|
461
|
+
g(e.$slots, "dropdownRender", Q(Y({ menuNode: o })), () => {
|
|
424
462
|
var m;
|
|
425
463
|
return [
|
|
426
|
-
|
|
427
|
-
x(
|
|
428
|
-
])) :
|
|
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(
|
|
471
|
+
x(a, { vnodes: o }, null, 8, ["vnodes"]),
|
|
434
472
|
h("div", {
|
|
435
473
|
class: "customDropdown",
|
|
436
|
-
onMousedown: t[1] || (t[1] = (
|
|
474
|
+
onMousedown: t[1] || (t[1] = (c) => c.preventDefault())
|
|
437
475
|
}, [
|
|
438
|
-
x(r(
|
|
476
|
+
x(r(Al), ge({
|
|
439
477
|
ref_key: "testInput",
|
|
440
|
-
ref:
|
|
478
|
+
ref: He,
|
|
441
479
|
modelValue: D.value,
|
|
442
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
443
|
-
onKeyup:
|
|
444
|
-
onFocus: J(
|
|
445
|
-
onBlur: J(
|
|
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:
|
|
452
|
-
},
|
|
489
|
+
onClick: Ie
|
|
490
|
+
}, W(r(P)("添加")), 1)
|
|
453
491
|
], 32)
|
|
454
|
-
])) : (
|
|
455
|
-
x(
|
|
456
|
-
(m = l.options) != null && m.length && l.showSelectAll ? (
|
|
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] = (
|
|
497
|
+
onMousedown: t[3] || (t[3] = (c) => c.preventDefault())
|
|
460
498
|
}, [
|
|
461
|
-
h("div",
|
|
462
|
-
x(r(
|
|
463
|
-
modelValue:
|
|
464
|
-
indeterminate:
|
|
465
|
-
onChange:
|
|
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
|
-
|
|
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(
|
|
477
|
-
}, null, 8,
|
|
478
|
-
], 32)) :
|
|
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
|
-
|
|
485
|
-
x(r(
|
|
522
|
+
g(e.$slots, "clearIcon", {}, () => [
|
|
523
|
+
x(r(Ml), { size: "medium" })
|
|
486
524
|
], !0)
|
|
487
525
|
]),
|
|
488
|
-
maxTagPlaceholder: p((
|
|
489
|
-
|
|
490
|
-
x(r(
|
|
491
|
-
style:
|
|
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(
|
|
496
|
-
}, null, 8,
|
|
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
|
-
|
|
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
|
-
|
|
509
|
-
x(r(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
543
|
-
[r(
|
|
580
|
+
[r(Sl), { target: cl, x: !1 }],
|
|
581
|
+
[r(_l), sl]
|
|
544
582
|
]),
|
|
545
|
-
e.error && e.errorLabel ? (
|
|
546
|
-
e.errorMode === "default" ? (
|
|
583
|
+
e.error && e.errorLabel ? (v(), y(Be, { key: 1 }, [
|
|
584
|
+
e.errorMode === "default" ? (v(), y("div", jl, [
|
|
547
585
|
h("span", {
|
|
548
|
-
style:
|
|
549
|
-
},
|
|
550
|
-
])) :
|
|
551
|
-
e.errorMode === "overlay" &&
|
|
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"])) :
|
|
557
|
-
], 64)) :
|
|
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:
|
|
599
|
+
ref: ke,
|
|
562
600
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
563
601
|
}, [
|
|
564
|
-
h("div",
|
|
565
|
-
h("div",
|
|
566
|
-
h("span",
|
|
567
|
-
x(r(
|
|
568
|
-
style:
|
|
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(
|
|
573
|
-
}, null, 8,
|
|
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
|
-
}),
|
|
585
|
-
const N =
|
|
586
|
-
for (const [l, w] of
|
|
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
|
-
},
|
|
590
|
-
function
|
|
591
|
-
const N =
|
|
592
|
-
return
|
|
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
|
|
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":
|
|
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":
|
|
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
|
-
},
|
|
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
|
-
|
|
653
|
-
|
|
654
|
-
const
|
|
690
|
+
Fl(st);
|
|
691
|
+
Nl(nt);
|
|
692
|
+
const Lt = De(lt), Mt = De(at), Vt = { name: "select 选择器" };
|
|
655
693
|
export {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
694
|
+
Lt as DasSelect,
|
|
695
|
+
Mt as DasSelectOption,
|
|
696
|
+
Vt as default
|
|
659
697
|
};
|