fangguo-component 1.1.0 → 1.1.2
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/CHANGELOG.md +36 -1
- package/README.md +13 -11
- package/dist/{CustomInputV2-DYEcbu5_.js → CustomInputV2-uARhbFc8.js} +12 -12
- package/dist/CustomInputV2.css +1 -1
- package/dist/DragResizable.css +1 -1
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js +179 -0
- package/dist/FgCascader.css +1 -1
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js +1656 -0
- package/dist/{HSelect-Bqz2yTMf.js → HSelect-Drf6YBwO.js} +69 -69
- package/dist/{HSelectAll.vue_vue_type_script_setup_true_lang-C8i6LF_k.js → HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js} +1 -1
- package/dist/{HSelectSJ-BieRp2gG.js → HSelectSJ-D3GrXmvj.js} +104 -104
- package/dist/SelectTree-Dm5259kY.js +911 -0
- package/dist/SelectTree.css +1 -1
- package/dist/TextCopy-hOj-Wj2H.js +41 -0
- package/dist/TextCopy.css +1 -0
- package/dist/VirtualTable-BWugJiQ5.js +349 -0
- package/dist/VirtualTable.css +1 -1
- package/dist/components/VirtualTable/VirtualTable.vue.d.ts +3 -3
- package/dist/components/VirtualTable/index.d.ts +1 -0
- package/dist/components/VirtualTable/index.js +1 -1
- package/dist/components/cascader/cascader/ElCascader.vue.d.ts +3 -0
- package/dist/components/cascader/cascader/FgCascader.vue.d.ts +16 -4
- package/dist/components/cascader/cascader/cascader.d.ts +1 -0
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/citySelect/demos/mockAddressTree.d.ts +8 -0
- package/dist/components/customInputV2/CustomInputV2.vue.d.ts +1 -1
- package/dist/components/customInputV2/index.js +1 -1
- package/dist/components/dragResizable/DragResizable.vue.d.ts +2 -0
- package/dist/components/dragResizable/index.js +1 -1
- package/dist/components/hSelect/demos/mockApi.d.ts +12 -0
- package/dist/components/hSelect/index.js +1 -1
- package/dist/components/hSelectAll/demos/mockApi.d.ts +10 -0
- package/dist/components/hSelectAll/index.js +1 -1
- package/dist/components/hSelectSJ/demos/mockApi.d.ts +11 -0
- package/dist/components/hSelectSJ/index.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +42 -46
- package/dist/components/selectAddress/demos/mockAddressTree.d.ts +7 -0
- package/dist/components/selectTimePicker/SelectTimePicker.vue.d.ts +1 -1
- package/dist/components/selectTree/demos/treeData.d.ts +9 -0
- package/dist/components/selectTree/index.js +1 -1
- package/dist/components/textCopy/index.js +1 -1
- package/dist/index-BRcBDlVs.js +68 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +145 -149
- package/dist/vue-virtual-scroller.esm-CH-jx4ri.js +1051 -0
- package/package.json +8 -8
- package/dist/DragResizable.vue_vue_type_style_index_0_lang-DYL6TUPE.js +0 -167
- package/dist/FgCascader.vue_vue_type_style_index_0_lang-OnqaEAao.js +0 -1807
- package/dist/SelectTree-C7lBZnZH.js +0 -306
- package/dist/SortTransfer.css +0 -1
- package/dist/SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js +0 -153
- package/dist/TextCopy.vue_vue_type_script_setup_true_lang-DbhZGH_z.js +0 -29
- package/dist/TipInput-CIskitOV.js +0 -117
- package/dist/TipInput.css +0 -1
- package/dist/VirtualTable-BYTfwDC1.js +0 -353
- package/dist/components/sortTransfer/SortTransfer.vue.d.ts +0 -97
- package/dist/components/sortTransfer/index.d.ts +0 -1
- package/dist/components/sortTransfer/index.js +0 -4
- package/dist/components/tipInput/TipInput.vue.d.ts +0 -56
- package/dist/components/tipInput/index.d.ts +0 -1
- package/dist/components/tipInput/index.js +0 -4
- package/dist/debounce-BLrZUqsA.js +0 -84
- package/dist/index-BKzmtfeu.js +0 -72
- package/dist/isEqual-qYQTJBU6.js +0 -506
- package/dist/isObject-CO569sPG.js +0 -35
|
@@ -26,14 +26,14 @@ var P = (o, d, v) => new Promise((t, p) => {
|
|
|
26
26
|
}, a = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(B, U);
|
|
27
27
|
a((v = v.apply(o, d)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as he, useModel as ye, ref as S, watch as J, computed as q, nextTick as V, onUnmounted as we, onMounted as ge, resolveComponent as Y, openBlock as y, createBlock as R, withCtx as f, createVNode as O, unref as
|
|
29
|
+
import { defineComponent as he, useModel as ye, ref as S, watch as J, computed as q, nextTick as V, onUnmounted as we, onMounted as ge, resolveComponent as Y, openBlock as y, createBlock as R, withCtx as f, createVNode as O, unref as K, createElementBlock as b, createCommentVNode as C, toDisplayString as D, withModifiers as E, renderSlot as Z, createElementVNode as H, normalizeClass as j, normalizeStyle as ke, Fragment as oe, renderList as xe, createTextVNode as ne, withDirectives as Se, vModelText as be, mergeModels as re } from "vue";
|
|
30
30
|
import { q as Oe } from "./common-BIEgCXbl.js";
|
|
31
31
|
import { Check as Ce, ArrowDown as Le, CircleClose as Ne } from "@element-plus/icons-vue";
|
|
32
32
|
import { _ as He } from "./LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { _ as
|
|
36
|
-
const
|
|
33
|
+
import { s as $e, a as ze } from "./vue-virtual-scroller.esm-CH-jx4ri.js";
|
|
34
|
+
import { isEqual as Ke } from "lodash-unified";
|
|
35
|
+
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
36
|
+
const Ie = {
|
|
37
37
|
key: 0,
|
|
38
38
|
class: "select-more-normal-value"
|
|
39
39
|
}, Te = { class: "max-w-[64px] overflow-hidden text-ellipsis" }, Ve = { class: "max-h-[280px] overflow-y-auto" }, je = {
|
|
@@ -80,46 +80,46 @@ const Ke = {
|
|
|
80
80
|
pageSize: "pageSize",
|
|
81
81
|
total: "total",
|
|
82
82
|
text: "text"
|
|
83
|
-
}, a = o, m = S(N(N({}, U), a.sparamsKey)), c = S(!1),
|
|
83
|
+
}, a = o, m = S(N(N({}, U), a.sparamsKey)), c = S(!1), s = S(""), $ = S(), u = S([]), i = S([]), M = S({
|
|
84
84
|
[m.value.pageNo]: 1,
|
|
85
85
|
[m.value.pageSize]: 20
|
|
86
|
-
}), _ = S(0),
|
|
87
|
-
a.filterable && x(!0,
|
|
86
|
+
}), _ = S(0), se = S(), G = Oe(() => {
|
|
87
|
+
a.filterable && x(!0, s.value);
|
|
88
88
|
});
|
|
89
89
|
J(
|
|
90
90
|
() => a.otherParams,
|
|
91
91
|
(l, e) => {
|
|
92
|
-
|
|
92
|
+
Ke(l, e) || x(!0, s.value);
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
let ee = null;
|
|
96
96
|
const k = S("loaded"), x = (l = !1, e = "") => P(null, null, function* () {
|
|
97
97
|
if (a.unuseremote) {
|
|
98
|
-
|
|
98
|
+
i.value = a.options.filter(
|
|
99
99
|
(r) => {
|
|
100
|
-
var
|
|
101
|
-
return (r[T.value] || "").toLocaleLowerCase().includes(
|
|
100
|
+
var z;
|
|
101
|
+
return (r[T.value] || "").toLocaleLowerCase().includes(s.value.toLocaleLowerCase()) || ((z = r.searchKey || "") == null ? void 0 : z.toLocaleLowerCase().includes(s.value.toLocaleLowerCase()));
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
if (l && (M.value[m.value.pageNo] = 1, k.value = "loaded"), e && (
|
|
106
|
+
if (l && (M.value[m.value.pageNo] = 1, k.value = "loaded"), e && (s.value = e), k.value !== "loaded")
|
|
107
107
|
return;
|
|
108
108
|
k.value = "loading";
|
|
109
|
-
const n = a.filterable ? N(X(N({}, M.value), { [m.value.text]:
|
|
109
|
+
const n = a.filterable ? N(X(N({}, M.value), { [m.value.text]: s.value }), a.otherParams) : N(N({}, M.value), a.otherParams);
|
|
110
110
|
ee = JSON.stringify(n);
|
|
111
111
|
try {
|
|
112
112
|
let r = yield a.api(n);
|
|
113
113
|
if (ee !== JSON.stringify(n))
|
|
114
114
|
return;
|
|
115
|
-
if (a.changeOrgData && (r = a.changeOrgData(r)),
|
|
116
|
-
const
|
|
117
|
-
return
|
|
115
|
+
if (a.changeOrgData && (r = a.changeOrgData(r)), i.value = l ? r.data.list : i.value.concat(r.data.list), _.value = r.data[m.value.total], M.value[m.value.pageNo]++, c.value || A(), _.value <= i.value.length ? k.value = "isloadall" : k.value = "loaded", e) {
|
|
116
|
+
const z = i.value.find((w) => w[T.value] === s.value);
|
|
117
|
+
return z || x(l), z;
|
|
118
118
|
}
|
|
119
119
|
} catch (r) {
|
|
120
|
-
k.value = "isloadall",
|
|
120
|
+
k.value = "isloadall", i.value = [];
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), ie = (l) => {
|
|
123
123
|
if (!a.unuseremote)
|
|
124
124
|
try {
|
|
125
125
|
let e = null;
|
|
@@ -135,19 +135,19 @@ const Ke = {
|
|
|
135
135
|
J(c, () => P(null, null, function* () {
|
|
136
136
|
var l, e;
|
|
137
137
|
if (c.value)
|
|
138
|
-
a.useInput && L.value !== a.placeholder && (
|
|
138
|
+
a.useInput && L.value !== a.placeholder && (s.value = L.value), yield V(), (l = $.value) == null || l.focus(), a.lazy && x(!0);
|
|
139
139
|
else {
|
|
140
|
-
if (yield V(), a.useInput &&
|
|
140
|
+
if (yield V(), a.useInput && s.value)
|
|
141
141
|
if (a.multiple)
|
|
142
|
-
t.value.includes(
|
|
142
|
+
t.value.includes(s.value) || (t.value.push(s.value), p("change", t.value, u.value));
|
|
143
143
|
else {
|
|
144
|
-
if (t.value ===
|
|
144
|
+
if (t.value === s.value)
|
|
145
145
|
return;
|
|
146
|
-
t.value =
|
|
147
|
-
const n =
|
|
146
|
+
t.value = s.value;
|
|
147
|
+
const n = i.value.find((r) => r[h.value] === s.value);
|
|
148
148
|
n ? u.value = n : u.value = null, yield V(), p("change", t.value, u.value);
|
|
149
149
|
}
|
|
150
|
-
(e = $.value) == null || e.blur(),
|
|
150
|
+
(e = $.value) == null || e.blur(), s.value = "", !a.lazy && x(!0);
|
|
151
151
|
}
|
|
152
152
|
})), J(t, (l, e) => {
|
|
153
153
|
try {
|
|
@@ -161,7 +161,7 @@ const Ke = {
|
|
|
161
161
|
}), J(
|
|
162
162
|
() => a.options,
|
|
163
163
|
() => {
|
|
164
|
-
a.unuseremote && (
|
|
164
|
+
a.unuseremote && (i.value = a.options, A());
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
167
|
const A = () => {
|
|
@@ -171,7 +171,7 @@ const Ke = {
|
|
|
171
171
|
const l = [];
|
|
172
172
|
try {
|
|
173
173
|
t.value.forEach((e) => {
|
|
174
|
-
const n =
|
|
174
|
+
const n = i.value.find((r) => r[h.value] === e);
|
|
175
175
|
n ? l.push(n) : console.warn(`HSelect未找到初始化值${e}`);
|
|
176
176
|
});
|
|
177
177
|
} catch (e) {
|
|
@@ -182,9 +182,9 @@ const Ke = {
|
|
|
182
182
|
}
|
|
183
183
|
u.value = [];
|
|
184
184
|
} else {
|
|
185
|
-
if (
|
|
185
|
+
if (s.value = "", t.value) {
|
|
186
186
|
try {
|
|
187
|
-
const l =
|
|
187
|
+
const l = i.value.find((e) => e[h.value] === t.value);
|
|
188
188
|
l ? u.value = l : console.warn(`HSelect未找到初始化值${t.value}`);
|
|
189
189
|
} catch (l) {
|
|
190
190
|
console.warn(l);
|
|
@@ -200,7 +200,7 @@ const Ke = {
|
|
|
200
200
|
const l = [];
|
|
201
201
|
try {
|
|
202
202
|
t.value.forEach((e) => {
|
|
203
|
-
const n =
|
|
203
|
+
const n = i.value.find((r) => r[h.value] === e);
|
|
204
204
|
n && l.push(n);
|
|
205
205
|
});
|
|
206
206
|
} catch (e) {
|
|
@@ -209,16 +209,16 @@ const Ke = {
|
|
|
209
209
|
u.value = l;
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
|
-
u.value = [],
|
|
212
|
+
u.value = [], s.value = "";
|
|
213
213
|
} else {
|
|
214
|
-
if (
|
|
215
|
-
const l =
|
|
214
|
+
if (s.value = "", t.value || t.value === 0) {
|
|
215
|
+
const l = i.value.find((e) => e[h.value] === t.value);
|
|
216
216
|
u.value = l || null;
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
u.value = null;
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, I = q(() => {
|
|
222
222
|
try {
|
|
223
223
|
return typeof u.value == "object" ? u.value.length ? u.value.map((l) => a.formate ? a.formate(l) : l[T.value]) : t.value : u.value ? a.formate ? a.formate(u.value) : u.value[T.value] : t.value || a.placeholder;
|
|
224
224
|
} catch (l) {
|
|
@@ -245,10 +245,10 @@ const Ke = {
|
|
|
245
245
|
}, h = q(() => a.props && a.props.value ? a.props.value : "id"), T = q(() => a.props && a.props.label ? a.props.label : "label"), ae = () => P(null, null, function* () {
|
|
246
246
|
var l, e;
|
|
247
247
|
if (!a.multiple) {
|
|
248
|
-
t.value = "", u.value = null,
|
|
248
|
+
t.value = "", u.value = null, s.value = "", x(!0), c.value && ((l = $.value) == null || l.focus()), yield V(), p("clear"), p("change", t.value);
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
|
-
t.value = [], u.value = [],
|
|
251
|
+
t.value = [], u.value = [], s.value = "", x(!0), yield V(), p("clear"), p("change", t.value), (e = $.value) == null || e.focus();
|
|
252
252
|
}), ce = (l) => P(null, null, function* () {
|
|
253
253
|
var n;
|
|
254
254
|
if (!a.multiple) {
|
|
@@ -263,19 +263,19 @@ const Ke = {
|
|
|
263
263
|
modelValue: t,
|
|
264
264
|
checkAllNodes: () => {
|
|
265
265
|
var l;
|
|
266
|
-
u.value =
|
|
266
|
+
u.value = i.value, t.value = u.value.map((e) => e[h.value]), p("change", t.value, u.value), (l = $.value) == null || l.focus();
|
|
267
267
|
},
|
|
268
268
|
clearCheaked: ae,
|
|
269
269
|
filterHandle: G,
|
|
270
270
|
loadeMore: x,
|
|
271
271
|
checkNode: u,
|
|
272
|
-
data:
|
|
273
|
-
filterText:
|
|
272
|
+
data: i,
|
|
273
|
+
filterText: s,
|
|
274
274
|
isFocused: c
|
|
275
275
|
}), we(() => {
|
|
276
276
|
delete window.clickOutSideList[B], Object.getOwnPropertySymbols(window.clickOutSideList).length || (delete window.clickOutSideList, window.removeEventListener("click", window.clickOutSideHandle));
|
|
277
277
|
}), ge(() => {
|
|
278
|
-
!a.lazy && x(!0), a.unuseremote && (
|
|
278
|
+
!a.lazy && x(!0), a.unuseremote && (i.value = a.options), A(), window.clickOutSideList ? window.clickOutSideList[B] = c : (window.clickOutSideList = {
|
|
279
279
|
[B]: c
|
|
280
280
|
}, window.clickOutSideHandle = function() {
|
|
281
281
|
Object.getOwnPropertySymbols(window.clickOutSideList).forEach((e) => {
|
|
@@ -283,8 +283,8 @@ const Ke = {
|
|
|
283
283
|
});
|
|
284
284
|
}, window.addEventListener("click", window.clickOutSideHandle));
|
|
285
285
|
}), (l, e) => {
|
|
286
|
-
const n = Y("el-tag"), r = Y("el-icon"),
|
|
287
|
-
return y(), R(
|
|
286
|
+
const n = Y("el-tag"), r = Y("el-icon"), z = Y("el-popover");
|
|
287
|
+
return y(), R(z, {
|
|
288
288
|
visible: c.value,
|
|
289
289
|
placement: "bottom-start",
|
|
290
290
|
width: `${o.popwidth || o.width}px`
|
|
@@ -300,33 +300,33 @@ const Ke = {
|
|
|
300
300
|
H("div", {
|
|
301
301
|
class: j(["select-more-wrapper", { "is-focused": c.value }])
|
|
302
302
|
}, [
|
|
303
|
-
o.multiple && ((w =
|
|
303
|
+
o.multiple && ((w = I.value) != null && w.length) ? (y(), b("div", Ie, [
|
|
304
304
|
O(n, {
|
|
305
305
|
class: "mr-[5px]",
|
|
306
306
|
type: "info",
|
|
307
307
|
closable: "",
|
|
308
|
-
onClose: e[0] || (e[0] = (g) => le(0,
|
|
308
|
+
onClose: e[0] || (e[0] = (g) => le(0, I.value[0]))
|
|
309
309
|
}, {
|
|
310
310
|
default: f(() => [
|
|
311
|
-
H("div", Te, I
|
|
311
|
+
H("div", Te, D(I.value[0]), 1)
|
|
312
312
|
]),
|
|
313
313
|
_: 1
|
|
314
314
|
}),
|
|
315
|
-
|
|
315
|
+
I.value.length > 1 ? (y(), R(He, {
|
|
316
316
|
key: 0,
|
|
317
317
|
width: `${o.popwidth}px`
|
|
318
318
|
}, {
|
|
319
319
|
reference: f(() => [
|
|
320
320
|
O(n, { type: "info" }, {
|
|
321
321
|
default: f(() => [
|
|
322
|
-
ne("+ " + I
|
|
322
|
+
ne("+ " + D(I.value.length - 1), 1)
|
|
323
323
|
]),
|
|
324
324
|
_: 1
|
|
325
325
|
})
|
|
326
326
|
]),
|
|
327
327
|
default: f(() => [
|
|
328
328
|
H("div", Ve, [
|
|
329
|
-
(y(!0), b(oe, null, xe(
|
|
329
|
+
(y(!0), b(oe, null, xe(I.value, (g, W) => (y(), b(oe, {
|
|
330
330
|
key: g[h.value]
|
|
331
331
|
}, [
|
|
332
332
|
W !== 0 ? (y(), R(n, {
|
|
@@ -336,7 +336,7 @@ const Ke = {
|
|
|
336
336
|
onClose: (Je) => le(W, g)
|
|
337
337
|
}, {
|
|
338
338
|
default: f(() => [
|
|
339
|
-
ne(
|
|
339
|
+
ne(D(g), 1)
|
|
340
340
|
]),
|
|
341
341
|
_: 2
|
|
342
342
|
}, 1032, ["onClose"])) : C("", !0)
|
|
@@ -351,7 +351,7 @@ const Ke = {
|
|
|
351
351
|
key: 0,
|
|
352
352
|
ref_key: "input",
|
|
353
353
|
ref: $,
|
|
354
|
-
"onUpdate:modelValue": e[1] || (e[1] = (g) =>
|
|
354
|
+
"onUpdate:modelValue": e[1] || (e[1] = (g) => s.value = g),
|
|
355
355
|
class: "w-full h-[90%]",
|
|
356
356
|
type: "text",
|
|
357
357
|
placeholder: o.placeholder,
|
|
@@ -360,25 +360,25 @@ const Ke = {
|
|
|
360
360
|
onClick: e[3] || (e[3] = E(() => {
|
|
361
361
|
}, ["stop"])),
|
|
362
362
|
onInput: e[4] || (e[4] = //@ts-ignore
|
|
363
|
-
(...g) =>
|
|
363
|
+
(...g) => K(G) && K(G)(...g))
|
|
364
364
|
}, null, 40, Be)), [
|
|
365
|
-
[be,
|
|
365
|
+
[be, s.value]
|
|
366
366
|
]) : (y(), b("div", {
|
|
367
367
|
key: 1,
|
|
368
368
|
class: j(["text-nowrap", { "text-[#999]": !L.value || L.value === o.placeholder }])
|
|
369
|
-
},
|
|
369
|
+
}, D(L.value || o.placeholder), 3))
|
|
370
370
|
])) : C("", !0),
|
|
371
371
|
!o.filterable && !o.multiple ? (y(), b("div", Pe, [
|
|
372
372
|
H("div", {
|
|
373
373
|
class: j(["text-nowrap", { "text-[#999]": !L.value || L.value === o.placeholder }])
|
|
374
|
-
},
|
|
374
|
+
}, D(L.value || o.placeholder), 3)
|
|
375
375
|
])) : C("", !0),
|
|
376
376
|
H("div", {
|
|
377
377
|
class: j(["select-more-arrow", { "is-focused": c.value }])
|
|
378
378
|
}, [
|
|
379
379
|
O(r, null, {
|
|
380
380
|
default: f(() => [
|
|
381
|
-
O(
|
|
381
|
+
O(K(Le))
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
})
|
|
@@ -390,7 +390,7 @@ const Ke = {
|
|
|
390
390
|
}, [
|
|
391
391
|
O(r, null, {
|
|
392
392
|
default: f(() => [
|
|
393
|
-
O(
|
|
393
|
+
O(K(Ne))
|
|
394
394
|
]),
|
|
395
395
|
_: 1
|
|
396
396
|
})
|
|
@@ -400,25 +400,25 @@ const Ke = {
|
|
|
400
400
|
];
|
|
401
401
|
}),
|
|
402
402
|
default: f(() => [
|
|
403
|
-
O(
|
|
403
|
+
O(K($e), {
|
|
404
404
|
ref_key: "DynamicScrollerRef",
|
|
405
|
-
ref:
|
|
405
|
+
ref: se,
|
|
406
406
|
class: "content-list",
|
|
407
407
|
style: { height: "200px" },
|
|
408
408
|
keyField: o.optionsKey || h.value,
|
|
409
409
|
"min-item-size": 40,
|
|
410
|
-
items:
|
|
411
|
-
onScroll:
|
|
410
|
+
items: i.value,
|
|
411
|
+
onScroll: ie
|
|
412
412
|
}, {
|
|
413
413
|
before: f(() => [
|
|
414
414
|
Z(l.$slots, "header", {
|
|
415
|
-
options:
|
|
415
|
+
options: i.value,
|
|
416
416
|
value: t.value,
|
|
417
417
|
nodes: u.value
|
|
418
418
|
}, void 0, !0)
|
|
419
419
|
]),
|
|
420
420
|
default: f(({ item: w, index: F, active: g }) => [
|
|
421
|
-
O(
|
|
421
|
+
O(K(ze), {
|
|
422
422
|
item: w,
|
|
423
423
|
active: g,
|
|
424
424
|
"data-index": F,
|
|
@@ -431,10 +431,10 @@ const Ke = {
|
|
|
431
431
|
H("div", {
|
|
432
432
|
class: j(["item", { active: Q(w) }])
|
|
433
433
|
}, [
|
|
434
|
-
H("div", null,
|
|
434
|
+
H("div", null, D(o.formate ? o.formate(w) : w[T.value]), 1),
|
|
435
435
|
Q(w) ? (y(), R(r, { key: 0 }, {
|
|
436
436
|
default: f(() => [
|
|
437
|
-
O(
|
|
437
|
+
O(K(Ce))
|
|
438
438
|
]),
|
|
439
439
|
_: 1
|
|
440
440
|
})) : C("", !0)
|
|
@@ -445,15 +445,15 @@ const Ke = {
|
|
|
445
445
|
}, 1032, ["item", "active", "data-index", "onClick"])
|
|
446
446
|
]),
|
|
447
447
|
after: f(() => [
|
|
448
|
-
k.value !== "isloadall" && !a.unuseremote ? (y(), b("div", Ee,
|
|
448
|
+
k.value !== "isloadall" && !a.unuseremote ? (y(), b("div", Ee, D(k.value === "loading" ? "加载中" : "等待加载"), 1)) : C("", !0)
|
|
449
449
|
]),
|
|
450
450
|
empty: f(() => [
|
|
451
|
-
(k.value === "isloadall" || o.unuseremote) && !
|
|
451
|
+
(k.value === "isloadall" || o.unuseremote) && !i.value.length ? (y(), b("div", Me, " 暂无可用数据 ")) : C("", !0)
|
|
452
452
|
]),
|
|
453
453
|
_: 3
|
|
454
454
|
}, 8, ["keyField", "items"]),
|
|
455
455
|
Z(l.$slots, "footer", {
|
|
456
|
-
options:
|
|
456
|
+
options: i.value,
|
|
457
457
|
value: t.value,
|
|
458
458
|
nodes: u.value
|
|
459
459
|
}, void 0, !0)
|
|
@@ -462,7 +462,7 @@ const Ke = {
|
|
|
462
462
|
}, 8, ["visible", "width"]);
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
}), Ze = /* @__PURE__ */
|
|
465
|
+
}), Ze = /* @__PURE__ */ De(Ae, [["__scopeId", "data-v-374d3fe2"]]);
|
|
466
466
|
export {
|
|
467
467
|
Ze as H
|
|
468
468
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, useSlots as p, ref as o, openBlock as h, createBlock as v, createSlots as _, withCtx as s, createElementVNode as c, renderSlot as a, toDisplayString as k, renderList as m, unref as S, normalizeProps as H, guardReactiveProps as x } from "vue";
|
|
2
|
-
import { H as A } from "./HSelect-
|
|
2
|
+
import { H as A } from "./HSelect-Drf6YBwO.js";
|
|
3
3
|
const C = { class: "px-[10px] py-[10px] bg-[#fff] border-b cursor-pointer" }, N = /* @__PURE__ */ u({
|
|
4
4
|
__name: "HSelectAll",
|
|
5
5
|
setup(b) {
|