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