@das-fed/ui 6.4.0-test.5.1 → 6.4.0-test.6.1
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/device-panel/index.js +37113 -36843
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +0 -2
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +16 -6
- package/packages/business-components/import-button/index.js +147 -141
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/process-configuration/i18n/index.d.ts +5 -0
- package/packages/business-components/process-configuration/index.js +2 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +2 -3
- package/packages/business-components/process-form/index.js +64 -63
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-search-form/index.js +56 -56
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +539 -528
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +13 -4
- package/packages/components/autocomplete/index.js +135 -122
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -1
- package/packages/components/autocomplete/src/type.d.ts +4 -1
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/cascader/index.js +41 -40
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +238 -237
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +9 -9
- package/packages/components/edit-table/index.js +2010 -1658
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +9 -3
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/edit-table/src/type.d.ts +13 -0
- package/packages/components/edit-table/src/utils.d.ts +9 -5
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/form-item/index.js +3 -3
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/input/index.js +103 -102
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +18 -18
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +63 -63
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -3
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/map/index.js +388 -385
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +680 -606
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +5 -0
- package/packages/components/search-form/index.js +44 -43
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +213 -213
- 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/select-list/index.d.ts +23 -3
- package/packages/components/select-list/index.js +599 -565
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +9 -1
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +2 -0
- package/packages/components/select-list/src/type.d.ts +22 -4
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +3 -3
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +42 -42
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +0 -20
- package/packages/components/table/index.js +0 -4
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +660 -651
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +1 -62
- package/packages/components/tree/index.js +222 -222
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +1 -0
- package/packages/components/tree-select/index.js +374 -345
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -1
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/select/style.css';
|
|
2
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
|
|
4
|
-
import { Select as ml, Tag as
|
|
3
|
+
import { defineComponent as _e, useCssVars as nl, computed as d, ref as r, useSlots as il, onMounted as ie, onUnmounted as xe, watchEffect as ue, watch as Ce, 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 p, withDirectives as U, createTextVNode as X, toDisplayString as I, createBlock as W, mergeProps as ze, isRef as cl, withModifiers as j, createSlots as vl, renderSlot as C, normalizeProps as G, guardReactiveProps as J, Fragment as Q, createCommentVNode as S, createElementVNode as m, withKeys as fl, Teleport as pl } from "vue";
|
|
4
|
+
import { Select as ml, Tag as de } from "ant-design-vue";
|
|
5
5
|
import "ant-design-vue/es/select/style/css";
|
|
6
6
|
import "ant-design-vue/es/tag/style/css";
|
|
7
|
-
import { DasCheckbox as
|
|
7
|
+
import { DasCheckbox as we } from "@das-fed/ui/packages/components/checkbox/index";
|
|
8
8
|
import { vScrollbar as ke } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
9
|
-
import { DasTooltip as
|
|
9
|
+
import { DasTooltip as hl } from "@das-fed/ui/packages/components/tooltip/index";
|
|
10
10
|
import { vDasTooltip as Te } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
11
|
-
import { DasInput as
|
|
11
|
+
import { DasInput as bl } from "@das-fed/ui/packages/components/input/index";
|
|
12
12
|
import { DasIconXiala as yl } from "@das-fed/ui/packages/icons/xiala/index";
|
|
13
13
|
import { DasIconEmpty as gl } from "@das-fed/ui/packages/icons/empty/index";
|
|
14
14
|
import { vHoverInside as xl } from "@das-fed/utils/directive";
|
|
15
|
-
import { getVarValue as Ie, getVar as Se, setThemeRule as
|
|
16
|
-
import { useZIndex as
|
|
17
|
-
import { t as
|
|
15
|
+
import { getVarValue as Ie, getVar as Se, setThemeRule as Cl } from "@das-fed/web/packages/theme/index";
|
|
16
|
+
import { useZIndex as wl } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
17
|
+
import { t as P, setI18nRule as kl } from "@das-fed/web/packages/i18n/index";
|
|
18
18
|
import { useModelValue as Tl } from "@das-fed/utils/vue";
|
|
19
19
|
import { SelectOption as Il } from "ant-design-vue/es";
|
|
20
20
|
const Sl = { style: { "max-height": "200px", 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 = {
|
|
@@ -23,7 +23,7 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
23
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({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
components: {
|
|
26
|
-
VNodes: (M, { attrs:
|
|
26
|
+
VNodes: (M, { attrs: $ }) => $.vnodes
|
|
27
27
|
}
|
|
28
28
|
}), Wl = /* @__PURE__ */ _e({
|
|
29
29
|
...El,
|
|
@@ -62,70 +62,70 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
62
62
|
dropdownMode: {}
|
|
63
63
|
},
|
|
64
64
|
emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
|
|
65
|
-
setup(M, { expose:
|
|
65
|
+
setup(M, { expose: $, emit: F }) {
|
|
66
66
|
nl((e) => ({
|
|
67
|
-
"
|
|
68
|
-
"
|
|
67
|
+
"5b198268": Pe.value,
|
|
68
|
+
"23705e76": Oe.value
|
|
69
69
|
}));
|
|
70
|
-
const l = M,
|
|
70
|
+
const l = M, w = F, s = Tl(l, "modelValue"), Y = d(() => {
|
|
71
71
|
var e;
|
|
72
72
|
return `<span class='key'>${((e = s.value) == null ? void 0 : e.length) ?? 0}</span>`;
|
|
73
|
-
}), g = r(!1), Ve = d(() => l.placeholder ||
|
|
74
|
-
|
|
73
|
+
}), g = r(!1), Ve = d(() => l.placeholder || P("请选择")), Be = d(() => O.value ? O.value.querySelector(".ant-select-selector") : null), ce = r(null), ve = d(() => l.dropdownMode ?? l.mode ?? ""), L = r(null), $e = r(null), D = r(""), Fe = () => {
|
|
74
|
+
L.value = !0;
|
|
75
75
|
}, Le = () => {
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}) :
|
|
81
|
-
},
|
|
82
|
-
l.mode === "combobox" && l.dropdownMode === "custom" && !
|
|
83
|
-
|
|
76
|
+
L.value = null;
|
|
77
|
+
}, fe = () => {
|
|
78
|
+
D.value && (w("addCustomItem", D.value), D.value = "", l.mode === "combobox" ? k(() => {
|
|
79
|
+
y.value.focus();
|
|
80
|
+
}) : y.value.focus());
|
|
81
|
+
}, pe = il(), ee = () => {
|
|
82
|
+
l.mode === "combobox" && l.dropdownMode === "custom" && !pe.dropdownRender && (L.value = !1, k(() => {
|
|
83
|
+
L.value = null;
|
|
84
84
|
}));
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
document.addEventListener("click",
|
|
86
|
+
ie(() => {
|
|
87
|
+
document.addEventListener("click", ee);
|
|
88
88
|
}), xe(() => {
|
|
89
|
-
document.removeEventListener("click",
|
|
89
|
+
document.removeEventListener("click", ee);
|
|
90
90
|
});
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
s.value && l.mode == "combobox" && (
|
|
91
|
+
const y = r(), me = r(), R = r(!1), le = d(() => L.value !== null ? L.value : l.open === void 0 ? l.mode === "combobox" ? void 0 : R.value : l.open), _ = 1e6, i = r(100), c = r(100), z = r(!1), oe = r(!0), te = r(!1);
|
|
92
|
+
ue(() => {
|
|
93
|
+
s.value && l.mode == "combobox" && (oe.value = !0, setTimeout(() => {
|
|
94
94
|
var o;
|
|
95
|
-
let e = (o =
|
|
95
|
+
let e = (o = y.value) == null ? void 0 : o.$el.querySelectorAll(".ant-select-selection-item");
|
|
96
96
|
if (e && e.length > 0)
|
|
97
97
|
for (let a = 0; a < e.length; a++) {
|
|
98
98
|
let t = e[a];
|
|
99
|
-
t.scrollWidth <= t.offsetWidth && (
|
|
99
|
+
t.scrollWidth <= t.offsetWidth && (oe.value = !1), t.title = "";
|
|
100
100
|
}
|
|
101
101
|
}, 300));
|
|
102
|
-
}),
|
|
103
|
-
l.options && (
|
|
102
|
+
}), ue(() => {
|
|
103
|
+
l.options && (me.value = l.options.map((e) => (e.title = e.title ? e.title : "", e)));
|
|
104
104
|
});
|
|
105
105
|
const De = () => {
|
|
106
106
|
setTimeout(async () => {
|
|
107
107
|
i.value = 100, await V(), i.value = c.value, g.value = !0;
|
|
108
108
|
}, 100);
|
|
109
109
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}),
|
|
113
|
-
|
|
110
|
+
ue(() => {
|
|
111
|
+
te.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (te.value = !1, De());
|
|
112
|
+
}), ie(() => {
|
|
113
|
+
te.value = !0, l.focusOpen || (c.value = 1, i.value = c.value, g.value = !0);
|
|
114
114
|
});
|
|
115
|
-
const Pe = d(() => l.width ? l.width : "230px"), Oe = d(() => l.height ? l.height : "auto"),
|
|
116
|
-
"z-index":
|
|
115
|
+
const Pe = d(() => l.width ? l.width : "230px"), Oe = d(() => l.height ? l.height : "auto"), he = r(3e3), Ae = d(() => ({
|
|
116
|
+
"z-index": he.value
|
|
117
117
|
})), be = d(() => {
|
|
118
118
|
var o;
|
|
119
119
|
let e = [];
|
|
120
120
|
if (l.mode != "combobox" && Array.isArray(s.value))
|
|
121
121
|
s.value.map((a) => {
|
|
122
|
-
var
|
|
123
|
-
let t = (
|
|
124
|
-
t && e.push(t[
|
|
122
|
+
var h;
|
|
123
|
+
let t = (h = l.options) == null ? void 0 : h.find((v) => v[N.value] == a);
|
|
124
|
+
t && e.push(t[H.value]);
|
|
125
125
|
});
|
|
126
126
|
else if (l.mode == "combobox" && s.value) {
|
|
127
127
|
let a = (o = l.options) == null ? void 0 : o.find((t) => t[N.value] == s.value);
|
|
128
|
-
a && e.push(a[
|
|
128
|
+
a && e.push(a[H.value]);
|
|
129
129
|
}
|
|
130
130
|
return e.join("、");
|
|
131
131
|
}), Ee = d(() => l.isView ? l.noSetDefaultVal ? "" : "-" : Ve.value), We = d(() => {
|
|
@@ -137,7 +137,7 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
137
137
|
}), He = d(() => {
|
|
138
138
|
var e, o;
|
|
139
139
|
return l.optionFilterProp ? l.optionFilterProp : (e = l.fieldNames) != null && e.label ? (o = l.fieldNames) == null ? void 0 : o.label : "label";
|
|
140
|
-
}),
|
|
140
|
+
}), H = d(() => {
|
|
141
141
|
var e;
|
|
142
142
|
return l.fieldNames && l.fieldNames.label ? (e = l.fieldNames) == null ? void 0 : e.label : "label";
|
|
143
143
|
}), N = d(() => {
|
|
@@ -145,10 +145,10 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
145
145
|
return l.fieldNames && l.fieldNames.value ? (e = l.fieldNames) == null ? void 0 : e.value : "value";
|
|
146
146
|
}), qe = d(() => ({
|
|
147
147
|
width: typeof l.width == "number" ? l.width + "px" : l.width
|
|
148
|
-
})),
|
|
148
|
+
})), ae = r(!1), q = r({
|
|
149
149
|
x: 0,
|
|
150
150
|
y: 0
|
|
151
|
-
}),
|
|
151
|
+
}), ye = r(0), ge = d(() => ({
|
|
152
152
|
"font-size": "12px",
|
|
153
153
|
"background-color": Ie("--das-ui-input-number-overlay-error-bg-color").value,
|
|
154
154
|
"box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
@@ -157,145 +157,145 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
157
157
|
"box-sizing": "border-box",
|
|
158
158
|
"z-index": l.errorModelZIndex
|
|
159
159
|
})), Ke = d(() => ({
|
|
160
|
-
...
|
|
161
|
-
width:
|
|
160
|
+
...ge.value,
|
|
161
|
+
width: ye.value + "px",
|
|
162
162
|
position: "fixed",
|
|
163
163
|
visibility: "visible",
|
|
164
|
-
top:
|
|
165
|
-
left:
|
|
166
|
-
})),
|
|
164
|
+
top: q.value.y + "px",
|
|
165
|
+
left: q.value.x + "px"
|
|
166
|
+
})), se = r({
|
|
167
167
|
display: "block",
|
|
168
168
|
color: Ie("--das-ui-input-error-color").value,
|
|
169
|
-
"white-space": "break-spaces"
|
|
170
|
-
|
|
169
|
+
"white-space": "break-spaces"
|
|
170
|
+
// 'word-break': 'break-all',
|
|
171
171
|
}), Ze = () => {
|
|
172
|
-
var t,
|
|
173
|
-
const { top: e, left: o } = (t =
|
|
174
|
-
|
|
172
|
+
var t, h, v, B, E, f;
|
|
173
|
+
const { top: e = 0, left: o = 0 } = ((h = (t = y.value) == null ? void 0 : t.$el) == null ? void 0 : h.getBoundingClientRect()) ?? {}, a = (B = (v = y.value) == null ? void 0 : v.$el) == null ? void 0 : B.clientHeight;
|
|
174
|
+
ye.value = (f = (E = y.value) == null ? void 0 : E.$el) == null ? void 0 : f.clientWidth, q.value.x = o, q.value.y = e + a;
|
|
175
175
|
}, Ue = () => {
|
|
176
|
-
Ze(),
|
|
176
|
+
Ze(), ae.value = !0;
|
|
177
177
|
}, Xe = () => {
|
|
178
|
-
|
|
178
|
+
ae.value = !1;
|
|
179
179
|
}, je = (e, o) => {
|
|
180
180
|
e ? Ue() : Xe();
|
|
181
181
|
}, Ge = (e) => {
|
|
182
|
-
e && (
|
|
182
|
+
e && (he.value = wl().nextZIndex(), D.value = ""), l.mode == "combobox" && (K.value = e, e || setTimeout(() => {
|
|
183
183
|
var o, a;
|
|
184
|
-
(a = (o =
|
|
185
|
-
})),
|
|
184
|
+
(a = (o = y.value) == null ? void 0 : o.blur) == null || a.call(o);
|
|
185
|
+
})), w("dropdownVisibleChange", e);
|
|
186
186
|
}, Je = (e) => {
|
|
187
187
|
let o = e.toString();
|
|
188
188
|
return o.length > l.maxTagTextLength && (o = o.substr(0, l.maxTagTextLength) + "..."), o;
|
|
189
|
-
},
|
|
189
|
+
}, O = r(), Qe = (e) => l.isRenderNode ? O.value : l.getPopupContainer === void 0 ? document.body : l.getPopupContainer(e), Ye = (e) => {
|
|
190
190
|
if (e) {
|
|
191
191
|
Array.isArray(s.value) || (s.value = []);
|
|
192
192
|
let o = s.value, a = [];
|
|
193
193
|
l.options.forEach((t) => {
|
|
194
194
|
!s.value.includes(t[N.value]) && !t.disabled && (o.push(t[N.value]), a.push(t));
|
|
195
|
-
}), s.value = o,
|
|
195
|
+
}), s.value = o, ne(s.value, a);
|
|
196
196
|
} else {
|
|
197
197
|
let o = s.value;
|
|
198
|
-
s.value = o.filter((a) => !!l.options.find((t) => t[N.value] === a).disabled),
|
|
198
|
+
s.value = o.filter((a) => !!l.options.find((t) => t[N.value] === a).disabled), ne(s.value, []);
|
|
199
199
|
}
|
|
200
200
|
}, el = (e) => {
|
|
201
201
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
202
202
|
return e.children[0];
|
|
203
203
|
}, ll = (e) => {
|
|
204
204
|
if (l.mode == "combobox") {
|
|
205
|
-
|
|
205
|
+
w("focus", e);
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
},
|
|
208
|
+
R.value = !0, l.focusOpen && !l.isExterControlCount && (i.value = _, g.value = !1), w("focus", e);
|
|
209
|
+
}, K = r(!1), ol = () => {
|
|
210
210
|
var e, o;
|
|
211
211
|
if (l.mode == "combobox") {
|
|
212
|
-
|
|
212
|
+
K.value || setTimeout(() => {
|
|
213
213
|
var a, t;
|
|
214
|
-
(t = (a =
|
|
214
|
+
(t = (a = y.value) == null ? void 0 : a.blur) == null || t.call(a);
|
|
215
215
|
});
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
(o = (e =
|
|
218
|
+
(o = (e = y.value) == null ? void 0 : e.blur) == null || o.call(e), k(() => {
|
|
219
219
|
var a, t;
|
|
220
|
-
(t = (a =
|
|
220
|
+
(t = (a = y.value) == null ? void 0 : a.focus) == null || t.call(a);
|
|
221
221
|
});
|
|
222
222
|
}, tl = (e) => {
|
|
223
223
|
if (l.mode == "combobox") {
|
|
224
224
|
k(() => {
|
|
225
|
-
|
|
226
|
-
}),
|
|
225
|
+
K.value = !1;
|
|
226
|
+
}), w("blur", e);
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
R.value = !1, l.focusOpen && !l.isExterControlCount && (V(), i.value = c.value, g.value = !0), w("blur", e);
|
|
230
230
|
}, al = (e) => {
|
|
231
231
|
e.onClose(), i.value = 100, k(() => {
|
|
232
|
-
l.mode !== "combobox" &&
|
|
232
|
+
l.mode !== "combobox" && le.value || l.focusOpen && (V(), i.value = c.value, g.value = !0);
|
|
233
233
|
});
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
Ce(
|
|
236
236
|
() => l.disabled || l.isView,
|
|
237
237
|
(e) => {
|
|
238
|
-
e && l.mode !== "combobox" && (
|
|
238
|
+
e && l.mode !== "combobox" && (R.value = !1);
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
|
-
let
|
|
241
|
+
let A = r(!1);
|
|
242
242
|
const sl = (e) => {
|
|
243
|
-
|
|
243
|
+
A.value = e, z.value = !0, k(() => {
|
|
244
244
|
z.value = !1, l.focusOpen && (V(), i.value = e ? _ : c.value, g.value = !e);
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
|
-
let
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
let Z = null;
|
|
248
|
+
ie(() => {
|
|
249
|
+
Z = new IntersectionObserver((e) => {
|
|
250
250
|
e && e[0] && e[0].intersectionRatio > 0 && l.focusOpen && i.value === 0 && (i.value = 100, k(() => {
|
|
251
251
|
V(), i.value = c.value, g.value = !0;
|
|
252
252
|
}));
|
|
253
|
-
}),
|
|
253
|
+
}), Z.observe(O.value);
|
|
254
254
|
}), xe(() => {
|
|
255
|
-
|
|
255
|
+
Z && Z.disconnect();
|
|
256
256
|
});
|
|
257
257
|
const V = () => {
|
|
258
|
-
var
|
|
259
|
-
let e = (
|
|
258
|
+
var E;
|
|
259
|
+
let e = (E = y.value) == null ? void 0 : E.$el;
|
|
260
260
|
if (!e) return;
|
|
261
261
|
let o = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
262
262
|
if (!o) return;
|
|
263
263
|
let a = o.offsetWidth - 5;
|
|
264
264
|
l.borderType === "underline" && (a -= 10);
|
|
265
|
-
const
|
|
265
|
+
const h = Math.ceil(ce.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
266
266
|
let v = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
267
267
|
if (v.length < 1) return;
|
|
268
268
|
i.value = _;
|
|
269
|
-
let
|
|
270
|
-
for (let
|
|
271
|
-
if (
|
|
272
|
-
|
|
269
|
+
let B = 0;
|
|
270
|
+
for (let f = 0; f < v.length - 1 && !v[f].classList.contains("ant-select-selection-overflow-item-rest"); f++)
|
|
271
|
+
if (B += Math.ceil(v[f].offsetWidth), B <= a - h)
|
|
272
|
+
f >= s.value.length - 1 && B < a ? c.value = s.value.length : c.value = f + 1;
|
|
273
273
|
else {
|
|
274
|
-
|
|
274
|
+
f >= s.value.length - 1 && B < a ? c.value = s.value.length : c.value = f;
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
if (c.value === 0) {
|
|
278
|
-
let
|
|
279
|
-
|
|
278
|
+
let f = v[0], rl = f.querySelector(".anticon-close") ? 86 : 69;
|
|
279
|
+
f && !f.classList.contains("ant-select-selection-overflow-item-rest") && rl <= a - h && !pe.tagRender && (c.value = 1, f.classList.add("ellipsis"));
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
|
|
281
|
+
}, re = r(!1);
|
|
282
|
+
Ce(
|
|
283
283
|
() => s.value,
|
|
284
284
|
async () => {
|
|
285
|
-
if (
|
|
286
|
-
|
|
285
|
+
if (re.value) {
|
|
286
|
+
re.value = !1;
|
|
287
287
|
return;
|
|
288
288
|
}
|
|
289
|
-
l.mode !== "combobox" &&
|
|
289
|
+
l.mode !== "combobox" && le.value || (z.value = !0, i.value = _, await k(), await V(), z.value = !1, l.isExterControlCount && l.focusOpen ? (i.value = A.value ? _ : c.value, g.value = !A.value) : (i.value = c.value, g.value = !0));
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
|
-
const
|
|
293
|
-
|
|
292
|
+
const ne = async (e, o) => {
|
|
293
|
+
re.value = !0, l.mode === "combobox" && (ee(), K.value = !1);
|
|
294
294
|
const a = e;
|
|
295
|
-
l.noDropdown && l.maxTagsLength < a.length && a.pop(), z.value = !0,
|
|
295
|
+
l.noDropdown && l.maxTagsLength < a.length && a.pop(), z.value = !0, w("update:model-value", a), w("change", a, o), i.value = _, await k(), await V(), z.value = !1, l.isExterControlCount && l.focusOpen && (i.value = A.value ? _ : c.value, g.value = !A.value), l.focusOpen || (i.value = c.value);
|
|
296
296
|
};
|
|
297
|
-
return
|
|
298
|
-
$select:
|
|
297
|
+
return $({
|
|
298
|
+
$select: y,
|
|
299
299
|
toChangeMaxCount: sl
|
|
300
300
|
}), (e, o) => {
|
|
301
301
|
const a = ul("v-nodes");
|
|
@@ -309,20 +309,20 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
309
309
|
g.value ? "show-ellipsis" : ""
|
|
310
310
|
]]),
|
|
311
311
|
ref_key: "$selectBox",
|
|
312
|
-
ref:
|
|
312
|
+
ref: O,
|
|
313
313
|
style: T(qe.value)
|
|
314
314
|
},
|
|
315
315
|
[
|
|
316
|
-
x(n(
|
|
316
|
+
x(n(hl), {
|
|
317
317
|
placement: "top",
|
|
318
318
|
trigger: "hover",
|
|
319
319
|
"virtual-triggering": "",
|
|
320
320
|
"virtual-ref": Be.value,
|
|
321
|
-
disabled: !e.isTooltip || z.value || !be.value || !
|
|
321
|
+
disabled: !e.isTooltip || z.value || !be.value || !oe.value
|
|
322
322
|
}, {
|
|
323
|
-
content:
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
content: p(() => [
|
|
324
|
+
U((u(), b("div", Sl, [
|
|
325
|
+
X(
|
|
326
326
|
I(be.value),
|
|
327
327
|
1
|
|
328
328
|
/* TEXT */
|
|
@@ -334,18 +334,18 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
334
334
|
_: 1
|
|
335
335
|
/* STABLE */
|
|
336
336
|
}, 8, ["virtual-ref", "disabled"]),
|
|
337
|
-
|
|
337
|
+
U((u(), W(n(ml), ze(e.$attrs, {
|
|
338
338
|
value: n(s),
|
|
339
339
|
"onUpdate:value": o[4] || (o[4] = (t) => cl(s) ? s.value = t : null),
|
|
340
340
|
ref_key: "$select",
|
|
341
|
-
ref:
|
|
342
|
-
options:
|
|
341
|
+
ref: y,
|
|
342
|
+
options: me.value,
|
|
343
343
|
mode: e.mode,
|
|
344
344
|
fieldNames: e.fieldNames,
|
|
345
345
|
bordered: l.borderType === "bordered",
|
|
346
346
|
disabled: l.disabled || l.isView,
|
|
347
347
|
showArrow: !0,
|
|
348
|
-
open: l.noDropdown ? !1 :
|
|
348
|
+
open: l.noDropdown ? !1 : le.value,
|
|
349
349
|
placeholder: Ee.value,
|
|
350
350
|
optionFilterProp: He.value,
|
|
351
351
|
size: l.size == "middle" ? "defalut" : l.size == "mini" ? "small" : l.size,
|
|
@@ -355,50 +355,50 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
355
355
|
getPopupContainer: Qe,
|
|
356
356
|
dropdownStyle: Ae.value,
|
|
357
357
|
onDropdownVisibleChange: Ge,
|
|
358
|
-
onChange:
|
|
358
|
+
onChange: ne,
|
|
359
359
|
onFocus: ll,
|
|
360
360
|
onClick: [
|
|
361
361
|
ol,
|
|
362
|
-
o[5] || (o[5] =
|
|
362
|
+
o[5] || (o[5] = j(() => {
|
|
363
363
|
}, ["stop"]))
|
|
364
364
|
],
|
|
365
365
|
onBlur: tl
|
|
366
366
|
}), vl({
|
|
367
|
-
option:
|
|
368
|
-
|
|
369
|
-
var
|
|
367
|
+
option: p((t) => [
|
|
368
|
+
C(e.$slots, "option", G(J(t)), () => {
|
|
369
|
+
var h;
|
|
370
370
|
return [
|
|
371
|
-
t.children && typeof t.children == "function" ? (u(),
|
|
371
|
+
t.children && typeof t.children == "function" ? (u(), W(a, {
|
|
372
372
|
key: 0,
|
|
373
373
|
vnodes: t.children()
|
|
374
374
|
}, null, 8, ["vnodes"])) : (u(), b(
|
|
375
|
-
|
|
375
|
+
Q,
|
|
376
376
|
{ key: 1 },
|
|
377
377
|
[
|
|
378
378
|
S(' :option="{value, label, [disabled, key, title]}" '),
|
|
379
|
-
e.mode === "combobox" ?
|
|
380
|
-
|
|
381
|
-
I(t[
|
|
379
|
+
e.mode === "combobox" ? U((u(), b("div", Ml, [
|
|
380
|
+
X(
|
|
381
|
+
I(t[H.value]),
|
|
382
382
|
1
|
|
383
383
|
/* TEXT */
|
|
384
384
|
)
|
|
385
385
|
])), [
|
|
386
386
|
[n(Te)]
|
|
387
387
|
]) : (u(), b(
|
|
388
|
-
|
|
388
|
+
Q,
|
|
389
389
|
{ key: 1 },
|
|
390
390
|
[
|
|
391
391
|
S(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
392
|
-
|
|
393
|
-
(u(),
|
|
392
|
+
m("div", _l, [
|
|
393
|
+
(u(), W(n(we), {
|
|
394
394
|
class: "das-select-checkbox",
|
|
395
|
-
modelValue: (
|
|
395
|
+
modelValue: (h = n(s)) == null ? void 0 : h.includes(t[N.value]),
|
|
396
396
|
key: t[N.value],
|
|
397
397
|
disabled: t.disabled
|
|
398
398
|
}, null, 8, ["modelValue", "disabled"])),
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
I(t[
|
|
399
|
+
U((u(), b("div", zl, [
|
|
400
|
+
X(
|
|
401
|
+
I(t[H.value]),
|
|
402
402
|
1
|
|
403
403
|
/* TEXT */
|
|
404
404
|
)
|
|
@@ -417,15 +417,15 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
417
417
|
];
|
|
418
418
|
}, !0)
|
|
419
419
|
]),
|
|
420
|
-
tagRender:
|
|
421
|
-
|
|
422
|
-
x(n(
|
|
420
|
+
tagRender: p((t) => [
|
|
421
|
+
C(e.$slots, "tagRender", G(J(t)), () => [
|
|
422
|
+
x(n(de), {
|
|
423
423
|
closable: t.closable,
|
|
424
424
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
425
|
-
onClose: (
|
|
425
|
+
onClose: (h) => al(t)
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
|
|
427
|
+
default: p(() => [
|
|
428
|
+
m(
|
|
429
429
|
"span",
|
|
430
430
|
{
|
|
431
431
|
class: "tag-span",
|
|
@@ -441,43 +441,43 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
441
441
|
}, 1032, ["closable", "onClose"])
|
|
442
442
|
], !0)
|
|
443
443
|
]),
|
|
444
|
-
dropdownRender:
|
|
445
|
-
|
|
446
|
-
var
|
|
444
|
+
dropdownRender: p(({ menuNode: t }) => [
|
|
445
|
+
C(e.$slots, "dropdownRender", G(J({ menuNode: t })), () => {
|
|
446
|
+
var h;
|
|
447
447
|
return [
|
|
448
|
-
|
|
448
|
+
ve.value === "combobox" ? (u(), b("div", Nl, [
|
|
449
449
|
x(a, { vnodes: t }, null, 8, ["vnodes"])
|
|
450
|
-
])) :
|
|
450
|
+
])) : ve.value === "custom" ? (u(), b("div", {
|
|
451
451
|
key: 1,
|
|
452
|
-
onClick: o[2] || (o[2] =
|
|
452
|
+
onClick: o[2] || (o[2] = j(() => {
|
|
453
453
|
}, ["stop"]))
|
|
454
454
|
}, [
|
|
455
455
|
x(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
456
|
-
|
|
456
|
+
m(
|
|
457
457
|
"div",
|
|
458
458
|
{
|
|
459
459
|
class: "customDropdown",
|
|
460
460
|
onMousedown: o[1] || (o[1] = (v) => v.preventDefault())
|
|
461
461
|
},
|
|
462
462
|
[
|
|
463
|
-
x(n(
|
|
463
|
+
x(n(bl), {
|
|
464
464
|
ref_key: "testInput",
|
|
465
465
|
ref: $e,
|
|
466
|
-
modelValue:
|
|
467
|
-
"onUpdate:modelValue": o[0] || (o[0] = (v) =>
|
|
468
|
-
onKeyup: fl(
|
|
469
|
-
onFocus:
|
|
470
|
-
onBlur:
|
|
466
|
+
modelValue: D.value,
|
|
467
|
+
"onUpdate:modelValue": o[0] || (o[0] = (v) => D.value = v),
|
|
468
|
+
onKeyup: fl(fe, ["enter"]),
|
|
469
|
+
onFocus: j(Fe, ["stop"]),
|
|
470
|
+
onBlur: j(Le, ["stop"]),
|
|
471
471
|
width: "100%",
|
|
472
472
|
borderType: "bordered"
|
|
473
473
|
}, null, 8, ["modelValue"]),
|
|
474
|
-
|
|
474
|
+
m(
|
|
475
475
|
"div",
|
|
476
476
|
{
|
|
477
477
|
class: "addBtn",
|
|
478
|
-
onClick:
|
|
478
|
+
onClick: fe
|
|
479
479
|
},
|
|
480
|
-
I(n(
|
|
480
|
+
I(n(P)("添加")),
|
|
481
481
|
1
|
|
482
482
|
/* TEXT */
|
|
483
483
|
)
|
|
@@ -487,7 +487,7 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
487
487
|
)
|
|
488
488
|
])) : (u(), b("div", Vl, [
|
|
489
489
|
x(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
490
|
-
(
|
|
490
|
+
(h = l.options) != null && h.length ? (u(), b(
|
|
491
491
|
"div",
|
|
492
492
|
{
|
|
493
493
|
key: 0,
|
|
@@ -495,16 +495,16 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
495
495
|
onMousedown: o[3] || (o[3] = (v) => v.preventDefault())
|
|
496
496
|
},
|
|
497
497
|
[
|
|
498
|
-
|
|
499
|
-
x(n(
|
|
498
|
+
m("div", Bl, [
|
|
499
|
+
x(n(we), {
|
|
500
500
|
modelValue: We.value,
|
|
501
501
|
indeterminate: Re.value,
|
|
502
502
|
onChange: Ye,
|
|
503
503
|
style: { display: "flex" }
|
|
504
504
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
|
|
507
|
-
I(n(
|
|
505
|
+
default: p(() => [
|
|
506
|
+
X(
|
|
507
|
+
I(n(P)("全选")),
|
|
508
508
|
1
|
|
509
509
|
/* TEXT */
|
|
510
510
|
)
|
|
@@ -513,9 +513,9 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
513
513
|
/* STABLE */
|
|
514
514
|
}, 8, ["modelValue", "indeterminate"])
|
|
515
515
|
]),
|
|
516
|
-
|
|
516
|
+
m("span", {
|
|
517
517
|
class: "das-ui-dropdown-has-checked",
|
|
518
|
-
innerHTML: n(
|
|
518
|
+
innerHTML: n(P)("das-ui-select-selectedItemsCountWithPlaceholder", Y.value)
|
|
519
519
|
}, null, 8, $l)
|
|
520
520
|
],
|
|
521
521
|
32
|
|
@@ -525,20 +525,20 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
525
525
|
];
|
|
526
526
|
}, !0)
|
|
527
527
|
]),
|
|
528
|
-
clearIcon:
|
|
529
|
-
|
|
528
|
+
clearIcon: p(() => [
|
|
529
|
+
C(e.$slots, "clearIcon", {}, () => [
|
|
530
530
|
x(n(gl), { size: "medium" })
|
|
531
531
|
], !0)
|
|
532
532
|
]),
|
|
533
|
-
maxTagPlaceholder:
|
|
534
|
-
|
|
533
|
+
maxTagPlaceholder: p((t) => [
|
|
534
|
+
C(e.$slots, "maxTagPlaceholder", G(J(t)), () => [
|
|
535
535
|
S(" 隐藏tag时显示的内容 "),
|
|
536
|
-
x(n(
|
|
536
|
+
x(n(de), {
|
|
537
537
|
style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
538
538
|
}, {
|
|
539
|
-
default:
|
|
540
|
-
|
|
541
|
-
innerHTML: n(
|
|
539
|
+
default: p(() => [
|
|
540
|
+
m("span", {
|
|
541
|
+
innerHTML: n(P)("das-ui-select-selectedItemsCountWithPlaceholder", Y.value)
|
|
542
542
|
}, null, 8, Fl)
|
|
543
543
|
]),
|
|
544
544
|
_: 1
|
|
@@ -547,45 +547,45 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
547
547
|
S(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
|
|
548
548
|
], !0)
|
|
549
549
|
]),
|
|
550
|
-
suffixIcon:
|
|
551
|
-
|
|
550
|
+
suffixIcon: p(() => [
|
|
551
|
+
C(e.$slots, "suffixIcon", {}, () => [
|
|
552
552
|
x(n(yl), {
|
|
553
553
|
class: "das-suffix-icon",
|
|
554
554
|
size: "medium"
|
|
555
555
|
})
|
|
556
556
|
], !0)
|
|
557
557
|
]),
|
|
558
|
-
default:
|
|
559
|
-
|
|
558
|
+
default: p(() => [
|
|
559
|
+
C(e.$slots, "default", {}, void 0, !0)
|
|
560
560
|
]),
|
|
561
561
|
_: 2
|
|
562
562
|
/* DYNAMIC */
|
|
563
563
|
}, [
|
|
564
564
|
e.$slots.menuItemSelectedIcon ? {
|
|
565
565
|
name: "menuItemSelectedIcon",
|
|
566
|
-
fn:
|
|
567
|
-
|
|
566
|
+
fn: p(() => [
|
|
567
|
+
C(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
|
|
568
568
|
]),
|
|
569
569
|
key: "0"
|
|
570
570
|
} : void 0,
|
|
571
571
|
e.$slots.notFoundContent ? {
|
|
572
572
|
name: "notFoundContent",
|
|
573
|
-
fn:
|
|
574
|
-
|
|
573
|
+
fn: p(() => [
|
|
574
|
+
C(e.$slots, "notFoundContent", {}, void 0, !0)
|
|
575
575
|
]),
|
|
576
576
|
key: "1"
|
|
577
577
|
} : void 0,
|
|
578
578
|
e.$slots.placeholder ? {
|
|
579
579
|
name: "placeholder",
|
|
580
|
-
fn:
|
|
581
|
-
|
|
580
|
+
fn: p(() => [
|
|
581
|
+
C(e.$slots, "placeholder", {}, void 0, !0)
|
|
582
582
|
]),
|
|
583
583
|
key: "2"
|
|
584
584
|
} : void 0,
|
|
585
585
|
e.$slots.removeIcon ? {
|
|
586
586
|
name: "removeIcon",
|
|
587
|
-
fn:
|
|
588
|
-
|
|
587
|
+
fn: p(() => [
|
|
588
|
+
C(e.$slots, "removeIcon", {}, void 0, !0)
|
|
589
589
|
]),
|
|
590
590
|
key: "3"
|
|
591
591
|
} : void 0
|
|
@@ -600,37 +600,37 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
600
600
|
<span v-if="error" class="das-select-error-label label">{{ errorLabel }}</span>\r
|
|
601
601
|
</div> `),
|
|
602
602
|
e.error && e.errorLabel ? (u(), b(
|
|
603
|
-
|
|
603
|
+
Q,
|
|
604
604
|
{ key: 0 },
|
|
605
605
|
[
|
|
606
606
|
e.errorMode === "default" ? (u(), b("div", Ll, [
|
|
607
|
-
|
|
607
|
+
m(
|
|
608
608
|
"span",
|
|
609
609
|
{
|
|
610
|
-
style: T(
|
|
610
|
+
style: T(se.value)
|
|
611
611
|
},
|
|
612
612
|
I(e.errorLabel),
|
|
613
613
|
5
|
|
614
614
|
/* TEXT, STYLE */
|
|
615
615
|
)
|
|
616
|
-
])) : e.errorMode === "overlay" &&
|
|
617
|
-
|
|
616
|
+
])) : e.errorMode === "overlay" && ae.value ? (u(), b(
|
|
617
|
+
Q,
|
|
618
618
|
{ key: 1 },
|
|
619
619
|
[
|
|
620
|
-
e.teleported ? (u(),
|
|
620
|
+
e.teleported ? (u(), W(pl, {
|
|
621
621
|
key: 0,
|
|
622
622
|
to: "body"
|
|
623
623
|
}, [
|
|
624
|
-
|
|
624
|
+
m(
|
|
625
625
|
"div",
|
|
626
626
|
{
|
|
627
627
|
style: T(Ke.value)
|
|
628
628
|
},
|
|
629
629
|
[
|
|
630
|
-
|
|
630
|
+
m(
|
|
631
631
|
"span",
|
|
632
632
|
{
|
|
633
|
-
style: T(
|
|
633
|
+
style: T(se.value)
|
|
634
634
|
},
|
|
635
635
|
I(e.errorLabel),
|
|
636
636
|
5
|
|
@@ -644,14 +644,14 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
644
644
|
"div",
|
|
645
645
|
{
|
|
646
646
|
key: 1,
|
|
647
|
-
style: T(
|
|
647
|
+
style: T(ge.value),
|
|
648
648
|
class: "das-select-error-label label"
|
|
649
649
|
},
|
|
650
650
|
[
|
|
651
|
-
|
|
651
|
+
m(
|
|
652
652
|
"span",
|
|
653
653
|
{
|
|
654
|
-
style: T(
|
|
654
|
+
style: T(se.value)
|
|
655
655
|
},
|
|
656
656
|
I(e.errorLabel),
|
|
657
657
|
5
|
|
@@ -669,24 +669,24 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
669
669
|
64
|
|
670
670
|
/* STABLE_FRAGMENT */
|
|
671
671
|
)) : S("v-if", !0),
|
|
672
|
-
|
|
672
|
+
m(
|
|
673
673
|
"div",
|
|
674
674
|
{
|
|
675
675
|
class: "ant-select-selection-overflow",
|
|
676
676
|
ref_key: "virtualTotalCount",
|
|
677
|
-
ref:
|
|
677
|
+
ref: ce,
|
|
678
678
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
679
679
|
},
|
|
680
680
|
[
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
x(n(
|
|
681
|
+
m("div", Dl, [
|
|
682
|
+
m("div", Pl, [
|
|
683
|
+
m("span", Ol, [
|
|
684
|
+
x(n(de), {
|
|
685
685
|
style: T(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
686
686
|
}, {
|
|
687
|
-
default:
|
|
688
|
-
|
|
689
|
-
innerHTML: n(
|
|
687
|
+
default: p(() => [
|
|
688
|
+
m("span", {
|
|
689
|
+
innerHTML: n(P)("das-ui-select-selectedItemsCountWithPlaceholder", Y.value)
|
|
690
690
|
}, null, 8, Al)
|
|
691
691
|
]),
|
|
692
692
|
_: 1
|
|
@@ -705,16 +705,16 @@ const Sl = { style: { "max-height": "200px", overflow: "hidden" } }, Ml = { key:
|
|
|
705
705
|
);
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
|
-
}), Ne = (M,
|
|
709
|
-
const
|
|
710
|
-
for (const [l,
|
|
711
|
-
|
|
712
|
-
return
|
|
713
|
-
}, Rl = /* @__PURE__ */ Ne(Wl, [["__scopeId", "data-v-
|
|
714
|
-
function ql(M,
|
|
715
|
-
const
|
|
716
|
-
return u(),
|
|
717
|
-
|
|
708
|
+
}), Ne = (M, $) => {
|
|
709
|
+
const F = M.__vccOpts || M;
|
|
710
|
+
for (const [l, w] of $)
|
|
711
|
+
F[l] = w;
|
|
712
|
+
return F;
|
|
713
|
+
}, Rl = /* @__PURE__ */ Ne(Wl, [["__scopeId", "data-v-602946af"]]), Hl = {};
|
|
714
|
+
function ql(M, $) {
|
|
715
|
+
const F = Il;
|
|
716
|
+
return u(), W(
|
|
717
|
+
F,
|
|
718
718
|
ze({ class: "das-ui-select-option" }, M.$attrs),
|
|
719
719
|
null,
|
|
720
720
|
16
|
|
@@ -779,7 +779,7 @@ const Kl = /* @__PURE__ */ Ne(Hl, [["render", ql], ["__scopeId", "data-v-6b03e65
|
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
781
|
kl(Ul);
|
|
782
|
-
|
|
782
|
+
Cl(Zl);
|
|
783
783
|
const fo = Me(Rl), po = Me(Kl), mo = { name: "select 选择器" };
|
|
784
784
|
export {
|
|
785
785
|
fo as DasSelect,
|