@das-fed/ui 6.4.0-dev.52 → 6.4.0-dev.54
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/i18n-collection/en.js +407 -406
- package/i18n-collection/zh-CN.js +437 -437
- package/package.json +5 -5
- package/packages/business-components/app-container/index.d.ts +1 -0
- package/packages/business-components/app-container/index.js +152 -120
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +18 -0
- package/packages/business-components/app-container/src/type.d.ts +1 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +1 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +15 -0
- package/packages/business-components/change-enterprises/index.js +51 -45
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +77 -1
- package/packages/business-components/change-pwd/index.js +118 -99
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +19 -0
- package/packages/business-components/currency-page/index.js +27 -20
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +767 -0
- package/packages/business-components/device-panel/index.js +4961 -4767
- 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/i18n/index.d.ts +51 -0
- package/packages/business-components/export-button/index.js +117 -102
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +103 -0
- package/packages/business-components/import-button/index.js +220 -192
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +27 -0
- package/packages/business-components/model-table-dialog/index.js +663 -660
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +48 -16
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +114 -1
- package/packages/business-components/process-configuration/index.js +158 -130
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
- package/packages/business-components/process-form/apis.d.ts +1 -0
- package/packages/business-components/process-form/i18n/index.d.ts +279 -0
- package/packages/business-components/process-form/index.js +1170 -1071
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/i18n/index.d.ts +33 -1
- package/packages/business-components/process-log/index.js +151 -146
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +39 -0
- package/packages/business-components/process-search-form/index.d.ts +2 -2
- package/packages/business-components/process-search-form/index.js +420 -389
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
- package/packages/business-components/process-search-form/src/type.d.ts +1 -1
- package/packages/business-components/process-table/i18n/index.d.ts +35 -0
- package/packages/business-components/process-table/index.js +265 -254
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +7 -0
- package/packages/business-components/upload-file/index.js +26 -22
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +331 -0
- package/packages/business-components/urgent-panel/index.js +900 -814
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +53 -1
- package/packages/business-components/user-org-dialog/index.js +196 -186
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +71 -0
- package/packages/business-components/video-dialog/index.js +199 -179
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/button/i18n/index.d.ts +1 -6
- package/packages/components/button/index.js +16 -21
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +52 -44
- package/packages/components/calendar/index.js +77 -75
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +7 -0
- package/packages/components/cascader/index.js +38 -35
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +7 -0
- package/packages/components/color-picker/index.js +37 -34
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +7 -0
- package/packages/components/custom-search-item/index.js +27 -24
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +15 -0
- package/packages/components/date-picker/index.js +81 -76
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -6
- 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 +43 -0
- package/packages/components/dimple-layout/index.js +1077 -1064
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +7 -0
- package/packages/components/dropdown/index.js +32 -29
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/index.js +14 -16
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +27 -3
- package/packages/components/image-upload/index.js +84 -78
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +31 -0
- package/packages/components/image-viewer/index.js +246 -237
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +15 -0
- package/packages/components/input/index.js +50 -45
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +1 -1
- package/packages/components/input-dialog-select/index.js +20 -23
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +15 -0
- package/packages/components/live-player/index.js +15 -9
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +7 -0
- package/packages/components/loading/index.js +93 -90
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +23 -0
- package/packages/components/map/index.js +355 -347
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +7 -0
- package/packages/components/menu-aside/index.js +221 -212
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/style-theme.d.ts +5 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-aside/theme/base.d.ts +1 -0
- package/packages/components/menu-header/index.js +32 -26
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/style-theme.d.ts +5 -0
- package/packages/components/menu-header/theme/base.d.ts +1 -0
- package/packages/components/message/i18n/index.d.ts +7 -0
- package/packages/components/message/index.js +17 -14
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +7 -0
- package/packages/components/notification/index.js +10 -7
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +19 -0
- package/packages/components/pagination/index.js +81 -75
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -2
- package/packages/components/preview/i18n/index.d.ts +1 -1
- package/packages/components/preview/index.js +1 -1
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +10 -3
- package/packages/components/rich-editor/index.js +4 -3
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search/i18n/index.d.ts +25 -1
- package/packages/components/search/index.js +31 -28
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +23 -0
- package/packages/components/select/index.js +204 -197
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -4
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
- package/packages/components/special-range-picker-month/index.js +15 -15
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
- package/packages/components/special-range-picker-year/index.js +81 -81
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +7 -0
- package/packages/components/spin/index.js +35 -32
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +72 -2
- package/packages/components/table/index.js +1245 -1225
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +15 -0
- package/packages/components/tabs/index.js +70 -65
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/time-line/i18n/index.d.ts +1 -1
- package/packages/components/time-line/index.js +6 -9
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +7 -0
- package/packages/components/tooltip/index.js +38 -35
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +35 -0
- package/packages/components/tree/index.js +692 -682
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -5
- package/packages/components/upload/index.js +50 -50
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +7 -0
- package/packages/components/virtual-tree/index.js +35 -31
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/icons/edit-3/index.d.ts +1 -0
- package/packages/icons/edit-3/index.js +17 -0
- package/packages/icons/edit-3/index.js.gz +0 -0
- package/packages/icons/edit-3/index.vue.d.ts +16 -0
- package/packages/icons/index.d.ts +2 -0
- package/packages/icons/index.js +2 -0
- package/packages/icons/right-3/index.d.ts +1 -0
- package/packages/icons/right-3/index.js +17 -0
- package/packages/icons/right-3/index.js.gz +0 -0
- package/packages/icons/right-3/index.vue.d.ts +16 -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
|
|
4
|
-
import { Select as
|
|
3
|
+
import { defineComponent as ze, useCssVars as rl, ref as n, computed as f, useSlots as nl, onMounted as re, onUnmounted as ye, watchEffect as ne, watch as xe, nextTick as I, resolveComponent as il, openBlock as u, createElementBlock as b, normalizeClass as ul, normalizeStyle as S, createVNode as w, unref as r, withCtx as p, withDirectives as U, createTextVNode as N, toDisplayString as c, createBlock as R, mergeProps as Ne, isRef as dl, withModifiers as X, createSlots as cl, renderSlot as C, normalizeProps as j, guardReactiveProps as G, Fragment as J, createCommentVNode as V, createElementVNode as m, withKeys as vl, Teleport as fl } from "vue";
|
|
4
|
+
import { Select as pl, 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 ml } 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
|
|
17
|
-
import { useModelValue as
|
|
18
|
-
import { SelectOption as
|
|
19
|
-
const
|
|
10
|
+
import { DasInput as bl } from "@das-fed/ui/packages/components/input/index";
|
|
11
|
+
import { DasIconXiala as hl } from "@das-fed/ui/packages/icons/xiala/index";
|
|
12
|
+
import { DasIconEmpty as gl } from "@das-fed/ui/packages/icons/empty/index";
|
|
13
|
+
import { vHoverInside as yl } from "@das-fed/utils/directive";
|
|
14
|
+
import { getVarValue as Te, getVar as Ie, setThemeRule as xl } from "@das-fed/web/packages/theme/index";
|
|
15
|
+
import { useZIndex as wl } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
16
|
+
import { t as z, setI18nRule as Cl } from "@das-fed/web/packages/i18n/index";
|
|
17
|
+
import { useModelValue as kl } from "@das-fed/utils/vue";
|
|
18
|
+
import { SelectOption as Tl } from "ant-design-vue/es";
|
|
19
|
+
const Il = { style: { "max-height": "200px", "word-break": "break-all", overflow: "hidden" } }, Sl = { key: 0 }, zl = { class: "das-multiple-option-item" }, Nl = { style: { display: "inline-block" } }, Vl = { key: 0 }, Bl = { key: 2 }, Ml = { style: { display: "inline-block" } }, _l = { class: "das-ui-dropdown-has-checked" }, Fl = { class: "key" }, $l = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "das-select-error-label-content das-select-label-content"
|
|
22
|
-
},
|
|
22
|
+
}, Dl = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Ll = { class: "ant-select-selection-item" }, Ol = { class: "ant-select-selection-item-content" }, Al = ze({
|
|
23
23
|
inheritAttrs: !1,
|
|
24
24
|
components: {
|
|
25
|
-
VNodes: (
|
|
25
|
+
VNodes: (B, { attrs: D }) => D.vnodes
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
28
|
-
...
|
|
27
|
+
}), Pl = /* @__PURE__ */ ze({
|
|
28
|
+
...Al,
|
|
29
29
|
__name: "Select",
|
|
30
30
|
props: {
|
|
31
31
|
modelValue: { default: void 0 },
|
|
@@ -61,21 +61,21 @@ const Io = { 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(B, { expose: D, emit: L }) {
|
|
65
|
+
rl((e) => ({
|
|
66
66
|
"3f9602ad": Le.value,
|
|
67
67
|
cd494dc0: Oe.value
|
|
68
68
|
}));
|
|
69
|
-
const
|
|
69
|
+
const l = B, k = L, s = kl(l, "modelValue"), x = n(!1), Be = f(() => l.placeholder || z("请选择")), Me = f(() => P.value ? P.value.querySelector(".ant-select-selector") : null), ue = n(null), de = f(() => l.dropdownMode ?? l.mode ?? ""), O = n(null), _e = n(null), A = n(""), Fe = () => {
|
|
70
70
|
O.value = !0;
|
|
71
71
|
}, $e = () => {
|
|
72
72
|
O.value = null;
|
|
73
73
|
}, ce = () => {
|
|
74
|
-
|
|
74
|
+
A.value && (k("addCustomItem", A.value), A.value = "", l.mode === "combobox" ? I(() => {
|
|
75
75
|
h.value.focus();
|
|
76
76
|
}) : h.value.focus());
|
|
77
|
-
}, ve =
|
|
78
|
-
|
|
77
|
+
}, ve = nl(), Q = () => {
|
|
78
|
+
l.mode === "combobox" && l.dropdownMode === "custom" && !ve.dropdownRender && (O.value = !1, I(() => {
|
|
79
79
|
O.value = null;
|
|
80
80
|
}));
|
|
81
81
|
};
|
|
@@ -84,11 +84,11 @@ const Io = { 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(),
|
|
87
|
+
const h = n(), fe = n(), W = n(!1), Y = f(() => O.value !== null ? O.value : l.open === void 0 ? l.mode === "combobox" ? void 0 : W.value : l.open), M = 1e6, i = n(100), v = n(100), _ = n(!1), ee = n(!0), le = n(!1);
|
|
88
88
|
ne(() => {
|
|
89
|
-
s.value &&
|
|
90
|
-
var
|
|
91
|
-
let e = (
|
|
89
|
+
s.value && l.mode == "combobox" && (ee.value = !0, setTimeout(() => {
|
|
90
|
+
var o;
|
|
91
|
+
let e = (o = h.value) == null ? void 0 : o.$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 Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
96
96
|
}
|
|
97
97
|
}, 300));
|
|
98
98
|
}), ne(() => {
|
|
99
|
-
|
|
99
|
+
l.options && (fe.value = l.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 Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
104
104
|
}, 100);
|
|
105
105
|
};
|
|
106
106
|
ne(() => {
|
|
107
|
-
|
|
107
|
+
le.value === !0 && l.mode != "combobox" && s.value && s.value.length > 0 && l.options.length > 0 && (le.value = !1, De());
|
|
108
108
|
}), re(() => {
|
|
109
|
-
|
|
109
|
+
le.value = !0, l.focusOpen || (v.value = 1, i.value = v.value, x.value = !0);
|
|
110
110
|
});
|
|
111
|
-
const Le = f(() =>
|
|
111
|
+
const Le = f(() => l.width ? l.width : "230px"), Oe = f(() => l.height ? l.height : "auto"), pe = n(3e3), Ae = f(() => ({
|
|
112
112
|
"z-index": pe.value
|
|
113
113
|
})), me = f(() => {
|
|
114
|
-
var
|
|
114
|
+
var o;
|
|
115
115
|
let e = [];
|
|
116
|
-
if (
|
|
116
|
+
if (l.mode != "combobox" && Array.isArray(s.value))
|
|
117
117
|
s.value.map((a) => {
|
|
118
118
|
var d;
|
|
119
|
-
let t = (d =
|
|
119
|
+
let t = (d = l.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 (l.mode == "combobox" && s.value) {
|
|
123
|
+
let a = (o = l.options) == null ? void 0 : o.find((t) => t[F.value] == s.value);
|
|
124
124
|
a && e.push(a[q.value]);
|
|
125
125
|
}
|
|
126
126
|
return e.join("、");
|
|
127
|
-
}),
|
|
128
|
-
var e,
|
|
129
|
-
return
|
|
130
|
-
}), We = f(() => {
|
|
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));
|
|
127
|
+
}), Pe = f(() => l.isView ? l.noSetDefaultVal ? "" : "-" : Be.value), Ee = f(() => {
|
|
128
|
+
var e, o;
|
|
129
|
+
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));
|
|
133
130
|
}), Re = f(() => {
|
|
134
|
-
var e,
|
|
135
|
-
return
|
|
131
|
+
var e, o, a;
|
|
132
|
+
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));
|
|
133
|
+
}), We = f(() => {
|
|
134
|
+
var e, o;
|
|
135
|
+
return l.optionFilterProp ? l.optionFilterProp : (e = l.fieldNames) != null && e.label ? (o = l.fieldNames) == null ? void 0 : o.label : "label";
|
|
136
136
|
}), q = f(() => {
|
|
137
137
|
var e;
|
|
138
|
-
return
|
|
139
|
-
}),
|
|
138
|
+
return l.fieldNames && l.fieldNames.label ? (e = l.fieldNames) == null ? void 0 : e.label : "label";
|
|
139
|
+
}), F = f(() => {
|
|
140
140
|
var e;
|
|
141
|
-
return
|
|
141
|
+
return l.fieldNames && l.fieldNames.value ? (e = l.fieldNames) == null ? void 0 : e.value : "value";
|
|
142
142
|
}), qe = f(() => ({
|
|
143
|
-
width: typeof
|
|
144
|
-
})),
|
|
143
|
+
width: typeof l.width == "number" ? l.width + "px" : l.width
|
|
144
|
+
})), oe = n(!1), K = n({
|
|
145
145
|
x: 0,
|
|
146
146
|
y: 0
|
|
147
147
|
}), be = n(0), he = f(() => ({
|
|
@@ -151,7 +151,7 @@ const Io = { 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": l.errorModelZIndex
|
|
155
155
|
})), Ke = f(() => ({
|
|
156
156
|
...he.value,
|
|
157
157
|
width: be.value + "px",
|
|
@@ -166,87 +166,87 @@ const Io = { 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: o } = (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 = o, K.value.y = e + a;
|
|
171
171
|
}, He = () => {
|
|
172
|
-
Ze(),
|
|
172
|
+
Ze(), oe.value = !0;
|
|
173
173
|
}, Ue = () => {
|
|
174
|
-
|
|
175
|
-
}, Xe = (e,
|
|
174
|
+
oe.value = !1;
|
|
175
|
+
}, Xe = (e, o) => {
|
|
176
176
|
e ? He() : Ue();
|
|
177
177
|
}, je = (e) => {
|
|
178
|
-
e && (pe.value =
|
|
179
|
-
var
|
|
180
|
-
(a = (
|
|
178
|
+
e && (pe.value = wl().nextZIndex(), A.value = ""), l.mode == "combobox" && (Z.value = e, e || setTimeout(() => {
|
|
179
|
+
var o, a;
|
|
180
|
+
(a = (o = h.value) == null ? void 0 : o.blur) == null || a.call(o);
|
|
181
181
|
})), k("dropdownVisibleChange", e);
|
|
182
182
|
}, Ge = (e) => {
|
|
183
|
-
let
|
|
184
|
-
return
|
|
185
|
-
},
|
|
183
|
+
let o = e.toString();
|
|
184
|
+
return o.length > l.maxTagTextLength && (o = o.substr(0, l.maxTagTextLength) + "..."), o;
|
|
185
|
+
}, P = n(), Je = (e) => l.isRenderNode ? P.value : l.getPopupContainer === void 0 ? document.body : l.getPopupContainer(e), Qe = (e) => {
|
|
186
186
|
if (e) {
|
|
187
187
|
Array.isArray(s.value) || (s.value = []);
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
!s.value.includes(t[
|
|
191
|
-
}), s.value =
|
|
188
|
+
let o = s.value, a = [];
|
|
189
|
+
l.options.forEach((t) => {
|
|
190
|
+
!s.value.includes(t[F.value]) && !t.disabled && (o.push(t[F.value]), a.push(t));
|
|
191
|
+
}), s.value = o, se(s.value, a);
|
|
192
192
|
} else {
|
|
193
|
-
let
|
|
194
|
-
s.value =
|
|
193
|
+
let o = s.value;
|
|
194
|
+
s.value = o.filter((a) => !!l.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
|
+
}, el = (e) => {
|
|
200
|
+
if (l.mode == "combobox") {
|
|
201
201
|
k("focus", e);
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
}, Z = n(!1),
|
|
206
|
-
var e,
|
|
207
|
-
if (
|
|
204
|
+
W.value = !0, l.focusOpen && !l.isExterControlCount && (i.value = M, x.value = !1), k("focus", e);
|
|
205
|
+
}, Z = n(!1), ll = () => {
|
|
206
|
+
var e, o;
|
|
207
|
+
if (l.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
|
+
(o = (e = h.value) == null ? void 0 : e.blur) == null || o.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
|
+
}, ol = (e) => {
|
|
219
|
+
if (l.mode == "combobox") {
|
|
220
220
|
I(() => {
|
|
221
221
|
Z.value = !1;
|
|
222
222
|
}), k("blur", e);
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
|
|
226
|
-
},
|
|
225
|
+
W.value = !1, l.focusOpen && !l.isExterControlCount && ($(), i.value = v.value, x.value = !0), k("blur", e);
|
|
226
|
+
}, tl = (e) => {
|
|
227
227
|
e.onClose(), i.value = 100, I(() => {
|
|
228
|
-
|
|
228
|
+
l.mode !== "combobox" && Y.value || l.focusOpen && ($(), i.value = v.value, x.value = !0);
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
231
|
xe(
|
|
232
|
-
() =>
|
|
232
|
+
() => l.disabled || l.isView,
|
|
233
233
|
(e) => {
|
|
234
|
-
e &&
|
|
234
|
+
e && l.mode !== "combobox" && (W.value = !1);
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
let E = n(!1);
|
|
238
|
-
const
|
|
239
|
-
E.value = e,
|
|
240
|
-
|
|
238
|
+
const al = (e) => {
|
|
239
|
+
E.value = e, _.value = !0, I(() => {
|
|
240
|
+
_.value = !1, l.focusOpen && ($(), i.value = e ? M : 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 && l.focusOpen && i.value === 0 && (i.value = 100, I(() => {
|
|
247
247
|
$(), i.value = v.value, x.value = !0;
|
|
248
248
|
}));
|
|
249
|
-
}), H.observe(
|
|
249
|
+
}), H.observe(P.value);
|
|
250
250
|
}), ye(() => {
|
|
251
251
|
H && H.disconnect();
|
|
252
252
|
});
|
|
@@ -254,14 +254,14 @@ const Io = { 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 o = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
258
|
+
if (!o) return;
|
|
259
|
+
let a = o.offsetWidth - 5;
|
|
260
|
+
l.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 = M;
|
|
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 Io = { 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], sl = y.querySelector(".anticon-close") ? 86 : 69;
|
|
275
|
+
y && !y.classList.contains("ant-select-selection-overflow-item-rest") && sl <= a - d && !ve.tagRender && (v.value = 1, y.classList.add("ellipsis"));
|
|
276
276
|
}
|
|
277
277
|
}, ae = n(!1);
|
|
278
278
|
xe(
|
|
@@ -282,43 +282,43 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
282
282
|
ae.value = !1;
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
l.mode !== "combobox" && Y.value || (_.value = !0, i.value = M, await I(), await $(), _.value = !1, l.isExterControlCount && l.focusOpen ? (i.value = E.value ? M : 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, o) => {
|
|
289
|
+
ae.value = !0, l.mode === "combobox" && (Q(), Z.value = !1);
|
|
290
290
|
const a = e;
|
|
291
|
-
|
|
291
|
+
l.noDropdown && l.maxTagsLength < a.length && a.pop(), _.value = !0, k("update:model-value", a), k("change", a, o), i.value = M, await I(), await $(), _.value = !1, l.isExterControlCount && l.focusOpen && (i.value = E.value ? M : v.value, x.value = !E.value), l.focusOpen || (i.value = v.value);
|
|
292
292
|
};
|
|
293
293
|
return D({
|
|
294
294
|
$select: h,
|
|
295
|
-
toChangeMaxCount:
|
|
296
|
-
}), (e,
|
|
297
|
-
const a =
|
|
295
|
+
toChangeMaxCount: al
|
|
296
|
+
}), (e, o) => {
|
|
297
|
+
const a = il("v-nodes");
|
|
298
298
|
return u(), b(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
|
-
class:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
301
|
+
class: ul(["das-ui-select", [
|
|
302
|
+
l.borderType,
|
|
303
|
+
l.isView ? "readonly" : "",
|
|
304
|
+
l.error ? "is-error" : "",
|
|
305
305
|
x.value ? "show-ellipsis" : ""
|
|
306
306
|
]]),
|
|
307
307
|
ref_key: "$selectBox",
|
|
308
|
-
ref:
|
|
308
|
+
ref: P,
|
|
309
309
|
style: S(qe.value)
|
|
310
310
|
},
|
|
311
311
|
[
|
|
312
|
-
w(r(
|
|
312
|
+
w(r(ml), {
|
|
313
313
|
placement: "top",
|
|
314
314
|
trigger: "hover",
|
|
315
315
|
"virtual-triggering": "",
|
|
316
|
-
"virtual-ref":
|
|
317
|
-
disabled: !e.isTooltip ||
|
|
316
|
+
"virtual-ref": Me.value,
|
|
317
|
+
disabled: !e.isTooltip || _.value || !me.value || !ee.value
|
|
318
318
|
}, {
|
|
319
319
|
content: p(() => [
|
|
320
|
-
U((u(), b("div",
|
|
321
|
-
|
|
320
|
+
U((u(), b("div", Il, [
|
|
321
|
+
N(
|
|
322
322
|
c(me.value),
|
|
323
323
|
1
|
|
324
324
|
/* TEXT */
|
|
@@ -330,50 +330,50 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
330
330
|
_: 1
|
|
331
331
|
/* STABLE */
|
|
332
332
|
}, 8, ["virtual-ref", "disabled"]),
|
|
333
|
-
U((u(),
|
|
333
|
+
U((u(), R(r(pl), Ne(e.$attrs, {
|
|
334
334
|
value: r(s),
|
|
335
|
-
"onUpdate:value":
|
|
335
|
+
"onUpdate:value": o[4] || (o[4] = (t) => dl(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: l.borderType === "bordered",
|
|
342
|
+
disabled: l.disabled || l.isView,
|
|
343
343
|
showArrow: !0,
|
|
344
|
-
open:
|
|
345
|
-
placeholder:
|
|
346
|
-
optionFilterProp:
|
|
347
|
-
size:
|
|
348
|
-
style:
|
|
344
|
+
open: l.noDropdown ? !1 : Y.value,
|
|
345
|
+
placeholder: Pe.value,
|
|
346
|
+
optionFilterProp: We.value,
|
|
347
|
+
size: l.size == "middle" ? "defalut" : l.size == "mini" ? "small" : l.size,
|
|
348
|
+
style: l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {},
|
|
349
349
|
dropdownClassName: "das-ui-select-dorpdown " + e.dropdownClassName,
|
|
350
350
|
maxTagCount: i.value,
|
|
351
351
|
getPopupContainer: Je,
|
|
352
|
-
dropdownStyle:
|
|
352
|
+
dropdownStyle: Ae.value,
|
|
353
353
|
onDropdownVisibleChange: je,
|
|
354
354
|
onChange: se,
|
|
355
|
-
onFocus:
|
|
355
|
+
onFocus: el,
|
|
356
356
|
onClick: [
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
ll,
|
|
358
|
+
o[5] || (o[5] = X(() => {
|
|
359
359
|
}, ["stop"]))
|
|
360
360
|
],
|
|
361
|
-
onBlur:
|
|
362
|
-
}),
|
|
361
|
+
onBlur: ol
|
|
362
|
+
}), cl({
|
|
363
363
|
option: p((t) => [
|
|
364
364
|
C(e.$slots, "option", j(G(t)), () => {
|
|
365
365
|
var d;
|
|
366
366
|
return [
|
|
367
|
-
t.children && typeof t.children == "function" ? (u(),
|
|
367
|
+
t.children && typeof t.children == "function" ? (u(), R(a, {
|
|
368
368
|
key: 0,
|
|
369
369
|
vnodes: t.children()
|
|
370
370
|
}, null, 8, ["vnodes"])) : (u(), b(
|
|
371
371
|
J,
|
|
372
372
|
{ key: 1 },
|
|
373
373
|
[
|
|
374
|
-
|
|
375
|
-
e.mode === "combobox" ? U((u(), b("div",
|
|
376
|
-
|
|
374
|
+
V(' :option="{value, label, [disabled, key, title]}" '),
|
|
375
|
+
e.mode === "combobox" ? U((u(), b("div", Sl, [
|
|
376
|
+
N(
|
|
377
377
|
c(t[q.value]),
|
|
378
378
|
1
|
|
379
379
|
/* TEXT */
|
|
@@ -384,16 +384,16 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
384
384
|
J,
|
|
385
385
|
{ key: 1 },
|
|
386
386
|
[
|
|
387
|
-
|
|
388
|
-
m("div",
|
|
389
|
-
(u(),
|
|
387
|
+
V(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
388
|
+
m("div", zl, [
|
|
389
|
+
(u(), R(r(we), {
|
|
390
390
|
class: "das-select-checkbox",
|
|
391
|
-
modelValue: (d = r(s)) == null ? void 0 : d.includes(t[
|
|
392
|
-
key: t[
|
|
391
|
+
modelValue: (d = r(s)) == null ? void 0 : d.includes(t[F.value]),
|
|
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", Nl, [
|
|
396
|
+
N(
|
|
397
397
|
c(t[q.value]),
|
|
398
398
|
1
|
|
399
399
|
/* TEXT */
|
|
@@ -418,14 +418,14 @@ const Io = { 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) => tl(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(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
429
429
|
},
|
|
430
430
|
c(Ge(t.label)),
|
|
431
431
|
5
|
|
@@ -441,11 +441,11 @@ const Io = { 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", Vl, [
|
|
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: o[2] || (o[2] = X(() => {
|
|
449
449
|
}, ["stop"]))
|
|
450
450
|
}, [
|
|
451
451
|
w(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
@@ -453,16 +453,16 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
453
453
|
"div",
|
|
454
454
|
{
|
|
455
455
|
class: "customDropdown",
|
|
456
|
-
onMousedown:
|
|
456
|
+
onMousedown: o[1] || (o[1] = (T) => T.preventDefault())
|
|
457
457
|
},
|
|
458
458
|
[
|
|
459
|
-
w(r(
|
|
459
|
+
w(r(bl), {
|
|
460
460
|
ref_key: "testInput",
|
|
461
|
-
ref:
|
|
462
|
-
modelValue:
|
|
463
|
-
"onUpdate:modelValue":
|
|
464
|
-
onKeyup:
|
|
465
|
-
onFocus: X(
|
|
461
|
+
ref: _e,
|
|
462
|
+
modelValue: A.value,
|
|
463
|
+
"onUpdate:modelValue": o[0] || (o[0] = (T) => A.value = T),
|
|
464
|
+
onKeyup: vl(ce, ["enter"]),
|
|
465
|
+
onFocus: X(Fe, ["stop"]),
|
|
466
466
|
onBlur: X($e, ["stop"]),
|
|
467
467
|
width: "100%",
|
|
468
468
|
borderType: "bordered"
|
|
@@ -473,7 +473,7 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
473
473
|
class: "addBtn",
|
|
474
474
|
onClick: ce
|
|
475
475
|
},
|
|
476
|
-
c(r(
|
|
476
|
+
c(r(z)("添加")),
|
|
477
477
|
1
|
|
478
478
|
/* TEXT */
|
|
479
479
|
)
|
|
@@ -481,26 +481,26 @@ const Io = { 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", Bl, [
|
|
485
485
|
w(a, { vnodes: t }, null, 8, ["vnodes"]),
|
|
486
|
-
(d =
|
|
486
|
+
(d = l.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: o[3] || (o[3] = (T) => T.preventDefault())
|
|
492
492
|
},
|
|
493
493
|
[
|
|
494
|
-
m("div",
|
|
494
|
+
m("div", Ml, [
|
|
495
495
|
w(r(we), {
|
|
496
496
|
modelValue: Ee.value,
|
|
497
|
-
indeterminate:
|
|
497
|
+
indeterminate: Re.value,
|
|
498
498
|
onChange: Qe,
|
|
499
499
|
style: { display: "flex" }
|
|
500
500
|
}, {
|
|
501
501
|
default: p(() => [
|
|
502
|
-
|
|
503
|
-
c(r(
|
|
502
|
+
N(
|
|
503
|
+
c(r(z)("全选")),
|
|
504
504
|
1
|
|
505
505
|
/* TEXT */
|
|
506
506
|
)
|
|
@@ -509,21 +509,21 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
509
509
|
/* STABLE */
|
|
510
510
|
}, 8, ["modelValue", "indeterminate"])
|
|
511
511
|
]),
|
|
512
|
-
m("span",
|
|
513
|
-
|
|
514
|
-
c(r(
|
|
512
|
+
m("span", _l, [
|
|
513
|
+
N(
|
|
514
|
+
c(r(z)("已选")),
|
|
515
515
|
1
|
|
516
516
|
/* TEXT */
|
|
517
517
|
),
|
|
518
518
|
m(
|
|
519
519
|
"span",
|
|
520
|
-
|
|
520
|
+
Fl,
|
|
521
521
|
c(((g = r(s)) == null ? void 0 : g.length) || 0),
|
|
522
522
|
1
|
|
523
523
|
/* TEXT */
|
|
524
524
|
),
|
|
525
|
-
|
|
526
|
-
c(r(
|
|
525
|
+
N(
|
|
526
|
+
c(r(z)("项")),
|
|
527
527
|
1
|
|
528
528
|
/* TEXT */
|
|
529
529
|
)
|
|
@@ -531,27 +531,27 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
531
531
|
],
|
|
532
532
|
32
|
|
533
533
|
/* NEED_HYDRATION */
|
|
534
|
-
)) :
|
|
534
|
+
)) : V("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(gl), { size: "medium" })
|
|
542
542
|
], !0)
|
|
543
543
|
]),
|
|
544
544
|
maxTagPlaceholder: p((t) => [
|
|
545
545
|
C(e.$slots, "maxTagPlaceholder", j(G(t)), () => [
|
|
546
|
-
|
|
546
|
+
V(" 隐藏tag时显示的内容 "),
|
|
547
547
|
w(r(ie), {
|
|
548
|
-
style: S(
|
|
548
|
+
style: S(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
549
549
|
}, {
|
|
550
550
|
default: p(() => {
|
|
551
551
|
var d;
|
|
552
552
|
return [
|
|
553
|
-
|
|
554
|
-
c(r(
|
|
553
|
+
N(
|
|
554
|
+
c(r(z)("共")) + c((d = r(s)) == null ? void 0 : d.length) + c(r(z)("项")),
|
|
555
555
|
1
|
|
556
556
|
/* TEXT */
|
|
557
557
|
)
|
|
@@ -560,12 +560,12 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
560
560
|
_: 1
|
|
561
561
|
/* STABLE */
|
|
562
562
|
}, 8, ["style"]),
|
|
563
|
-
|
|
563
|
+
V(" <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(hl), {
|
|
569
569
|
class: "das-suffix-icon",
|
|
570
570
|
size: "medium"
|
|
571
571
|
})
|
|
@@ -607,9 +607,9 @@ const Io = { 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(yl), Xe]
|
|
611
611
|
]),
|
|
612
|
-
|
|
612
|
+
V(` <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 Io = { 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", $l, [
|
|
623
623
|
m(
|
|
624
624
|
"span",
|
|
625
625
|
{
|
|
@@ -629,11 +629,11 @@ const Io = { 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" && oe.value ? (u(), b(
|
|
633
633
|
J,
|
|
634
634
|
{ key: 1 },
|
|
635
635
|
[
|
|
636
|
-
e.teleported ? (u(),
|
|
636
|
+
e.teleported ? (u(), R(fl, {
|
|
637
637
|
key: 0,
|
|
638
638
|
to: "body"
|
|
639
639
|
}, [
|
|
@@ -680,11 +680,11 @@ const Io = { style: { "max-height": "200px", "word-break": "break-all", overflow
|
|
|
680
680
|
],
|
|
681
681
|
64
|
|
682
682
|
/* STABLE_FRAGMENT */
|
|
683
|
-
)) :
|
|
683
|
+
)) : V("v-if", !0)
|
|
684
684
|
],
|
|
685
685
|
64
|
|
686
686
|
/* STABLE_FRAGMENT */
|
|
687
|
-
)) :
|
|
687
|
+
)) : V("v-if", !0),
|
|
688
688
|
m(
|
|
689
689
|
"div",
|
|
690
690
|
{
|
|
@@ -694,17 +694,17 @@ const Io = { 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", Dl, [
|
|
698
|
+
m("div", Ll, [
|
|
699
|
+
m("span", Ol, [
|
|
700
700
|
w(r(ie), {
|
|
701
|
-
style: S(
|
|
701
|
+
style: S(l.size == "mini" || l.size == "table" ? { fontSize: "12px" } : {})
|
|
702
702
|
}, {
|
|
703
703
|
default: p(() => {
|
|
704
704
|
var t;
|
|
705
705
|
return [
|
|
706
|
-
|
|
707
|
-
c(r(
|
|
706
|
+
N(
|
|
707
|
+
c(r(z)("共")) + c((t = r(s)) == null ? void 0 : t.length) + c(r(z)("项")),
|
|
708
708
|
1
|
|
709
709
|
/* TEXT */
|
|
710
710
|
)
|
|
@@ -726,23 +726,23 @@ const Io = { 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
|
+
}), Ve = (B, D) => {
|
|
730
|
+
const L = B.__vccOpts || B;
|
|
731
|
+
for (const [l, k] of D)
|
|
732
|
+
L[l] = k;
|
|
733
733
|
return L;
|
|
734
|
-
},
|
|
735
|
-
function
|
|
736
|
-
const L =
|
|
737
|
-
return u(),
|
|
734
|
+
}, El = /* @__PURE__ */ Ve(Pl, [["__scopeId", "data-v-54d96ecc"]]), Rl = {};
|
|
735
|
+
function Wl(B, D) {
|
|
736
|
+
const L = Tl;
|
|
737
|
+
return u(), R(
|
|
738
738
|
L,
|
|
739
|
-
|
|
739
|
+
Ne({ class: "das-ui-select-option" }, B.$attrs),
|
|
740
740
|
null,
|
|
741
741
|
16
|
|
742
742
|
/* FULL_PROPS */
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const ql = /* @__PURE__ */ Ve(Rl, [["render", Wl], ["__scopeId", "data-v-6b03e650"]]), Kl = {
|
|
746
746
|
"--das-ui-select-color-bg": "#FFFFFF",
|
|
747
747
|
// 默认背景色
|
|
748
748
|
"--das-ui-select-color-primary": Ie("--das-ui-color-primary"),
|
|
@@ -789,11 +789,18 @@ const qo = /* @__PURE__ */ ze(Wo, [["render", Ro], ["__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
|
+
}, Zl = {
|
|
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
798
|
};
|
|
793
|
-
|
|
794
|
-
|
|
799
|
+
Cl(Zl);
|
|
800
|
+
xl(Kl);
|
|
801
|
+
const uo = Se(El), co = Se(ql), vo = { name: "select 选择器" };
|
|
795
802
|
export {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
803
|
+
uo as DasSelect,
|
|
804
|
+
co as DasSelectOption,
|
|
805
|
+
vo as default
|
|
799
806
|
};
|