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