@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.
- package/front-end/i18n/front-end-page/dasui_en-US.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
- 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 +325 -289
- 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 +377 -364
- 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 +9 -3
- 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 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
|
|
22
|
-
const
|
|
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
|
-
},
|
|
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 = We({
|
|
29
29
|
inheritAttrs: !1,
|
|
30
30
|
components: {
|
|
31
|
-
VNodes: (
|
|
31
|
+
VNodes: (S, { attrs: _ }) => _.vnodes
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
34
|
-
...
|
|
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(
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
73
|
+
setup(S, { expose: _, emit: N }) {
|
|
74
|
+
hl((e) => ({
|
|
75
|
+
"4e61118e": Xe.value,
|
|
76
|
+
"63f2265f": Je.value
|
|
76
77
|
}));
|
|
77
|
-
const l =
|
|
78
|
+
const l = S, w = N, Ce = 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 Ce)
|
|
81
|
+
t === "onClick" || t.startsWith("onClick") || (e[t] = Ce[t]);
|
|
81
82
|
return e;
|
|
82
|
-
}), s =
|
|
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
|
-
}),
|
|
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
|
|
88
|
-
},
|
|
89
|
-
var
|
|
90
|
-
const e = (
|
|
91
|
-
t && t.length && t.forEach((
|
|
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),
|
|
95
|
-
return o -
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
}),
|
|
102
|
+
}), J(
|
|
102
103
|
() => {
|
|
103
104
|
var e;
|
|
104
|
-
return (e =
|
|
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
|
-
|
|
109
|
+
A.value = !0, W.value && clearTimeout(W.value);
|
|
109
110
|
}), e.addEventListener("mouseleave", function() {
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
W.value = setTimeout(() => {
|
|
112
|
+
A.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 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
|
-
},
|
|
125
|
-
l.dropdownMode === "custom" && !
|
|
126
|
-
|
|
125
|
+
}, Le = yl(), oe = () => {
|
|
126
|
+
l.dropdownMode === "custom" && !Le.dropdownRender && (O.value = !1, I(() => {
|
|
127
|
+
O.value = null;
|
|
127
128
|
}));
|
|
128
129
|
};
|
|
129
|
-
|
|
130
|
-
document.addEventListener("click",
|
|
131
|
-
}),
|
|
132
|
-
document.removeEventListener("click",
|
|
130
|
+
me(() => {
|
|
131
|
+
document.addEventListener("click", oe);
|
|
132
|
+
}), Ne(() => {
|
|
133
|
+
document.removeEventListener("click", oe);
|
|
133
134
|
});
|
|
134
|
-
const C = n(),
|
|
135
|
-
|
|
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
|
-
}),
|
|
138
|
-
|
|
139
|
-
s.value && l.mode == "combobox" && (
|
|
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 && (
|
|
189
|
+
a.scrollWidth <= a.offsetWidth && (ie.value = !1), a.title = "";
|
|
146
190
|
}
|
|
147
191
|
}, 300));
|
|
148
|
-
}),
|
|
149
|
-
l.options && (
|
|
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
|
|
195
|
+
const Ge = () => {
|
|
152
196
|
setTimeout(async () => {
|
|
153
|
-
u.value = 100, await
|
|
197
|
+
u.value = 100, await V(), u.value = d.value, b.value = !0;
|
|
154
198
|
}, 100);
|
|
155
199
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}),
|
|
159
|
-
|
|
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
|
|
162
|
-
"z-index":
|
|
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((
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
174
|
-
|
|
215
|
+
const t = ne(s.value);
|
|
216
|
+
t != null && e.push(t);
|
|
175
217
|
}
|
|
176
|
-
return
|
|
177
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
})),
|
|
234
|
+
})), ce = n(!1), ol = n({
|
|
199
235
|
display: "block",
|
|
200
|
-
color:
|
|
236
|
+
color: _l("--das-ui-select-overlay-error-color").value,
|
|
201
237
|
"white-space": "break-spaces"
|
|
202
|
-
}),
|
|
238
|
+
}), W = n(), al = () => {
|
|
203
239
|
var o;
|
|
204
|
-
|
|
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) ||
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}, 200),
|
|
211
|
-
},
|
|
212
|
-
e ?
|
|
213
|
-
},
|
|
214
|
-
e && (
|
|
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
|
-
},
|
|
254
|
+
}, ul = (e) => {
|
|
219
255
|
let t = e.toString();
|
|
220
256
|
return t.length > l.maxTagTextLength && (t = t.substr(0, l.maxTagTextLength) + "..."), t;
|
|
221
|
-
},
|
|
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[
|
|
227
|
-
}), s.value = t,
|
|
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[
|
|
266
|
+
s.value = t.filter((o) => !!l.options.find((a) => a[k.value] === o).disabled), ve(s.value, []);
|
|
231
267
|
}
|
|
232
|
-
},
|
|
268
|
+
}, cl = (e) => {
|
|
233
269
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
234
270
|
return e.children[0];
|
|
235
|
-
},
|
|
271
|
+
}, fl = (e) => {
|
|
236
272
|
if (l.mode == "combobox") {
|
|
237
273
|
w("focus", e);
|
|
238
274
|
return;
|
|
239
275
|
}
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
|
|
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
|
-
},
|
|
247
|
-
if (
|
|
248
|
-
|
|
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
|
-
|
|
254
|
-
},
|
|
255
|
-
e.onClose(), u.value = 100,
|
|
256
|
-
l.mode !== "combobox" &&
|
|
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
|
-
|
|
295
|
+
J(
|
|
260
296
|
() => l.disabled || l.isView,
|
|
261
297
|
(e) => {
|
|
262
298
|
if (e && l.mode !== "combobox") {
|
|
263
|
-
|
|
299
|
+
re.value = !1;
|
|
264
300
|
let t = new Event("blur");
|
|
265
|
-
|
|
301
|
+
_e(t);
|
|
266
302
|
}
|
|
267
303
|
}
|
|
268
304
|
);
|
|
269
|
-
let
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
|
|
312
|
+
me(() => {
|
|
277
313
|
X = new IntersectionObserver((e) => {
|
|
278
|
-
e && e[0] && e[0].intersectionRatio > 0 && l.focusOpen && u.value === 0 && (u.value = 100,
|
|
279
|
-
|
|
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(
|
|
282
|
-
}),
|
|
317
|
+
}), X.observe(B.value);
|
|
318
|
+
}), Ne(() => {
|
|
283
319
|
X && X.disconnect();
|
|
284
320
|
});
|
|
285
|
-
const
|
|
286
|
-
var
|
|
287
|
-
let e = (
|
|
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
|
|
294
|
-
let
|
|
295
|
-
if (
|
|
296
|
-
u.value =
|
|
297
|
-
let
|
|
298
|
-
for (let
|
|
299
|
-
if (
|
|
300
|
-
|
|
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
|
-
|
|
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
|
|
307
|
-
|
|
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
|
-
},
|
|
310
|
-
|
|
345
|
+
}, fe = n(!1);
|
|
346
|
+
J(
|
|
311
347
|
() => s.value,
|
|
312
348
|
async () => {
|
|
313
|
-
if (
|
|
314
|
-
|
|
349
|
+
if (fe.value) {
|
|
350
|
+
fe.value = !1;
|
|
315
351
|
return;
|
|
316
352
|
}
|
|
317
|
-
l.mode !== "combobox" &&
|
|
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
|
|
321
|
-
|
|
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(),
|
|
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
|
|
361
|
+
return _({
|
|
326
362
|
$select: C,
|
|
327
|
-
toChangeMaxCount:
|
|
363
|
+
toChangeMaxCount: ml
|
|
328
364
|
}), (e, t) => {
|
|
329
|
-
const o =
|
|
330
|
-
return
|
|
331
|
-
class:
|
|
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:
|
|
339
|
-
style:
|
|
340
|
-
onClick:
|
|
374
|
+
ref: B,
|
|
375
|
+
style: Z(tl.value),
|
|
376
|
+
onClick: Q(vl, ["stop"])
|
|
341
377
|
}, [
|
|
342
|
-
|
|
378
|
+
te.value ? (v(), R(r(Sl), {
|
|
343
379
|
key: 0,
|
|
344
380
|
ref_key: "inputTooltipRef",
|
|
345
|
-
ref:
|
|
381
|
+
ref: xe,
|
|
346
382
|
placement: "top",
|
|
347
383
|
"virtual-triggering": "",
|
|
348
|
-
"virtual-ref":
|
|
349
|
-
disabled:
|
|
350
|
-
content:
|
|
351
|
-
}, null, 8, ["virtual-ref", "disabled", "content"])) :
|
|
352
|
-
|
|
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) =>
|
|
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:
|
|
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 :
|
|
363
|
-
placeholder:
|
|
364
|
-
optionFilterProp:
|
|
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:
|
|
370
|
-
dropdownStyle:
|
|
371
|
-
onDropdownVisibleChange:
|
|
372
|
-
onChange:
|
|
373
|
-
onFocus:
|
|
374
|
-
onBlur:
|
|
375
|
-
}),
|
|
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
|
-
|
|
378
|
-
var
|
|
413
|
+
g(e.$slots, "option", Y(ee(a)), () => {
|
|
414
|
+
var h;
|
|
379
415
|
return [
|
|
380
|
-
a.children && typeof a.children == "function" ? (
|
|
416
|
+
a.children && typeof a.children == "function" ? (v(), R(o, {
|
|
381
417
|
key: 0,
|
|
382
418
|
vnodes: a.children()
|
|
383
|
-
}, null, 8, ["vnodes"])) : (
|
|
384
|
-
e.mode === "combobox" ?
|
|
385
|
-
|
|
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(
|
|
388
|
-
]) : (
|
|
389
|
-
(
|
|
423
|
+
[r($e)]
|
|
424
|
+
]) : (v(), y("div", Pl, [
|
|
425
|
+
(v(), R(r(Fe), {
|
|
390
426
|
class: "das-select-checkbox",
|
|
391
|
-
modelValue: (
|
|
392
|
-
key: a[
|
|
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
|
-
|
|
396
|
-
|
|
431
|
+
be((v(), y("div", Rl, [
|
|
432
|
+
ye(E(a[T.value]), 1)
|
|
397
433
|
])), [
|
|
398
|
-
[r(
|
|
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
|
-
|
|
407
|
-
x(r(
|
|
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: (
|
|
446
|
+
onClose: (h) => pl(a)
|
|
411
447
|
}, {
|
|
412
448
|
default: p(() => [
|
|
413
|
-
|
|
449
|
+
m("span", {
|
|
414
450
|
class: "tag-span",
|
|
415
|
-
style:
|
|
416
|
-
}, E(
|
|
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
|
-
|
|
424
|
-
var
|
|
459
|
+
g(e.$slots, "dropdownRender", Y(ee({ menuNode: a })), () => {
|
|
460
|
+
var h;
|
|
425
461
|
return [
|
|
426
|
-
|
|
462
|
+
Se.value === "combobox" ? (v(), y("div", ql, [
|
|
427
463
|
x(o, { vnodes: a }, null, 8, ["vnodes"])
|
|
428
|
-
])) :
|
|
464
|
+
])) : Se.value === "custom" ? (v(), y("div", {
|
|
429
465
|
key: 1,
|
|
430
|
-
onClick: t[2] || (t[2] =
|
|
466
|
+
onClick: t[2] || (t[2] = Q(() => {
|
|
431
467
|
}, ["stop"]))
|
|
432
468
|
}, [
|
|
433
469
|
x(o, { vnodes: a }, null, 8, ["vnodes"]),
|
|
434
|
-
|
|
470
|
+
m("div", {
|
|
435
471
|
class: "customDropdown",
|
|
436
|
-
onMousedown: t[1] || (t[1] = (
|
|
472
|
+
onMousedown: t[1] || (t[1] = (c) => c.preventDefault())
|
|
437
473
|
}, [
|
|
438
|
-
x(r(
|
|
474
|
+
x(r(Al), we({
|
|
439
475
|
ref_key: "testInput",
|
|
440
|
-
ref:
|
|
476
|
+
ref: He,
|
|
441
477
|
modelValue: D.value,
|
|
442
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
443
|
-
onKeyup:
|
|
444
|
-
onFocus:
|
|
445
|
-
onBlur:
|
|
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
|
-
|
|
485
|
+
m("div", {
|
|
450
486
|
class: "addBtn",
|
|
451
|
-
onClick:
|
|
452
|
-
}, E(r(
|
|
487
|
+
onClick: Ae
|
|
488
|
+
}, E(r(P)("添加")), 1)
|
|
453
489
|
], 32)
|
|
454
|
-
])) : (
|
|
490
|
+
])) : (v(), y("div", Hl, [
|
|
455
491
|
x(o, { vnodes: a }, null, 8, ["vnodes"]),
|
|
456
|
-
(
|
|
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] = (
|
|
495
|
+
onMousedown: t[3] || (t[3] = (c) => c.preventDefault())
|
|
460
496
|
}, [
|
|
461
|
-
|
|
462
|
-
x(r(
|
|
463
|
-
modelValue:
|
|
464
|
-
indeterminate:
|
|
465
|
-
onChange:
|
|
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
|
-
|
|
505
|
+
ye(E(r(P)("全选")), 1)
|
|
470
506
|
]),
|
|
471
507
|
_: 1
|
|
472
508
|
}, 8, ["modelValue", "indeterminate"])
|
|
473
509
|
]),
|
|
474
|
-
|
|
510
|
+
m("span", {
|
|
475
511
|
class: "das-ui-dropdown-has-checked",
|
|
476
|
-
innerHTML: r(
|
|
477
|
-
}, null, 8,
|
|
478
|
-
], 32)) :
|
|
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
|
-
|
|
485
|
-
x(r(
|
|
520
|
+
g(e.$slots, "clearIcon", {}, () => [
|
|
521
|
+
x(r(Ml), { size: "medium" })
|
|
486
522
|
], !0)
|
|
487
523
|
]),
|
|
488
524
|
maxTagPlaceholder: p((a) => [
|
|
489
|
-
|
|
490
|
-
x(r(
|
|
491
|
-
style:
|
|
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
|
-
|
|
495
|
-
innerHTML: r(
|
|
496
|
-
}, null, 8,
|
|
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
|
-
|
|
504
|
-
t[5] || (t[5] =
|
|
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
|
-
|
|
509
|
-
x(r(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
543
|
-
[r(
|
|
578
|
+
[r(Il), { target: cl, x: !1 }],
|
|
579
|
+
[r(zl), nl]
|
|
544
580
|
]),
|
|
545
|
-
e.error && e.errorLabel ? (
|
|
546
|
-
e.errorMode === "default" ? (
|
|
547
|
-
|
|
548
|
-
style:
|
|
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
|
-
])) :
|
|
551
|
-
e.errorMode === "overlay" &&
|
|
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"])) :
|
|
557
|
-
], 64)) :
|
|
558
|
-
|
|
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:
|
|
597
|
+
ref: Ie,
|
|
562
598
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
563
599
|
}, [
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
x(r(
|
|
568
|
-
style:
|
|
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
|
-
|
|
572
|
-
innerHTML: r(
|
|
573
|
-
}, null, 8,
|
|
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
|
-
}),
|
|
585
|
-
const N =
|
|
586
|
-
for (const [l, w] of
|
|
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
|
-
},
|
|
590
|
-
function
|
|
591
|
-
const N =
|
|
592
|
-
return
|
|
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
|
|
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":
|
|
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":
|
|
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
|
-
},
|
|
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
|
-
|
|
653
|
-
|
|
654
|
-
const
|
|
688
|
+
Fl(nt);
|
|
689
|
+
Nl(st);
|
|
690
|
+
const Lt = De(lt), Mt = De(at), Vt = { name: "select 选择器" };
|
|
655
691
|
export {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
692
|
+
Lt as DasSelect,
|
|
693
|
+
Mt as DasSelectOption,
|
|
694
|
+
Vt as default
|
|
659
695
|
};
|