@das-fed/ui 6.4.0-dev.55.4 → 6.4.0-dev.55.5
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/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +44 -44
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +119 -114
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +12 -4
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +235 -0
- package/packages/business-components/device-panel/index.js +4979 -4945
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +76 -71
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +26 -0
- package/packages/business-components/import-button/index.js +297 -288
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +433 -433
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
- package/packages/business-components/process-configuration/index.js +201 -198
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +80 -0
- package/packages/business-components/process-form/index.js +820 -801
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +10 -0
- package/packages/business-components/process-log/index.js +245 -245
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +126 -126
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +128 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +90 -0
- package/packages/business-components/urgent-panel/index.js +1249 -1235
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
- package/packages/business-components/user-org-dialog/index.js +223 -219
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +233 -233
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +283 -283
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +21 -21
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +35 -35
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +17 -17
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +3 -0
- package/packages/components/date-picker/index.js +94 -94
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +58 -58
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +287 -283
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +14 -14
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +11 -11
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +6 -0
- package/packages/components/image-upload/index.js +67 -58
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +36 -36
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +3 -2
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +53 -53
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +4 -0
- package/packages/components/map/index.js +73 -68
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +44 -44
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +7 -7
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +6 -6
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +11 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +6 -0
- package/packages/components/search-form/index.js +113 -113
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +5 -0
- package/packages/components/select/index.js +183 -183
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +73 -73
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +72 -72
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +99 -99
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +27 -27
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +41 -4
- package/packages/components/table/index.js +1782 -1779
- 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/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +46 -46
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +14 -14
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +7 -0
- package/packages/components/tree/index.js +8 -7
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +54 -54
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +11 -11
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/select/style.css';
|
|
2
2
|
import { withInstall as Se } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { defineComponent as ze, useCssVars as
|
|
4
|
-
import { Select as
|
|
3
|
+
import { defineComponent as ze, useCssVars as ro, ref as n, computed as f, useSlots as no, onMounted as re, onUnmounted as ye, watchEffect as ne, watch as xe, nextTick as I, resolveComponent as io, openBlock as u, createElementBlock as b, normalizeClass as uo, normalizeStyle as S, createVNode as w, unref as r, withCtx as p, withDirectives as U, createTextVNode as _, toDisplayString as c, createBlock as R, mergeProps as _e, isRef as co, withModifiers as X, createSlots as vo, renderSlot as C, normalizeProps as j, guardReactiveProps as G, Fragment as J, createCommentVNode as N, createElementVNode as m, withKeys as fo, Teleport as po } from "vue";
|
|
4
|
+
import { Select as mo, Tag as ie } from "ant-design-vue";
|
|
5
5
|
import "ant-design-vue/es/select/style/css";
|
|
6
6
|
import { DasCheckbox as we } from "@das-fed/ui/packages/components/checkbox/index";
|
|
7
7
|
import { vScrollbar as Ce } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
8
|
-
import { DasTooltip as
|
|
8
|
+
import { DasTooltip as bo } from "@das-fed/ui/packages/components/tooltip/index";
|
|
9
9
|
import { vDasTooltip as ke } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
10
|
-
import { DasInput as
|
|
11
|
-
import { DasIconXiala as
|
|
12
|
-
import { DasIconEmpty as
|
|
13
|
-
import { vHoverInside as
|
|
14
|
-
import { getVarValue as Te, getVar as Ie, setThemeRule as
|
|
15
|
-
import { useZIndex as
|
|
16
|
-
import { t as z, setI18nRule as
|
|
17
|
-
import { useModelValue as
|
|
18
|
-
import { SelectOption as
|
|
19
|
-
const
|
|
10
|
+
import { DasInput as ho } from "@das-fed/ui/packages/components/input/index";
|
|
11
|
+
import { DasIconXiala as go } from "@das-fed/ui/packages/icons/xiala/index";
|
|
12
|
+
import { DasIconEmpty as yo } from "@das-fed/ui/packages/icons/empty/index";
|
|
13
|
+
import { vHoverInside as xo } from "@das-fed/utils/directive";
|
|
14
|
+
import { getVarValue as Te, getVar as Ie, setThemeRule as wo } from "@das-fed/web/packages/theme/index";
|
|
15
|
+
import { useZIndex as Co } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
16
|
+
import { t as z, setI18nRule as ko } from "@das-fed/web/packages/i18n/index";
|
|
17
|
+
import { useModelValue as To } from "@das-fed/utils/vue";
|
|
18
|
+
import { SelectOption as Io } from "ant-design-vue/es";
|
|
19
|
+
const So = { style: { "max-height": "200px", "word-break": "break-all", overflow: "hidden" } }, zo = { key: 0 }, _o = { class: "das-multiple-option-item" }, No = { style: { display: "inline-block" } }, Vo = { key: 0 }, Bo = { key: 2 }, Mo = { style: { display: "inline-block" } }, Fo = { class: "das-ui-dropdown-has-checked" }, $o = { class: "key" }, Do = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "das-select-error-label-content das-select-label-content"
|
|
22
|
-
},
|
|
22
|
+
}, Lo = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Oo = { class: "ant-select-selection-item" }, Ao = { class: "ant-select-selection-item-content" }, Po = ze({
|
|
23
23
|
inheritAttrs: !1,
|
|
24
24
|
components: {
|
|
25
|
-
VNodes: (
|
|
25
|
+
VNodes: (V, { attrs: D }) => D.vnodes
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
28
|
-
...
|
|
27
|
+
}), Eo = /* @__PURE__ */ ze({
|
|
28
|
+
...Po,
|
|
29
29
|
__name: "Select",
|
|
30
30
|
props: {
|
|
31
31
|
modelValue: { default: void 0 },
|
|
@@ -61,21 +61,21 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
61
61
|
dropdownMode: {}
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
|
|
64
|
-
setup(
|
|
65
|
-
|
|
64
|
+
setup(V, { expose: D, emit: L }) {
|
|
65
|
+
ro((e) => ({
|
|
66
66
|
"3f9602ad": Le.value,
|
|
67
67
|
cd494dc0: Oe.value
|
|
68
68
|
}));
|
|
69
|
-
const
|
|
69
|
+
const o = V, k = L, s = To(o, "modelValue"), x = n(!1), Ve = f(() => o.placeholder || z("请选择")), Be = f(() => P.value ? P.value.querySelector(".ant-select-selector") : null), ue = n(null), de = f(() => o.dropdownMode ?? o.mode ?? ""), O = n(null), Me = n(null), A = n(""), Fe = () => {
|
|
70
70
|
O.value = !0;
|
|
71
71
|
}, $e = () => {
|
|
72
72
|
O.value = null;
|
|
73
73
|
}, ce = () => {
|
|
74
|
-
A.value && (k("addCustomItem", A.value), A.value = "",
|
|
74
|
+
A.value && (k("addCustomItem", A.value), A.value = "", o.mode === "combobox" ? I(() => {
|
|
75
75
|
h.value.focus();
|
|
76
76
|
}) : h.value.focus());
|
|
77
|
-
}, ve =
|
|
78
|
-
|
|
77
|
+
}, ve = no(), Q = () => {
|
|
78
|
+
o.mode === "combobox" && o.dropdownMode === "custom" && !ve.dropdownRender && (O.value = !1, I(() => {
|
|
79
79
|
O.value = null;
|
|
80
80
|
}));
|
|
81
81
|
};
|
|
@@ -84,11 +84,11 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
84
84
|
}), ye(() => {
|
|
85
85
|
document.removeEventListener("click", Q);
|
|
86
86
|
});
|
|
87
|
-
const h = n(), fe = n(), W = n(!1), Y = f(() => O.value !== null ? O.value :
|
|
87
|
+
const h = n(), fe = n(), W = n(!1), Y = f(() => O.value !== null ? O.value : o.open === void 0 ? o.mode === "combobox" ? void 0 : W.value : o.open), B = 1e6, i = n(100), v = n(100), M = n(!1), ee = n(!0), oe = n(!1);
|
|
88
88
|
ne(() => {
|
|
89
|
-
s.value &&
|
|
90
|
-
var
|
|
91
|
-
let e = (
|
|
89
|
+
s.value && o.mode == "combobox" && (ee.value = !0, setTimeout(() => {
|
|
90
|
+
var l;
|
|
91
|
+
let e = (l = h.value) == null ? void 0 : l.$el.querySelectorAll(".ant-select-selection-item");
|
|
92
92
|
if (e && e.length > 0)
|
|
93
93
|
for (let a = 0; a < e.length; a++) {
|
|
94
94
|
let t = e[a];
|
|
@@ -96,7 +96,7 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
96
96
|
}
|
|
97
97
|
}, 300));
|
|
98
98
|
}), ne(() => {
|
|
99
|
-
|
|
99
|
+
o.options && (fe.value = o.options.map((e) => (e.title = e.title ? e.title : "", e)));
|
|
100
100
|
});
|
|
101
101
|
const De = () => {
|
|
102
102
|
setTimeout(async () => {
|
|
@@ -104,44 +104,44 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
104
104
|
}, 100);
|
|
105
105
|
};
|
|
106
106
|
ne(() => {
|
|
107
|
-
|
|
107
|
+
oe.value === !0 && o.mode != "combobox" && s.value && s.value.length > 0 && o.options.length > 0 && (oe.value = !1, De());
|
|
108
108
|
}), re(() => {
|
|
109
|
-
|
|
109
|
+
oe.value = !0, o.focusOpen || (v.value = 1, i.value = v.value, x.value = !0);
|
|
110
110
|
});
|
|
111
|
-
const Le = f(() =>
|
|
111
|
+
const Le = f(() => o.width ? o.width : "230px"), Oe = f(() => o.height ? o.height : "auto"), pe = n(3e3), Ae = f(() => ({
|
|
112
112
|
"z-index": pe.value
|
|
113
113
|
})), me = f(() => {
|
|
114
|
-
var
|
|
114
|
+
var l;
|
|
115
115
|
let e = [];
|
|
116
|
-
if (
|
|
116
|
+
if (o.mode != "combobox" && Array.isArray(s.value))
|
|
117
117
|
s.value.map((a) => {
|
|
118
118
|
var d;
|
|
119
|
-
let t = (d =
|
|
119
|
+
let t = (d = o.options) == null ? void 0 : d.find((g) => g[F.value] == a);
|
|
120
120
|
t && e.push(t[q.value]);
|
|
121
121
|
});
|
|
122
|
-
else if (
|
|
123
|
-
let a = (
|
|
122
|
+
else if (o.mode == "combobox" && s.value) {
|
|
123
|
+
let a = (l = o.options) == null ? void 0 : l.find((t) => t[F.value] == s.value);
|
|
124
124
|
a && e.push(a[q.value]);
|
|
125
125
|
}
|
|
126
126
|
return e.join("、");
|
|
127
|
-
}), Pe = f(() =>
|
|
128
|
-
var e,
|
|
129
|
-
return
|
|
127
|
+
}), Pe = f(() => o.isView ? o.noSetDefaultVal ? "" : "-" : Ve.value), Ee = f(() => {
|
|
128
|
+
var e, l;
|
|
129
|
+
return o.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) == ((l = o.options) == null ? void 0 : l.length));
|
|
130
130
|
}), Re = f(() => {
|
|
131
|
-
var e,
|
|
132
|
-
return
|
|
131
|
+
var e, l, a;
|
|
132
|
+
return o.mode === "combobox" ? !1 : !!(Array.isArray(s.value) && ((e = s.value) == null ? void 0 : e.length) > 0 && ((l = s.value) == null ? void 0 : l.length) < ((a = o.options) == null ? void 0 : a.length));
|
|
133
133
|
}), We = f(() => {
|
|
134
|
-
var e,
|
|
135
|
-
return
|
|
134
|
+
var e, l;
|
|
135
|
+
return o.optionFilterProp ? o.optionFilterProp : (e = o.fieldNames) != null && e.label ? (l = o.fieldNames) == null ? void 0 : l.label : "label";
|
|
136
136
|
}), q = f(() => {
|
|
137
137
|
var e;
|
|
138
|
-
return
|
|
138
|
+
return o.fieldNames && o.fieldNames.label ? (e = o.fieldNames) == null ? void 0 : e.label : "label";
|
|
139
139
|
}), F = f(() => {
|
|
140
140
|
var e;
|
|
141
|
-
return
|
|
141
|
+
return o.fieldNames && o.fieldNames.value ? (e = o.fieldNames) == null ? void 0 : e.value : "value";
|
|
142
142
|
}), qe = f(() => ({
|
|
143
|
-
width: typeof
|
|
144
|
-
})),
|
|
143
|
+
width: typeof o.width == "number" ? o.width + "px" : o.width
|
|
144
|
+
})), le = n(!1), K = n({
|
|
145
145
|
x: 0,
|
|
146
146
|
y: 0
|
|
147
147
|
}), be = n(0), he = f(() => ({
|
|
@@ -151,7 +151,7 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
151
151
|
"border-radius": "1px",
|
|
152
152
|
padding: "4px 8px",
|
|
153
153
|
"box-sizing": "border-box",
|
|
154
|
-
"z-index":
|
|
154
|
+
"z-index": o.errorModelZIndex
|
|
155
155
|
})), Ke = f(() => ({
|
|
156
156
|
...he.value,
|
|
157
157
|
width: be.value + "px",
|
|
@@ -166,84 +166,84 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
166
166
|
"word-break": "break-all"
|
|
167
167
|
}), Ze = () => {
|
|
168
168
|
var t, d, g;
|
|
169
|
-
const { top: e, left:
|
|
170
|
-
be.value = (g = h.value) == null ? void 0 : g.$el.clientWidth, K.value.x =
|
|
169
|
+
const { top: e, left: l } = (t = h.value) == null ? void 0 : t.$el.getBoundingClientRect(), a = (d = h.value) == null ? void 0 : d.$el.clientHeight;
|
|
170
|
+
be.value = (g = h.value) == null ? void 0 : g.$el.clientWidth, K.value.x = l, K.value.y = e + a;
|
|
171
171
|
}, He = () => {
|
|
172
|
-
Ze(),
|
|
172
|
+
Ze(), le.value = !0;
|
|
173
173
|
}, Ue = () => {
|
|
174
|
-
|
|
175
|
-
}, Xe = (e,
|
|
174
|
+
le.value = !1;
|
|
175
|
+
}, Xe = (e, l) => {
|
|
176
176
|
e ? He() : Ue();
|
|
177
177
|
}, je = (e) => {
|
|
178
|
-
e && (pe.value =
|
|
179
|
-
var
|
|
180
|
-
(a = (
|
|
178
|
+
e && (pe.value = Co().nextZIndex(), A.value = ""), o.mode == "combobox" && (Z.value = e, e || setTimeout(() => {
|
|
179
|
+
var l, a;
|
|
180
|
+
(a = (l = h.value) == null ? void 0 : l.blur) == null || a.call(l);
|
|
181
181
|
})), k("dropdownVisibleChange", e);
|
|
182
182
|
}, Ge = (e) => {
|
|
183
|
-
let
|
|
184
|
-
return
|
|
185
|
-
}, P = n(), Je = (e) =>
|
|
183
|
+
let l = e.toString();
|
|
184
|
+
return l.length > o.maxTagTextLength && (l = l.substr(0, o.maxTagTextLength) + "..."), l;
|
|
185
|
+
}, P = n(), Je = (e) => o.isRenderNode ? P.value : o.getPopupContainer === void 0 ? document.body : o.getPopupContainer(e), Qe = (e) => {
|
|
186
186
|
if (e) {
|
|
187
187
|
Array.isArray(s.value) || (s.value = []);
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
!s.value.includes(t[F.value]) && !t.disabled && (
|
|
191
|
-
}), s.value =
|
|
188
|
+
let l = s.value, a = [];
|
|
189
|
+
o.options.forEach((t) => {
|
|
190
|
+
!s.value.includes(t[F.value]) && !t.disabled && (l.push(t[F.value]), a.push(t));
|
|
191
|
+
}), s.value = l, se(s.value, a);
|
|
192
192
|
} else {
|
|
193
|
-
let
|
|
194
|
-
s.value =
|
|
193
|
+
let l = s.value;
|
|
194
|
+
s.value = l.filter((a) => !!o.options.find((t) => t[F.value] === a).disabled), se(s.value, []);
|
|
195
195
|
}
|
|
196
196
|
}, Ye = (e) => {
|
|
197
197
|
if (e.className.indexOf("ant-select-multiple") > -1 && e.children[0])
|
|
198
198
|
return e.children[0];
|
|
199
|
-
},
|
|
200
|
-
if (
|
|
199
|
+
}, eo = (e) => {
|
|
200
|
+
if (o.mode == "combobox") {
|
|
201
201
|
k("focus", e);
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
W.value = !0,
|
|
205
|
-
}, Z = n(!1),
|
|
206
|
-
var e,
|
|
207
|
-
if (
|
|
204
|
+
W.value = !0, o.focusOpen && !o.isExterControlCount && (i.value = B, x.value = !1), k("focus", e);
|
|
205
|
+
}, Z = n(!1), oo = () => {
|
|
206
|
+
var e, l;
|
|
207
|
+
if (o.mode == "combobox") {
|
|
208
208
|
Z.value || setTimeout(() => {
|
|
209
209
|
var a, t;
|
|
210
210
|
(t = (a = h.value) == null ? void 0 : a.blur) == null || t.call(a);
|
|
211
211
|
});
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
(
|
|
214
|
+
(l = (e = h.value) == null ? void 0 : e.blur) == null || l.call(e), I(() => {
|
|
215
215
|
var a, t;
|
|
216
216
|
(t = (a = h.value) == null ? void 0 : a.focus) == null || t.call(a);
|
|
217
217
|
});
|
|
218
|
-
},
|
|
219
|
-
if (
|
|
218
|
+
}, lo = (e) => {
|
|
219
|
+
if (o.mode == "combobox") {
|
|
220
220
|
I(() => {
|
|
221
221
|
Z.value = !1;
|
|
222
222
|
}), k("blur", e);
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
W.value = !1,
|
|
226
|
-
},
|
|
225
|
+
W.value = !1, o.focusOpen && !o.isExterControlCount && ($(), i.value = v.value, x.value = !0), k("blur", e);
|
|
226
|
+
}, to = (e) => {
|
|
227
227
|
e.onClose(), i.value = 100, I(() => {
|
|
228
|
-
|
|
228
|
+
o.mode !== "combobox" && Y.value || o.focusOpen && ($(), i.value = v.value, x.value = !0);
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
231
|
xe(
|
|
232
|
-
() =>
|
|
232
|
+
() => o.disabled || o.isView,
|
|
233
233
|
(e) => {
|
|
234
|
-
e &&
|
|
234
|
+
e && o.mode !== "combobox" && (W.value = !1);
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
let E = n(!1);
|
|
238
|
-
const
|
|
239
|
-
E.value = e,
|
|
240
|
-
|
|
238
|
+
const ao = (e) => {
|
|
239
|
+
E.value = e, M.value = !0, I(() => {
|
|
240
|
+
M.value = !1, o.focusOpen && ($(), i.value = e ? B : v.value, x.value = !e);
|
|
241
241
|
});
|
|
242
242
|
};
|
|
243
243
|
let H = null;
|
|
244
244
|
re(() => {
|
|
245
245
|
H = new IntersectionObserver((e) => {
|
|
246
|
-
e && e[0] && e[0].intersectionRatio > 0 &&
|
|
246
|
+
e && e[0] && e[0].intersectionRatio > 0 && o.focusOpen && i.value === 0 && (i.value = 100, I(() => {
|
|
247
247
|
$(), i.value = v.value, x.value = !0;
|
|
248
248
|
}));
|
|
249
249
|
}), H.observe(P.value);
|
|
@@ -254,14 +254,14 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
254
254
|
var ge;
|
|
255
255
|
let e = (ge = h.value) == null ? void 0 : ge.$el;
|
|
256
256
|
if (!e) return;
|
|
257
|
-
let
|
|
258
|
-
if (!
|
|
259
|
-
let a =
|
|
260
|
-
|
|
257
|
+
let l = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
258
|
+
if (!l) return;
|
|
259
|
+
let a = l.offsetWidth - 5;
|
|
260
|
+
o.borderType === "underline" && (a -= 10);
|
|
261
261
|
const d = Math.ceil(ue.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
262
262
|
let g = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
263
263
|
if (g.length < 1) return;
|
|
264
|
-
i.value =
|
|
264
|
+
i.value = B;
|
|
265
265
|
let T = 0;
|
|
266
266
|
for (let y = 0; y < g.length - 1 && !g[y].classList.contains("ant-select-selection-overflow-item-rest"); y++)
|
|
267
267
|
if (T += Math.ceil(g[y].offsetWidth), T <= a - d)
|
|
@@ -271,8 +271,8 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
if (v.value === 0) {
|
|
274
|
-
let y = g[0],
|
|
275
|
-
y && !y.classList.contains("ant-select-selection-overflow-item-rest") &&
|
|
274
|
+
let y = g[0], so = y.querySelector(".anticon-close") ? 86 : 69;
|
|
275
|
+
y && !y.classList.contains("ant-select-selection-overflow-item-rest") && so <= a - d && !ve.tagRender && (v.value = 1, y.classList.add("ellipsis"));
|
|
276
276
|
}
|
|
277
277
|
}, ae = n(!1);
|
|
278
278
|
xe(
|
|
@@ -282,26 +282,26 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
282
282
|
ae.value = !1;
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
o.mode !== "combobox" && Y.value || (M.value = !0, i.value = B, await I(), await $(), M.value = !1, o.isExterControlCount && o.focusOpen ? (i.value = E.value ? B : v.value, x.value = !E.value) : (i.value = v.value, x.value = !0));
|
|
286
286
|
}
|
|
287
287
|
);
|
|
288
|
-
const se = async (e,
|
|
289
|
-
ae.value = !0,
|
|
288
|
+
const se = async (e, l) => {
|
|
289
|
+
ae.value = !0, o.mode === "combobox" && (Q(), Z.value = !1);
|
|
290
290
|
const a = e;
|
|
291
|
-
|
|
291
|
+
o.noDropdown && o.maxTagsLength < a.length && a.pop(), M.value = !0, k("update:model-value", a), k("change", a, l), i.value = B, await I(), await $(), M.value = !1, o.isExterControlCount && o.focusOpen && (i.value = E.value ? B : v.value, x.value = !E.value), o.focusOpen || (i.value = v.value);
|
|
292
292
|
};
|
|
293
293
|
return D({
|
|
294
294
|
$select: h,
|
|
295
|
-
toChangeMaxCount:
|
|
296
|
-
}), (e,
|
|
297
|
-
const a =
|
|
295
|
+
toChangeMaxCount: ao
|
|
296
|
+
}), (e, l) => {
|
|
297
|
+
const a = io("v-nodes");
|
|
298
298
|
return u(), b(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
|
-
class:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
301
|
+
class: uo(["das-ui-select", [
|
|
302
|
+
o.borderType,
|
|
303
|
+
o.isView ? "readonly" : "",
|
|
304
|
+
o.error ? "is-error" : "",
|
|
305
305
|
x.value ? "show-ellipsis" : ""
|
|
306
306
|
]]),
|
|
307
307
|
ref_key: "$selectBox",
|
|
@@ -309,16 +309,16 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
309
309
|
style: S(qe.value)
|
|
310
310
|
},
|
|
311
311
|
[
|
|
312
|
-
w(r(
|
|
312
|
+
w(r(bo), {
|
|
313
313
|
placement: "top",
|
|
314
314
|
trigger: "hover",
|
|
315
315
|
"virtual-triggering": "",
|
|
316
|
-
"virtual-ref":
|
|
317
|
-
disabled: !e.isTooltip ||
|
|
316
|
+
"virtual-ref": Be.value,
|
|
317
|
+
disabled: !e.isTooltip || M.value || !me.value || !ee.value
|
|
318
318
|
}, {
|
|
319
319
|
content: p(() => [
|
|
320
|
-
U((u(), b("div",
|
|
321
|
-
|
|
320
|
+
U((u(), b("div", So, [
|
|
321
|
+
_(
|
|
322
322
|
c(me.value),
|
|
323
323
|
1
|
|
324
324
|
/* TEXT */
|
|
@@ -330,36 +330,36 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
330
330
|
_: 1
|
|
331
331
|
/* STABLE */
|
|
332
332
|
}, 8, ["virtual-ref", "disabled"]),
|
|
333
|
-
U((u(), R(r(
|
|
333
|
+
U((u(), R(r(mo), _e(e.$attrs, {
|
|
334
334
|
value: r(s),
|
|
335
|
-
"onUpdate:value":
|
|
335
|
+
"onUpdate:value": l[4] || (l[4] = (t) => co(s) ? s.value = t : null),
|
|
336
336
|
ref_key: "$select",
|
|
337
337
|
ref: h,
|
|
338
338
|
options: fe.value,
|
|
339
339
|
mode: e.mode,
|
|
340
340
|
fieldNames: e.fieldNames,
|
|
341
|
-
bordered:
|
|
342
|
-
disabled:
|
|
341
|
+
bordered: o.borderType === "bordered",
|
|
342
|
+
disabled: o.disabled || o.isView,
|
|
343
343
|
showArrow: !0,
|
|
344
|
-
open:
|
|
344
|
+
open: o.noDropdown ? !1 : Y.value,
|
|
345
345
|
placeholder: Pe.value,
|
|
346
346
|
optionFilterProp: We.value,
|
|
347
|
-
size:
|
|
348
|
-
style:
|
|
347
|
+
size: o.size == "middle" ? "defalut" : o.size == "mini" ? "small" : o.size,
|
|
348
|
+
style: o.size == "mini" || o.size == "table" ? { fontSize: "12px" } : {},
|
|
349
349
|
dropdownClassName: "das-ui-select-dorpdown " + e.dropdownClassName,
|
|
350
350
|
maxTagCount: i.value,
|
|
351
351
|
getPopupContainer: Je,
|
|
352
352
|
dropdownStyle: Ae.value,
|
|
353
353
|
onDropdownVisibleChange: je,
|
|
354
354
|
onChange: se,
|
|
355
|
-
onFocus:
|
|
355
|
+
onFocus: eo,
|
|
356
356
|
onClick: [
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
oo,
|
|
358
|
+
l[5] || (l[5] = X(() => {
|
|
359
359
|
}, ["stop"]))
|
|
360
360
|
],
|
|
361
|
-
onBlur:
|
|
362
|
-
}),
|
|
361
|
+
onBlur: lo
|
|
362
|
+
}), vo({
|
|
363
363
|
option: p((t) => [
|
|
364
364
|
C(e.$slots, "option", j(G(t)), () => {
|
|
365
365
|
var d;
|
|
@@ -371,9 +371,9 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
371
371
|
J,
|
|
372
372
|
{ key: 1 },
|
|
373
373
|
[
|
|
374
|
-
|
|
375
|
-
e.mode === "combobox" ? U((u(), b("div",
|
|
376
|
-
|
|
374
|
+
N(' :option="{value, label, [disabled, key, title]}" '),
|
|
375
|
+
e.mode === "combobox" ? U((u(), b("div", zo, [
|
|
376
|
+
_(
|
|
377
377
|
c(t[q.value]),
|
|
378
378
|
1
|
|
379
379
|
/* TEXT */
|
|
@@ -384,16 +384,16 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
384
384
|
J,
|
|
385
385
|
{ key: 1 },
|
|
386
386
|
[
|
|
387
|
-
|
|
388
|
-
m("div",
|
|
387
|
+
N(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
388
|
+
m("div", _o, [
|
|
389
389
|
(u(), R(r(we), {
|
|
390
390
|
class: "das-select-checkbox",
|
|
391
391
|
modelValue: (d = r(s)) == null ? void 0 : d.includes(t[F.value]),
|
|
392
392
|
key: t[F.value],
|
|
393
393
|
disabled: t.disabled
|
|
394
394
|
}, null, 8, ["modelValue", "disabled"])),
|
|
395
|
-
U((u(), b("div",
|
|
396
|
-
|
|
395
|
+
U((u(), b("div", No, [
|
|
396
|
+
_(
|
|
397
397
|
c(t[q.value]),
|
|
398
398
|
1
|
|
399
399
|
/* TEXT */
|
|
@@ -418,14 +418,14 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
418
418
|
w(r(ie), {
|
|
419
419
|
closable: t.closable,
|
|
420
420
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
421
|
-
onClose: (d) =>
|
|
421
|
+
onClose: (d) => to(t)
|
|
422
422
|
}, {
|
|
423
423
|
default: p(() => [
|
|
424
424
|
m(
|
|
425
425
|
"span",
|
|
426
426
|
{
|
|
427
427
|
class: "tag-span",
|
|
428
|
-
style: S(
|
|
428
|
+
style: S(o.size == "mini" || o.size == "table" ? { fontSize: "12px" } : {})
|
|
429
429
|
},
|
|
430
430
|
c(Ge(t.label)),
|
|
431
431
|
5
|
|
@@ -441,11 +441,11 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
441
441
|
C(e.$slots, "dropdownRender", j(G({ menuNode: t })), () => {
|
|
442
442
|
var d, g;
|
|
443
443
|
return [
|
|
444
|
-
de.value === "combobox" ? (u(), b("div",
|
|
444
|
+
de.value === "combobox" ? (u(), b("div", Vo, [
|
|
445
445
|
w(a, { vnodes: t }, null, 8, ["vnodes"])
|
|
446
446
|
])) : de.value === "custom" ? (u(), b("div", {
|
|
447
447
|
key: 1,
|
|
448
|
-
onClick:
|
|
448
|
+
onClick: l[2] || (l[2] = X(() => {
|
|
449
449
|
}, ["stop"]))
|
|
450
450
|
}, [
|
|
451
451
|
w(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
@@ -453,15 +453,15 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
453
453
|
"div",
|
|
454
454
|
{
|
|
455
455
|
class: "customDropdown",
|
|
456
|
-
onMousedown:
|
|
456
|
+
onMousedown: l[1] || (l[1] = (T) => T.preventDefault())
|
|
457
457
|
},
|
|
458
458
|
[
|
|
459
|
-
w(r(
|
|
459
|
+
w(r(ho), {
|
|
460
460
|
ref_key: "testInput",
|
|
461
|
-
ref:
|
|
461
|
+
ref: Me,
|
|
462
462
|
modelValue: A.value,
|
|
463
|
-
"onUpdate:modelValue":
|
|
464
|
-
onKeyup:
|
|
463
|
+
"onUpdate:modelValue": l[0] || (l[0] = (T) => A.value = T),
|
|
464
|
+
onKeyup: fo(ce, ["enter"]),
|
|
465
465
|
onFocus: X(Fe, ["stop"]),
|
|
466
466
|
onBlur: X($e, ["stop"]),
|
|
467
467
|
width: "100%",
|
|
@@ -481,17 +481,17 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
481
481
|
32
|
|
482
482
|
/* NEED_HYDRATION */
|
|
483
483
|
)
|
|
484
|
-
])) : (u(), b("div",
|
|
484
|
+
])) : (u(), b("div", Bo, [
|
|
485
485
|
w(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
486
|
-
(d =
|
|
486
|
+
(d = o.options) != null && d.length ? (u(), b(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
489
489
|
key: 0,
|
|
490
490
|
class: "das-ui-select-dropdown-checkall",
|
|
491
|
-
onMousedown:
|
|
491
|
+
onMousedown: l[3] || (l[3] = (T) => T.preventDefault())
|
|
492
492
|
},
|
|
493
493
|
[
|
|
494
|
-
m("div",
|
|
494
|
+
m("div", Mo, [
|
|
495
495
|
w(r(we), {
|
|
496
496
|
modelValue: Ee.value,
|
|
497
497
|
indeterminate: Re.value,
|
|
@@ -499,7 +499,7 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
499
499
|
style: { display: "flex" }
|
|
500
500
|
}, {
|
|
501
501
|
default: p(() => [
|
|
502
|
-
|
|
502
|
+
_(
|
|
503
503
|
c(r(z)("全选")),
|
|
504
504
|
1
|
|
505
505
|
/* TEXT */
|
|
@@ -509,20 +509,20 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
509
509
|
/* STABLE */
|
|
510
510
|
}, 8, ["modelValue", "indeterminate"])
|
|
511
511
|
]),
|
|
512
|
-
m("span",
|
|
513
|
-
|
|
512
|
+
m("span", Fo, [
|
|
513
|
+
_(
|
|
514
514
|
c(r(z)("已选")),
|
|
515
515
|
1
|
|
516
516
|
/* TEXT */
|
|
517
517
|
),
|
|
518
518
|
m(
|
|
519
519
|
"span",
|
|
520
|
-
|
|
520
|
+
$o,
|
|
521
521
|
c(((g = r(s)) == null ? void 0 : g.length) || 0),
|
|
522
522
|
1
|
|
523
523
|
/* TEXT */
|
|
524
524
|
),
|
|
525
|
-
|
|
525
|
+
_(
|
|
526
526
|
c(r(z)("项")),
|
|
527
527
|
1
|
|
528
528
|
/* TEXT */
|
|
@@ -531,26 +531,26 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
531
531
|
],
|
|
532
532
|
32
|
|
533
533
|
/* NEED_HYDRATION */
|
|
534
|
-
)) :
|
|
534
|
+
)) : N("v-if", !0)
|
|
535
535
|
]))
|
|
536
536
|
];
|
|
537
537
|
}, !0)
|
|
538
538
|
]),
|
|
539
539
|
clearIcon: p(() => [
|
|
540
540
|
C(e.$slots, "clearIcon", {}, () => [
|
|
541
|
-
w(r(
|
|
541
|
+
w(r(yo), { size: "medium" })
|
|
542
542
|
], !0)
|
|
543
543
|
]),
|
|
544
544
|
maxTagPlaceholder: p((t) => [
|
|
545
545
|
C(e.$slots, "maxTagPlaceholder", j(G(t)), () => [
|
|
546
|
-
|
|
546
|
+
N(" 隐藏tag时显示的内容 "),
|
|
547
547
|
w(r(ie), {
|
|
548
|
-
style: S(
|
|
548
|
+
style: S(o.size == "mini" || o.size == "table" ? { fontSize: "12px" } : {})
|
|
549
549
|
}, {
|
|
550
550
|
default: p(() => {
|
|
551
551
|
var d;
|
|
552
552
|
return [
|
|
553
|
-
|
|
553
|
+
_(
|
|
554
554
|
c(r(z)("共")) + c((d = r(s)) == null ? void 0 : d.length) + c(r(z)("项")),
|
|
555
555
|
1
|
|
556
556
|
/* TEXT */
|
|
@@ -560,12 +560,12 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
560
560
|
_: 1
|
|
561
561
|
/* STABLE */
|
|
562
562
|
}, 8, ["style"]),
|
|
563
|
-
|
|
563
|
+
N(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
|
|
564
564
|
], !0)
|
|
565
565
|
]),
|
|
566
566
|
suffixIcon: p(() => [
|
|
567
567
|
C(e.$slots, "suffixIcon", {}, () => [
|
|
568
|
-
w(r(
|
|
568
|
+
w(r(go), {
|
|
569
569
|
class: "das-suffix-icon",
|
|
570
570
|
size: "medium"
|
|
571
571
|
})
|
|
@@ -607,9 +607,9 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
607
607
|
} : void 0
|
|
608
608
|
]), 1040, ["value", "options", "mode", "fieldNames", "bordered", "disabled", "open", "placeholder", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
|
|
609
609
|
[r(Ce), { target: Ye, x: !1 }],
|
|
610
|
-
[r(
|
|
610
|
+
[r(xo), Xe]
|
|
611
611
|
]),
|
|
612
|
-
|
|
612
|
+
N(` <div\r
|
|
613
613
|
:class="[errorMode === 'default' ? 'das-select-error-label-content' : 'das-select-overlay-error-label-content', 'das-select-label-content']"\r
|
|
614
614
|
v-if="(errorMode === 'default' || (errorMode === 'overlay' && isHoverInInput)) && error && !!errorLabel"\r
|
|
615
615
|
>\r
|
|
@@ -619,7 +619,7 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
619
619
|
J,
|
|
620
620
|
{ key: 0 },
|
|
621
621
|
[
|
|
622
|
-
e.errorMode === "default" ? (u(), b("div",
|
|
622
|
+
e.errorMode === "default" ? (u(), b("div", Do, [
|
|
623
623
|
m(
|
|
624
624
|
"span",
|
|
625
625
|
{
|
|
@@ -629,11 +629,11 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
629
629
|
5
|
|
630
630
|
/* TEXT, STYLE */
|
|
631
631
|
)
|
|
632
|
-
])) : e.errorMode === "overlay" &&
|
|
632
|
+
])) : e.errorMode === "overlay" && le.value ? (u(), b(
|
|
633
633
|
J,
|
|
634
634
|
{ key: 1 },
|
|
635
635
|
[
|
|
636
|
-
e.teleported ? (u(), R(
|
|
636
|
+
e.teleported ? (u(), R(po, {
|
|
637
637
|
key: 0,
|
|
638
638
|
to: "body"
|
|
639
639
|
}, [
|
|
@@ -680,11 +680,11 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
680
680
|
],
|
|
681
681
|
64
|
|
682
682
|
/* STABLE_FRAGMENT */
|
|
683
|
-
)) :
|
|
683
|
+
)) : N("v-if", !0)
|
|
684
684
|
],
|
|
685
685
|
64
|
|
686
686
|
/* STABLE_FRAGMENT */
|
|
687
|
-
)) :
|
|
687
|
+
)) : N("v-if", !0),
|
|
688
688
|
m(
|
|
689
689
|
"div",
|
|
690
690
|
{
|
|
@@ -694,16 +694,16 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
694
694
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
695
695
|
},
|
|
696
696
|
[
|
|
697
|
-
m("div",
|
|
698
|
-
m("div",
|
|
699
|
-
m("span",
|
|
697
|
+
m("div", Lo, [
|
|
698
|
+
m("div", Oo, [
|
|
699
|
+
m("span", Ao, [
|
|
700
700
|
w(r(ie), {
|
|
701
|
-
style: S(
|
|
701
|
+
style: S(o.size == "mini" || o.size == "table" ? { fontSize: "12px" } : {})
|
|
702
702
|
}, {
|
|
703
703
|
default: p(() => {
|
|
704
704
|
var t;
|
|
705
705
|
return [
|
|
706
|
-
|
|
706
|
+
_(
|
|
707
707
|
c(r(z)("共")) + c((t = r(s)) == null ? void 0 : t.length) + c(r(z)("项")),
|
|
708
708
|
1
|
|
709
709
|
/* TEXT */
|
|
@@ -726,23 +726,23 @@ const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
726
726
|
);
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
|
-
}),
|
|
730
|
-
const L =
|
|
731
|
-
for (const [
|
|
732
|
-
L[
|
|
729
|
+
}), Ne = (V, D) => {
|
|
730
|
+
const L = V.__vccOpts || V;
|
|
731
|
+
for (const [o, k] of D)
|
|
732
|
+
L[o] = k;
|
|
733
733
|
return L;
|
|
734
|
-
},
|
|
735
|
-
function
|
|
736
|
-
const L =
|
|
734
|
+
}, Ro = /* @__PURE__ */ Ne(Eo, [["__scopeId", "data-v-54d96ecc"]]), Wo = {};
|
|
735
|
+
function qo(V, D) {
|
|
736
|
+
const L = Io;
|
|
737
737
|
return u(), R(
|
|
738
738
|
L,
|
|
739
|
-
|
|
739
|
+
_e({ class: "das-ui-select-option" }, V.$attrs),
|
|
740
740
|
null,
|
|
741
741
|
16
|
|
742
742
|
/* FULL_PROPS */
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const Ko = /* @__PURE__ */ Ne(Wo, [["render", qo], ["__scopeId", "data-v-6b03e650"]]), Zo = {
|
|
746
746
|
"--das-ui-select-color-bg": "#FFFFFF",
|
|
747
747
|
// 默认背景色
|
|
748
748
|
"--das-ui-select-color-primary": Ie("--das-ui-color-primary"),
|
|
@@ -789,18 +789,18 @@ const ql = /* @__PURE__ */ Ve(Rl, [["render", Wl], ["__scopeId", "data-v-6b03e65
|
|
|
789
789
|
// 多选框字体大小-lg
|
|
790
790
|
"--das-ui-select-overlay-error-color": "#FB2323",
|
|
791
791
|
"--das-ui-select-overlay-error-bg-color": "#FFDBE0"
|
|
792
|
-
},
|
|
793
|
-
添加: { "zh-CN": "添加", en: "Add" },
|
|
794
|
-
全选: { "zh-CN": "全选", en: "Select All" },
|
|
795
|
-
已选: { "zh-CN": "已选", en: "Selected" },
|
|
796
|
-
项: { "zh-CN": "项", en: "Item(S)" },
|
|
797
|
-
共: { "zh-CN": "共", en: "Total" }
|
|
792
|
+
}, Ho = {
|
|
793
|
+
添加: { "zh-CN": "添加", en: "Add", _appCode: "framework" },
|
|
794
|
+
全选: { "zh-CN": "全选", en: "Select All", _appCode: "framework" },
|
|
795
|
+
已选: { "zh-CN": "已选", en: "Selected", _appCode: "framework" },
|
|
796
|
+
项: { "zh-CN": "项", en: "Item(S)", _appCode: "framework" },
|
|
797
|
+
共: { "zh-CN": "共", en: "Total", _appCode: "framework" }
|
|
798
798
|
};
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
const
|
|
799
|
+
ko(Ho);
|
|
800
|
+
wo(Zo);
|
|
801
|
+
const dl = Se(Ro), cl = Se(Ko), vl = { name: "select 选择器" };
|
|
802
802
|
export {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
803
|
+
dl as DasSelect,
|
|
804
|
+
cl as DasSelectOption,
|
|
805
|
+
vl as default
|
|
806
806
|
};
|