fangguo-component 1.1.2 → 1.1.4
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/dist/ArgHover.css +20 -1
- package/dist/ArgHover.vue_vue_type_style_index_0_lang-CSymSDRl.js +56 -0
- package/dist/ButtonGroup-DqViorHX.js +134 -0
- package/dist/ButtonGroup.css +35 -1
- package/dist/CitySelect.vue_vue_type_script_setup_true_lang-DZp6834K.js +224 -0
- package/dist/ContentTitle-By0Zk1u7.js +30 -0
- package/dist/ContentTitle.css +6 -1
- package/dist/CustomInputV2-BqhBSO53.js +157 -0
- package/dist/CustomInputV2.css +5 -1
- package/dist/CustomMultipleInput-DRMTUtkE.js +125 -0
- package/dist/CustomMultipleInput.css +8 -1
- package/dist/DragResizable.css +126 -1
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-BePpQHve.js +331 -0
- package/dist/DragSort-5WetnkmW.js +98 -0
- package/dist/DragSort.css +5 -1
- package/dist/ErrorImage-Ao9kEEUg.js +36 -0
- package/dist/ErrorImage.css +4 -1
- package/dist/FgCascader.css +37 -1
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-CM8FxFLJ.js +2424 -0
- package/dist/HSelect-BFkWiCFi.js +671 -0
- package/dist/HSelect.css +80 -1
- package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-BZX7ch2I.js +50 -0
- package/dist/HSelectSJ-DZmtdyjF.js +671 -0
- package/dist/HSelectSJ.css +88 -1
- package/dist/IdentifyAddress.vue_vue_type_script_setup_true_lang-BCIOF-Oy.js +5202 -0
- package/dist/ImageLoupe.vue_vue_type_script_setup_true_lang-BaXHYlDu.js +92 -0
- package/dist/LazyComponent.vue_vue_type_script_setup_true_lang-D5KGqlj4.js +107 -0
- package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-B2vtU4f4.js +34 -0
- package/dist/LoadingBtn-DWm2cY9k.js +87 -0
- package/dist/LoadingBtn.css +12 -1
- package/dist/MInput-s_P63myh.js +114 -0
- package/dist/MInput.css +21 -1
- package/dist/MyTable-CHvxPYgk.js +94 -0
- package/dist/MyTable.css +33 -1
- package/dist/NoRender.vue_vue_type_script_setup_true_lang-B0G6jxPg.js +31 -0
- package/dist/SelectAddress-CCepDxu8.js +254 -0
- package/dist/SelectAddress.css +18 -1
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-CyzY8ams.js +101 -0
- package/dist/SelectAll2.vue_vue_type_script_setup_true_lang-CrsaohxU.js +103 -0
- package/dist/SelectCustomAll.css +8 -1
- package/dist/SelectCustomAll.vue_vue_type_style_index_0_lang-BEZwlGXa.js +111 -0
- package/dist/SelectTimePicker.vue_vue_type_script_setup_true_lang-Dk4TpTBN.js +48 -0
- package/dist/SelectTree-DHbWogEU.js +1276 -0
- package/dist/SelectTree.css +74 -1
- package/dist/SvgIcon-DIg0upEk.js +33 -0
- package/dist/TextCopy-th0FAxwl.js +44 -0
- package/dist/TextCopy.css +7 -1
- package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-DVE1CxPm.js +174 -0
- package/dist/VirtualTable-Cm_L7q9W.js +703 -0
- package/dist/VirtualTable.css +185 -1
- package/dist/_commonjsHelpers-DnzVkjQg.js +38 -0
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +10 -0
- package/dist/common-B1nSpTGn.js +9669 -0
- package/dist/components/VirtualTable/index.js +2 -2
- package/dist/components/argHover/index.js +2 -2
- package/dist/components/buttonGroup/index.js +2 -2
- package/dist/components/cascader/index.js +2 -2
- package/dist/components/citySelect/index.js +2 -2
- package/dist/components/contentTitle/index.js +2 -2
- package/dist/components/customInputV2/index.js +2 -2
- package/dist/components/customMultipleInput/index.js +2 -2
- package/dist/components/dragResizable/index.js +2 -2
- package/dist/components/dragSort/index.js +2 -2
- package/dist/components/errorImage/index.js +2 -2
- package/dist/components/hSelect/index.js +2 -2
- package/dist/components/hSelectAll/index.js +2 -2
- package/dist/components/hSelectSJ/index.js +2 -2
- package/dist/components/identifyAddress/index.js +2 -2
- package/dist/components/imageLoupe/index.js +2 -2
- package/dist/components/index.js +62 -62
- package/dist/components/lazyComponent/index.js +2 -2
- package/dist/components/lazyPopover/index.js +2 -2
- package/dist/components/loadingBtn/index.js +2 -2
- package/dist/components/mInput/index.js +2 -2
- package/dist/components/myTable/index.js +2 -2
- package/dist/components/noRender/index.js +2 -2
- package/dist/components/selectAddress/index.js +2 -2
- package/dist/components/selectAll/index.js +2 -2
- package/dist/components/selectAll2/index.js +2 -2
- package/dist/components/selectCustomAll/index.js +2 -2
- package/dist/components/selectTimePicker/index.js +2 -2
- package/dist/components/selectTree/index.js +2 -2
- package/dist/components/svgIcon/index.js +2 -2
- package/dist/components/textCopy/index.js +2 -2
- package/dist/components/textEllipsisTooltip/index.js +2 -2
- package/dist/dateShortcuts-DjFC_Txu.js +27 -0
- package/dist/directive/index.js +2 -2
- package/dist/directive/loading/index.js +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/usePagination/index.js +2 -2
- package/dist/index-BPnixsfc.js +103 -0
- package/dist/index-C9zyi90j.js +165 -0
- package/dist/index-CSMWzzp0.js +8 -0
- package/dist/index-DfQiknXJ.js +8 -0
- package/dist/index-DzdLpetc.js +29184 -0
- package/dist/index-uQXqC9BF.js +68 -0
- package/dist/index.css +1 -1
- package/dist/index.js +204 -194
- package/dist/loading-CGrVcnNl.js +47 -0
- package/dist/loading.css +110 -1
- package/dist/tools/ImageParserUtils/index.js +17239 -9074
- package/dist/tools/common/index.js +86 -86
- package/dist/tools/index.js +95 -95
- package/dist/usePagination-C63IRXjZ.js +29 -0
- package/dist/vue-virtual-scroller.esm-ZgBoGAjX.js +1507 -0
- package/package.json +1 -1
- package/dist/ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js +0 -54
- package/dist/ButtonGroup-C0yZEkxK.js +0 -103
- package/dist/CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js +0 -159
- package/dist/ContentTitle-mqrusLjx.js +0 -24
- package/dist/CustomInputV2-uARhbFc8.js +0 -135
- package/dist/CustomMultipleInput-DDaqoHVU.js +0 -109
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js +0 -179
- package/dist/DragSort-CfDeFAIG.js +0 -66
- package/dist/ErrorImage-CTP_5sal.js +0 -32
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js +0 -1656
- package/dist/HSelect-Drf6YBwO.js +0 -468
- package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js +0 -36
- package/dist/HSelectSJ-D3GrXmvj.js +0 -462
- package/dist/IdentifyAddress.vue_vue_type_script_setup_true_lang-BJheMI1q.js +0 -4743
- package/dist/ImageLoupe.vue_vue_type_script_setup_true_lang-BlX4VbRi.js +0 -79
- package/dist/LazyComponent.vue_vue_type_script_setup_true_lang-vNk68D8E.js +0 -82
- package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js +0 -33
- package/dist/LoadingBtn-BhbhNboo.js +0 -66
- package/dist/MInput-CpoW17Wh.js +0 -101
- package/dist/MyTable-DmwyEVJb.js +0 -68
- package/dist/NoRender.vue_vue_type_script_setup_true_lang-Do36nSsV.js +0 -30
- package/dist/SelectAddress-B4oK5erq.js +0 -173
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-BC3q2U8f.js +0 -79
- package/dist/SelectAll2.vue_vue_type_script_setup_true_lang-CaET5eli.js +0 -74
- package/dist/SelectCustomAll.vue_vue_type_style_index_0_lang-_wCRO217.js +0 -83
- package/dist/SelectTimePicker.vue_vue_type_script_setup_true_lang-Bj0KMOKv.js +0 -45
- package/dist/SelectTree-Dm5259kY.js +0 -911
- package/dist/SvgIcon-C2ah8E0Z.js +0 -30
- package/dist/TextCopy-hOj-Wj2H.js +0 -41
- package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-aZbEQmbM.js +0 -112
- package/dist/VirtualTable-BWugJiQ5.js +0 -349
- package/dist/_commonjsHelpers-ByYUsBRP.js +0 -33
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/common-BIEgCXbl.js +0 -7030
- package/dist/dateShortcuts-DDPtAhDI.js +0 -26
- package/dist/index-BRcBDlVs.js +0 -68
- package/dist/index-CeWudY6u.js +0 -8
- package/dist/index-DIX8TpoT.js +0 -118
- package/dist/index-DpPsTMp0.js +0 -8
- package/dist/index-epuVZjZV.js +0 -103
- package/dist/index-uf7oyYDF.js +0 -16847
- package/dist/loading-DJVNc0eN.js +0 -36
- package/dist/usePagination-CwShBEjA.js +0 -20
- package/dist/vue-virtual-scroller.esm-CH-jx4ri.js +0 -1051
|
@@ -1,462 +0,0 @@
|
|
|
1
|
-
import './HSelectSJ.css';var de = Object.defineProperty, fe = Object.defineProperties;
|
|
2
|
-
var pe = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var ue = Object.getOwnPropertySymbols;
|
|
4
|
-
var me = Object.prototype.hasOwnProperty, he = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var oe = (o, v, c) => v in o ? de(o, v, { enumerable: !0, configurable: !0, writable: !0, value: c }) : o[v] = c, N = (o, v) => {
|
|
6
|
-
for (var c in v || (v = {}))
|
|
7
|
-
me.call(v, c) && oe(o, c, v[c]);
|
|
8
|
-
if (ue)
|
|
9
|
-
for (var c of ue(v))
|
|
10
|
-
he.call(v, c) && oe(o, c, v[c]);
|
|
11
|
-
return o;
|
|
12
|
-
}, X = (o, v) => fe(o, pe(v));
|
|
13
|
-
var D = (o, v, c) => new Promise((t, m) => {
|
|
14
|
-
var M = (h) => {
|
|
15
|
-
try {
|
|
16
|
-
a(c.next(h));
|
|
17
|
-
} catch (d) {
|
|
18
|
-
m(d);
|
|
19
|
-
}
|
|
20
|
-
}, R = (h) => {
|
|
21
|
-
try {
|
|
22
|
-
a(c.throw(h));
|
|
23
|
-
} catch (d) {
|
|
24
|
-
m(d);
|
|
25
|
-
}
|
|
26
|
-
}, a = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(M, R);
|
|
27
|
-
a((c = c.apply(o, v)).next());
|
|
28
|
-
});
|
|
29
|
-
import { defineComponent as ye, useModel as we, ref as b, watch as A, computed as F, nextTick as K, onUnmounted as ge, onMounted as ke, resolveComponent as Y, openBlock as f, createBlock as q, withCtx as p, createVNode as O, unref as T, createElementBlock as S, createCommentVNode as C, toDisplayString as B, withModifiers as I, renderSlot as Z, createElementVNode as $, normalizeClass as P, normalizeStyle as xe, Fragment as se, renderList as Se, createTextVNode as ne, withDirectives as be, vModelText as Ce, mergeModels as ie } from "vue";
|
|
30
|
-
import { q as Oe } from "./common-BIEgCXbl.js";
|
|
31
|
-
import { Check as Le, ArrowDown as Ne, CircleClose as $e } from "@element-plus/icons-vue";
|
|
32
|
-
import { _ as He } from "./LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js";
|
|
33
|
-
import { s as ze, a as De } from "./vue-virtual-scroller.esm-CH-jx4ri.js";
|
|
34
|
-
import { isEqual as Ke } from "lodash-unified";
|
|
35
|
-
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
36
|
-
const Be = {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "select-more-normal-value"
|
|
39
|
-
}, Ve = { class: "max-w-[64px] overflow-hidden text-ellipsis" }, je = { class: "max-h-[280px] overflow-y-auto" }, Ie = {
|
|
40
|
-
key: 1,
|
|
41
|
-
class: "select-more-normal-placeholder cursor-default"
|
|
42
|
-
}, Pe = ["placeholder"], Me = {
|
|
43
|
-
key: 2,
|
|
44
|
-
class: "select-more-normal-placeholder cursor-default"
|
|
45
|
-
}, Ee = {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "text-center leading-[30px] text-[#999] text-[12px]"
|
|
48
|
-
}, Je = {
|
|
49
|
-
key: 0,
|
|
50
|
-
class: "text-[12px] text-center leading-[30px] text-[#999] h-[200px] flex items-center justify-center"
|
|
51
|
-
}, Ae = /* @__PURE__ */ ye({
|
|
52
|
-
__name: "HSelectSJ",
|
|
53
|
-
props: /* @__PURE__ */ ie({
|
|
54
|
-
size: { default: "normal" },
|
|
55
|
-
disabled: { type: Boolean, default: !1 },
|
|
56
|
-
api: {},
|
|
57
|
-
placeholder: { default: "请选择" },
|
|
58
|
-
multiple: { type: Boolean, default: !1 },
|
|
59
|
-
optionsKey: {},
|
|
60
|
-
props: {},
|
|
61
|
-
width: { default: 200 },
|
|
62
|
-
popwidth: { default: 200 },
|
|
63
|
-
sparamsKey: { default: {} },
|
|
64
|
-
otherParams: { default: {} },
|
|
65
|
-
stylecss: { default: "" },
|
|
66
|
-
formate: {},
|
|
67
|
-
filterable: { type: Boolean, default: !0 },
|
|
68
|
-
useInput: { type: Boolean, default: !1 },
|
|
69
|
-
lazy: { type: Boolean, default: !1 },
|
|
70
|
-
unuseremote: { type: Boolean, default: !1 },
|
|
71
|
-
options: { default: () => [] },
|
|
72
|
-
defText: {},
|
|
73
|
-
changeOrgData: {}
|
|
74
|
-
}, {
|
|
75
|
-
modelValue: {},
|
|
76
|
-
modelModifiers: {}
|
|
77
|
-
}),
|
|
78
|
-
emits: /* @__PURE__ */ ie(["change", "clear"], ["update:modelValue"]),
|
|
79
|
-
setup(o, { expose: v, emit: c }) {
|
|
80
|
-
const t = we(o, "modelValue"), m = c, M = /* @__PURE__ */ Symbol("HSelect"), R = {
|
|
81
|
-
pageNo: "pageNo",
|
|
82
|
-
pageSize: "pageSize",
|
|
83
|
-
total: "total",
|
|
84
|
-
text: "text"
|
|
85
|
-
}, a = o, h = b(N(N({}, R), a.sparamsKey)), d = b(!1), i = b(""), H = b(), u = b([]), r = b([]), E = b({
|
|
86
|
-
[h.value.pageNo]: 1,
|
|
87
|
-
[h.value.pageSize]: 20
|
|
88
|
-
}), _ = b(0), re = b(), U = Oe(() => {
|
|
89
|
-
a.filterable && k(!0, i.value);
|
|
90
|
-
});
|
|
91
|
-
A(() => a.otherParams, (e, l) => {
|
|
92
|
-
Ke(e, l) || k(!0, i.value);
|
|
93
|
-
});
|
|
94
|
-
let ee = null;
|
|
95
|
-
const g = b("loaded"), k = (e = !1, l = "") => D(null, null, function* () {
|
|
96
|
-
if (a.unuseremote) {
|
|
97
|
-
r.value = a.options.filter(
|
|
98
|
-
(n) => {
|
|
99
|
-
var z;
|
|
100
|
-
return (n[j.value] || "").toLocaleLowerCase().includes(i.value.toLocaleLowerCase()) || ((z = n.searchKey || "") == null ? void 0 : z.toLocaleLowerCase().includes(i.value.toLocaleLowerCase()));
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (e && (E.value[h.value.pageNo] = 1, g.value = "loaded"), l && (i.value = l), g.value !== "loaded")
|
|
106
|
-
return;
|
|
107
|
-
g.value = "loading";
|
|
108
|
-
const s = a.filterable ? N(X(N({}, E.value), { [h.value.text]: i.value }), a.otherParams) : N(N({}, E.value), a.otherParams);
|
|
109
|
-
ee = JSON.stringify(s);
|
|
110
|
-
try {
|
|
111
|
-
let n = yield a.api(s);
|
|
112
|
-
if (ee !== JSON.stringify(s))
|
|
113
|
-
return;
|
|
114
|
-
if (a.changeOrgData && (n = a.changeOrgData(n)), r.value = e ? n.data.list : r.value.concat(n.data.list), _.value = n.data[h.value.total], E.value[h.value.pageNo]++, _.value <= r.value.length ? g.value = "isloadall" : g.value = "loaded", l) {
|
|
115
|
-
const z = r.value.find((w) => w[j.value] === i.value);
|
|
116
|
-
return z || k(e), z;
|
|
117
|
-
}
|
|
118
|
-
} catch (n) {
|
|
119
|
-
g.value = "isloadall", r.value = [];
|
|
120
|
-
}
|
|
121
|
-
}), ce = (e) => {
|
|
122
|
-
if (!a.unuseremote)
|
|
123
|
-
try {
|
|
124
|
-
let l = null;
|
|
125
|
-
const s = e.target.children;
|
|
126
|
-
for (let n = 0; n < s.length; n++)
|
|
127
|
-
s[n].className === "vue-recycle-scroller__item-wrapper" && (l = s[n]);
|
|
128
|
-
if (!l)
|
|
129
|
-
return;
|
|
130
|
-
l.offsetHeight - e.target.scrollTop < 300 && g.value === "loaded" && k();
|
|
131
|
-
} catch (l) {
|
|
132
|
-
}
|
|
133
|
-
}, L = F(() => !t.value || a.multiple ? "" : u.value && !Array.isArray(u.value) ? a.formate ? a.formate(u.value) : u.value[j.value] : a.defText || t.value || a.placeholder);
|
|
134
|
-
A(() => d.value, () => D(null, null, function* () {
|
|
135
|
-
var e, l;
|
|
136
|
-
if (d.value)
|
|
137
|
-
L.value !== a.placeholder && (i.value = L.value), yield K(), (e = H.value) == null || e.focus(), k(!0);
|
|
138
|
-
else {
|
|
139
|
-
if (yield K(), a.useInput && i.value)
|
|
140
|
-
if (a.multiple)
|
|
141
|
-
t.value.includes(i.value) || (t.value.push(i.value), m("change", t.value, u.value));
|
|
142
|
-
else {
|
|
143
|
-
if (t.value === i.value)
|
|
144
|
-
return;
|
|
145
|
-
t.value = i.value;
|
|
146
|
-
const s = r.value.find((n) => n[y.value] === i.value);
|
|
147
|
-
s ? u.value = s : u.value = null, yield K(), m("change", t.value, u.value);
|
|
148
|
-
}
|
|
149
|
-
(l = H.value) == null || l.blur(), i.value = "", !a.lazy && k(!0);
|
|
150
|
-
}
|
|
151
|
-
})), A(t, (e, l) => {
|
|
152
|
-
try {
|
|
153
|
-
const s = typeof e == "string" ? String(e) : JSON.stringify(e), n = typeof l == "string" ? String(l) : JSON.stringify(l);
|
|
154
|
-
if (s === n)
|
|
155
|
-
return;
|
|
156
|
-
G();
|
|
157
|
-
} catch (s) {
|
|
158
|
-
console.log(s);
|
|
159
|
-
}
|
|
160
|
-
}), A(() => a.options, () => {
|
|
161
|
-
a.unuseremote && (r.value = a.options, G());
|
|
162
|
-
});
|
|
163
|
-
const G = () => {
|
|
164
|
-
if (a.unuseremote) {
|
|
165
|
-
if (a.multiple) {
|
|
166
|
-
if (t.value && t.value.length) {
|
|
167
|
-
const e = [];
|
|
168
|
-
try {
|
|
169
|
-
t.value.forEach((l) => {
|
|
170
|
-
const s = r.value.find((n) => n[y.value] === l);
|
|
171
|
-
s ? e.push(s) : console.warn(`HSelect未找到初始化值${l}`);
|
|
172
|
-
});
|
|
173
|
-
} catch (l) {
|
|
174
|
-
console.log(l);
|
|
175
|
-
}
|
|
176
|
-
u.value = e;
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
u.value = [];
|
|
180
|
-
} else {
|
|
181
|
-
if (i.value = "", t.value) {
|
|
182
|
-
try {
|
|
183
|
-
const e = r.value.find((l) => l[y.value] === t.value);
|
|
184
|
-
e ? u.value = e : console.warn(`HSelect未找到初始化值${t.value}`);
|
|
185
|
-
} catch (e) {
|
|
186
|
-
console.warn(e);
|
|
187
|
-
}
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
u.value = null;
|
|
191
|
-
}
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
if (a.multiple) {
|
|
195
|
-
if (t.value && t.value.length)
|
|
196
|
-
return;
|
|
197
|
-
u.value = [], i.value = "";
|
|
198
|
-
} else {
|
|
199
|
-
if (i.value = t.value, t.value && !a.defText) {
|
|
200
|
-
le();
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
u.value = null;
|
|
204
|
-
}
|
|
205
|
-
}, le = () => D(null, null, function* () {
|
|
206
|
-
try {
|
|
207
|
-
const e = r.value.find((l) => l[y.value] === t.value);
|
|
208
|
-
e ? u.value = e : g.value === "loaded" ? (yield k(), le()) : u.value = void 0;
|
|
209
|
-
} catch (e) {
|
|
210
|
-
u.value = void 0, console.error(e);
|
|
211
|
-
}
|
|
212
|
-
}), V = F(() => {
|
|
213
|
-
try {
|
|
214
|
-
return typeof u.value == "object" ? u.value.length ? u.value.map((e) => a.formate ? a.formate(e) : e[j.value]) : t.value : u.value ? a.formate ? a.formate(u.value) : u.value[j.value] : t.value || a.placeholder;
|
|
215
|
-
} catch (e) {
|
|
216
|
-
return a.multiple ? [] : "";
|
|
217
|
-
}
|
|
218
|
-
}), Q = (e) => {
|
|
219
|
-
var l;
|
|
220
|
-
try {
|
|
221
|
-
return a.multiple ? (l = t.value) == null ? void 0 : l.includes(e[y.value]) : t.value === e[y.value];
|
|
222
|
-
} catch (s) {
|
|
223
|
-
return !1;
|
|
224
|
-
}
|
|
225
|
-
}, ae = (e, l) => {
|
|
226
|
-
if (t.value.splice(e, 1), a.useInput)
|
|
227
|
-
try {
|
|
228
|
-
const s = u.value.findIndex((n) => n[y.value] === l);
|
|
229
|
-
s !== -1 && u.value.splice(s, 1);
|
|
230
|
-
} catch (s) {
|
|
231
|
-
console.log(s);
|
|
232
|
-
}
|
|
233
|
-
else
|
|
234
|
-
u.value.splice(e, 1);
|
|
235
|
-
m("change", t.value, u.value);
|
|
236
|
-
}, y = F(() => a.props && a.props.value ? a.props.value : "id"), j = F(() => a.props && a.props.label ? a.props.label : "label"), te = () => D(null, null, function* () {
|
|
237
|
-
var e, l;
|
|
238
|
-
if (!a.multiple) {
|
|
239
|
-
t.value = "", u.value = null, i.value = "", k(!0), d.value && ((e = H.value) == null || e.focus()), yield K(), m("clear"), m("change", t.value);
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
t.value = [], u.value = [], i.value = "", k(!0), yield K(), m("clear"), m("change", t.value), (l = H.value) == null || l.focus();
|
|
243
|
-
}), ve = (e) => D(null, null, function* () {
|
|
244
|
-
var s;
|
|
245
|
-
if (!a.multiple) {
|
|
246
|
-
t.value = e[y.value], yield K(), u.value = e, yield K(), d.value = !1, m("change", t.value, u.value);
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
const l = t.value.findIndex((n) => n === e[y.value]);
|
|
250
|
-
l === -1 ? (t.value.push(e[y.value]), u.value.push(e), m("change", t.value, u.value)) : (t.value.splice(l, 1), u.value.splice(l, 1), m("change", t.value, u.value)), (s = H.value) == null || s.focus();
|
|
251
|
-
});
|
|
252
|
-
return v({
|
|
253
|
-
modelValue: t,
|
|
254
|
-
checkAllNodes: () => {
|
|
255
|
-
var e;
|
|
256
|
-
u.value = r.value, t.value = u.value.map((l) => l[y.value]), m("change", t.value, u.value), (e = H.value) == null || e.focus();
|
|
257
|
-
},
|
|
258
|
-
clearCheaked: te,
|
|
259
|
-
filterHandle: U,
|
|
260
|
-
loadeMore: k,
|
|
261
|
-
checkNode: u,
|
|
262
|
-
data: r
|
|
263
|
-
}), ge(() => {
|
|
264
|
-
delete window.clickOutSideList[M], Object.getOwnPropertySymbols(window.clickOutSideList).length || (delete window.clickOutSideList, window.removeEventListener("click", window.clickOutSideHandle));
|
|
265
|
-
}), ke(() => D(null, null, function* () {
|
|
266
|
-
!a.lazy && (yield k(!0)), a.unuseremote && (r.value = a.options), !a.lazy && G(), window.clickOutSideList ? window.clickOutSideList[M] = d : (window.clickOutSideList = {
|
|
267
|
-
[M]: d
|
|
268
|
-
}, window.clickOutSideHandle = function() {
|
|
269
|
-
Object.getOwnPropertySymbols(window.clickOutSideList).forEach((l) => {
|
|
270
|
-
window.clickOutSideList[l].value = !1;
|
|
271
|
-
});
|
|
272
|
-
}, window.addEventListener("click", window.clickOutSideHandle));
|
|
273
|
-
})), (e, l) => {
|
|
274
|
-
const s = Y("el-tag"), n = Y("el-icon"), z = Y("el-popover");
|
|
275
|
-
return f(), q(z, {
|
|
276
|
-
visible: d.value,
|
|
277
|
-
placement: "bottom-start",
|
|
278
|
-
width: `${o.popwidth || o.width}px`
|
|
279
|
-
}, {
|
|
280
|
-
reference: p(() => {
|
|
281
|
-
var w, J;
|
|
282
|
-
return [
|
|
283
|
-
$("div", {
|
|
284
|
-
class: P(["select-more", `${o.stylecss} ${e.$attrs.class}`]),
|
|
285
|
-
style: xe({ width: typeof o.width == "number" ? o.width + "px" : o.width }),
|
|
286
|
-
onClick: l[6] || (l[6] = I((x) => d.value = !d.value, ["stop"]))
|
|
287
|
-
}, [
|
|
288
|
-
o.disabled ? (f(), S("div", {
|
|
289
|
-
key: 0,
|
|
290
|
-
class: "disabled-wrap",
|
|
291
|
-
onClick: l[0] || (l[0] = I(() => {
|
|
292
|
-
}, ["stop"]))
|
|
293
|
-
})) : C("", !0),
|
|
294
|
-
$("div", {
|
|
295
|
-
class: P(["select-more-wrapper", { "is-focused": d.value, "!text-[12px] !min-h-[24px] !h-[24px]": o.size === "small" }])
|
|
296
|
-
}, [
|
|
297
|
-
o.multiple && ((w = V.value) != null && w.length) ? (f(), S("div", Be, [
|
|
298
|
-
O(s, {
|
|
299
|
-
class: "mr-[5px]",
|
|
300
|
-
type: "info",
|
|
301
|
-
closable: "",
|
|
302
|
-
onClose: l[1] || (l[1] = (x) => ae(0, V.value[0]))
|
|
303
|
-
}, {
|
|
304
|
-
default: p(() => [
|
|
305
|
-
$("div", Ve, B(V.value[0]), 1)
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}),
|
|
309
|
-
V.value.length > 1 ? (f(), q(He, {
|
|
310
|
-
key: 0,
|
|
311
|
-
width: `${o.popwidth}px`
|
|
312
|
-
}, {
|
|
313
|
-
reference: p(() => [
|
|
314
|
-
O(s, { type: "info" }, {
|
|
315
|
-
default: p(() => [
|
|
316
|
-
ne("+ " + B(V.value.length - 1), 1)
|
|
317
|
-
]),
|
|
318
|
-
_: 1
|
|
319
|
-
})
|
|
320
|
-
]),
|
|
321
|
-
default: p(() => [
|
|
322
|
-
$("div", je, [
|
|
323
|
-
(f(!0), S(se, null, Se(V.value, (x, W) => (f(), S(se, {
|
|
324
|
-
key: x[y.value]
|
|
325
|
-
}, [
|
|
326
|
-
W !== 0 ? (f(), q(s, {
|
|
327
|
-
key: 0,
|
|
328
|
-
class: "mr-[5px] mt-[5px]",
|
|
329
|
-
closable: "",
|
|
330
|
-
onClose: (qe) => ae(W, x)
|
|
331
|
-
}, {
|
|
332
|
-
default: p(() => [
|
|
333
|
-
ne(B(x), 1)
|
|
334
|
-
]),
|
|
335
|
-
_: 2
|
|
336
|
-
}, 1032, ["onClose"])) : C("", !0)
|
|
337
|
-
], 64))), 128))
|
|
338
|
-
])
|
|
339
|
-
]),
|
|
340
|
-
_: 1
|
|
341
|
-
}, 8, ["width"])) : C("", !0)
|
|
342
|
-
])) : C("", !0),
|
|
343
|
-
o.filterable ? (f(), S("div", Ie, [
|
|
344
|
-
d.value ? be((f(), S("input", {
|
|
345
|
-
key: 0,
|
|
346
|
-
ref_key: "input",
|
|
347
|
-
ref: H,
|
|
348
|
-
"onUpdate:modelValue": l[2] || (l[2] = (x) => i.value = x),
|
|
349
|
-
class: "w-full h-[90%]",
|
|
350
|
-
type: "text",
|
|
351
|
-
placeholder: o.placeholder,
|
|
352
|
-
onKeydown: l[3] || (l[3] = I(() => {
|
|
353
|
-
}, ["stop"])),
|
|
354
|
-
onClick: l[4] || (l[4] = I(() => {
|
|
355
|
-
}, ["stop"])),
|
|
356
|
-
onInput: l[5] || (l[5] = //@ts-ignore
|
|
357
|
-
(...x) => T(U) && T(U)(...x))
|
|
358
|
-
}, null, 40, Pe)), [
|
|
359
|
-
[Ce, i.value]
|
|
360
|
-
]) : (f(), S("div", {
|
|
361
|
-
key: 1,
|
|
362
|
-
class: P(["text-nowrap", { "text-[#999]": !L.value || L.value === o.placeholder }])
|
|
363
|
-
}, B(L.value || o.placeholder), 3))
|
|
364
|
-
])) : C("", !0),
|
|
365
|
-
!o.filterable && !o.multiple ? (f(), S("div", Me, [
|
|
366
|
-
$("div", {
|
|
367
|
-
class: P(["text-nowrap", { "text-[#999]": !L.value || L.value === o.placeholder }])
|
|
368
|
-
}, B(L.value || o.placeholder), 3)
|
|
369
|
-
])) : C("", !0),
|
|
370
|
-
$("div", {
|
|
371
|
-
class: P(["select-more-arrow", { "is-focused": d.value }])
|
|
372
|
-
}, [
|
|
373
|
-
O(n, null, {
|
|
374
|
-
default: p(() => [
|
|
375
|
-
O(T(Ne))
|
|
376
|
-
]),
|
|
377
|
-
_: 1
|
|
378
|
-
})
|
|
379
|
-
], 2),
|
|
380
|
-
o.multiple && ((J = t.value) != null && J.length) || !o.multiple && t.value ? (f(), S("div", {
|
|
381
|
-
key: 3,
|
|
382
|
-
class: "select-more-clear",
|
|
383
|
-
onClick: I(te, ["stop"])
|
|
384
|
-
}, [
|
|
385
|
-
O(n, null, {
|
|
386
|
-
default: p(() => [
|
|
387
|
-
O(T($e))
|
|
388
|
-
]),
|
|
389
|
-
_: 1
|
|
390
|
-
})
|
|
391
|
-
])) : C("", !0)
|
|
392
|
-
], 2)
|
|
393
|
-
], 6)
|
|
394
|
-
];
|
|
395
|
-
}),
|
|
396
|
-
default: p(() => [
|
|
397
|
-
O(T(ze), {
|
|
398
|
-
ref_key: "DynamicScrollerRef",
|
|
399
|
-
ref: re,
|
|
400
|
-
class: "content-list",
|
|
401
|
-
style: { height: "200px" },
|
|
402
|
-
keyField: o.optionsKey || y.value,
|
|
403
|
-
"min-item-size": 40,
|
|
404
|
-
items: r.value,
|
|
405
|
-
onScroll: ce
|
|
406
|
-
}, {
|
|
407
|
-
before: p(() => [
|
|
408
|
-
Z(e.$slots, "header", {
|
|
409
|
-
options: r.value,
|
|
410
|
-
value: t.value,
|
|
411
|
-
nodes: u.value
|
|
412
|
-
}, void 0, !0)
|
|
413
|
-
]),
|
|
414
|
-
default: p(({ item: w, index: J, active: x }) => [
|
|
415
|
-
O(T(De), {
|
|
416
|
-
item: w,
|
|
417
|
-
active: x,
|
|
418
|
-
"data-index": J,
|
|
419
|
-
onClick: I((W) => ve(w), ["stop"])
|
|
420
|
-
}, {
|
|
421
|
-
default: p(() => [
|
|
422
|
-
Z(e.$slots, "default", {
|
|
423
|
-
item: X(N({}, w), { active: Q(w) })
|
|
424
|
-
}, () => [
|
|
425
|
-
$("div", {
|
|
426
|
-
class: P(["item", { active: Q(w) }])
|
|
427
|
-
}, [
|
|
428
|
-
$("div", null, B(o.formate ? o.formate(w) : w[j.value]), 1),
|
|
429
|
-
Q(w) ? (f(), q(n, { key: 0 }, {
|
|
430
|
-
default: p(() => [
|
|
431
|
-
O(T(Le))
|
|
432
|
-
]),
|
|
433
|
-
_: 1
|
|
434
|
-
})) : C("", !0)
|
|
435
|
-
], 2)
|
|
436
|
-
], !0)
|
|
437
|
-
]),
|
|
438
|
-
_: 2
|
|
439
|
-
}, 1032, ["item", "active", "data-index", "onClick"])
|
|
440
|
-
]),
|
|
441
|
-
after: p(() => [
|
|
442
|
-
g.value !== "isloadall" && !a.unuseremote ? (f(), S("div", Ee, B(g.value === "loading" ? "加载中" : "等待加载"), 1)) : C("", !0)
|
|
443
|
-
]),
|
|
444
|
-
empty: p(() => [
|
|
445
|
-
(g.value === "isloadall" || o.unuseremote) && !r.value.length ? (f(), S("div", Je, "暂无可用数据")) : C("", !0)
|
|
446
|
-
]),
|
|
447
|
-
_: 3
|
|
448
|
-
}, 8, ["keyField", "items"]),
|
|
449
|
-
Z(e.$slots, "footer", {
|
|
450
|
-
options: r.value,
|
|
451
|
-
value: t.value,
|
|
452
|
-
nodes: u.value
|
|
453
|
-
}, void 0, !0)
|
|
454
|
-
]),
|
|
455
|
-
_: 3
|
|
456
|
-
}, 8, ["visible", "width"]);
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
}), _e = /* @__PURE__ */ Te(Ae, [["__scopeId", "data-v-dd0d6f50"]]);
|
|
460
|
-
export {
|
|
461
|
-
_e as H
|
|
462
|
-
};
|