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.
Files changed (67) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/README.md +13 -11
  3. package/dist/{CustomInputV2-DYEcbu5_.js → CustomInputV2-uARhbFc8.js} +12 -12
  4. package/dist/CustomInputV2.css +1 -1
  5. package/dist/DragResizable.css +1 -1
  6. package/dist/DragResizable.vue_vue_type_style_index_0_lang-CHv0gJmo.js +179 -0
  7. package/dist/FgCascader.css +1 -1
  8. package/dist/FgCascader.vue_vue_type_style_index_0_lang-BUZDDcVn.js +1656 -0
  9. package/dist/{HSelect-Bqz2yTMf.js → HSelect-Drf6YBwO.js} +69 -69
  10. 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
  11. package/dist/{HSelectSJ-BieRp2gG.js → HSelectSJ-D3GrXmvj.js} +104 -104
  12. package/dist/SelectTree-Dm5259kY.js +911 -0
  13. package/dist/SelectTree.css +1 -1
  14. package/dist/TextCopy-hOj-Wj2H.js +41 -0
  15. package/dist/TextCopy.css +1 -0
  16. package/dist/VirtualTable-BWugJiQ5.js +349 -0
  17. package/dist/VirtualTable.css +1 -1
  18. package/dist/components/VirtualTable/VirtualTable.vue.d.ts +3 -3
  19. package/dist/components/VirtualTable/index.d.ts +1 -0
  20. package/dist/components/VirtualTable/index.js +1 -1
  21. package/dist/components/cascader/cascader/ElCascader.vue.d.ts +3 -0
  22. package/dist/components/cascader/cascader/FgCascader.vue.d.ts +16 -4
  23. package/dist/components/cascader/cascader/cascader.d.ts +1 -0
  24. package/dist/components/cascader/index.js +1 -1
  25. package/dist/components/citySelect/demos/mockAddressTree.d.ts +8 -0
  26. package/dist/components/customInputV2/CustomInputV2.vue.d.ts +1 -1
  27. package/dist/components/customInputV2/index.js +1 -1
  28. package/dist/components/dragResizable/DragResizable.vue.d.ts +2 -0
  29. package/dist/components/dragResizable/index.js +1 -1
  30. package/dist/components/hSelect/demos/mockApi.d.ts +12 -0
  31. package/dist/components/hSelect/index.js +1 -1
  32. package/dist/components/hSelectAll/demos/mockApi.d.ts +10 -0
  33. package/dist/components/hSelectAll/index.js +1 -1
  34. package/dist/components/hSelectSJ/demos/mockApi.d.ts +11 -0
  35. package/dist/components/hSelectSJ/index.js +1 -1
  36. package/dist/components/index.d.ts +0 -2
  37. package/dist/components/index.js +42 -46
  38. package/dist/components/selectAddress/demos/mockAddressTree.d.ts +7 -0
  39. package/dist/components/selectTimePicker/SelectTimePicker.vue.d.ts +1 -1
  40. package/dist/components/selectTree/demos/treeData.d.ts +9 -0
  41. package/dist/components/selectTree/index.js +1 -1
  42. package/dist/components/textCopy/index.js +1 -1
  43. package/dist/index-BRcBDlVs.js +68 -0
  44. package/dist/index.css +1 -0
  45. package/dist/index.d.ts +4 -2
  46. package/dist/index.js +145 -149
  47. package/dist/vue-virtual-scroller.esm-CH-jx4ri.js +1051 -0
  48. package/package.json +8 -8
  49. package/dist/DragResizable.vue_vue_type_style_index_0_lang-DYL6TUPE.js +0 -167
  50. package/dist/FgCascader.vue_vue_type_style_index_0_lang-OnqaEAao.js +0 -1807
  51. package/dist/SelectTree-C7lBZnZH.js +0 -306
  52. package/dist/SortTransfer.css +0 -1
  53. package/dist/SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js +0 -153
  54. package/dist/TextCopy.vue_vue_type_script_setup_true_lang-DbhZGH_z.js +0 -29
  55. package/dist/TipInput-CIskitOV.js +0 -117
  56. package/dist/TipInput.css +0 -1
  57. package/dist/VirtualTable-BYTfwDC1.js +0 -353
  58. package/dist/components/sortTransfer/SortTransfer.vue.d.ts +0 -97
  59. package/dist/components/sortTransfer/index.d.ts +0 -1
  60. package/dist/components/sortTransfer/index.js +0 -4
  61. package/dist/components/tipInput/TipInput.vue.d.ts +0 -56
  62. package/dist/components/tipInput/index.d.ts +0 -1
  63. package/dist/components/tipInput/index.js +0 -4
  64. package/dist/debounce-BLrZUqsA.js +0 -84
  65. package/dist/index-BKzmtfeu.js +0 -72
  66. package/dist/isEqual-qYQTJBU6.js +0 -506
  67. package/dist/isObject-CO569sPG.js +0 -35
@@ -1,353 +0,0 @@
1
- import './VirtualTable.css';var he = Object.defineProperty, pe = Object.defineProperties;
2
- var fe = Object.getOwnPropertyDescriptors;
3
- var G = Object.getOwnPropertySymbols;
4
- var ve = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
5
- var J = (b, h, d) => h in b ? he(b, h, { enumerable: !0, configurable: !0, writable: !0, value: d }) : b[h] = d, _ = (b, h) => {
6
- for (var d in h || (h = {}))
7
- ve.call(h, d) && J(b, d, h[d]);
8
- if (G)
9
- for (var d of G(h))
10
- be.call(h, d) && J(b, d, h[d]);
11
- return b;
12
- }, g = (b, h) => pe(b, fe(h));
13
- var q = (b, h, d) => new Promise((S, l) => {
14
- var $ = (m) => {
15
- try {
16
- w(d.next(m));
17
- } catch (k) {
18
- l(k);
19
- }
20
- }, B = (m) => {
21
- try {
22
- w(d.throw(m));
23
- } catch (k) {
24
- l(k);
25
- }
26
- }, w = (m) => m.done ? S(m.value) : Promise.resolve(m.value).then($, B);
27
- w((d = d.apply(b, h)).next());
28
- });
29
- import { defineComponent as Q, ref as x, computed as X, watch as K, reactive as we, onMounted as ye, nextTick as me, resolveDirective as _e, withDirectives as ge, openBlock as xe, createBlock as Re, unref as Ce } from "vue";
30
- import { ElEmpty as Se, ElBacktop as ke, ElCheckbox as Y } from "element-plus";
31
- import { DynamicScroller as Ee, DynamicScrollerItem as Z } from "vue-virtual-scroller";
32
- import { d as We } from "./debounce-BLrZUqsA.js";
33
- import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
34
- const De = "_border_k5pxi_15", He = "_scroll_k5pxi_37", s = {
35
- "dynamic-scroller-ref": "_dynamic-scroller-ref_k5pxi_1",
36
- border: De,
37
- "virtual-table-row-td": "_virtual-table-row-td_k5pxi_18",
38
- scroll: He,
39
- "virtual-table-header": "_virtual-table-header_k5pxi_37",
40
- "virtual-table-row-th": "_virtual-table-row-th_k5pxi_40",
41
- "virtual-table-row": "_virtual-table-row_k5pxi_18",
42
- "virtual-table-row-tr": "_virtual-table-row-tr_k5pxi_43",
43
- "shadow-right": "_shadow-right_k5pxi_72",
44
- "shadow-left": "_shadow-left_k5pxi_85",
45
- "sort-wrapper": "_sort-wrapper_k5pxi_99",
46
- "scroll-item-class": "_scroll-item-class_k5pxi_170"
47
- }, ze = /* @__PURE__ */ Q({
48
- __name: "VirtualTable",
49
- props: {
50
- items: { default: () => [] },
51
- width: { default: "100%" },
52
- height: { default: 600 },
53
- rowKey: { default: "id" },
54
- minItemSize: { default: 20 },
55
- border: { type: Boolean, default: !0 },
56
- pageNo: { default: 1 },
57
- pageSize: {},
58
- noHeader: { type: Boolean },
59
- headerSlotRender: {},
60
- afterSlotRender: {},
61
- emptySlotRender: {},
62
- expandSlotRender: {},
63
- defaultSort: {},
64
- tableColumn: { default: () => [] },
65
- backTop: { type: Boolean, default: !0 },
66
- scroll: { type: Boolean, default: !0 },
67
- wrapClass: { default: "" },
68
- itemClass: { default: "" },
69
- cacheSelection: { type: Boolean, default: !1 },
70
- scrollHandle: { default: null },
71
- scrolldelay: { default: 10 },
72
- itemHandle: { type: Function, default: () => ({}) },
73
- rowClassName: { type: [Function, String], default: () => "" },
74
- rowStyle: { type: Function, default: () => ({}) },
75
- spanMethod: {},
76
- childrenRender: {},
77
- selectable: { type: Function, default: () => !1 }
78
- },
79
- emits: ["sort-change", "select", "select-all", "selection-change", "row-click"],
80
- setup(b, { expose: h, emit: d }) {
81
- const S = d, l = b, $ = x(!1), B = x(!0), w = x(), m = X(() => {
82
- const { width: e, height: t } = l;
83
- return {
84
- with: typeof e == "string" ? e : `${e}px`,
85
- height: typeof t == "string" ? t : `${t}px`
86
- };
87
- }), k = x();
88
- function f(e, t = 0) {
89
- if (!e)
90
- return 0;
91
- if (typeof e == "number")
92
- return Math.max(t, e);
93
- let r = 0;
94
- return e.endsWith("px") && (r = parseFloat(e.replace("px", ""))), e.endsWith("%") && (r = parseFloat(e.replace("%", "")) / 100 * k.value), Math.max(t, r);
95
- }
96
- const ee = () => l.tableColumn.reduce((e, t) => {
97
- const r = t.type === "select" ? f(t.width || 30, t.minWidth) : t.type === "number" ? f(t.width || 50, t.minWidth) : t.width === void 0 ? 0 : f(t.width, t.minWidth);
98
- return e + r;
99
- }, 0), U = (e, t, r = 1, o = 1, u, a) => {
100
- let n = u || (e.type === "select" ? f(e.width || 30, e.minWidth) : e.type === "number" ? f(e.width || 50, e.minWidth) : e.width === void 0 ? "unset" : f(e.width, e.minWidth));
101
- if (o !== 1)
102
- if (o === 0)
103
- n += "0px!important";
104
- else {
105
- for (let i = t + 1; i < t + o; i++)
106
- n += l.tableColumn[i].type === "select" ? f(l.tableColumn[i].width || 30, l.tableColumn[i].minWidth) : l.tableColumn[i].type === "number" ? f(l.tableColumn[i].width || 50, l.tableColumn[i].minWidth) : l.tableColumn[i].width === void 0 ? 0 : f(l.tableColumn[i].width, l.tableColumn[i].minWidth);
107
- n += "px!important";
108
- }
109
- let W = 0, C = 0;
110
- e.fixed === "left" && t !== 0 && (W = l.tableColumn.slice(0, t).reduce((i, c) => i + (c.fixed === "left" ? c.type === "select" ? f(c.width || 30, c.minWidth) : c.type === "number" ? f(c.width || 50, c.minWidth) : f(c.width, c.minWidth) : 0), 0)), e.fixed === "right" && t !== l.tableColumn.length - 1 && (C = l.tableColumn.slice(t + 1, l.tableColumn.length).reduce((i, c) => i + (c.fixed === "right" ? c.type === "select" ? f(c.width || 30, c.minWidth) : c.type === "number" ? f(c.width || 50, c.minWidth) : f(c.width, c.minWidth) : 0), 0));
111
- const D = {
112
- flex: n === "unset" ? 1 : "unset",
113
- minWidth: e.minWidth ? `${e.minWidth}px` : "unset",
114
- width: typeof n == "string" ? n : `${n}px`,
115
- height: a || (r === 1 ? "unset" : `${r * l.minItemSize}px`),
116
- position: e.fixed ? "sticky" : "relative",
117
- left: e.fixed === "left" ? `${W}px` : "unset",
118
- right: e.fixed === "right" ? `${C}px` : "unset",
119
- justifyContent: e.align === "left" ? "flex-start" : e.align === "right" ? "flex-end" : "center",
120
- zIndex: e.fixed === "left" ? 3 : e.fixed === "right" ? l.tableColumn.length - t + 1 : 1
121
- };
122
- return e.customStyle && Object.assign(D, e.customStyle), D;
123
- }, R = (e) => e.fixed === "right" && !$.value ? s["shadow-right"] : e.fixed === "left" && !B.value ? s["shadow-left"] : "", le = We((e) => {
124
- var t;
125
- $.value = e.target.clientWidth + e.target.scrollLeft + 5 >= e.target.scrollWidth, B.value = e.target.scrollLeft === 0, (t = l.scrollHandle) == null || t.call(l, e);
126
- }, l.scrolldelay), I = x(!1), v = x([]), H = x([]), te = (e, t) => {
127
- S("select-all", z()), S("selection-change", z());
128
- }, V = X(() => {
129
- const e = p.value.filter((t) => !t.__ischildren);
130
- return {
131
- length: p.value.length,
132
- ml: e.length,
133
- cl: p.value.length - e.length
134
- };
135
- }), re = () => {
136
- I.value = !1, v.value = [], p.value.forEach((e) => {
137
- e.rowcheck = !1;
138
- });
139
- }, z = () => v.value, A = (e, t) => {
140
- const r = p.value.find((a) => a[l.rowKey] === e);
141
- if (!r) {
142
- console.log("当前无该条数据");
143
- return;
144
- }
145
- r.rowcheck = t;
146
- const o = [], u = [];
147
- p.value.forEach((a) => {
148
- a.disabled && u.push(a), a.rowcheck && !(a != null && a.disabled) && o.push(a);
149
- }), v.value = o, H.value = u, I.value = v.value.length + H.value.length === V.value.ml && !!v.value.length;
150
- }, p = x([]);
151
- K(
152
- () => l.items,
153
- () => {
154
- if (E = 0, l.cacheSelection) {
155
- const e = [], t = [];
156
- p.value = l.items.map((r) => {
157
- r.disabled && t.push(r);
158
- const o = v.value.find((n) => n[l.rowKey] === r[l.rowKey]), u = l.tableColumn.find((n) => n.type === "select"), a = u && u.selectable && typeof u.selectable == "function" ? u.selectable(r) : !0;
159
- return o && e.push(g(_({}, r), { rowcheck: !!o, disabled: !a })), r.__ischildren ? g(_({}, r), { __index: E, rowcheck: !!o, disabled: !a }) : g(_({}, r), { __index: E++, rowcheck: !!o, disabled: !a });
160
- }), v.value = e, H.value = t, I.value = v.value.length + H.value.length === V.value.ml && !!v.value.length, S("selection-change", z());
161
- return;
162
- }
163
- I.value = !1, v.value = [], p.value = l.items.map((e) => {
164
- const t = l.tableColumn.find((o) => o.type === "select"), r = t && t.selectable && typeof t.selectable == "function" ? t.selectable(e) : !0;
165
- return e.__ischildren ? g(_({}, e), { __index: E, rowcheck: !1, disabled: !r }) : g(_({}, e), { __index: E++, rowcheck: !1, disabled: !r });
166
- });
167
- }
168
- );
169
- let L = !1;
170
- K(
171
- () => l.pageNo,
172
- () => {
173
- L = !0;
174
- }
175
- ), K(
176
- () => p.value,
177
- () => {
178
- var e;
179
- L && ((e = w.value) == null || e.scrollToItem(0)), L = !1;
180
- }
181
- );
182
- const y = x({ prop: null, order: null }), P = (e, t) => {
183
- y.value = y.value.prop === e && y.value.order === t ? { prop: null, order: null } : { prop: e, order: t }, S("sort-change", y.value);
184
- }, ae = () => {
185
- const e = (r, o) => {
186
- const u = U(r, o);
187
- return r.cellHeaderRender ? /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(r), "virtual-table-row-td custom", r.customClass], style: u }, typeof r.cellHeaderRender == "function" ? r.cellHeaderRender({
188
- column: r,
189
- columns: l.tableColumn,
190
- columnIndex: o
191
- }) : r.cellHeaderRender) : r.type === "number" ? /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(r), "virtual-table-row-td", r.customClass], style: u }, "序号") : r.type === "select" ? /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(r), "virtual-table-row-td", r.customClass], style: u }, /* @__PURE__ */ React.createElement(
192
- Y,
193
- {
194
- indeterminate: v.value.length > 0 && v.value.length + H.value.length !== V.value.ml,
195
- modelValue: I.value,
196
- onChange: (a) => {
197
- a ? v.value = p.value.filter((n) => !n.__ischildren).filter((n) => !(n != null && n.disabled)).map((n) => (n.rowcheck = !0, n)) : (v.value = [], p.value.forEach((n) => {
198
- n.rowcheck = !1;
199
- })), I.value = a === !0, te();
200
- }
201
- }
202
- )) : /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(r), "virtual-table-row-td", r.customClass], style: u }, r.title, r.sortable && /* @__PURE__ */ React.createElement("div", { class: [s["sort-wrapper"]] }, /* @__PURE__ */ React.createElement(
203
- "i",
204
- {
205
- class: {
206
- "sort-asc-active": y.value.prop === r.prop && y.value.order === "ascending"
207
- },
208
- onClick: () => P(r.prop, "ascending")
209
- }
210
- ), /* @__PURE__ */ React.createElement(
211
- "i",
212
- {
213
- class: {
214
- "sort-desc-active": y.value.prop === r.prop && y.value.order === "descending"
215
- },
216
- onClick: () => P(r.prop, "descending")
217
- }
218
- )));
219
- }, t = l.tableColumn.map((r, o) => e(r, o));
220
- return /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-header"], "virtual-table-header"] }, /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-th"], "virtual-table-row-th"] }, t), l.headerSlotRender && l.headerSlotRender());
221
- }, ne = ({ item: e, index: t, active: r }) => {
222
- if (e.__ischildren === !0)
223
- return /* @__PURE__ */ React.createElement(Z, { item: e, index: t, active: r, onClick: () => l.itemHandle(e, t) }, l.childrenRender && l.childrenRender(e));
224
- const o = (a, n, W) => {
225
- let C = 1, D = 1, i = null, c = null;
226
- if (l.spanMethod) {
227
- const { rowspan: F = 1, colspan: ue = 1, rowwidth: ie, colheight: de, _rowspan: j } = l.spanMethod({ row: e, column: a, rowIndex: n, columnIndex: W });
228
- C = F, D = ue, i = ie || null, c = de || null, T.visibleStartIndex === n && j && j > 1 && (C = j);
229
- }
230
- const M = U(a, W, C, D, i, c);
231
- if (!D)
232
- return null;
233
- if (!C)
234
- return /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(a), "virtual-table-row-td", a.customClass], style: g(_({}, M), { borderBottom: "none" }) });
235
- const O = C > 1 ? "virtual-table-priority-row-td" : "";
236
- if (a.type === "number") {
237
- const F = l.pageNo && l.pageSize ? (l.pageNo - 1) * l.pageSize + n + 1 : n + 1;
238
- return /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(a), "virtual-table-row-td", O, a.customClass], style: M }, F);
239
- }
240
- if (a.type === "select")
241
- return /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-td"], R(a), "virtual-table-row-td", O, a.customClass], style: M }, /* @__PURE__ */ React.createElement("div", { class: "relative cursor-pointer" }, /* @__PURE__ */ React.createElement(Y, { modelValue: e.rowcheck, disabled: e.disabled }), /* @__PURE__ */ React.createElement("span", { class: "absolute left-0 right-0 top-0 bottom-0 z-[2]" })));
242
- const se = () => {
243
- if (a.cellRender)
244
- try {
245
- return a.cellRender(e, n, p.value);
246
- } catch (F) {
247
- return "";
248
- }
249
- return a.prop ? /* @__PURE__ */ React.createElement("span", { class: "px-[10px] py-[5px]", "data-column-index": W, "data-row-index": n }, e[a.prop]) : "";
250
- };
251
- return /* @__PURE__ */ React.createElement(
252
- "div",
253
- {
254
- "data-column-index": W,
255
- "data-row-index": n,
256
- class: [s["virtual-table-row-td"], R(a), O, "virtual-table-row-td", a.customClass],
257
- style: M
258
- },
259
- se()
260
- );
261
- }, u = l.tableColumn.map((a, n) => o(a, t, n));
262
- return /* @__PURE__ */ React.createElement(
263
- Z,
264
- {
265
- item: e,
266
- index: t,
267
- active: r,
268
- onClick: () => {
269
- l.itemHandle(e, t), e != null && e.disabled || (A(e[l.rowKey], !e.rowcheck), S("selection-change", z()));
270
- }
271
- },
272
- /* @__PURE__ */ React.createElement(
273
- "div",
274
- {
275
- class: [s["virtual-table-row"], "virtual-table-row", "relative", typeof l.rowClassName == "string" ? l.rowClassName : l.rowClassName({ row: e, rowIndex: t })],
276
- style: l.rowStyle({ row: e, rowIndex: t })
277
- },
278
- /* @__PURE__ */ React.createElement("div", { class: [s["virtual-table-row-tr"], "virtual-table-row-tr"] }, u),
279
- l.expandSlotRender && /* @__PURE__ */ React.createElement("div", { style: { width: l.scroll ? ee() + "px" : "unset" }, class: [s["virtual-table-row-expand"], "virtual-table-row-expand"] }, l.expandSlotRender(e, t))
280
- )
281
- );
282
- }, T = we({
283
- startIndex: null,
284
- endIndex: null,
285
- visibleStartIndex: null,
286
- visibleEndIndex: null
287
- }), oe = Q(() => () => /* @__PURE__ */ React.createElement("div", { style: { position: "relative", background: "#fff" } }, /* @__PURE__ */ React.createElement(
288
- Ee,
289
- {
290
- ref: w,
291
- listClass: l.wrapClass,
292
- keyField: l.rowKey,
293
- itemClass: `${l.scroll ? s["scroll-item-class"] : ""} ${l.itemClass}`,
294
- class: ["dynamic-scroller-ref", s["dynamic-scroller-ref"], l.border ? s.border : "", l.scroll ? s.scroll : ""],
295
- items: p.value,
296
- style: m.value,
297
- minItemSize: l.minItemSize,
298
- onScrollCapture: (e) => le(e),
299
- emitUpdate: !!l.spanMethod,
300
- onUpdate: (e, t, r, o) => {
301
- T.startIndex = e, T.endIndex = t, T.visibleStartIndex = r, T.visibleEndIndex = o;
302
- }
303
- },
304
- {
305
- before: () => l.noHeader ? null : ae(),
306
- default: ({ item: e, active: t }) => ne({ item: e, index: e.__index, active: t }),
307
- empty: () => p.value.length ? /* @__PURE__ */ React.createElement("div", null) : l.emptySlotRender ? l.emptySlotRender() : /* @__PURE__ */ React.createElement(Se, { description: "数据为空" }),
308
- after: () => l.afterSlotRender ? l.afterSlotRender() : null
309
- }
310
- ), l.backTop && /* @__PURE__ */ React.createElement(ke, { target: ".dynamic-scroller-ref", right: 48, bottom: 112, onClick: () => ce() }))), ce = () => {
311
- var e, t;
312
- (e = w.value) == null || e.scrollToItem(0);
313
- try {
314
- const r = document.querySelector(".business-scroll>.el-scrollbar__wrap"), o = document.querySelector(".factory-scroll>.el-scrollbar__wrap");
315
- (t = r || o) == null || t.scrollTo({ top: 0, behavior: "smooth" });
316
- } catch (r) {
317
- }
318
- };
319
- K(
320
- () => l.defaultSort,
321
- () => {
322
- l.defaultSort && (y.value = l.defaultSort);
323
- }
324
- );
325
- let E = 0;
326
- ye(() => q(null, null, function* () {
327
- l.defaultSort && (y.value = l.defaultSort), p.value = l.items.map((t) => {
328
- const r = l.tableColumn.find((u) => u.type === "select"), o = r && r.selectable && typeof r.selectable == "function" ? r.selectable(t) : !0;
329
- return t.__ischildren ? g(_({}, t), { __index: E, rowcheck: !1, disabled: !o }) : g(_({}, t), { __index: E++, rowcheck: !1, disabled: !o });
330
- }), k.value = N().offsetWidth, new ResizeObserver(() => q(null, null, function* () {
331
- yield me(), k.value = N().offsetWidth;
332
- })).observe(N());
333
- }));
334
- const N = () => w.value ? w.value.$el : {};
335
- return h({
336
- clearSelection: re,
337
- getSelection: z,
338
- setSelection: A,
339
- getScrollEl: N,
340
- scrollToItem: (e) => {
341
- e < 0 || e > p.value.length - 1 || w.value.scrollToItem(e);
342
- }
343
- }), (e, t) => {
344
- const r = _e("horizontal-scroll");
345
- return ge((xe(), Re(Ce(oe), null, null, 512)), [
346
- [r, "VTable"]
347
- ]);
348
- };
349
- }
350
- }), Ve = /* @__PURE__ */ Ie(ze, [["__scopeId", "data-v-ece81034"]]);
351
- export {
352
- Ve as V
353
- };
@@ -1,97 +0,0 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- desc?(_: {}): any;
5
- };
6
- refs: {};
7
- rootEl: any;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
- show: {
12
- type: BooleanConstructor;
13
- default: () => boolean;
14
- };
15
- title: {
16
- type: StringConstructor;
17
- default: () => string;
18
- };
19
- label1: {
20
- type: StringConstructor;
21
- default: () => string;
22
- };
23
- label2: {
24
- type: StringConstructor;
25
- default: () => string;
26
- };
27
- sortList: {
28
- type: {
29
- (arrayLength: number): any[];
30
- (...items: any[]): any[];
31
- new (arrayLength: number): any[];
32
- new (...items: any[]): any[];
33
- isArray(arg: any): arg is any[];
34
- readonly prototype: any[];
35
- from<T>(arrayLike: ArrayLike<T>): T[];
36
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
37
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
38
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
39
- of<T>(...items: T[]): T[];
40
- readonly [Symbol.species]: ArrayConstructor;
41
- };
42
- default: () => any[];
43
- };
44
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
- done: (...args: any[]) => void;
46
- close: (...args: any[]) => void;
47
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
48
- show: {
49
- type: BooleanConstructor;
50
- default: () => boolean;
51
- };
52
- title: {
53
- type: StringConstructor;
54
- default: () => string;
55
- };
56
- label1: {
57
- type: StringConstructor;
58
- default: () => string;
59
- };
60
- label2: {
61
- type: StringConstructor;
62
- default: () => string;
63
- };
64
- sortList: {
65
- type: {
66
- (arrayLength: number): any[];
67
- (...items: any[]): any[];
68
- new (arrayLength: number): any[];
69
- new (...items: any[]): any[];
70
- isArray(arg: any): arg is any[];
71
- readonly prototype: any[];
72
- from<T>(arrayLike: ArrayLike<T>): T[];
73
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
74
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
75
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
76
- of<T>(...items: T[]): T[];
77
- readonly [Symbol.species]: ArrayConstructor;
78
- };
79
- default: () => any[];
80
- };
81
- }>> & Readonly<{
82
- onDone?: (...args: any[]) => any;
83
- onClose?: (...args: any[]) => any;
84
- }>, {
85
- title: string;
86
- show: boolean;
87
- sortList: any[];
88
- label1: string;
89
- label2: string;
90
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
91
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
92
- export default _default;
93
- type __VLS_WithTemplateSlots<T, S> = T & {
94
- new (): {
95
- $slots: S;
96
- };
97
- };
@@ -1 +0,0 @@
1
- export { default as FgSortTransfer } from './SortTransfer.vue';
@@ -1,4 +0,0 @@
1
- import { _ as a } from "../../SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js";
2
- export {
3
- a as FgSortTransfer
4
- };
@@ -1,56 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- placeholder: {
3
- type: StringConstructor;
4
- default: () => string;
5
- };
6
- value: {
7
- type: StringConstructor;
8
- default: () => string;
9
- };
10
- type: {
11
- type: StringConstructor;
12
- default: () => string;
13
- };
14
- errorTip: {
15
- type: StringConstructor;
16
- default: () => string;
17
- };
18
- maxlength: {
19
- type: NumberConstructor;
20
- default: () => number;
21
- };
22
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
- "update:value": (...args: any[]) => void;
24
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
- placeholder: {
26
- type: StringConstructor;
27
- default: () => string;
28
- };
29
- value: {
30
- type: StringConstructor;
31
- default: () => string;
32
- };
33
- type: {
34
- type: StringConstructor;
35
- default: () => string;
36
- };
37
- errorTip: {
38
- type: StringConstructor;
39
- default: () => string;
40
- };
41
- maxlength: {
42
- type: NumberConstructor;
43
- default: () => number;
44
- };
45
- }>> & Readonly<{
46
- "onUpdate:value"?: (...args: any[]) => any;
47
- }>, {
48
- type: string;
49
- value: string;
50
- placeholder: string;
51
- maxlength: number;
52
- errorTip: string;
53
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
54
- inputRef: HTMLInputElement;
55
- }, HTMLElement>;
56
- export default _default;
@@ -1 +0,0 @@
1
- export { default as FgTipInput } from './TipInput.vue';
@@ -1,4 +0,0 @@
1
- import { T as r } from "../../TipInput-CIskitOV.js";
2
- export {
3
- r as FgTipInput
4
- };
@@ -1,84 +0,0 @@
1
- import { i as C, b as M, a as I, r as N } from "./isObject-CO569sPG.js";
2
- var j = "[object Symbol]";
3
- function B(e) {
4
- return typeof e == "symbol" || C(e) && M(e) == j;
5
- }
6
- var R = /\s/;
7
- function $(e) {
8
- for (var r = e.length; r-- && R.test(e.charAt(r)); )
9
- ;
10
- return r;
11
- }
12
- var F = /^\s+/;
13
- function _(e) {
14
- return e && e.slice(0, $(e) + 1).replace(F, "");
15
- }
16
- var k = NaN, D = /^[-+]0x[0-9a-f]+$/i, G = /^0b[01]+$/i, H = /^0o[0-7]+$/i, P = parseInt;
17
- function S(e) {
18
- if (typeof e == "number")
19
- return e;
20
- if (B(e))
21
- return k;
22
- if (I(e)) {
23
- var r = typeof e.valueOf == "function" ? e.valueOf() : e;
24
- e = I(r) ? r + "" : r;
25
- }
26
- if (typeof e != "string")
27
- return e === 0 ? e : +e;
28
- e = _(e);
29
- var t = G.test(e);
30
- return t || H.test(e) ? P(e.slice(2), t ? 2 : 8) : D.test(e) ? k : +e;
31
- }
32
- var y = function() {
33
- return N.Date.now();
34
- }, U = "Expected a function", X = Math.max, q = Math.min;
35
- function J(e, r, t) {
36
- var u, o, l, s, i, f, c = 0, h = !1, d = !1, T = !0;
37
- if (typeof e != "function")
38
- throw new TypeError(U);
39
- r = S(r) || 0, I(t) && (h = !!t.leading, d = "maxWait" in t, l = d ? X(S(t.maxWait) || 0, r) : l, T = "trailing" in t ? !!t.trailing : T);
40
- function b(n) {
41
- var a = u, m = o;
42
- return u = o = void 0, c = n, s = e.apply(m, a), s;
43
- }
44
- function O(n) {
45
- return c = n, i = setTimeout(g, r), h ? b(n) : s;
46
- }
47
- function W(n) {
48
- var a = n - f, m = n - c, E = r - a;
49
- return d ? q(E, l - m) : E;
50
- }
51
- function p(n) {
52
- var a = n - f, m = n - c;
53
- return f === void 0 || a >= r || a < 0 || d && m >= l;
54
- }
55
- function g() {
56
- var n = y();
57
- if (p(n))
58
- return v(n);
59
- i = setTimeout(g, W(n));
60
- }
61
- function v(n) {
62
- return i = void 0, T && u ? b(n) : (u = o = void 0, s);
63
- }
64
- function L() {
65
- i !== void 0 && clearTimeout(i), c = 0, u = f = o = i = void 0;
66
- }
67
- function A() {
68
- return i === void 0 ? s : v(y());
69
- }
70
- function x() {
71
- var n = y(), a = p(n);
72
- if (u = arguments, o = this, f = n, a) {
73
- if (i === void 0)
74
- return O(f);
75
- if (d)
76
- return clearTimeout(i), i = setTimeout(g, r), b(f);
77
- }
78
- return i === void 0 && (i = setTimeout(g, r)), s;
79
- }
80
- return x.cancel = L, x.flush = A, x;
81
- }
82
- export {
83
- J as d
84
- };
@@ -1,72 +0,0 @@
1
- import { _ as o } from "./ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js";
2
- import { _ as r } from "./FgCascader.vue_vue_type_style_index_0_lang-OnqaEAao.js";
3
- import { _ as m } from "./CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js";
4
- import { _ as t } from "./DragResizable.vue_vue_type_style_index_0_lang-DYL6TUPE.js";
5
- import { _ as e } from "./HSelectAll.vue_vue_type_script_setup_true_lang-C8i6LF_k.js";
6
- import { _ as a } from "./IdentifyAddress.vue_vue_type_script_setup_true_lang-BJheMI1q.js";
7
- import { _ as i } from "./ImageLoupe.vue_vue_type_script_setup_true_lang-BlX4VbRi.js";
8
- import { _ as s } from "./LazyComponent.vue_vue_type_script_setup_true_lang-vNk68D8E.js";
9
- import { _ as p } from "./LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js";
10
- import { _ as f } from "./NoRender.vue_vue_type_script_setup_true_lang-Do36nSsV.js";
11
- import { _ } from "./SelectAll.vue_vue_type_script_setup_true_lang-BC3q2U8f.js";
12
- import { _ as n } from "./SelectAll2.vue_vue_type_script_setup_true_lang-CaET5eli.js";
13
- import { _ as g } from "./SelectCustomAll.vue_vue_type_style_index_0_lang-_wCRO217.js";
14
- import { _ as c } from "./SelectTimePicker.vue_vue_type_script_setup_true_lang-Bj0KMOKv.js";
15
- import { _ as l } from "./SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js";
16
- import { _ as F } from "./TextCopy.vue_vue_type_script_setup_true_lang-DbhZGH_z.js";
17
- import { _ as S } from "./TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-aZbEQmbM.js";
18
- import { B as u } from "./ButtonGroup-C0yZEkxK.js";
19
- import { C as T } from "./ContentTitle-mqrusLjx.js";
20
- import { C as $ } from "./CustomInputV2-DYEcbu5_.js";
21
- import { C as d } from "./CustomMultipleInput-DDaqoHVU.js";
22
- import { D as C } from "./DragSort-CfDeFAIG.js";
23
- import { E as I } from "./ErrorImage-CTP_5sal.js";
24
- import { H as y } from "./HSelect-Bqz2yTMf.js";
25
- import { H as M } from "./HSelectSJ-BieRp2gG.js";
26
- import { L as b } from "./LoadingBtn-BhbhNboo.js";
27
- import { M as A } from "./MInput-CpoW17Wh.js";
28
- import { M as H } from "./MyTable-DmwyEVJb.js";
29
- import { S as L } from "./SelectAddress-B4oK5erq.js";
30
- import { S as v } from "./SelectTree-C7lBZnZH.js";
31
- import { S as B } from "./SvgIcon-C2ah8E0Z.js";
32
- import { T as z } from "./TipInput-CIskitOV.js";
33
- import { V as D } from "./VirtualTable-BYTfwDC1.js";
34
- const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
- __proto__: null,
36
- FgArgHover: o,
37
- FgButtonGroup: u,
38
- FgCascader: r,
39
- FgCitySelect: m,
40
- FgContentTitle: T,
41
- FgCustomInputV2: $,
42
- FgCustomMultipleInput: d,
43
- FgDragResizable: t,
44
- FgDragSort: C,
45
- FgErrorImage: I,
46
- FgHSelect: y,
47
- FgHSelectAll: e,
48
- FgHSelectSJ: M,
49
- FgIdentifyAddress: a,
50
- FgImageLoupe: i,
51
- FgLazyComponent: s,
52
- FgLazyPopover: p,
53
- FgLoadingBtn: b,
54
- FgMInput: A,
55
- FgMyTable: H,
56
- FgNoRender: f,
57
- FgSelectAddress: L,
58
- FgSelectAll: _,
59
- FgSelectAll2: n,
60
- FgSelectCustomAll: g,
61
- FgSelectTimePicker: c,
62
- FgSelectTree: v,
63
- FgSortTransfer: l,
64
- FgSvgIcon: B,
65
- FgTextCopy: F,
66
- FgTextEllipsisTooltip: S,
67
- FgTipInput: z,
68
- VirtualTable: D
69
- }, Symbol.toStringTag, { value: "Module" }));
70
- export {
71
- go as c
72
- };