@das-fed/upf-ui 6.4.0-dev.307 → 6.4.0-dev.309
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/front-end/i18n/front-end-page/dasui_en-US.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
- package/package.json +9 -9
- package/packages/business-components/ai-panel/{index-C1XseEkL.js → index-BdLFU3HT.js} +1 -1
- package/packages/business-components/ai-panel/index-BdLFU3HT.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-_XzaXcle.js → index-Cc1_Wpca.js} +1154 -1136
- package/packages/business-components/ai-panel/index-Cc1_Wpca.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +1 -1
- package/packages/business-components/app-container/index.js +56 -56
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/index.d.ts +30 -30
- package/packages/business-components/area-phone-select/index.js +87 -87
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +4 -4
- package/packages/business-components/change-enterprises/index.js +20 -20
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +15 -15
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +14 -14
- package/packages/business-components/currency-page/index.js +39 -39
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/index.js +46 -46
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +92 -92
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +171 -171
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +42 -42
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.d.ts +4 -4
- package/packages/business-components/model-table-dialog/index.js +233 -233
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/index.js +44 -44
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +939 -939
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +14 -14
- package/packages/business-components/process-log/index.js +331 -331
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +2 -2
- package/packages/business-components/process-table/index.d.ts +14 -14
- package/packages/business-components/upload-file/index.js +43 -43
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/upload-file/style.css +1 -1
- package/packages/business-components/urgent-panel/index.js +340 -340
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +17 -17
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/alert/index.d.ts +4 -4
- package/packages/components/alert/index.js +5 -5
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/audio-video/index.js +141 -141
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +6 -6
- package/packages/components/autocomplete/index.js +162 -162
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/breadcrumb/index.js +37 -37
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +223 -223
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/index.js +164 -164
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.d.ts +8 -8
- package/packages/components/cascader/index.js +89 -89
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.d.ts +12 -12
- package/packages/components/checkbox/index.js +180 -180
- 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/collapse-panel/index.js +12 -12
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collaspe/index.d.ts +4 -4
- package/packages/components/collaspe/index.js +22 -22
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.d.ts +4 -4
- package/packages/components/custom-search-item/index.js +36 -36
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +658 -658
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +73 -31
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +33 -33
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.d.ts +4 -4
- package/packages/components/edit-table/index.js +190 -190
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/empty/index.js +29 -29
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +31 -31
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form/index.d.ts +14 -14
- package/packages/components/form/index.js +23 -23
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form-item/index.js +771 -771
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/image-upload/index.js +90 -90
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +418 -418
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/infinite-scroll/index.d.ts +3 -1
- package/packages/components/infinite-scroll/index.js +509 -509
- package/packages/components/infinite-scroll/index.js.gz +0 -0
- package/packages/components/infinite-scroll/src/index.vue.d.ts +3 -1
- package/packages/components/infinite-scroll/src/type.d.ts +78 -78
- package/packages/components/infinite-scroll/style.css +1 -1
- package/packages/components/infinite-scroll/style.css.gz +0 -0
- package/packages/components/input/index.js +544 -544
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -2
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +82 -82
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-number/index.js +103 -103
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/live-player/index.d.ts +4 -4
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +600 -600
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +17 -17
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/notification/style.css +1 -1
- package/packages/components/notification/style.css.gz +0 -0
- package/packages/components/pagination/index.js +91 -91
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/index.d.ts +4 -4
- package/packages/components/popover/index.js +33 -33
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +13 -13
- package/packages/components/popup-mask/index.js.gz +0 -0
- package/packages/components/progress/index.js +93 -93
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio/index.d.ts +10 -10
- package/packages/components/radio/index.js +175 -175
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +234 -234
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +2 -2
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +68 -68
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +736 -736
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +212 -212
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.js +77 -77
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-list/index.js +430 -430
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +140 -140
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/style.css +1 -1
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +169 -169
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/style.css +1 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/spin/index.js +37 -37
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.d.ts +8 -8
- package/packages/components/split-panel/index.js +27 -27
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/index.d.ts +103 -103
- package/packages/components/table/index.js +1869 -1869
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +9 -9
- package/packages/components/tabs/index.js +101 -101
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +5 -5
- package/packages/components/time-line/index.js +35 -35
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.d.ts +6 -6
- package/packages/components/tooltip/index.js +62 -62
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.js +426 -426
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +233 -233
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +14 -14
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +12 -12
- package/packages/components/tree-table/index.d.ts +2 -2
- package/packages/components/tree-table/index.js +181 -181
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1308 -1308
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +155 -145
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/upload/index.js +98 -98
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +62 -62
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +140 -140
- package/release-meta.json +6 -6
- package/packages/business-components/ai-panel/index-C1XseEkL.js.gz +0 -0
- package/packages/business-components/ai-panel/index-_XzaXcle.js.gz +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { withInstall as tl } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
-
import { defineComponent as ol, useCssVars as lt, useAttrs as tt, computed as s, ref as i, watch as j, useSlots as ot, onMounted as Ae, onUnmounted as Qe, watchEffect as Ye, nextTick as
|
|
2
|
+
import { defineComponent as ol, useCssVars as lt, useAttrs as tt, computed as s, ref as i, watch as j, useSlots as ot, onMounted as Ae, onUnmounted as Qe, watchEffect as Ye, nextTick as k, resolveComponent as nt, openBlock as f, createElementBlock as y, normalizeClass as at, normalizeStyle as X, withModifiers as ue, createBlock as K, unref as c, createCommentVNode as L, withDirectives as Te, mergeProps as Le, createSlots as rt, withCtx as m, renderSlot as w, normalizeProps as ie, guardReactiveProps as ce, Fragment as ke, createTextVNode as Ie, toDisplayString as Z, createElementVNode as b, createVNode as I, withKeys as st } from "vue";
|
|
3
3
|
import { Select as ut, Tag as Ve } from "ant-design-vue";
|
|
4
4
|
import { DasCheckbox as el } from "@das-fed/upf-ui/packages/components/checkbox/index";
|
|
5
5
|
import { vScrollbar as it } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
6
|
-
import { DasTooltip as
|
|
6
|
+
import { DasTooltip as ct } from "@das-fed/upf-ui/packages/components/tooltip/index";
|
|
7
7
|
import { vDasTooltip as ll } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
8
|
-
import { DasInput as
|
|
8
|
+
import { DasInput as dt } from "@das-fed/upf-ui/packages/components/input/index";
|
|
9
9
|
import { DasIconXiala as ft } from "@das-fed/upf-ui/packages/icons/xiala/index";
|
|
10
10
|
import { DasIconEmpty as vt } from "@das-fed/upf-ui/packages/icons/empty/index";
|
|
11
11
|
import { DasErrorOverlayModel as pt } from "@das-fed/upf-ui/packages/components/error-overlay-model/index";
|
|
12
12
|
import { vHoverInside as ht } from "@das-fed/upf-utils/directive";
|
|
13
|
-
import { t as
|
|
13
|
+
import { t as M, currentLang as mt, setI18nRule as gt } from "@das-fed/upf-web/packages/i18n/index";
|
|
14
14
|
import { useZIndex as yt } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex";
|
|
15
15
|
import { useModelValue as bt } from "@das-fed/upf-utils/vue";
|
|
16
16
|
import { calcTextWidth as St } from "@das-fed/upf-utils/common-tools";
|
|
@@ -19,13 +19,13 @@ import "ant-design-vue/es/tag/style/css";
|
|
|
19
19
|
import { SelectOption as Ct } from "ant-design-vue/es"
|
|
20
20
|
import '@das-fed/upf-ui/packages/components/select/style.css';
|
|
21
21
|
;
|
|
22
|
-
const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block" } }, Tt = ["innerHTML"], kt = { key: 0 }, It = { key: 2 }, Vt = { style: { display: "inline-block" } },
|
|
22
|
+
const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block" } }, Tt = ["innerHTML"], kt = { key: 0 }, It = { key: 2 }, Vt = { style: { display: "inline-block" } }, Lt = ["innerHTML"], Mt = ["innerHTML"], Ot = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "das-select-error-label-content das-select-label-content"
|
|
25
|
-
},
|
|
25
|
+
}, zt = { class: "ant-select ant-select-multiple ant-select-selection-overflow-item ant-select-selection-overflow-item-rest" }, Pt = { class: "ant-select-selection-item" }, _t = { class: "ant-select-selection-item-content" }, Nt = ["innerHTML"], Et = ol({
|
|
26
26
|
inheritAttrs: !1,
|
|
27
27
|
components: {
|
|
28
|
-
VNodes: (
|
|
28
|
+
VNodes: (p, { attrs: E }) => E.vnodes
|
|
29
29
|
}
|
|
30
30
|
}), Dt = /* @__PURE__ */ ol({
|
|
31
31
|
...Et,
|
|
@@ -72,12 +72,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
72
72
|
largeSelectionCollapseThreshold: { default: 200 }
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:model-value", "change", "focus", "blur", "dropdownVisibleChange", "addCustomItem"],
|
|
75
|
-
setup(
|
|
75
|
+
setup(p, { expose: E, emit: D }) {
|
|
76
76
|
lt((e) => ({
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
v1cfb2fe5: Il.value,
|
|
78
|
+
v689bd2e8: Vl.value
|
|
79
79
|
}));
|
|
80
|
-
const t =
|
|
80
|
+
const t = p, x = D, J = tt(), al = s(() => {
|
|
81
81
|
const e = {};
|
|
82
82
|
for (const l in J)
|
|
83
83
|
l === "size" || l === "formSize" || l === "onClick" || l.startsWith("onClick") || l === "filterOption" || l === "onSearch" || l === "onPopupScroll" || (e[l] = J[l]);
|
|
@@ -87,48 +87,48 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
87
87
|
return `<span class='key'>${((e = a.value) == null ? void 0 : e.length) ?? 0}</span>`;
|
|
88
88
|
}), rl = s(() => {
|
|
89
89
|
const e = Array.isArray(a.value) ? a.value.length : a.value ? 1 : 0;
|
|
90
|
-
return
|
|
91
|
-
}), B = i(null),
|
|
90
|
+
return M("das-ui-select-selectedItemsCountWithPlaceholder", e);
|
|
91
|
+
}), B = i(null), Me = i(null), S = i(!1), Y = s(() => t.isView ? t.noSetDefaultVal ? "" : "-" : t.placeholder || M("请选择")), de = s(() => B.value ? B.value.querySelector(".ant-select-selector") : null), $ = i(0), W = i(0), sl = s(() => de.value ? t.isTooltip && O.value ? !1 : !t.isTooltip || _.value || !je.value || !be.value : !0), ul = s(() => (Array.isArray(a.value) ? a.value.length : a.value) ? je.value : Y.value), Oe = () => {
|
|
92
92
|
const e = t.size === "table" ? 12 : 14;
|
|
93
93
|
return St(Y.value, e);
|
|
94
|
-
},
|
|
95
|
-
var
|
|
96
|
-
const e = (
|
|
94
|
+
}, ze = () => {
|
|
95
|
+
var T, U, h;
|
|
96
|
+
const e = (T = B.value) == null ? void 0 : T.querySelector(".ant-select-selection-placeholder"), l = (h = (U = A.value) == null ? void 0 : U.$el) == null ? void 0 : h.querySelectorAll(".ant-select-selection-item");
|
|
97
97
|
l && l.length && l.forEach((xe) => xe.removeAttribute("title"));
|
|
98
98
|
let n = (e == null ? void 0 : e.offsetWidth) ?? 0;
|
|
99
99
|
if (n === 0) return n;
|
|
100
100
|
const o = window.getComputedStyle(e, null), u = parseFloat(o.paddingRight), r = parseFloat(o.paddingLeft);
|
|
101
101
|
return n - u - r;
|
|
102
|
-
},
|
|
102
|
+
}, O = i(!1);
|
|
103
103
|
j(() => [Y.value, a.value], () => {
|
|
104
|
-
|
|
105
|
-
W.value =
|
|
104
|
+
k(() => {
|
|
105
|
+
W.value = ze(), $.value = Oe(), ((Array.isArray(a.value) ? a.value.length : a.value) || W.value === $.value || $.value - W.value < 1) && (O.value = !1);
|
|
106
106
|
});
|
|
107
107
|
}), j(
|
|
108
108
|
() => {
|
|
109
109
|
var e;
|
|
110
|
-
return (e =
|
|
110
|
+
return (e = Me.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
111
111
|
},
|
|
112
112
|
(e) => {
|
|
113
113
|
e && (e.addEventListener("mouseenter", function() {
|
|
114
|
-
|
|
114
|
+
O.value = !0, q.value && clearTimeout(q.value);
|
|
115
115
|
}), e.addEventListener("mouseleave", function() {
|
|
116
116
|
q.value = setTimeout(() => {
|
|
117
|
-
|
|
117
|
+
O.value = !1;
|
|
118
118
|
}, 200);
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
|
-
const
|
|
122
|
+
const Pe = i(null), _e = s(() => t.dropdownMode ?? t.mode ?? ""), R = i(null), il = i(null), F = i(""), cl = () => {
|
|
123
123
|
R.value = !0;
|
|
124
|
-
},
|
|
124
|
+
}, dl = () => {
|
|
125
125
|
R.value = null;
|
|
126
126
|
}, Ne = () => {
|
|
127
|
-
F.value && (
|
|
128
|
-
|
|
127
|
+
F.value && (x("addCustomItem", F.value), k(() => {
|
|
128
|
+
A.value.focus(), F.value = "";
|
|
129
129
|
}));
|
|
130
130
|
}, Ee = ot(), fe = () => {
|
|
131
|
-
t.dropdownMode === "custom" && !Ee.dropdownRender && (R.value = !1,
|
|
131
|
+
t.dropdownMode === "custom" && !Ee.dropdownRender && (R.value = !1, k(() => {
|
|
132
132
|
R.value = null;
|
|
133
133
|
}));
|
|
134
134
|
};
|
|
@@ -137,10 +137,10 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
137
137
|
}), Qe(() => {
|
|
138
138
|
document.removeEventListener("click", fe);
|
|
139
139
|
});
|
|
140
|
-
const
|
|
140
|
+
const A = i(), H = i(""), ee = i(0), De = `__DAS_SELECT_COLLAPSED_${Math.random().toString(36).slice(2)}__`, V = s(() => {
|
|
141
141
|
var e;
|
|
142
142
|
return t.fieldNames && t.fieldNames.label ? (e = t.fieldNames) == null ? void 0 : e.label : "label";
|
|
143
|
-
}),
|
|
143
|
+
}), g = s(() => {
|
|
144
144
|
var e;
|
|
145
145
|
return t.fieldNames && t.fieldNames.value ? (e = t.fieldNames) == null ? void 0 : e.value : "value";
|
|
146
146
|
}), ve = i(/* @__PURE__ */ new Map()), fl = s(() => t.mode === "combobox" ? void 0 : t.mode), Be = {
|
|
@@ -164,7 +164,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
164
164
|
}, le = (e, l) => {
|
|
165
165
|
if (Array.isArray(e))
|
|
166
166
|
for (const n of e) {
|
|
167
|
-
if ((n == null ? void 0 : n[
|
|
167
|
+
if ((n == null ? void 0 : n[g.value]) == l) return n;
|
|
168
168
|
if (Array.isArray(n == null ? void 0 : n.children)) {
|
|
169
169
|
const o = le(n.children, l);
|
|
170
170
|
if (o) return o;
|
|
@@ -172,12 +172,12 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
172
172
|
}
|
|
173
173
|
}, gl = (e) => {
|
|
174
174
|
Re(e, (l) => {
|
|
175
|
-
l && l[
|
|
175
|
+
l && l[g.value] != null && l[V.value] != null && ve.value.set(l[g.value], l[V.value]);
|
|
176
176
|
});
|
|
177
177
|
}, pe = (e) => {
|
|
178
178
|
if (e == null || e === "") return;
|
|
179
179
|
const l = le(t.options, e);
|
|
180
|
-
if (l && l[
|
|
180
|
+
if (l && l[V.value] != null) return l[V.value];
|
|
181
181
|
if (t.preserveLabelWhenMissing)
|
|
182
182
|
return ve.value.get(e);
|
|
183
183
|
}, yl = (e) => {
|
|
@@ -186,8 +186,8 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
186
186
|
if (le(l, o)) return;
|
|
187
187
|
const r = ve.value.get(o);
|
|
188
188
|
r != null && l.unshift({
|
|
189
|
-
[
|
|
190
|
-
[
|
|
189
|
+
[g.value]: o,
|
|
190
|
+
[V.value]: r,
|
|
191
191
|
disabled: !0,
|
|
192
192
|
title: "",
|
|
193
193
|
__dasGhostOption: !0
|
|
@@ -205,7 +205,7 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
205
205
|
return !1;
|
|
206
206
|
}
|
|
207
207
|
if (o === !1) return !0;
|
|
208
|
-
const u = Xe.value, r = (l == null ? void 0 : l[u]) ?? (l == null ? void 0 : l[
|
|
208
|
+
const u = Xe.value, r = (l == null ? void 0 : l[u]) ?? (l == null ? void 0 : l[V.value]) ?? (l == null ? void 0 : l[g.value]);
|
|
209
209
|
return String(r ?? "").toLowerCase().indexOf(n.toLowerCase()) >= 0;
|
|
210
210
|
}, he = s(() => {
|
|
211
211
|
if (!Array.isArray(t.options)) return;
|
|
@@ -214,15 +214,15 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
214
214
|
}), qe = s(() => {
|
|
215
215
|
const e = he.value ?? [];
|
|
216
216
|
return !te.value || !H.value ? e : e.filter((l) => He(H.value, l));
|
|
217
|
-
}),
|
|
218
|
-
t.optionPagingDebug &&
|
|
217
|
+
}), z = (e) => {
|
|
218
|
+
t.optionPagingDebug && k(() => {
|
|
219
219
|
});
|
|
220
220
|
}, oe = s(() => t.mode !== "combobox" && Array.isArray(a.value) ? a.value : a.value !== null && a.value !== void 0 && a.value !== "" ? [a.value] : []), Ze = s(() => new Set(oe.value)), Sl = s(() => {
|
|
221
221
|
const e = Number(t.largeSelectionCollapseThreshold);
|
|
222
222
|
return Number.isFinite(e) && e >= 0 ? Math.floor(e) : 200;
|
|
223
|
-
}),
|
|
224
|
-
if (H.value ||
|
|
225
|
-
const n = new Set(e.map((u) => u == null ? void 0 : u[
|
|
223
|
+
}), C = s(() => t.mode !== "combobox" && oe.value.length > Sl.value), Cl = s(() => C.value ? [De] : a.value), Ke = s(() => Array.isArray(t.options) ? t.options.filter((e) => !(e != null && e.disabled)) : []), ne = s(() => Ke.value.map((e) => e == null ? void 0 : e[g.value])), me = s(() => ne.value.reduce((e, l) => Ze.value.has(l) ? e + 1 : e, 0)), wl = (e, l) => {
|
|
224
|
+
if (H.value || C.value || !oe.value.length) return e;
|
|
225
|
+
const n = new Set(e.map((u) => u == null ? void 0 : u[g.value])), o = [];
|
|
226
226
|
return oe.value.forEach((u) => {
|
|
227
227
|
if (n.has(u)) return;
|
|
228
228
|
const r = le(l, u);
|
|
@@ -233,26 +233,26 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
233
233
|
const e = qe.value.slice(0, ee.value);
|
|
234
234
|
return wl(e, he.value ?? []);
|
|
235
235
|
}), Ge = () => {
|
|
236
|
-
ee.value = We.value,
|
|
236
|
+
ee.value = We.value, z();
|
|
237
237
|
}, Al = () => {
|
|
238
238
|
te.value && (ee.value = Math.min(
|
|
239
239
|
ee.value + We.value,
|
|
240
240
|
qe.value.length
|
|
241
|
-
),
|
|
241
|
+
), z());
|
|
242
242
|
};
|
|
243
243
|
j(
|
|
244
|
-
() => [t.options, t.optionPaging, t.optionPageSize, H.value,
|
|
244
|
+
() => [t.options, t.optionPaging, t.optionPageSize, H.value, V.value, g.value],
|
|
245
245
|
Ge,
|
|
246
246
|
{ immediate: !0 }
|
|
247
247
|
);
|
|
248
248
|
const ge = i(!1), ye = s(() => {
|
|
249
249
|
if (R.value !== null) return R.value;
|
|
250
250
|
if (t.open !== void 0) return t.open;
|
|
251
|
-
}),
|
|
251
|
+
}), P = 1e6, d = i(100), v = i(100), Tl = s(() => C.value ? 0 : d.value), _ = i(!1), be = i(!0), Se = i(!1);
|
|
252
252
|
Ye(() => {
|
|
253
253
|
a.value && t.mode == "combobox" && (be.value = !0, setTimeout(() => {
|
|
254
254
|
var l;
|
|
255
|
-
let e = (l =
|
|
255
|
+
let e = (l = A.value) == null ? void 0 : l.$el.querySelectorAll(".ant-select-selection-item");
|
|
256
256
|
if (e && e.length > 0)
|
|
257
257
|
for (let n = 0; n < e.length; n++) {
|
|
258
258
|
let o = e[n];
|
|
@@ -262,18 +262,18 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
262
262
|
});
|
|
263
263
|
const kl = () => {
|
|
264
264
|
setTimeout(async () => {
|
|
265
|
-
|
|
265
|
+
d.value = 100, await N(), d.value = v.value, S.value = !0;
|
|
266
266
|
}, 100);
|
|
267
267
|
};
|
|
268
268
|
Ye(() => {
|
|
269
269
|
Se.value === !0 && t.mode != "combobox" && a.value && a.value.length > 0 && t.options.length > 0 && (Se.value = !1, kl());
|
|
270
270
|
}), Ae(() => {
|
|
271
|
-
Se.value = !0, t.focusOpen || (v.value = 1,
|
|
271
|
+
Se.value = !0, t.focusOpen || (v.value = 1, d.value = v.value, S.value = !0);
|
|
272
272
|
});
|
|
273
|
-
const Il = s(() => t.width ? t.width : "230px"), Vl = s(() => t.height ? t.height : "auto"), Ue = i(3e3),
|
|
273
|
+
const Il = s(() => t.width ? t.width : "230px"), Vl = s(() => t.height ? t.height : "auto"), Ue = i(3e3), Ll = s(() => ({
|
|
274
274
|
"z-index": Ue.value
|
|
275
275
|
})), je = s(() => {
|
|
276
|
-
if (
|
|
276
|
+
if (C.value)
|
|
277
277
|
return rl.value;
|
|
278
278
|
let e = [];
|
|
279
279
|
if (t.mode != "combobox" && Array.isArray(a.value))
|
|
@@ -286,34 +286,34 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
286
286
|
l != null ? e.push(l) : a.value !== null && a.value !== void 0 && a.value !== "" && e.push(String(a.value));
|
|
287
287
|
}
|
|
288
288
|
return mt.value === "zh-CN" ? e.join("、") : e.join(", ");
|
|
289
|
-
}),
|
|
289
|
+
}), Ml = s(() => t.mode === "combobox" ? !1 : ne.value.length > 0 && me.value === ne.value.length), Ol = s(() => t.mode === "combobox" ? !1 : me.value > 0 && me.value < ne.value.length), Xe = s(() => {
|
|
290
290
|
var e, l;
|
|
291
291
|
return t.optionFilterProp ? t.optionFilterProp : (e = t.fieldNames) != null && e.label ? (l = t.fieldNames) == null ? void 0 : l.label : "label";
|
|
292
|
-
}),
|
|
292
|
+
}), zl = s(() => ({
|
|
293
293
|
width: typeof t.width == "number" ? t.width + "px" : t.width,
|
|
294
294
|
"--das-select-resolved-height": ml.value
|
|
295
|
-
})), Ce = i(!1),
|
|
295
|
+
})), Ce = i(!1), Pl = i({
|
|
296
296
|
display: "block",
|
|
297
297
|
color: "var(--upf-color-error)",
|
|
298
298
|
"white-space": "break-spaces"
|
|
299
|
-
}), q = i(),
|
|
299
|
+
}), q = i(), _l = () => {
|
|
300
300
|
var n;
|
|
301
|
-
W.value =
|
|
302
|
-
let e = (n =
|
|
303
|
-
!!(Array.isArray(a.value) ? a.value.length : e != null && e.length) || W.value === $.value || $.value - W.value < 1 ?
|
|
301
|
+
W.value = ze(), $.value = Oe();
|
|
302
|
+
let e = (n = A.value) == null ? void 0 : n.$el.querySelectorAll(".ant-select-selection-item");
|
|
303
|
+
!!(Array.isArray(a.value) ? a.value.length : e != null && e.length) || W.value === $.value || $.value - W.value < 1 ? O.value = !1 : (O.value = !0, q.value && clearTimeout(q.value)), Ce.value = !0;
|
|
304
304
|
}, Nl = () => {
|
|
305
305
|
q.value = setTimeout(() => {
|
|
306
|
-
|
|
306
|
+
O.value = !1;
|
|
307
307
|
}, 200), Ce.value = !1;
|
|
308
308
|
}, El = (e, l) => {
|
|
309
|
-
e ?
|
|
309
|
+
e ? _l() : Nl();
|
|
310
310
|
}, Dl = (e) => {
|
|
311
|
-
e ? (Ue.value = yt().nextZIndex(), F.value = "", Ge(),
|
|
311
|
+
e ? (Ue.value = yt().nextZIndex(), F.value = "", Ge(), z()) : (H.value = "", z()), ae.value = e, t.mode == "combobox" && (e || setTimeout(() => {
|
|
312
312
|
var l, n;
|
|
313
|
-
(n = (l =
|
|
314
|
-
})),
|
|
313
|
+
(n = (l = A.value) == null ? void 0 : l.blur) == null || n.call(l);
|
|
314
|
+
})), x("dropdownVisibleChange", e);
|
|
315
315
|
}, Bl = (e) => {
|
|
316
|
-
H.value = e ?? "",
|
|
316
|
+
H.value = e ?? "", z(), Fe("onSearch", e);
|
|
317
317
|
}, $l = s(() => t.mode === "combobox" ? t.showSearch === !0 : t.mode === "tags" ? !0 : typeof t.showSearch == "boolean" ? t.showSearch : t.mode === "multiple"), Wl = s(() => $l.value ? { onSearch: Bl } : {}), Rl = s(() => ({ ...al.value, ...Wl.value })), Fl = (e) => {
|
|
318
318
|
if (Fe("onPopupScroll", e), !te.value) return;
|
|
319
319
|
const l = e.target;
|
|
@@ -326,22 +326,22 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
326
326
|
if (e) {
|
|
327
327
|
const l = new Set(Array.isArray(a.value) ? a.value : []), n = Array.isArray(a.value) ? a.value.slice() : [], o = [];
|
|
328
328
|
Ke.value.forEach((u) => {
|
|
329
|
-
const r = u[
|
|
329
|
+
const r = u[g.value];
|
|
330
330
|
l.has(r) || (l.add(r), n.push(r), o.push(u));
|
|
331
331
|
}), a.value = n, se(n, o, "inner");
|
|
332
332
|
} else {
|
|
333
|
-
const l = Array.isArray(t.options) ? t.options : [], n = new Set(l.map((r) => r == null ? void 0 : r[
|
|
333
|
+
const l = Array.isArray(t.options) ? t.options : [], n = new Set(l.map((r) => r == null ? void 0 : r[g.value])), o = new Set(l.filter((r) => r == null ? void 0 : r.disabled).map((r) => r == null ? void 0 : r[g.value])), u = (Array.isArray(a.value) ? a.value : []).filter((r) => n.has(r) && o.has(r));
|
|
334
334
|
a.value = u, se(u, [], "inner");
|
|
335
335
|
}
|
|
336
336
|
}, Kl = (e) => {
|
|
337
337
|
const l = Array.isArray(a.value) ? a.value.slice() : [], n = l.findIndex((o) => o === e);
|
|
338
338
|
return n > -1 ? l.splice(n, 1) : l.push(e), l;
|
|
339
339
|
}, Gl = (e) => {
|
|
340
|
-
|
|
340
|
+
C.value && (e.preventDefault(), e.stopPropagation());
|
|
341
341
|
}, Ul = (e, l) => {
|
|
342
|
-
if (!
|
|
342
|
+
if (!C.value || e != null && e.disabled) return;
|
|
343
343
|
l.preventDefault(), l.stopPropagation();
|
|
344
|
-
const n = e == null ? void 0 : e[
|
|
344
|
+
const n = e == null ? void 0 : e[g.value];
|
|
345
345
|
if (n === void 0) return;
|
|
346
346
|
const o = Kl(n);
|
|
347
347
|
a.value = o, se(o, e, "inner");
|
|
@@ -350,26 +350,26 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
350
350
|
return e.children[0];
|
|
351
351
|
}, Xl = (e) => {
|
|
352
352
|
if (t.mode == "combobox") {
|
|
353
|
-
|
|
353
|
+
x("focus", e);
|
|
354
354
|
return;
|
|
355
355
|
}
|
|
356
|
-
ge.value = !0, t.focusOpen && !t.isExterControlCount && (
|
|
356
|
+
ge.value = !0, t.focusOpen && !t.isExterControlCount && (d.value = P, S.value = !1), x("focus", e);
|
|
357
357
|
}, ae = i(!1), Jl = () => {
|
|
358
358
|
ae.value || setTimeout(() => {
|
|
359
359
|
var e, l;
|
|
360
|
-
(l = (e =
|
|
360
|
+
(l = (e = A.value) == null ? void 0 : e.blur) == null || l.call(e);
|
|
361
361
|
}), t.mode != "combobox";
|
|
362
362
|
}, Je = (e) => {
|
|
363
|
-
if (
|
|
363
|
+
if (k(() => {
|
|
364
364
|
ae.value = !1;
|
|
365
365
|
}), t.mode == "combobox") {
|
|
366
|
-
|
|
366
|
+
x("blur", e);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
|
-
ge.value = !1, t.focusOpen && !t.isExterControlCount && (N(),
|
|
369
|
+
ge.value = !1, t.focusOpen && !t.isExterControlCount && (N(), d.value = v.value, S.value = !0), x("blur", e);
|
|
370
370
|
}, Ql = (e) => {
|
|
371
|
-
e.onClose(),
|
|
372
|
-
t.mode !== "combobox" && ye.value || t.focusOpen && (N(),
|
|
371
|
+
e.onClose(), d.value = 100, k(() => {
|
|
372
|
+
t.mode !== "combobox" && ye.value || t.focusOpen && (N(), d.value = v.value, S.value = !0);
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
375
|
j(
|
|
@@ -384,15 +384,15 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
384
384
|
);
|
|
385
385
|
let G = i(!1);
|
|
386
386
|
const Yl = (e) => {
|
|
387
|
-
G.value = e,
|
|
388
|
-
|
|
387
|
+
G.value = e, _.value = !0, k(() => {
|
|
388
|
+
_.value = !1, t.focusOpen && (N(), d.value = e ? P : v.value, S.value = !e);
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
391
|
let re = null;
|
|
392
392
|
Ae(() => {
|
|
393
393
|
re = new IntersectionObserver((e) => {
|
|
394
|
-
e && e[0] && e[0].intersectionRatio > 0 && t.focusOpen &&
|
|
395
|
-
N(),
|
|
394
|
+
e && e[0] && e[0].intersectionRatio > 0 && t.focusOpen && d.value === 0 && (d.value = 100, k(() => {
|
|
395
|
+
N(), d.value = v.value, S.value = !0;
|
|
396
396
|
}));
|
|
397
397
|
}), re.observe(B.value);
|
|
398
398
|
}), Qe(() => {
|
|
@@ -400,31 +400,31 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
400
400
|
});
|
|
401
401
|
const N = () => {
|
|
402
402
|
var U;
|
|
403
|
-
if (
|
|
403
|
+
if (C.value) {
|
|
404
404
|
v.value = 0;
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
let e = (U =
|
|
407
|
+
let e = (U = A.value) == null ? void 0 : U.$el;
|
|
408
408
|
if (!e) return;
|
|
409
409
|
let l = e == null ? void 0 : e.querySelector(".ant-select-selection-overflow");
|
|
410
410
|
if (!l) return;
|
|
411
411
|
let n = l.offsetWidth - 5;
|
|
412
412
|
t.borderType === "underline" && (n -= 10);
|
|
413
|
-
const u = Math.ceil(
|
|
413
|
+
const u = Math.ceil(Pe.value.querySelector(".ant-tag").offsetWidth) + 4;
|
|
414
414
|
let r = e.querySelectorAll(".ant-select-selection-overflow-item");
|
|
415
415
|
if (r.length < 1) return;
|
|
416
|
-
|
|
417
|
-
let
|
|
418
|
-
for (let
|
|
419
|
-
if (
|
|
420
|
-
|
|
416
|
+
d.value = P;
|
|
417
|
+
let T = 0;
|
|
418
|
+
for (let h = 0; h < r.length - 1 && (r[h].classList.remove("ellipsis"), !r[h].classList.contains("ant-select-selection-overflow-item-rest")); h++)
|
|
419
|
+
if (T += Math.ceil(r[h].offsetWidth), T <= n - u)
|
|
420
|
+
h >= a.value.length - 1 && T < n ? v.value = a.value.length : v.value = h + 1;
|
|
421
421
|
else {
|
|
422
|
-
|
|
422
|
+
h >= a.value.length - 1 && T < n ? v.value = a.value.length : v.value = h;
|
|
423
423
|
break;
|
|
424
424
|
}
|
|
425
425
|
if (v.value === 0) {
|
|
426
|
-
let
|
|
427
|
-
|
|
426
|
+
let h = r[0], xe = h.querySelector(".anticon-close") ? 86 : 69;
|
|
427
|
+
h && !h.classList.contains("ant-select-selection-overflow-item-rest") && xe <= n - u && !Ee.tagRender && (v.value = 1, h.classList.add("ellipsis"));
|
|
428
428
|
}
|
|
429
429
|
}, we = i(!1);
|
|
430
430
|
j(
|
|
@@ -434,65 +434,65 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
434
434
|
we.value = !1;
|
|
435
435
|
return;
|
|
436
436
|
}
|
|
437
|
-
t.mode !== "combobox" && ye.value || (
|
|
437
|
+
t.mode !== "combobox" && ye.value || (_.value = !0, d.value = P, await k(), await N(), _.value = !1, t.isExterControlCount && t.focusOpen ? (d.value = G.value ? P : v.value, S.value = !G.value) : (d.value = v.value, S.value = !0));
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
440
|
const et = (e) => {
|
|
441
|
-
if (!
|
|
441
|
+
if (!C.value || t.mode === "combobox") return e;
|
|
442
442
|
const l = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
443
443
|
if (!l.length) return [];
|
|
444
444
|
const n = Array.from(new Set(l.filter((u) => u !== De)));
|
|
445
445
|
if (!n.length) return;
|
|
446
446
|
let o = Array.isArray(a.value) ? a.value.slice() : [];
|
|
447
447
|
return n.forEach((u) => {
|
|
448
|
-
const r = o.findIndex((
|
|
448
|
+
const r = o.findIndex((T) => T === u);
|
|
449
449
|
r > -1 ? o.splice(r, 1) : o.push(u);
|
|
450
450
|
}), o;
|
|
451
451
|
}, se = async (e, l, n = "antdv") => {
|
|
452
452
|
ae.value = !1, t.mode === "combobox" && fe();
|
|
453
453
|
let o = n === "antdv" ? et(e) : e;
|
|
454
454
|
if (o === void 0) {
|
|
455
|
-
|
|
455
|
+
z();
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
|
-
we.value = !0, t.noDropdown && Array.isArray(o) && t.maxTagsLength < o.length && (o = o.slice(), o.pop()), n === "antdv" &&
|
|
458
|
+
we.value = !0, t.noDropdown && Array.isArray(o) && t.maxTagsLength < o.length && (o = o.slice(), o.pop()), n === "antdv" && C.value && (a.value = o), _.value = !0, x("update:model-value", o), x("change", o, l), z(), d.value = P, await k(), await N(), _.value = !1, t.isExterControlCount && t.focusOpen && (d.value = G.value ? P : v.value, S.value = !G.value), t.focusOpen || (d.value = v.value);
|
|
459
459
|
};
|
|
460
460
|
return E({
|
|
461
|
-
$select:
|
|
461
|
+
$select: A,
|
|
462
462
|
toChangeMaxCount: Yl
|
|
463
463
|
}), (e, l) => {
|
|
464
464
|
const n = nt("v-nodes");
|
|
465
|
-
return f(),
|
|
465
|
+
return f(), y(
|
|
466
466
|
"div",
|
|
467
467
|
{
|
|
468
468
|
class: at(["das-ui-select", [
|
|
469
469
|
t.borderType,
|
|
470
470
|
t.isView ? "readonly" : "",
|
|
471
471
|
t.error ? "is-error" : "",
|
|
472
|
-
|
|
472
|
+
S.value ? "show-ellipsis" : ""
|
|
473
473
|
]]),
|
|
474
474
|
ref_key: "$selectBox",
|
|
475
475
|
ref: B,
|
|
476
|
-
style: X(
|
|
476
|
+
style: X(zl.value),
|
|
477
477
|
onClick: ue(Jl, ["stop"])
|
|
478
478
|
},
|
|
479
479
|
[
|
|
480
|
-
|
|
480
|
+
de.value ? (f(), K(c(ct), {
|
|
481
481
|
key: 0,
|
|
482
482
|
ref_key: "inputTooltipRef",
|
|
483
|
-
ref:
|
|
483
|
+
ref: Me,
|
|
484
484
|
placement: "top",
|
|
485
485
|
"virtual-triggering": "",
|
|
486
|
-
"virtual-ref":
|
|
486
|
+
"virtual-ref": de.value,
|
|
487
487
|
disabled: sl.value,
|
|
488
488
|
content: ul.value
|
|
489
|
-
}, null, 8, ["virtual-ref", "disabled", "content"])) :
|
|
490
|
-
Te((f(), K(
|
|
489
|
+
}, null, 8, ["virtual-ref", "disabled", "content"])) : L("v-if", !0),
|
|
490
|
+
Te((f(), K(c(ut), Le({ mode: fl.value }, Rl.value, {
|
|
491
491
|
value: Cl.value,
|
|
492
492
|
ref_key: "$select",
|
|
493
|
-
ref:
|
|
493
|
+
ref: A,
|
|
494
494
|
options: xl.value,
|
|
495
|
-
fieldNames:
|
|
495
|
+
fieldNames: p.fieldNames,
|
|
496
496
|
bordered: t.borderType === "bordered",
|
|
497
497
|
disabled: t.disabled || t.isView,
|
|
498
498
|
showArrow: !0,
|
|
@@ -503,58 +503,58 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
503
503
|
filterOption: He,
|
|
504
504
|
size: $e.value,
|
|
505
505
|
style: t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {},
|
|
506
|
-
dropdownClassName: "das-ui-select-dorpdown " +
|
|
506
|
+
dropdownClassName: "das-ui-select-dorpdown " + p.dropdownClassName,
|
|
507
507
|
maxTagCount: Tl.value,
|
|
508
508
|
getPopupContainer: ql,
|
|
509
|
-
dropdownStyle:
|
|
509
|
+
dropdownStyle: Ll.value,
|
|
510
510
|
onDropdownVisibleChange: Dl,
|
|
511
511
|
onChange: l[4] || (l[4] = (o, u) => se(o, u, "antdv")),
|
|
512
512
|
onFocus: Xl,
|
|
513
513
|
onBlur: Je,
|
|
514
514
|
onPopupScroll: Fl
|
|
515
515
|
}), rt({
|
|
516
|
-
option:
|
|
517
|
-
|
|
516
|
+
option: m((o) => [
|
|
517
|
+
w(e.$slots, "option", ie(ce(o)), () => [
|
|
518
518
|
o.children && typeof o.children == "function" ? (f(), K(n, {
|
|
519
519
|
key: 0,
|
|
520
520
|
vnodes: o.children()
|
|
521
|
-
}, null, 8, ["vnodes"])) : (f(),
|
|
521
|
+
}, null, 8, ["vnodes"])) : (f(), y(
|
|
522
522
|
ke,
|
|
523
523
|
{ key: 1 },
|
|
524
524
|
[
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
L(' :option="{value, label, [disabled, key, title]}" '),
|
|
526
|
+
p.mode === "combobox" ? Te((f(), y("div", wt, [
|
|
527
527
|
Ie(
|
|
528
|
-
Z(o[
|
|
528
|
+
Z(o[V.value]),
|
|
529
529
|
1
|
|
530
530
|
/* TEXT */
|
|
531
531
|
)
|
|
532
532
|
])), [
|
|
533
|
-
[
|
|
534
|
-
]) : (f(),
|
|
533
|
+
[c(ll)]
|
|
534
|
+
]) : (f(), y(
|
|
535
535
|
ke,
|
|
536
536
|
{ key: 1 },
|
|
537
537
|
[
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
L(` <das-tooltip v-if="mode === 'combobox'" placement="right-start" :text="option[labelKeyName]"></das-tooltip> `),
|
|
539
|
+
b("div", {
|
|
540
540
|
class: "das-multiple-option-item",
|
|
541
541
|
onMousedown: Gl,
|
|
542
542
|
onClick: (u) => Ul(o, u)
|
|
543
543
|
}, [
|
|
544
|
-
(f(), K(
|
|
544
|
+
(f(), K(c(el), {
|
|
545
545
|
class: "das-select-checkbox",
|
|
546
|
-
modelValue: Ze.value.has(o[
|
|
547
|
-
key: o[
|
|
546
|
+
modelValue: Ze.value.has(o[g.value]),
|
|
547
|
+
key: o[g.value],
|
|
548
548
|
disabled: o.disabled
|
|
549
549
|
}, null, 8, ["modelValue", "disabled"])),
|
|
550
|
-
Te((f(),
|
|
550
|
+
Te((f(), y("div", At, [
|
|
551
551
|
Ie(
|
|
552
|
-
Z(o[
|
|
552
|
+
Z(o[V.value]),
|
|
553
553
|
1
|
|
554
554
|
/* TEXT */
|
|
555
555
|
)
|
|
556
556
|
])), [
|
|
557
|
-
[
|
|
557
|
+
[c(ll)]
|
|
558
558
|
])
|
|
559
559
|
], 40, xt)
|
|
560
560
|
],
|
|
@@ -567,18 +567,18 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
567
567
|
))
|
|
568
568
|
], !0)
|
|
569
569
|
]),
|
|
570
|
-
tagRender:
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
closable: !
|
|
570
|
+
tagRender: m((o) => [
|
|
571
|
+
w(e.$slots, "tagRender", ie(ce(o)), () => [
|
|
572
|
+
I(c(Ve), {
|
|
573
|
+
closable: !C.value && o.closable,
|
|
574
574
|
style: { "margin-right": "3px", "background-color": "transparent" },
|
|
575
575
|
onClose: (u) => Ql(o)
|
|
576
576
|
}, {
|
|
577
|
-
default:
|
|
578
|
-
|
|
577
|
+
default: m(() => [
|
|
578
|
+
C.value ? (f(), y("span", {
|
|
579
579
|
key: 0,
|
|
580
|
-
innerHTML:
|
|
581
|
-
}, null, 8, Tt)) : (f(),
|
|
580
|
+
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
581
|
+
}, null, 8, Tt)) : (f(), y(
|
|
582
582
|
"span",
|
|
583
583
|
{
|
|
584
584
|
key: 1,
|
|
@@ -595,43 +595,43 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
595
595
|
}, 1032, ["closable", "onClose"])
|
|
596
596
|
], !0)
|
|
597
597
|
]),
|
|
598
|
-
dropdownRender:
|
|
599
|
-
|
|
598
|
+
dropdownRender: m(({ menuNode: o }) => [
|
|
599
|
+
w(e.$slots, "dropdownRender", ie(ce({ menuNode: o })), () => {
|
|
600
600
|
var u;
|
|
601
601
|
return [
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
])) :
|
|
602
|
+
_e.value === "combobox" ? (f(), y("div", kt, [
|
|
603
|
+
I(n, { vnodes: o }, null, 8, ["vnodes"])
|
|
604
|
+
])) : _e.value === "custom" ? (f(), y("div", {
|
|
605
605
|
key: 1,
|
|
606
606
|
onClick: l[2] || (l[2] = ue(() => {
|
|
607
607
|
}, ["stop"]))
|
|
608
608
|
}, [
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
I(n, { vnodes: o }, null, 8, ["vnodes"]),
|
|
610
|
+
b(
|
|
611
611
|
"div",
|
|
612
612
|
{
|
|
613
613
|
class: "customDropdown",
|
|
614
614
|
onMousedown: l[1] || (l[1] = (r) => r.preventDefault())
|
|
615
615
|
},
|
|
616
616
|
[
|
|
617
|
-
|
|
617
|
+
I(c(dt), Le({
|
|
618
618
|
ref_key: "testInput",
|
|
619
619
|
ref: il,
|
|
620
620
|
modelValue: F.value,
|
|
621
621
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => F.value = r),
|
|
622
622
|
onKeyup: st(Ne, ["enter"]),
|
|
623
|
-
onFocus: ue(
|
|
624
|
-
onBlur: ue(
|
|
623
|
+
onFocus: ue(cl, ["stop"]),
|
|
624
|
+
onBlur: ue(dl, ["stop"]),
|
|
625
625
|
width: "100%",
|
|
626
626
|
borderType: "bordered"
|
|
627
627
|
}, t.inputAttrs), null, 16, ["modelValue"]),
|
|
628
|
-
|
|
628
|
+
b(
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
631
|
class: "addBtn",
|
|
632
632
|
onClick: Ne
|
|
633
633
|
},
|
|
634
|
-
Z(
|
|
634
|
+
Z(c(M)("添加")),
|
|
635
635
|
1
|
|
636
636
|
/* TEXT */
|
|
637
637
|
)
|
|
@@ -639,9 +639,9 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
639
639
|
32
|
|
640
640
|
/* NEED_HYDRATION */
|
|
641
641
|
)
|
|
642
|
-
])) : (f(),
|
|
643
|
-
|
|
644
|
-
(u = t.options) != null && u.length && t.showSelectAll ? (f(),
|
|
642
|
+
])) : (f(), y("div", It, [
|
|
643
|
+
I(n, { vnodes: o }, null, 8, ["vnodes"]),
|
|
644
|
+
(u = t.options) != null && u.length && t.showSelectAll ? (f(), y(
|
|
645
645
|
"div",
|
|
646
646
|
{
|
|
647
647
|
key: 0,
|
|
@@ -649,16 +649,16 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
649
649
|
onMousedown: l[3] || (l[3] = (r) => r.preventDefault())
|
|
650
650
|
},
|
|
651
651
|
[
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
modelValue:
|
|
655
|
-
indeterminate:
|
|
652
|
+
b("div", Vt, [
|
|
653
|
+
I(c(el), {
|
|
654
|
+
modelValue: Ml.value,
|
|
655
|
+
indeterminate: Ol.value,
|
|
656
656
|
onChange: Zl,
|
|
657
657
|
style: { display: "flex" }
|
|
658
658
|
}, {
|
|
659
|
-
default:
|
|
659
|
+
default: m(() => [
|
|
660
660
|
Ie(
|
|
661
|
-
Z(
|
|
661
|
+
Z(c(M)("全选")),
|
|
662
662
|
1
|
|
663
663
|
/* TEXT */
|
|
664
664
|
)
|
|
@@ -667,43 +667,43 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
667
667
|
/* STABLE */
|
|
668
668
|
}, 8, ["modelValue", "indeterminate"])
|
|
669
669
|
]),
|
|
670
|
-
|
|
670
|
+
b("span", {
|
|
671
671
|
class: "das-ui-dropdown-has-checked",
|
|
672
|
-
innerHTML:
|
|
673
|
-
}, null, 8,
|
|
672
|
+
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
673
|
+
}, null, 8, Lt)
|
|
674
674
|
],
|
|
675
675
|
32
|
|
676
676
|
/* NEED_HYDRATION */
|
|
677
|
-
)) :
|
|
677
|
+
)) : L("v-if", !0)
|
|
678
678
|
]))
|
|
679
679
|
];
|
|
680
680
|
}, !0)
|
|
681
681
|
]),
|
|
682
|
-
clearIcon:
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
clearIcon: m(() => [
|
|
683
|
+
w(e.$slots, "clearIcon", {}, () => [
|
|
684
|
+
I(c(vt), { size: "medium" })
|
|
685
685
|
], !0)
|
|
686
686
|
]),
|
|
687
|
-
maxTagPlaceholder:
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
687
|
+
maxTagPlaceholder: m((o) => [
|
|
688
|
+
w(e.$slots, "maxTagPlaceholder", ie(ce(o)), () => [
|
|
689
|
+
L(" 隐藏tag时显示的内容 "),
|
|
690
|
+
I(c(Ve), {
|
|
691
691
|
style: X(t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {})
|
|
692
692
|
}, {
|
|
693
|
-
default:
|
|
694
|
-
|
|
695
|
-
innerHTML:
|
|
696
|
-
}, null, 8,
|
|
693
|
+
default: m(() => [
|
|
694
|
+
b("span", {
|
|
695
|
+
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
696
|
+
}, null, 8, Mt)
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
/* STABLE */
|
|
700
700
|
}, 8, ["style"]),
|
|
701
|
-
|
|
701
|
+
L(" <a-tag>+{{ currValue?.length - maxTagCountCell }}</a-tag> ")
|
|
702
702
|
], !0)
|
|
703
703
|
]),
|
|
704
|
-
notFoundContent:
|
|
705
|
-
|
|
706
|
-
l[5] || (l[5] =
|
|
704
|
+
notFoundContent: m(() => [
|
|
705
|
+
w(e.$slots, "notFoundContent", {}, () => [
|
|
706
|
+
l[5] || (l[5] = b(
|
|
707
707
|
"div",
|
|
708
708
|
{ class: "hasNoData" },
|
|
709
709
|
"暂无数据",
|
|
@@ -712,89 +712,89 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
712
712
|
))
|
|
713
713
|
], !0)
|
|
714
714
|
]),
|
|
715
|
-
suffixIcon:
|
|
716
|
-
|
|
717
|
-
|
|
715
|
+
suffixIcon: m(() => [
|
|
716
|
+
w(e.$slots, "suffixIcon", {}, () => [
|
|
717
|
+
I(c(ft), {
|
|
718
718
|
class: "das-suffix-icon",
|
|
719
719
|
size: "medium",
|
|
720
720
|
iconColor: "#666666"
|
|
721
721
|
})
|
|
722
722
|
], !0)
|
|
723
723
|
]),
|
|
724
|
-
default:
|
|
725
|
-
|
|
724
|
+
default: m(() => [
|
|
725
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
726
726
|
]),
|
|
727
727
|
_: 2
|
|
728
728
|
/* DYNAMIC */
|
|
729
729
|
}, [
|
|
730
730
|
e.$slots.menuItemSelectedIcon ? {
|
|
731
731
|
name: "menuItemSelectedIcon",
|
|
732
|
-
fn:
|
|
733
|
-
|
|
732
|
+
fn: m(() => [
|
|
733
|
+
w(e.$slots, "menuItemSelectedIcon", {}, void 0, !0)
|
|
734
734
|
]),
|
|
735
735
|
key: "0"
|
|
736
736
|
} : void 0,
|
|
737
737
|
e.$slots.placeholder ? {
|
|
738
738
|
name: "placeholder",
|
|
739
|
-
fn:
|
|
740
|
-
|
|
739
|
+
fn: m(() => [
|
|
740
|
+
w(e.$slots, "placeholder", {}, void 0, !0)
|
|
741
741
|
]),
|
|
742
742
|
key: "1"
|
|
743
743
|
} : void 0,
|
|
744
744
|
e.$slots.removeIcon ? {
|
|
745
745
|
name: "removeIcon",
|
|
746
|
-
fn:
|
|
747
|
-
|
|
746
|
+
fn: m(() => [
|
|
747
|
+
w(e.$slots, "removeIcon", {}, void 0, !0)
|
|
748
748
|
]),
|
|
749
749
|
key: "2"
|
|
750
750
|
} : void 0
|
|
751
751
|
]), 1040, ["mode", "value", "options", "fieldNames", "bordered", "disabled", "open", "placeholder", "showSearch", "optionFilterProp", "size", "style", "dropdownClassName", "maxTagCount", "dropdownStyle"])), [
|
|
752
|
-
[
|
|
753
|
-
[
|
|
752
|
+
[c(it), { target: jl, x: !1 }],
|
|
753
|
+
[c(ht), El]
|
|
754
754
|
]),
|
|
755
|
-
|
|
755
|
+
p.error && p.errorLabel ? (f(), y(
|
|
756
756
|
ke,
|
|
757
757
|
{ key: 1 },
|
|
758
758
|
[
|
|
759
|
-
|
|
760
|
-
|
|
759
|
+
p.errorMode === "default" ? (f(), y("div", Ot, [
|
|
760
|
+
b(
|
|
761
761
|
"span",
|
|
762
762
|
{
|
|
763
|
-
style: X(
|
|
763
|
+
style: X(Pl.value)
|
|
764
764
|
},
|
|
765
|
-
Z(
|
|
765
|
+
Z(p.errorLabel),
|
|
766
766
|
5
|
|
767
767
|
/* TEXT, STYLE */
|
|
768
768
|
)
|
|
769
|
-
])) :
|
|
770
|
-
|
|
769
|
+
])) : L("v-if", !0),
|
|
770
|
+
p.errorMode === "overlay" && Ce.value ? (f(), K(c(pt), {
|
|
771
771
|
key: 1,
|
|
772
|
-
errorLabel:
|
|
773
|
-
getEl: () =>
|
|
774
|
-
errorModelZIndex:
|
|
775
|
-
}, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) :
|
|
772
|
+
errorLabel: p.errorLabel,
|
|
773
|
+
getEl: () => A.value.$el,
|
|
774
|
+
errorModelZIndex: p.errorModelZIndex
|
|
775
|
+
}, null, 8, ["errorLabel", "getEl", "errorModelZIndex"])) : L("v-if", !0)
|
|
776
776
|
],
|
|
777
777
|
64
|
|
778
778
|
/* STABLE_FRAGMENT */
|
|
779
|
-
)) :
|
|
780
|
-
|
|
779
|
+
)) : L("v-if", !0),
|
|
780
|
+
b(
|
|
781
781
|
"div",
|
|
782
782
|
{
|
|
783
783
|
class: "ant-select-selection-overflow",
|
|
784
784
|
ref_key: "virtualTotalCount",
|
|
785
|
-
ref:
|
|
785
|
+
ref: Pe,
|
|
786
786
|
style: { position: "absolute", left: "-50%", top: "-50%", opacity: "0", "pointer-events": "none" }
|
|
787
787
|
},
|
|
788
788
|
[
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
789
|
+
b("div", zt, [
|
|
790
|
+
b("div", Pt, [
|
|
791
|
+
b("span", _t, [
|
|
792
|
+
I(c(Ve), {
|
|
793
793
|
style: X(t.size == "mini" || t.size == "table" ? { fontSize: "12px" } : {})
|
|
794
794
|
}, {
|
|
795
|
-
default:
|
|
796
|
-
|
|
797
|
-
innerHTML:
|
|
795
|
+
default: m(() => [
|
|
796
|
+
b("span", {
|
|
797
|
+
innerHTML: c(M)("das-ui-select-selectedItemsCountWithPlaceholder", Q.value)
|
|
798
798
|
}, null, 8, Nt)
|
|
799
799
|
]),
|
|
800
800
|
_: 1
|
|
@@ -813,17 +813,17 @@ const wt = { key: 0 }, xt = ["onClick"], At = { style: { display: "inline-block"
|
|
|
813
813
|
);
|
|
814
814
|
};
|
|
815
815
|
}
|
|
816
|
-
}), nl = (
|
|
817
|
-
const D =
|
|
818
|
-
for (const [t,
|
|
819
|
-
D[t] =
|
|
816
|
+
}), nl = (p, E) => {
|
|
817
|
+
const D = p.__vccOpts || p;
|
|
818
|
+
for (const [t, x] of E)
|
|
819
|
+
D[t] = x;
|
|
820
820
|
return D;
|
|
821
821
|
}, Bt = /* @__PURE__ */ nl(Dt, [["__scopeId", "data-v-908229c6"]]), $t = {};
|
|
822
|
-
function Wt(
|
|
822
|
+
function Wt(p, E) {
|
|
823
823
|
const D = Ct;
|
|
824
824
|
return f(), K(
|
|
825
825
|
D,
|
|
826
|
-
|
|
826
|
+
Le({ class: "das-ui-select-option" }, p.$attrs),
|
|
827
827
|
null,
|
|
828
828
|
16
|
|
829
829
|
/* FULL_PROPS */
|