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