@das-fed/ui 6.4.0-dev.55.8 → 6.4.0-dev.55.9
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/package.json +5 -5
- package/packages/business-components/change-pwd/index.js +6 -6
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.js +100 -100
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +1 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +38 -38
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1 -1
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +1 -1
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +26 -26
- package/packages/components/calendar/index.js +109 -109
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/popover/index.js +9 -9
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/search/index.d.ts +9 -0
- package/packages/components/search/index.js +58 -42
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +15 -0
- package/packages/components/search/src/type.d.ts +2 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/index.js +200 -185
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +1 -6
- package/packages/components/select/index.js +355 -373
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.d.ts +1 -0
- package/packages/components/select-input/index.js +67 -60
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +1 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
- package/packages/components/select-input/src/type.d.ts +3 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +5 -10
- package/packages/components/table/index.js +3664 -3582
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/hooks/use-operation.d.ts +6 -5
- package/packages/components/table/src/type.d.ts +2 -2
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/select/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { Select as
|
|
2
|
+
import { withInstall as Me } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { defineComponent as _e, useCssVars as nl, computed as d, ref as r, useSlots as il, onMounted as ne, onUnmounted as xe, watchEffect as ie, watch as we, nextTick as k, resolveComponent as ul, openBlock as u, createElementBlock as b, normalizeClass as dl, normalizeStyle as T, createVNode as x, unref as n, withCtx as f, withDirectives as Z, createTextVNode as U, toDisplayString as I, createBlock as A, mergeProps as ze, isRef as cl, withModifiers as X, createSlots as vl, renderSlot as w, normalizeProps as j, guardReactiveProps as G, Fragment as J, createCommentVNode as S, createElementVNode as p, withKeys as fl, Teleport as pl } from "vue";
|
|
4
|
+
import { Select as ml, Tag as ue } from "ant-design-vue";
|
|
5
5
|
import "ant-design-vue/es/select/style/css";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
6
|
+
import "ant-design-vue/es/tag/style/css";
|
|
7
|
+
import { DasCheckbox as Ce } from "@das-fed/ui/packages/components/checkbox/index";
|
|
8
|
+
import { vScrollbar as ke } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
9
|
+
import { DasTooltip as bl } from "@das-fed/ui/packages/components/tooltip/index";
|
|
10
|
+
import { vDasTooltip as Te } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
11
|
+
import { DasInput as hl } from "@das-fed/ui/packages/components/input/index";
|
|
12
|
+
import { DasIconXiala as yl } from "@das-fed/ui/packages/icons/xiala/index";
|
|
13
|
+
import { DasIconEmpty as gl } from "@das-fed/ui/packages/icons/empty/index";
|
|
14
|
+
import { vHoverInside as xl } from "@das-fed/utils/directive";
|
|
15
|
+
import { getVarValue as Ie, getVar as Se, setThemeRule as wl } from "@das-fed/web/packages/theme/index";
|
|
16
|
+
import { useZIndex as Cl } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
17
|
+
import { t as D, setI18nRule as kl } from "@das-fed/web/packages/i18n/index";
|
|
18
|
+
import { useModelValue as Tl } from "@das-fed/utils/vue";
|
|
19
|
+
import { SelectOption as Il } from "ant-design-vue/es";
|
|
20
|
+
const Sl = { style: { "max-height": "200px", "word-break": "break-all", overflow: "hidden" } }, Ml = { key: 0 }, _l = { class: "das-multiple-option-item" }, zl = { style: { display: "inline-block" } }, Nl = { key: 0 }, Vl = { key: 2 }, Bl = { style: { display: "inline-block" } }, $l = ["innerHTML"], Fl = ["innerHTML"], Ll = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "das-select-error-label-content das-select-label-content"
|
|
22
|
-
},
|
|
23
|
+
}, Dl = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Pl = { class: "ant-select-selection-item" }, Ol = { class: "ant-select-selection-item-content" }, Al = ["innerHTML"], El = _e({
|
|
23
24
|
inheritAttrs: !1,
|
|
24
25
|
components: {
|
|
25
|
-
VNodes: (
|
|
26
|
+
VNodes: (M, { attrs: B }) => B.vnodes
|
|
26
27
|
}
|
|
27
|
-
}),
|
|
28
|
-
...
|
|
28
|
+
}), Wl = /* @__PURE__ */ _e({
|
|
29
|
+
...El,
|
|
29
30
|
__name: "Select",
|
|
30
31
|
props: {
|
|
31
32
|
modelValue: { default: void 0 },
|
|
@@ -61,345 +62,348 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
61
62
|
dropdownMode: {}
|
|
62
63
|
},
|
|
63
64
|
emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
|
|
64
|
-
setup(
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
65
|
+
setup(M, { expose: B, emit: $ }) {
|
|
66
|
+
nl((e) => ({
|
|
67
|
+
"47869efa": Pe.value,
|
|
68
|
+
e103731a: Oe.value
|
|
68
69
|
}));
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
const l = M, C = $, s = Tl(l, "modelValue"), Q = d(() => {
|
|
71
|
+
var e;
|
|
72
|
+
return `<i class='key'>${((e = s.value) == null ? void 0 : e.length) ?? 0}</i>`;
|
|
73
|
+
}), g = r(!1), Ve = d(() => l.placeholder || D("请选择")), Be = d(() => P.value ? P.value.querySelector(".ant-select-selector") : null), de = r(null), ce = d(() => l.dropdownMode ?? l.mode ?? ""), F = r(null), $e = r(null), L = r(""), Fe = () => {
|
|
74
|
+
F.value = !0;
|
|
75
|
+
}, Le = () => {
|
|
76
|
+
F.value = null;
|
|
77
|
+
}, ve = () => {
|
|
78
|
+
L.value && (C("addCustomItem", L.value), L.value = "", l.mode === "combobox" ? k(() => {
|
|
75
79
|
h.value.focus();
|
|
76
80
|
}) : h.value.focus());
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
}, fe = il(), Y = () => {
|
|
82
|
+
l.mode === "combobox" && l.dropdownMode === "custom" && !fe.dropdownRender && (F.value = !1, k(() => {
|
|
83
|
+
F.value = null;
|
|
80
84
|
}));
|
|
81
85
|
};
|
|
82
|
-
re(() => {
|
|
83
|
-
document.addEventListener("click", Q);
|
|
84
|
-
}), ye(() => {
|
|
85
|
-
document.removeEventListener("click", Q);
|
|
86
|
-
});
|
|
87
|
-
const h = n(), fe = n(), W = n(!1), Y = f(() => O.value !== null ? O.value : o.open === void 0 ? o.mode === "combobox" ? void 0 : W.value : o.open), B = 1e6, i = n(100), v = n(100), M = n(!1), ee = n(!0), oe = n(!1);
|
|
88
86
|
ne(() => {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
document.addEventListener("click", Y);
|
|
88
|
+
}), xe(() => {
|
|
89
|
+
document.removeEventListener("click", Y);
|
|
90
|
+
});
|
|
91
|
+
const h = r(), pe = r(), E = r(!1), ee = d(() => F.value !== null ? F.value : l.open === void 0 ? l.mode === "combobox" ? void 0 : E.value : l.open), _ = 1e6, i = r(100), c = r(100), z = r(!1), le = r(!0), oe = r(!1);
|
|
92
|
+
ie(() => {
|
|
93
|
+
s.value && l.mode == "combobox" && (le.value = !0, setTimeout(() => {
|
|
94
|
+
var o;
|
|
95
|
+
let e = (o = h.value) == null ? void 0 : o.$el.querySelectorAll(".ant-select-selection-item");
|
|
92
96
|
if (e && e.length > 0)
|
|
93
97
|
for (let a = 0; a < e.length; a++) {
|
|
94
98
|
let t = e[a];
|
|
95
|
-
t.scrollWidth <= t.offsetWidth && (
|
|
99
|
+
t.scrollWidth <= t.offsetWidth && (le.value = !1), t.title = "";
|
|
96
100
|
}
|
|
97
101
|
}, 300));
|
|
98
|
-
}),
|
|
99
|
-
|
|
102
|
+
}), ie(() => {
|
|
103
|
+
l.options && (pe.value = l.options.map((e) => (e.title = e.title ? e.title : "", e)));
|
|
100
104
|
});
|
|
101
105
|
const De = () => {
|
|
102
106
|
setTimeout(async () => {
|
|
103
|
-
i.value = 100, await
|
|
107
|
+
i.value = 100, await V(), i.value = c.value, g.value = !0;
|
|
104
108
|
}, 100);
|
|
105
109
|
};
|
|
106
|
-
|
|
107
|
-
oe.value === !0 &&
|
|
108
|
-
}),
|
|
109
|
-
oe.value = !0,
|
|
110
|
+
ie(() => {
|
|
111
|
+
oe.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (oe.value = !1, De());
|
|
112
|
+
}), ne(() => {
|
|
113
|
+
oe.value = !0, l.focusOpen || (c.value = 1, i.value = c.value, g.value = !0);
|
|
110
114
|
});
|
|
111
|
-
const
|
|
112
|
-
"z-index":
|
|
113
|
-
})),
|
|
114
|
-
var
|
|
115
|
+
const Pe = d(() => l.width ? l.width : "230px"), Oe = d(() => l.height ? l.height : "auto"), me = r(3e3), Ae = d(() => ({
|
|
116
|
+
"z-index": me.value
|
|
117
|
+
})), be = d(() => {
|
|
118
|
+
var o;
|
|
115
119
|
let e = [];
|
|
116
|
-
if (
|
|
120
|
+
if (l.mode != "combobox" && Array.isArray(s.value))
|
|
117
121
|
s.value.map((a) => {
|
|
118
|
-
var
|
|
119
|
-
let t = (
|
|
120
|
-
t && e.push(t[
|
|
122
|
+
var m;
|
|
123
|
+
let t = (m = l.options) == null ? void 0 : m.find((v) => v[N.value] == a);
|
|
124
|
+
t && e.push(t[W.value]);
|
|
121
125
|
});
|
|
122
|
-
else if (
|
|
123
|
-
let a = (
|
|
124
|
-
a && e.push(a[
|
|
126
|
+
else if (l.mode == "combobox" && s.value) {
|
|
127
|
+
let a = (o = l.options) == null ? void 0 : o.find((t) => t[N.value] == s.value);
|
|
128
|
+
a && e.push(a[W.value]);
|
|
125
129
|
}
|
|
126
130
|
return e.join("、");
|
|
127
|
-
}),
|
|
128
|
-
var e,
|
|
129
|
-
return
|
|
130
|
-
}), Re =
|
|
131
|
-
var e,
|
|
132
|
-
return
|
|
133
|
-
}),
|
|
134
|
-
var e,
|
|
135
|
-
return
|
|
136
|
-
}),
|
|
131
|
+
}), Ee = d(() => l.isView ? l.noSetDefaultVal ? "" : "-" : Ve.value), We = d(() => {
|
|
132
|
+
var e, o;
|
|
133
|
+
return l.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) == ((o = l.options) == null ? void 0 : o.length));
|
|
134
|
+
}), Re = d(() => {
|
|
135
|
+
var e, o, a;
|
|
136
|
+
return l.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) > 0 && ((o = s.value) == null ? void 0 : o.length) < ((a = l.options) == null ? void 0 : a.length));
|
|
137
|
+
}), He = d(() => {
|
|
138
|
+
var e, o;
|
|
139
|
+
return l.optionFilterProp ? l.optionFilterProp : (e = l.fieldNames) != null && e.label ? (o = l.fieldNames) == null ? void 0 : o.label : "label";
|
|
140
|
+
}), W = d(() => {
|
|
137
141
|
var e;
|
|
138
|
-
return
|
|
139
|
-
}),
|
|
142
|
+
return l.fieldNames && l.fieldNames.label ? (e = l.fieldNames) == null ? void 0 : e.label : "label";
|
|
143
|
+
}), N = d(() => {
|
|
140
144
|
var e;
|
|
141
|
-
return
|
|
142
|
-
}), qe =
|
|
143
|
-
width: typeof
|
|
144
|
-
})),
|
|
145
|
+
return l.fieldNames && l.fieldNames.value ? (e = l.fieldNames) == null ? void 0 : e.value : "value";
|
|
146
|
+
}), qe = d(() => ({
|
|
147
|
+
width: typeof l.width == "number" ? l.width + "px" : l.width
|
|
148
|
+
})), te = r(!1), R = r({
|
|
145
149
|
x: 0,
|
|
146
150
|
y: 0
|
|
147
|
-
}),
|
|
151
|
+
}), he = r(0), ye = d(() => ({
|
|
148
152
|
"font-size": "12px",
|
|
149
|
-
"background-color":
|
|
153
|
+
"background-color": Ie("--das-ui-input-number-overlay-error-bg-color").value,
|
|
150
154
|
"box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
151
155
|
"border-radius": "1px",
|
|
152
156
|
padding: "4px 8px",
|
|
153
157
|
"box-sizing": "border-box",
|
|
154
|
-
"z-index":
|
|
155
|
-
})), Ke =
|
|
156
|
-
...
|
|
157
|
-
width:
|
|
158
|
+
"z-index": l.errorModelZIndex
|
|
159
|
+
})), Ke = d(() => ({
|
|
160
|
+
...ye.value,
|
|
161
|
+
width: he.value + "px",
|
|
158
162
|
position: "fixed",
|
|
159
163
|
visibility: "visible",
|
|
160
|
-
top:
|
|
161
|
-
left:
|
|
162
|
-
})),
|
|
164
|
+
top: R.value.y + "px",
|
|
165
|
+
left: R.value.x + "px"
|
|
166
|
+
})), ae = r({
|
|
163
167
|
display: "block",
|
|
164
|
-
color:
|
|
168
|
+
color: Ie("--das-ui-input-error-color").value,
|
|
165
169
|
"white-space": "break-spaces",
|
|
166
170
|
"word-break": "break-all"
|
|
167
171
|
}), Ze = () => {
|
|
168
|
-
var t,
|
|
169
|
-
const { top: e, left:
|
|
170
|
-
|
|
171
|
-
}, He = () => {
|
|
172
|
-
Ze(), le.value = !0;
|
|
172
|
+
var t, m, v;
|
|
173
|
+
const { top: e, left: o } = (t = h.value) == null ? void 0 : t.$el.getBoundingClientRect(), a = (m = h.value) == null ? void 0 : m.$el.clientHeight;
|
|
174
|
+
he.value = (v = h.value) == null ? void 0 : v.$el.clientWidth, R.value.x = o, R.value.y = e + a;
|
|
173
175
|
}, Ue = () => {
|
|
174
|
-
|
|
175
|
-
}, Xe = (
|
|
176
|
-
|
|
177
|
-
}, je = (e) => {
|
|
178
|
-
e
|
|
179
|
-
var l, a;
|
|
180
|
-
(a = (l = h.value) == null ? void 0 : l.blur) == null || a.call(l);
|
|
181
|
-
})), k("dropdownVisibleChange", e);
|
|
176
|
+
Ze(), te.value = !0;
|
|
177
|
+
}, Xe = () => {
|
|
178
|
+
te.value = !1;
|
|
179
|
+
}, je = (e, o) => {
|
|
180
|
+
e ? Ue() : Xe();
|
|
182
181
|
}, Ge = (e) => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
e && (me.value = Cl().nextZIndex(), L.value = ""), l.mode == "combobox" && (H.value = e, e || setTimeout(() => {
|
|
183
|
+
var o, a;
|
|
184
|
+
(a = (o = h.value) == null ? void 0 : o.blur) == null || a.call(o);
|
|
185
|
+
})), C("dropdownVisibleChange", e);
|
|
186
|
+
}, Je = (e) => {
|
|
187
|
+
let o = e.toString();
|
|
188
|
+
return o.length > l.maxTagTextLength && (o = o.substr(0, l.maxTagTextLength) + "..."), o;
|
|
189
|
+
}, P = r(), Qe = (e) => l.isRenderNode ? P.value : l.getPopupContainer === void 0 ? document.body : l.getPopupContainer(e), Ye = (e) => {
|
|
186
190
|
if (e) {
|
|
187
191
|
Array.isArray(s.value) || (s.value = []);
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
!s.value.includes(t[
|
|
191
|
-
}), s.value =
|
|
192
|
+
let o = s.value, a = [];
|
|
193
|
+
l.options.forEach((t) => {
|
|
194
|
+
!s.value.includes(t[N.value]) && !t.disabled && (o.push(t[N.value]), a.push(t));
|
|
195
|
+
}), s.value = o, re(s.value, a);
|
|
192
196
|
} else {
|
|
193
|
-
let
|
|
194
|
-
s.value =
|
|
197
|
+
let o = s.value;
|
|
198
|
+
s.value = o.filter((a) => !!l.options.find((t) => t[N.value] === a).disabled), re(s.value, []);
|
|
195
199
|
}
|
|
196
|
-
},
|
|
200
|
+
}, el = (e) => {
|
|
197
201
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
198
202
|
return e.children[0];
|
|
199
|
-
},
|
|
200
|
-
if (
|
|
201
|
-
|
|
203
|
+
}, ll = (e) => {
|
|
204
|
+
if (l.mode == "combobox") {
|
|
205
|
+
C("focus", e);
|
|
202
206
|
return;
|
|
203
207
|
}
|
|
204
|
-
|
|
205
|
-
},
|
|
206
|
-
var e,
|
|
207
|
-
if (
|
|
208
|
-
|
|
208
|
+
E.value = !0, l.focusOpen && !l.isExterControlCount && (i.value = _, g.value = !1), C("focus", e);
|
|
209
|
+
}, H = r(!1), ol = () => {
|
|
210
|
+
var e, o;
|
|
211
|
+
if (l.mode == "combobox") {
|
|
212
|
+
H.value || setTimeout(() => {
|
|
209
213
|
var a, t;
|
|
210
214
|
(t = (a = h.value) == null ? void 0 : a.blur) == null || t.call(a);
|
|
211
215
|
});
|
|
212
216
|
return;
|
|
213
217
|
}
|
|
214
|
-
(
|
|
218
|
+
(o = (e = h.value) == null ? void 0 : e.blur) == null || o.call(e), k(() => {
|
|
215
219
|
var a, t;
|
|
216
220
|
(t = (a = h.value) == null ? void 0 : a.focus) == null || t.call(a);
|
|
217
221
|
});
|
|
218
|
-
},
|
|
219
|
-
if (
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}),
|
|
222
|
+
}, tl = (e) => {
|
|
223
|
+
if (l.mode == "combobox") {
|
|
224
|
+
k(() => {
|
|
225
|
+
H.value = !1;
|
|
226
|
+
}), C("blur", e);
|
|
223
227
|
return;
|
|
224
228
|
}
|
|
225
|
-
|
|
226
|
-
},
|
|
227
|
-
e.onClose(), i.value = 100,
|
|
228
|
-
|
|
229
|
+
E.value = !1, l.focusOpen && !l.isExterControlCount && (V(), i.value = c.value, g.value = !0), C("blur", e);
|
|
230
|
+
}, al = (e) => {
|
|
231
|
+
e.onClose(), i.value = 100, k(() => {
|
|
232
|
+
l.mode !== "combobox" && ee.value || l.focusOpen && (V(), i.value = c.value, g.value = !0);
|
|
229
233
|
});
|
|
230
234
|
};
|
|
231
|
-
|
|
232
|
-
() =>
|
|
235
|
+
we(
|
|
236
|
+
() => l.disabled || l.isView,
|
|
233
237
|
(e) => {
|
|
234
|
-
e &&
|
|
238
|
+
e && l.mode !== "combobox" && (E.value = !1);
|
|
235
239
|
}
|
|
236
240
|
);
|
|
237
|
-
let
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
let O = r(!1);
|
|
242
|
+
const sl = (e) => {
|
|
243
|
+
O.value = e, z.value = !0, k(() => {
|
|
244
|
+
z.value = !1, l.focusOpen && (V(), i.value = e ? _ : c.value, g.value = !e);
|
|
241
245
|
});
|
|
242
246
|
};
|
|
243
|
-
let
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
e && e[0] && e[0].intersectionRatio > 0 &&
|
|
247
|
-
|
|
247
|
+
let q = null;
|
|
248
|
+
ne(() => {
|
|
249
|
+
q = new IntersectionObserver((e) => {
|
|
250
|
+
e && e[0] && e[0].intersectionRatio > 0 && l.focusOpen && i.value === 0 && (i.value = 100, k(() => {
|
|
251
|
+
V(), i.value = c.value, g.value = !0;
|
|
248
252
|
}));
|
|
249
|
-
}),
|
|
250
|
-
}),
|
|
251
|
-
|
|
253
|
+
}), q.observe(P.value);
|
|
254
|
+
}), xe(() => {
|
|
255
|
+
q && q.disconnect();
|
|
252
256
|
});
|
|
253
|
-
const
|
|
257
|
+
const V = () => {
|
|
254
258
|
var ge;
|
|
255
259
|
let e = (ge = h.value) == null ? void 0 : ge.$el;
|
|
256
260
|
if (!e) return;
|
|
257
|
-
let
|
|
258
|
-
if (!
|
|
259
|
-
let a =
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
let
|
|
263
|
-
if (
|
|
264
|
-
i.value =
|
|
265
|
-
let
|
|
266
|
-
for (let y = 0; y <
|
|
267
|
-
if (
|
|
268
|
-
y >= s.value.length - 1 &&
|
|
261
|
+
let o = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
262
|
+
if (!o) return;
|
|
263
|
+
let a = o.offsetWidth - 5;
|
|
264
|
+
l.borderType === "underline" && (a -= 10);
|
|
265
|
+
const m = Math.ceil(de.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
266
|
+
let v = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
267
|
+
if (v.length < 1) return;
|
|
268
|
+
i.value = _;
|
|
269
|
+
let K = 0;
|
|
270
|
+
for (let y = 0; y < v.length - 1 && !v[y].classList.contains("ant-select-selection-overflow-item-rest"); y++)
|
|
271
|
+
if (K += Math.ceil(v[y].offsetWidth), K <= a - m)
|
|
272
|
+
y >= s.value.length - 1 && K < a ? c.value = s.value.length : c.value = y + 1;
|
|
269
273
|
else {
|
|
270
|
-
y >= s.value.length - 1 &&
|
|
274
|
+
y >= s.value.length - 1 && K < a ? c.value = s.value.length : c.value = y;
|
|
271
275
|
break;
|
|
272
276
|
}
|
|
273
|
-
if (
|
|
274
|
-
let y =
|
|
275
|
-
y && !y.classList.contains("ant-select-selection-overflow-item-rest") &&
|
|
277
|
+
if (c.value === 0) {
|
|
278
|
+
let y = v[0], rl = y.querySelector(".anticon-close") ? 86 : 69;
|
|
279
|
+
y && !y.classList.contains("ant-select-selection-overflow-item-rest") && rl <= a - m && !fe.tagRender && (c.value = 1, y.classList.add("ellipsis"));
|
|
276
280
|
}
|
|
277
|
-
},
|
|
278
|
-
|
|
281
|
+
}, se = r(!1);
|
|
282
|
+
we(
|
|
279
283
|
() => s.value,
|
|
280
284
|
async () => {
|
|
281
|
-
if (
|
|
282
|
-
|
|
285
|
+
if (se.value) {
|
|
286
|
+
se.value = !1;
|
|
283
287
|
return;
|
|
284
288
|
}
|
|
285
|
-
|
|
289
|
+
l.mode !== "combobox" && ee.value || (z.value = !0, i.value = _, await k(), await V(), z.value = !1, l.isExterControlCount && l.focusOpen ? (i.value = O.value ? _ : c.value, g.value = !O.value) : (i.value = c.value, g.value = !0));
|
|
286
290
|
}
|
|
287
291
|
);
|
|
288
|
-
const
|
|
289
|
-
|
|
292
|
+
const re = async (e, o) => {
|
|
293
|
+
se.value = !0, l.mode === "combobox" && (Y(), H.value = !1);
|
|
290
294
|
const a = e;
|
|
291
|
-
|
|
295
|
+
l.noDropdown && l.maxTagsLength < a.length && a.pop(), z.value = !0, C("update:model-value", a), C("change", a, o), i.value = _, await k(), await V(), z.value = !1, l.isExterControlCount && l.focusOpen && (i.value = O.value ? _ : c.value, g.value = !O.value), l.focusOpen || (i.value = c.value);
|
|
292
296
|
};
|
|
293
|
-
return
|
|
297
|
+
return B({
|
|
294
298
|
$select: h,
|
|
295
|
-
toChangeMaxCount:
|
|
296
|
-
}), (e,
|
|
297
|
-
const a =
|
|
299
|
+
toChangeMaxCount: sl
|
|
300
|
+
}), (e, o) => {
|
|
301
|
+
const a = ul("v-nodes");
|
|
298
302
|
return u(), b(
|
|
299
303
|
"div",
|
|
300
304
|
{
|
|
301
|
-
class:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
305
|
+
class: dl(["das-ui-select", [
|
|
306
|
+
l.borderType,
|
|
307
|
+
l.isView ? "readonly" : "",
|
|
308
|
+
l.error ? "is-error" : "",
|
|
309
|
+
g.value ? "show-ellipsis" : ""
|
|
306
310
|
]]),
|
|
307
311
|
ref_key: "$selectBox",
|
|
308
312
|
ref: P,
|
|
309
|
-
style:
|
|
313
|
+
style: T(qe.value)
|
|
310
314
|
},
|
|
311
315
|
[
|
|
312
|
-
|
|
316
|
+
x(n(bl), {
|
|
313
317
|
placement: "top",
|
|
314
318
|
trigger: "hover",
|
|
315
319
|
"virtual-triggering": "",
|
|
316
320
|
"virtual-ref": Be.value,
|
|
317
|
-
disabled: !e.isTooltip ||
|
|
321
|
+
disabled: !e.isTooltip || z.value || !be.value || !le.value
|
|
318
322
|
}, {
|
|
319
|
-
content:
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
+
content: f(() => [
|
|
324
|
+
Z((u(), b("div", Sl, [
|
|
325
|
+
U(
|
|
326
|
+
I(be.value),
|
|
323
327
|
1
|
|
324
328
|
/* TEXT */
|
|
325
329
|
)
|
|
326
330
|
])), [
|
|
327
|
-
[
|
|
331
|
+
[n(ke)]
|
|
328
332
|
])
|
|
329
333
|
]),
|
|
330
334
|
_: 1
|
|
331
335
|
/* STABLE */
|
|
332
336
|
}, 8, ["virtual-ref", "disabled"]),
|
|
333
|
-
|
|
334
|
-
value:
|
|
335
|
-
"onUpdate:value":
|
|
337
|
+
Z((u(), A(n(ml), ze(e.$attrs, {
|
|
338
|
+
value: n(s),
|
|
339
|
+
"onUpdate:value": o[4] || (o[4] = (t) => cl(s) ? s.value = t : null),
|
|
336
340
|
ref_key: "$select",
|
|
337
341
|
ref: h,
|
|
338
|
-
options:
|
|
342
|
+
options: pe.value,
|
|
339
343
|
mode: e.mode,
|
|
340
344
|
fieldNames: e.fieldNames,
|
|
341
|
-
bordered:
|
|
342
|
-
disabled:
|
|
345
|
+
bordered: l.borderType === "bordered",
|
|
346
|
+
disabled: l.disabled || l.isView,
|
|
343
347
|
showArrow: !0,
|
|
344
|
-
open:
|
|
345
|
-
placeholder:
|
|
346
|
-
optionFilterProp:
|
|
347
|
-
size:
|
|
348
|
-
style:
|
|
348
|
+
open: l.noDropdown ? !1 : ee.value,
|
|
349
|
+
placeholder: Ee.value,
|
|
350
|
+
optionFilterProp: He.value,
|
|
351
|
+
size: l.size == "middle" ? "defalut" : l.size == "mini" ? "small" : l.size,
|
|
352
|
+
style: l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {},
|
|
349
353
|
dropdownClassName: "das-ui-select-dorpdown " + e.dropdownClassName,
|
|
350
354
|
maxTagCount: i.value,
|
|
351
|
-
getPopupContainer:
|
|
355
|
+
getPopupContainer: Qe,
|
|
352
356
|
dropdownStyle: Ae.value,
|
|
353
|
-
onDropdownVisibleChange:
|
|
354
|
-
onChange:
|
|
355
|
-
onFocus:
|
|
357
|
+
onDropdownVisibleChange: Ge,
|
|
358
|
+
onChange: re,
|
|
359
|
+
onFocus: ll,
|
|
356
360
|
onClick: [
|
|
357
|
-
|
|
358
|
-
|
|
361
|
+
ol,
|
|
362
|
+
o[5] || (o[5] = X(() => {
|
|
359
363
|
}, ["stop"]))
|
|
360
364
|
],
|
|
361
|
-
onBlur:
|
|
362
|
-
}),
|
|
363
|
-
option:
|
|
364
|
-
|
|
365
|
-
var
|
|
365
|
+
onBlur: tl
|
|
366
|
+
}), vl({
|
|
367
|
+
option: f((t) => [
|
|
368
|
+
w(e.$slots, "option", j(G(t)), () => {
|
|
369
|
+
var m;
|
|
366
370
|
return [
|
|
367
|
-
t.children && typeof t.children == "function" ? (u(),
|
|
371
|
+
t.children && typeof t.children == "function" ? (u(), A(a, {
|
|
368
372
|
key: 0,
|
|
369
373
|
vnodes: t.children()
|
|
370
374
|
}, null, 8, ["vnodes"])) : (u(), b(
|
|
371
375
|
J,
|
|
372
376
|
{ key: 1 },
|
|
373
377
|
[
|
|
374
|
-
|
|
375
|
-
e.mode === "combobox" ?
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
S(' :option="{value, label, [disabled, key, title]}" '),
|
|
379
|
+
e.mode === "combobox" ? Z((u(), b("div", Ml, [
|
|
380
|
+
U(
|
|
381
|
+
I(t[W.value]),
|
|
378
382
|
1
|
|
379
383
|
/* TEXT */
|
|
380
384
|
)
|
|
381
385
|
])), [
|
|
382
|
-
[
|
|
386
|
+
[n(Te)]
|
|
383
387
|
]) : (u(), b(
|
|
384
388
|
J,
|
|
385
389
|
{ key: 1 },
|
|
386
390
|
[
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
(u(),
|
|
391
|
+
S(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
392
|
+
p("div", _l, [
|
|
393
|
+
(u(), A(n(Ce), {
|
|
390
394
|
class: "das-select-checkbox",
|
|
391
|
-
modelValue: (
|
|
392
|
-
key: t[
|
|
395
|
+
modelValue: (m = n(s)) == null ? void 0 : m.includes(t[N.value]),
|
|
396
|
+
key: t[N.value],
|
|
393
397
|
disabled: t.disabled
|
|
394
398
|
}, null, 8, ["modelValue", "disabled"])),
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
399
|
+
Z((u(), b("div", zl, [
|
|
400
|
+
U(
|
|
401
|
+
I(t[W.value]),
|
|
398
402
|
1
|
|
399
403
|
/* TEXT */
|
|
400
404
|
)
|
|
401
405
|
])), [
|
|
402
|
-
[
|
|
406
|
+
[n(Te)]
|
|
403
407
|
])
|
|
404
408
|
])
|
|
405
409
|
],
|
|
@@ -413,21 +417,21 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
413
417
|
];
|
|
414
418
|
}, !0)
|
|
415
419
|
]),
|
|
416
|
-
tagRender:
|
|
417
|
-
|
|
418
|
-
|
|
420
|
+
tagRender: f((t) => [
|
|
421
|
+
w(e.$slots, "tagRender", j(G(t)), () => [
|
|
422
|
+
x(n(ue), {
|
|
419
423
|
closable: t.closable,
|
|
420
424
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
421
|
-
onClose: (
|
|
425
|
+
onClose: (m) => al(t)
|
|
422
426
|
}, {
|
|
423
|
-
default:
|
|
424
|
-
|
|
427
|
+
default: f(() => [
|
|
428
|
+
p(
|
|
425
429
|
"span",
|
|
426
430
|
{
|
|
427
431
|
class: "tag-span",
|
|
428
|
-
style:
|
|
432
|
+
style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
429
433
|
},
|
|
430
|
-
|
|
434
|
+
I(Je(t.label)),
|
|
431
435
|
5
|
|
432
436
|
/* TEXT, STYLE */
|
|
433
437
|
)
|
|
@@ -437,43 +441,43 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
437
441
|
}, 1032, ["closable", "onClose"])
|
|
438
442
|
], !0)
|
|
439
443
|
]),
|
|
440
|
-
dropdownRender:
|
|
441
|
-
|
|
442
|
-
var
|
|
444
|
+
dropdownRender: f(({ menuNode: t }) => [
|
|
445
|
+
w(e.$slots, "dropdownRender", j(G({ menuNode: t })), () => {
|
|
446
|
+
var m;
|
|
443
447
|
return [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
])) :
|
|
448
|
+
ce.value === "combobox" ? (u(), b("div", Nl, [
|
|
449
|
+
x(a, { vnodes: t }, null, 8, ["vnodes"])
|
|
450
|
+
])) : ce.value === "custom" ? (u(), b("div", {
|
|
447
451
|
key: 1,
|
|
448
|
-
onClick:
|
|
452
|
+
onClick: o[2] || (o[2] = X(() => {
|
|
449
453
|
}, ["stop"]))
|
|
450
454
|
}, [
|
|
451
|
-
|
|
452
|
-
|
|
455
|
+
x(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
456
|
+
p(
|
|
453
457
|
"div",
|
|
454
458
|
{
|
|
455
459
|
class: "customDropdown",
|
|
456
|
-
onMousedown:
|
|
460
|
+
onMousedown: o[1] || (o[1] = (v) => v.preventDefault())
|
|
457
461
|
},
|
|
458
462
|
[
|
|
459
|
-
|
|
463
|
+
x(n(hl), {
|
|
460
464
|
ref_key: "testInput",
|
|
461
|
-
ref:
|
|
462
|
-
modelValue:
|
|
463
|
-
"onUpdate:modelValue":
|
|
464
|
-
onKeyup:
|
|
465
|
+
ref: $e,
|
|
466
|
+
modelValue: L.value,
|
|
467
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => L.value = v),
|
|
468
|
+
onKeyup: fl(ve, ["enter"]),
|
|
465
469
|
onFocus: X(Fe, ["stop"]),
|
|
466
|
-
onBlur: X(
|
|
470
|
+
onBlur: X(Le, ["stop"]),
|
|
467
471
|
width: "100%",
|
|
468
472
|
borderType: "bordered"
|
|
469
473
|
}, null, 8, ["modelValue"]),
|
|
470
|
-
|
|
474
|
+
p(
|
|
471
475
|
"div",
|
|
472
476
|
{
|
|
473
477
|
class: "addBtn",
|
|
474
|
-
onClick:
|
|
478
|
+
onClick: ve
|
|
475
479
|
},
|
|
476
|
-
|
|
480
|
+
I(n(D)("添加")),
|
|
477
481
|
1
|
|
478
482
|
/* TEXT */
|
|
479
483
|
)
|
|
@@ -481,26 +485,26 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
481
485
|
32
|
|
482
486
|
/* NEED_HYDRATION */
|
|
483
487
|
)
|
|
484
|
-
])) : (u(), b("div",
|
|
485
|
-
|
|
486
|
-
(
|
|
488
|
+
])) : (u(), b("div", Vl, [
|
|
489
|
+
x(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
490
|
+
(m = l.options) != null && m.length ? (u(), b(
|
|
487
491
|
"div",
|
|
488
492
|
{
|
|
489
493
|
key: 0,
|
|
490
494
|
class: "das-ui-select-dropdown-checkall",
|
|
491
|
-
onMousedown:
|
|
495
|
+
onMousedown: o[3] || (o[3] = (v) => v.preventDefault())
|
|
492
496
|
},
|
|
493
497
|
[
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
modelValue:
|
|
498
|
+
p("div", Bl, [
|
|
499
|
+
x(n(Ce), {
|
|
500
|
+
modelValue: We.value,
|
|
497
501
|
indeterminate: Re.value,
|
|
498
|
-
onChange:
|
|
502
|
+
onChange: Ye,
|
|
499
503
|
style: { display: "flex" }
|
|
500
504
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
|
|
503
|
-
|
|
505
|
+
default: f(() => [
|
|
506
|
+
U(
|
|
507
|
+
I(n(D)("全选")),
|
|
504
508
|
1
|
|
505
509
|
/* TEXT */
|
|
506
510
|
)
|
|
@@ -509,107 +513,87 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
509
513
|
/* STABLE */
|
|
510
514
|
}, 8, ["modelValue", "indeterminate"])
|
|
511
515
|
]),
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
/* TEXT */
|
|
517
|
-
),
|
|
518
|
-
m(
|
|
519
|
-
"span",
|
|
520
|
-
$o,
|
|
521
|
-
c(((g = r(s)) == null ? void 0 : g.length) || 0),
|
|
522
|
-
1
|
|
523
|
-
/* TEXT */
|
|
524
|
-
),
|
|
525
|
-
_(
|
|
526
|
-
c(r(z)("项")),
|
|
527
|
-
1
|
|
528
|
-
/* TEXT */
|
|
529
|
-
)
|
|
530
|
-
])
|
|
516
|
+
p("span", {
|
|
517
|
+
class: "das-ui-dropdown-has-checked",
|
|
518
|
+
innerHTML: n(D)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
519
|
+
}, null, 8, $l)
|
|
531
520
|
],
|
|
532
521
|
32
|
|
533
522
|
/* NEED_HYDRATION */
|
|
534
|
-
)) :
|
|
523
|
+
)) : S("v-if", !0)
|
|
535
524
|
]))
|
|
536
525
|
];
|
|
537
526
|
}, !0)
|
|
538
527
|
]),
|
|
539
|
-
clearIcon:
|
|
540
|
-
|
|
541
|
-
|
|
528
|
+
clearIcon: f(() => [
|
|
529
|
+
w(e.$slots, "clearIcon", {}, () => [
|
|
530
|
+
x(n(gl), { size: "medium" })
|
|
542
531
|
], !0)
|
|
543
532
|
]),
|
|
544
|
-
maxTagPlaceholder:
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
style:
|
|
533
|
+
maxTagPlaceholder: f((t) => [
|
|
534
|
+
w(e.$slots, "maxTagPlaceholder", j(G(t)), () => [
|
|
535
|
+
S(" 隐藏tag时显示的内容 "),
|
|
536
|
+
x(n(ue), {
|
|
537
|
+
style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
549
538
|
}, {
|
|
550
|
-
default:
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
1
|
|
556
|
-
/* TEXT */
|
|
557
|
-
)
|
|
558
|
-
];
|
|
559
|
-
}),
|
|
539
|
+
default: f(() => [
|
|
540
|
+
p("span", {
|
|
541
|
+
innerHTML: n(D)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
542
|
+
}, null, 8, Fl)
|
|
543
|
+
]),
|
|
560
544
|
_: 1
|
|
561
545
|
/* STABLE */
|
|
562
546
|
}, 8, ["style"]),
|
|
563
|
-
|
|
547
|
+
S(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
|
|
564
548
|
], !0)
|
|
565
549
|
]),
|
|
566
|
-
suffixIcon:
|
|
567
|
-
|
|
568
|
-
|
|
550
|
+
suffixIcon: f(() => [
|
|
551
|
+
w(e.$slots, "suffixIcon", {}, () => [
|
|
552
|
+
x(n(yl), {
|
|
569
553
|
class: "das-suffix-icon",
|
|
570
554
|
size: "medium"
|
|
571
555
|
})
|
|
572
556
|
], !0)
|
|
573
557
|
]),
|
|
574
|
-
default:
|
|
575
|
-
|
|
558
|
+
default: f(() => [
|
|
559
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
576
560
|
]),
|
|
577
561
|
_: 2
|
|
578
562
|
/* DYNAMIC */
|
|
579
563
|
}, [
|
|
580
564
|
e.$slots.menuItemSelectedIcon ? {
|
|
581
565
|
name: "menuItemSelectedIcon",
|
|
582
|
-
fn:
|
|
583
|
-
|
|
566
|
+
fn: f(() => [
|
|
567
|
+
w(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
|
|
584
568
|
]),
|
|
585
569
|
key: "0"
|
|
586
570
|
} : void 0,
|
|
587
571
|
e.$slots.notFoundContent ? {
|
|
588
572
|
name: "notFoundContent",
|
|
589
|
-
fn:
|
|
590
|
-
|
|
573
|
+
fn: f(() => [
|
|
574
|
+
w(e.$slots, "notFoundContent", {}, void 0, !0)
|
|
591
575
|
]),
|
|
592
576
|
key: "1"
|
|
593
577
|
} : void 0,
|
|
594
578
|
e.$slots.placeholder ? {
|
|
595
579
|
name: "placeholder",
|
|
596
|
-
fn:
|
|
597
|
-
|
|
580
|
+
fn: f(() => [
|
|
581
|
+
w(e.$slots, "placeholder", {}, void 0, !0)
|
|
598
582
|
]),
|
|
599
583
|
key: "2"
|
|
600
584
|
} : void 0,
|
|
601
585
|
e.$slots.removeIcon ? {
|
|
602
586
|
name: "removeIcon",
|
|
603
|
-
fn:
|
|
604
|
-
|
|
587
|
+
fn: f(() => [
|
|
588
|
+
w(e.$slots, "removeIcon", {}, void 0, !0)
|
|
605
589
|
]),
|
|
606
590
|
key: "3"
|
|
607
591
|
} : void 0
|
|
608
592
|
]), 1040, ["value", "options", "mode", "fieldNames", "bordered", "disabled", "open", "placeholder", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
|
|
609
|
-
[
|
|
610
|
-
[
|
|
593
|
+
[n(ke), { target: el, x: !1 }],
|
|
594
|
+
[n(xl), je]
|
|
611
595
|
]),
|
|
612
|
-
|
|
596
|
+
S(` <div\r
|
|
613
597
|
:class="[errorMode === 'default' ? 'das-select-error-label-content' : 'das-select-overlay-error-label-content', 'das-select-label-content']"\r
|
|
614
598
|
v-if="(errorMode === 'default' || (errorMode === 'overlay' && isHoverInInput)) && error && !!errorLabel"\r
|
|
615
599
|
>\r
|
|
@@ -619,36 +603,36 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
619
603
|
J,
|
|
620
604
|
{ key: 0 },
|
|
621
605
|
[
|
|
622
|
-
e.errorMode === "default" ? (u(), b("div",
|
|
623
|
-
|
|
606
|
+
e.errorMode === "default" ? (u(), b("div", Ll, [
|
|
607
|
+
p(
|
|
624
608
|
"span",
|
|
625
609
|
{
|
|
626
|
-
style:
|
|
610
|
+
style: T(ae.value)
|
|
627
611
|
},
|
|
628
|
-
|
|
612
|
+
I(e.errorLabel),
|
|
629
613
|
5
|
|
630
614
|
/* TEXT, STYLE */
|
|
631
615
|
)
|
|
632
|
-
])) : e.errorMode === "overlay" &&
|
|
616
|
+
])) : e.errorMode === "overlay" && te.value ? (u(), b(
|
|
633
617
|
J,
|
|
634
618
|
{ key: 1 },
|
|
635
619
|
[
|
|
636
|
-
e.teleported ? (u(),
|
|
620
|
+
e.teleported ? (u(), A(pl, {
|
|
637
621
|
key: 0,
|
|
638
622
|
to: "body"
|
|
639
623
|
}, [
|
|
640
|
-
|
|
624
|
+
p(
|
|
641
625
|
"div",
|
|
642
626
|
{
|
|
643
|
-
style:
|
|
627
|
+
style: T(Ke.value)
|
|
644
628
|
},
|
|
645
629
|
[
|
|
646
|
-
|
|
630
|
+
p(
|
|
647
631
|
"span",
|
|
648
632
|
{
|
|
649
|
-
style:
|
|
633
|
+
style: T(ae.value)
|
|
650
634
|
},
|
|
651
|
-
|
|
635
|
+
I(e.errorLabel),
|
|
652
636
|
5
|
|
653
637
|
/* TEXT, STYLE */
|
|
654
638
|
)
|
|
@@ -660,16 +644,16 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
660
644
|
"div",
|
|
661
645
|
{
|
|
662
646
|
key: 1,
|
|
663
|
-
style:
|
|
647
|
+
style: T(ye.value),
|
|
664
648
|
class: "das-select-error-label label"
|
|
665
649
|
},
|
|
666
650
|
[
|
|
667
|
-
|
|
651
|
+
p(
|
|
668
652
|
"span",
|
|
669
653
|
{
|
|
670
|
-
style:
|
|
654
|
+
style: T(ae.value)
|
|
671
655
|
},
|
|
672
|
-
|
|
656
|
+
I(e.errorLabel),
|
|
673
657
|
5
|
|
674
658
|
/* TEXT, STYLE */
|
|
675
659
|
)
|
|
@@ -680,36 +664,31 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
680
664
|
],
|
|
681
665
|
64
|
|
682
666
|
/* STABLE_FRAGMENT */
|
|
683
|
-
)) :
|
|
667
|
+
)) : S("v-if", !0)
|
|
684
668
|
],
|
|
685
669
|
64
|
|
686
670
|
/* STABLE_FRAGMENT */
|
|
687
|
-
)) :
|
|
688
|
-
|
|
671
|
+
)) : S("v-if", !0),
|
|
672
|
+
p(
|
|
689
673
|
"div",
|
|
690
674
|
{
|
|
691
675
|
class: "ant-select-selection-overflow",
|
|
692
676
|
ref_key: "virtualTotalCount",
|
|
693
|
-
ref:
|
|
677
|
+
ref: de,
|
|
694
678
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
695
679
|
},
|
|
696
680
|
[
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
style:
|
|
681
|
+
p("div", Dl, [
|
|
682
|
+
p("div", Pl, [
|
|
683
|
+
p("span", Ol, [
|
|
684
|
+
x(n(ue), {
|
|
685
|
+
style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
702
686
|
}, {
|
|
703
|
-
default:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
1
|
|
709
|
-
/* TEXT */
|
|
710
|
-
)
|
|
711
|
-
];
|
|
712
|
-
}),
|
|
687
|
+
default: f(() => [
|
|
688
|
+
p("span", {
|
|
689
|
+
innerHTML: n(D)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
690
|
+
}, null, 8, Al)
|
|
691
|
+
]),
|
|
713
692
|
_: 1
|
|
714
693
|
/* STABLE */
|
|
715
694
|
}, 8, ["style"])
|
|
@@ -726,32 +705,32 @@ const So = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
726
705
|
);
|
|
727
706
|
};
|
|
728
707
|
}
|
|
729
|
-
}), Ne = (
|
|
730
|
-
const
|
|
731
|
-
for (const [
|
|
732
|
-
|
|
733
|
-
return
|
|
734
|
-
},
|
|
735
|
-
function
|
|
736
|
-
const
|
|
737
|
-
return u(),
|
|
738
|
-
|
|
739
|
-
|
|
708
|
+
}), Ne = (M, B) => {
|
|
709
|
+
const $ = M.__vccOpts || M;
|
|
710
|
+
for (const [l, C] of B)
|
|
711
|
+
$[l] = C;
|
|
712
|
+
return $;
|
|
713
|
+
}, Rl = /* @__PURE__ */ Ne(Wl, [["__scopeId", "data-v-aa0f3476"]]), Hl = {};
|
|
714
|
+
function ql(M, B) {
|
|
715
|
+
const $ = Il;
|
|
716
|
+
return u(), A(
|
|
717
|
+
$,
|
|
718
|
+
ze({ class: "das-ui-select-option" }, M.$attrs),
|
|
740
719
|
null,
|
|
741
720
|
16
|
|
742
721
|
/* FULL_PROPS */
|
|
743
722
|
);
|
|
744
723
|
}
|
|
745
|
-
const
|
|
724
|
+
const Kl = /* @__PURE__ */ Ne(Hl, [["render", ql], ["__scopeId", "data-v-6b03e650"]]), Zl = {
|
|
746
725
|
"--das-ui-select-color-bg": "#FFFFFF",
|
|
747
726
|
// 默认背景色
|
|
748
|
-
"--das-ui-select-color-primary":
|
|
727
|
+
"--das-ui-select-color-primary": Se("--das-ui-color-primary"),
|
|
749
728
|
// 主题色
|
|
750
729
|
"--das-ui-select-color-text": "#212121",
|
|
751
730
|
// 主文本色
|
|
752
731
|
"--das-ui-select-color-border": "#d9d9d9",
|
|
753
732
|
// 边框基础色
|
|
754
|
-
"--das-ui-select-color-underline":
|
|
733
|
+
"--das-ui-select-color-underline": Se("--das-ui-color-help"),
|
|
755
734
|
// 下划线基础色
|
|
756
735
|
"--das-ui-select-color-error": "#FB2323",
|
|
757
736
|
// 错误边框色
|
|
@@ -789,18 +768,21 @@ const Ko = /* @__PURE__ */ Ne(Wo, [["render", qo], ["__scopeId", "data-v-6b03e65
|
|
|
789
768
|
// 多选框字体大小-lg
|
|
790
769
|
"--das-ui-select-overlay-error-color": "#FB2323",
|
|
791
770
|
"--das-ui-select-overlay-error-bg-color": "#FFDBE0"
|
|
792
|
-
},
|
|
771
|
+
}, Ul = {
|
|
793
772
|
添加: { "zh-CN": "添加", en: "Add", _appCode: "framework" },
|
|
794
773
|
全选: { "zh-CN": "全选", en: "Select All", _appCode: "framework" },
|
|
795
774
|
已选: { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
796
|
-
|
|
797
|
-
|
|
775
|
+
"das-ui-select-selectedItemsCountWithPlaceholder": {
|
|
776
|
+
"zh-CN": "已选$0项",
|
|
777
|
+
en: "$0 Items Selected",
|
|
778
|
+
_appCode: "framework"
|
|
779
|
+
}
|
|
798
780
|
};
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
const
|
|
781
|
+
kl(Ul);
|
|
782
|
+
wl(Zl);
|
|
783
|
+
const fo = Me(Rl), po = Me(Kl), mo = { name: "select 选择器" };
|
|
802
784
|
export {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
785
|
+
fo as DasSelect,
|
|
786
|
+
po as DasSelectOption,
|
|
787
|
+
mo as default
|
|
806
788
|
};
|