@amaoaaaaa/search-table 0.1.1 → 0.1.3
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/ProTable/index.vue.d.ts +5 -3
- package/dist/SearchTable/index.d.ts +2 -0
- package/dist/SearchTable/index.vue.d.ts +4 -4
- package/dist/index.d.ts +2 -6
- package/dist/search-table.js +122 -130
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -558,7 +558,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
558
558
|
e: (element?: string) => string;
|
|
559
559
|
m: (modifier?: string) => string;
|
|
560
560
|
be: (blockSuffix?: string, element?: string) => string;
|
|
561
|
-
em: (element?: string, modifier
|
|
561
|
+
em: (element?: string, modifier
|
|
562
|
+
/** @type { [typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, ] } */ ? /** @type { [typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, ] } */: string) => string;
|
|
562
563
|
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
563
564
|
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
564
565
|
is: {
|
|
@@ -653,7 +654,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
653
654
|
indexWidth: string | number;
|
|
654
655
|
loading: boolean;
|
|
655
656
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
656
|
-
|
|
657
|
+
elTableRef: {
|
|
657
658
|
ns: {
|
|
658
659
|
namespace: import('vue').ComputedRef<string>;
|
|
659
660
|
b: (blockSuffix?: string) => string;
|
|
@@ -1206,7 +1207,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
1206
1207
|
e: (element?: string) => string;
|
|
1207
1208
|
m: (modifier?: string) => string;
|
|
1208
1209
|
be: (blockSuffix?: string, element?: string) => string;
|
|
1209
|
-
em: (element?: string, modifier
|
|
1210
|
+
em: (element?: string, modifier
|
|
1211
|
+
/** @type { [typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, ] } */ ? /** @type { [typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, typeof __VLS_components.ElRadioGroup, typeof __VLS_components.elRadioGroup, ] } */: string) => string;
|
|
1210
1212
|
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
1211
1213
|
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
1212
1214
|
is: {
|
|
@@ -19,7 +19,7 @@ declare function __VLS_template(): {
|
|
|
19
19
|
btns?(_: {}): any;
|
|
20
20
|
};
|
|
21
21
|
refs: {
|
|
22
|
-
|
|
22
|
+
proTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
23
23
|
filterData?: Record<string, any>;
|
|
24
24
|
} & {
|
|
25
25
|
data: any[];
|
|
@@ -679,7 +679,7 @@ declare function __VLS_template(): {
|
|
|
679
679
|
indexWidth: string | number;
|
|
680
680
|
loading: boolean;
|
|
681
681
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
682
|
-
|
|
682
|
+
elTableRef: {
|
|
683
683
|
ns: {
|
|
684
684
|
namespace: import('vue').ComputedRef<string>;
|
|
685
685
|
b: (blockSuffix?: string) => string;
|
|
@@ -2008,7 +2008,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
2008
2008
|
showSearch: boolean;
|
|
2009
2009
|
searchInputPlaceholder: string;
|
|
2010
2010
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
2011
|
-
|
|
2011
|
+
proTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2012
2012
|
filterData?: Record<string, any>;
|
|
2013
2013
|
} & {
|
|
2014
2014
|
data: any[];
|
|
@@ -2668,7 +2668,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
2668
2668
|
indexWidth: string | number;
|
|
2669
2669
|
loading: boolean;
|
|
2670
2670
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
2671
|
-
|
|
2671
|
+
elTableRef: {
|
|
2672
2672
|
ns: {
|
|
2673
2673
|
namespace: import('vue').ComputedRef<string>;
|
|
2674
2674
|
b: (blockSuffix?: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,5 @@ export { default as SearchTable } from './SearchTable/index.vue';
|
|
|
2
2
|
export { default as ProTable } from './ProTable/index.vue';
|
|
3
3
|
export type { ProTableInstance } from './ProTable';
|
|
4
4
|
export type { SearchTableProps, SearchTableFetchFn, PageParams, PageResp, } from './SearchTable/types';
|
|
5
|
-
export type {
|
|
6
|
-
export {
|
|
7
|
-
export { useTableSort } from './SearchTable/useTableSort';
|
|
8
|
-
export type { SortState, UseTableSortOption } from './SearchTable/useTableSort';
|
|
9
|
-
export { useDelayedRef } from './hooks/useDelayedRef';
|
|
10
|
-
export { parseErrorReason } from './utils/parseErrorReason';
|
|
5
|
+
export type { SearchTableInstance } from './SearchTable';
|
|
6
|
+
export type { ProTableProps, ProTableColumn, ProTableAction, TableRow, FilterOption, FilterType, ActionButtonVisibility, ApplyFilterPayload, CellEditPayload, ProTableColumn as SearchTableColumn, ProTableAction as SearchTableAction, } from './ProTable/types';
|
package/dist/search-table.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Ve = Object.defineProperty;
|
|
2
2
|
var $e = (l, t, f) => t in l ? Ve(l, t, { enumerable: !0, configurable: !0, writable: !0, value: f }) : l[t] = f;
|
|
3
3
|
var re = (l, t, f) => $e(l, typeof t != "symbol" ? t + "" : t, f);
|
|
4
|
-
import { defineComponent as me, computed as te, isVNode as Be, openBlock as s, createBlock as C, resolveDynamicComponent as ze, createElementBlock as
|
|
5
|
-
import { ElLoading as
|
|
6
|
-
import { isFunction as A, isBoolean as
|
|
4
|
+
import { defineComponent as me, computed as te, isVNode as Be, openBlock as s, createBlock as C, resolveDynamicComponent as ze, createElementBlock as w, markRaw as G, createElementVNode as R, useModel as Pe, useTemplateRef as ke, ref as z, withDirectives as Z, createVNode as E, unref as n, withCtx as x, createCommentVNode as H, createTextVNode as $, toDisplayString as O, Fragment as U, renderList as ee, mergeProps as fe, createSlots as He, isRef as Se, normalizeClass as De, toValue as ye, withModifiers as oe, withKeys as ve, normalizeStyle as ge, mergeModels as be, reactive as he, nextTick as le, toRef as Fe, watch as Ce, onMounted as Me, onUnmounted as Ke, renderSlot as ue } from "vue";
|
|
5
|
+
import { ElLoading as _e, ElTable as Le, ElTableColumn as de, ElPopover as Ae, ElScrollbar as xe, ElRadioGroup as Oe, ElRadio as Ue, ElCheckboxGroup as Ne, ElCheckbox as je, ElDatePicker as We, ElButton as F, ElInput as Ee, ElPopconfirm as Ge, ElText as Ie, ElTooltip as qe, ElPagination as Ye, ElMessage as Je } from "element-plus";
|
|
6
|
+
import { isFunction as A, isBoolean as we, cloneDeep as I, isString as Qe, keys as pe, merge as Xe, isEqual as Ze, sortBy as et, uniq as tt, pickBy as lt, countBy as nt } from "lodash-es";
|
|
7
7
|
import { vTextEllipsis as ce } from "@amaoaaaaa/v-text-ellipsis";
|
|
8
8
|
import { isCancel as Te } from "axios";
|
|
9
9
|
const at = ["innerHTML"], it = /* @__PURE__ */ me({
|
|
@@ -20,7 +20,7 @@ const at = ["innerHTML"], it = /* @__PURE__ */ me({
|
|
|
20
20
|
const d = t.col.prop ? t.row[t.col.prop] : void 0;
|
|
21
21
|
return (p = (r = t.col).formatter) == null ? void 0 : p.call(r, t.row, t.column, d, t.index);
|
|
22
22
|
});
|
|
23
|
-
return (d, r) => Be(f.value) ? (s(), C(ze(f.value), { key: 0 })) : (s(),
|
|
23
|
+
return (d, r) => Be(f.value) ? (s(), C(ze(f.value), { key: 0 })) : (s(), w("span", {
|
|
24
24
|
key: 1,
|
|
25
25
|
innerHTML: f.value
|
|
26
26
|
}, null, 8, at));
|
|
@@ -31,7 +31,7 @@ const at = ["innerHTML"], it = /* @__PURE__ */ me({
|
|
|
31
31
|
height: "1.2em"
|
|
32
32
|
};
|
|
33
33
|
function rt(l, t) {
|
|
34
|
-
return s(),
|
|
34
|
+
return s(), w("svg", st, [...t[0] || (t[0] = [
|
|
35
35
|
R("path", {
|
|
36
36
|
fill: "none",
|
|
37
37
|
stroke: "currentColor",
|
|
@@ -48,7 +48,7 @@ const ot = G({ name: "tabler-filter", render: rt }), ut = {
|
|
|
48
48
|
height: "1.2em"
|
|
49
49
|
};
|
|
50
50
|
function dt(l, t) {
|
|
51
|
-
return s(),
|
|
51
|
+
return s(), w("svg", ut, [...t[0] || (t[0] = [
|
|
52
52
|
R("path", {
|
|
53
53
|
fill: "none",
|
|
54
54
|
stroke: "currentColor",
|
|
@@ -81,7 +81,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
81
81
|
}),
|
|
82
82
|
emits: /* @__PURE__ */ be(["applyFilter", "selectionChange", "cell-edit"], ["update:filterData"]),
|
|
83
83
|
setup(l, { expose: t, emit: f }) {
|
|
84
|
-
const d =
|
|
84
|
+
const d = _e.directive, r = l, p = Pe(l, "filterData"), S = f, B = ke("elTableRef"), g = z({}), k = z({});
|
|
85
85
|
function ne(a) {
|
|
86
86
|
g.value[a] = I(p.value[a]);
|
|
87
87
|
}
|
|
@@ -89,10 +89,10 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
89
89
|
g.value[a] = I(p.value[a]);
|
|
90
90
|
}
|
|
91
91
|
function q(a, o, e) {
|
|
92
|
-
g.value[a] = void 0, p.value[a] = void 0,
|
|
92
|
+
g.value[a] = void 0, p.value[a] = void 0, M(a, o, e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
p.value[a] = g.value[a],
|
|
94
|
+
function M(a, o, e) {
|
|
95
|
+
p.value[a] = g.value[a], k.value[a] = !1, S("applyFilter", {
|
|
96
96
|
col: e,
|
|
97
97
|
prop: a,
|
|
98
98
|
type: o,
|
|
@@ -110,15 +110,15 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
110
110
|
function b(a) {
|
|
111
111
|
return a.filterFieldName ?? a.prop;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function K(a, o) {
|
|
114
114
|
return {
|
|
115
115
|
color: a.text.includes("删除") ? "var(--el-color-danger)" : "",
|
|
116
|
-
visibility:
|
|
116
|
+
visibility: we(o) ? void 0 : o
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const V = z([]);
|
|
120
120
|
function P() {
|
|
121
|
-
|
|
121
|
+
V.value = Array.from(
|
|
122
122
|
{ length: r.data.length },
|
|
123
123
|
() => Array.from({ length: r.columns.length }, () => ({
|
|
124
124
|
editing: !1,
|
|
@@ -130,31 +130,30 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
130
130
|
function D(a, o) {
|
|
131
131
|
return A(a.editable) ? a.editable(o) : a.editable ?? !1;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
const v =
|
|
133
|
+
function _(a, o, e) {
|
|
134
|
+
const v = V.value[a][o];
|
|
135
135
|
v && (v.value = e, v.editing = !0, le(() => {
|
|
136
136
|
var m;
|
|
137
137
|
(m = v.inputRef) == null || m.focus();
|
|
138
138
|
}));
|
|
139
139
|
}
|
|
140
140
|
function Y(a) {
|
|
141
|
-
const o =
|
|
141
|
+
const o = V.value[a.rowIndex][a.colIndex];
|
|
142
142
|
if (!o) return;
|
|
143
143
|
o.editing = !1;
|
|
144
144
|
const e = a.newValue, v = a.row[a.prop];
|
|
145
145
|
e !== v && (a.row[a.prop] = e, S("cell-edit", a));
|
|
146
146
|
}
|
|
147
147
|
function ie(a, o) {
|
|
148
|
-
const e =
|
|
148
|
+
const e = V.value[a][o];
|
|
149
149
|
e && (e.editing = !1);
|
|
150
150
|
}
|
|
151
151
|
return t({
|
|
152
|
-
tableInstance:
|
|
152
|
+
tableInstance: B,
|
|
153
153
|
resetCells: P
|
|
154
|
-
}), (a, o) => Z((s(),
|
|
154
|
+
}), (a, o) => Z((s(), w("section", ft, [
|
|
155
155
|
E(n(Le), {
|
|
156
|
-
|
|
157
|
-
ref: V,
|
|
156
|
+
ref: "elTableRef",
|
|
158
157
|
data: l.data,
|
|
159
158
|
border: "",
|
|
160
159
|
class: "pro-table",
|
|
@@ -177,11 +176,11 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
177
176
|
label: "序号"
|
|
178
177
|
}, {
|
|
179
178
|
default: x(({ $index: e }) => [
|
|
180
|
-
|
|
179
|
+
$(O(e + 1 + (l.indexOffset || 0)), 1)
|
|
181
180
|
]),
|
|
182
181
|
_: 1
|
|
183
182
|
}, 8, ["width"])) : H("", !0),
|
|
184
|
-
(s(!0),
|
|
183
|
+
(s(!0), w(U, null, ee(l.columns, (e, v) => (s(), C(n(de), fe({ key: v }, { ref_for: !0 }, e, {
|
|
185
184
|
align: e.align ?? "center",
|
|
186
185
|
fixed: e.label === "操作" ? "right" : !1
|
|
187
186
|
}), He({ _: 2 }, [
|
|
@@ -195,8 +194,8 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
195
194
|
}, [
|
|
196
195
|
b(e) ? (s(), C(n(Ae), {
|
|
197
196
|
key: 0,
|
|
198
|
-
visible:
|
|
199
|
-
"onUpdate:visible": (c) =>
|
|
197
|
+
visible: k.value[b(e)],
|
|
198
|
+
"onUpdate:visible": (c) => k.value[b(e)] = c,
|
|
200
199
|
placement: "bottom",
|
|
201
200
|
trigger: "click",
|
|
202
201
|
"hide-after": 0,
|
|
@@ -212,7 +211,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
212
211
|
onClick: o[0] || (o[0] = oe(() => {
|
|
213
212
|
}, ["stop"]))
|
|
214
213
|
}, [
|
|
215
|
-
|
|
214
|
+
$(O(m.label) + " ", 1),
|
|
216
215
|
p.value[b(e)] !== void 0 ? (s(), C(n(ct), { key: 0 })) : (s(), C(n(ot), { key: 1 }))
|
|
217
216
|
])
|
|
218
217
|
]),
|
|
@@ -228,7 +227,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
228
227
|
"onUpdate:modelValue": (c) => g.value[b(e)] = c
|
|
229
228
|
}, {
|
|
230
229
|
default: x(() => [
|
|
231
|
-
(s(!0),
|
|
230
|
+
(s(!0), w(U, null, ee(ye(e.filterOptions), (c) => (s(), C(n(Ue), {
|
|
232
231
|
key: c.value.toString(),
|
|
233
232
|
value: c.value,
|
|
234
233
|
label: c.label,
|
|
@@ -250,7 +249,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
250
249
|
"onUpdate:modelValue": (c) => g.value[b(e)] = c
|
|
251
250
|
}, {
|
|
252
251
|
default: x(() => [
|
|
253
|
-
(s(!0),
|
|
252
|
+
(s(!0), w(U, null, ee(ye(e.filterOptions), (c) => (s(), C(n(je), {
|
|
254
253
|
key: c.value.toString(),
|
|
255
254
|
value: c.value,
|
|
256
255
|
label: c.label,
|
|
@@ -275,7 +274,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
275
274
|
o[4] || (o[4] = R("div", { class: "-mx-3 my-3 border-t" }, null, -1)),
|
|
276
275
|
R("div", vt, [
|
|
277
276
|
R("div", pt, [
|
|
278
|
-
E(n(
|
|
277
|
+
E(n(F), {
|
|
279
278
|
type: "primary",
|
|
280
279
|
plain: "",
|
|
281
280
|
size: "small",
|
|
@@ -286,22 +285,22 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
286
285
|
)
|
|
287
286
|
}, {
|
|
288
287
|
default: x(() => [...o[2] || (o[2] = [
|
|
289
|
-
|
|
288
|
+
$("重置", -1)
|
|
290
289
|
])]),
|
|
291
290
|
_: 1
|
|
292
291
|
}, 8, ["onClick"]),
|
|
293
|
-
E(n(
|
|
292
|
+
E(n(F), {
|
|
294
293
|
type: "primary",
|
|
295
294
|
size: "small",
|
|
296
295
|
class: "!m-0",
|
|
297
|
-
onClick: (c) =>
|
|
296
|
+
onClick: (c) => M(
|
|
298
297
|
b(e),
|
|
299
298
|
e.filterType || "radio",
|
|
300
299
|
e
|
|
301
300
|
)
|
|
302
301
|
}, {
|
|
303
302
|
default: x(() => [...o[3] || (o[3] = [
|
|
304
|
-
|
|
303
|
+
$("确定", -1)
|
|
305
304
|
])]),
|
|
306
305
|
_: 1
|
|
307
306
|
}, 8, ["onClick"])
|
|
@@ -317,7 +316,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
317
316
|
e.formatter ? {
|
|
318
317
|
name: "default",
|
|
319
318
|
fn: x(({ row: m, column: c, $index: j }) => [
|
|
320
|
-
Z((s(),
|
|
319
|
+
Z((s(), w("div", null, [
|
|
321
320
|
E(it, {
|
|
322
321
|
col: e,
|
|
323
322
|
row: m,
|
|
@@ -334,14 +333,14 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
334
333
|
fn: x(({ row: m, $index: c }) => {
|
|
335
334
|
var j, J;
|
|
336
335
|
return [
|
|
337
|
-
e.prop ? (s(),
|
|
338
|
-
D(e, m) ? (s(),
|
|
339
|
-
(J = (j =
|
|
336
|
+
e.prop ? (s(), w("div", mt, [
|
|
337
|
+
D(e, m) ? (s(), w(U, { key: 0 }, [
|
|
338
|
+
(J = (j = V.value[c]) == null ? void 0 : j[v]) != null && J.editing ? (s(), C(n(Ee), {
|
|
340
339
|
key: 0,
|
|
341
340
|
ref_for: !0,
|
|
342
|
-
ref: (u) =>
|
|
343
|
-
modelValue:
|
|
344
|
-
"onUpdate:modelValue": (u) =>
|
|
341
|
+
ref: (u) => V.value[c][v].inputRef = u,
|
|
342
|
+
modelValue: V.value[c][v].value,
|
|
343
|
+
"onUpdate:modelValue": (u) => V.value[c][v].value = u,
|
|
345
344
|
style: { "--el-input-height": "23px" },
|
|
346
345
|
clearable: "",
|
|
347
346
|
size: "small",
|
|
@@ -352,7 +351,7 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
352
351
|
row: m,
|
|
353
352
|
prop: e.prop,
|
|
354
353
|
oldValue: m[e.prop],
|
|
355
|
-
newValue:
|
|
354
|
+
newValue: V.value[c][v].value
|
|
356
355
|
}),
|
|
357
356
|
onKeydown: [
|
|
358
357
|
ve(oe((u) => Y({
|
|
@@ -361,26 +360,26 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
361
360
|
row: m,
|
|
362
361
|
prop: e.prop,
|
|
363
362
|
oldValue: m[e.prop],
|
|
364
|
-
newValue:
|
|
363
|
+
newValue: V.value[c][v].value
|
|
365
364
|
}), ["stop", "prevent"]), ["enter"]),
|
|
366
365
|
ve(oe((u) => ie(c, v), ["stop", "prevent"]), ["esc"])
|
|
367
366
|
]
|
|
368
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur", "onKeydown"])) : Z((s(),
|
|
367
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur", "onKeydown"])) : Z((s(), w("div", {
|
|
369
368
|
key: 1,
|
|
370
369
|
class: "h-[23px] cursor-pointer",
|
|
371
|
-
onDblclick: (u) =>
|
|
370
|
+
onDblclick: (u) => _(c, v, m[e.prop])
|
|
372
371
|
}, [
|
|
373
|
-
|
|
372
|
+
$(O(m[e.prop]), 1)
|
|
374
373
|
], 40, ht)), [
|
|
375
374
|
[n(ce), e.truncate ?? !0]
|
|
376
375
|
])
|
|
377
|
-
], 64)) : Z((s(),
|
|
378
|
-
|
|
376
|
+
], 64)) : Z((s(), w("div", yt, [
|
|
377
|
+
$(O(m[e.prop]), 1)
|
|
379
378
|
])), [
|
|
380
379
|
[n(ce), e.truncate ?? !0]
|
|
381
380
|
])
|
|
382
381
|
])) : H("", !0),
|
|
383
|
-
(s(!0),
|
|
382
|
+
(s(!0), w(U, null, ee(N(e, m), (u) => (s(), w(U, {
|
|
384
383
|
key: u.text
|
|
385
384
|
}, [
|
|
386
385
|
u.text === "删除" || u.confirmText ? (s(), C(n(Ge), {
|
|
@@ -388,33 +387,33 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
388
387
|
placement: "top",
|
|
389
388
|
"hide-after": 0,
|
|
390
389
|
"popper-style": "width: unset; min-width: 150px;",
|
|
391
|
-
title: n(
|
|
390
|
+
title: n(we)(u.confirmText) ? `是否确认${u.text}?` : n(A)(u.confirmText) ? u.confirmText(m) : u.confirmText ?? `是否确认${u.text}?`,
|
|
392
391
|
onConfirm: (se) => u.visibility === "hidden" ? void 0 : u.handler(m)
|
|
393
392
|
}, {
|
|
394
393
|
reference: x(() => [
|
|
395
|
-
E(n(
|
|
394
|
+
E(n(F), {
|
|
396
395
|
link: "",
|
|
397
396
|
type: u.type ?? "primary",
|
|
398
|
-
style: ge(
|
|
397
|
+
style: ge(K(u, u.visibility)),
|
|
399
398
|
disabled: n(A)(u.disabled) ? u.disabled(m) : u.disabled
|
|
400
399
|
}, {
|
|
401
400
|
default: x(() => [
|
|
402
|
-
|
|
401
|
+
$(O(u.text), 1)
|
|
403
402
|
]),
|
|
404
403
|
_: 2
|
|
405
404
|
}, 1032, ["type", "style", "disabled"])
|
|
406
405
|
]),
|
|
407
406
|
_: 2
|
|
408
|
-
}, 1032, ["title", "onConfirm"])) : (s(), C(n(
|
|
407
|
+
}, 1032, ["title", "onConfirm"])) : (s(), C(n(F), {
|
|
409
408
|
key: 1,
|
|
410
409
|
link: "",
|
|
411
410
|
type: u.type ?? "primary",
|
|
412
|
-
style: ge(
|
|
411
|
+
style: ge(K(u, u.visibility)),
|
|
413
412
|
disabled: n(A)(u.disabled) ? u.disabled(m) : u.disabled,
|
|
414
413
|
onClick: (se) => u.visibility === "hidden" ? void 0 : u.handler(m)
|
|
415
414
|
}, {
|
|
416
415
|
default: x(() => [
|
|
417
|
-
|
|
416
|
+
$(O(u.text), 1)
|
|
418
417
|
]),
|
|
419
418
|
_: 2
|
|
420
419
|
}, 1032, ["type", "style", "disabled", "onClick"]))
|
|
@@ -436,9 +435,9 @@ const ct = G({ name: "tabler-filter-check", render: dt }), ft = { "element-loadi
|
|
|
436
435
|
for (const [d, r] of t)
|
|
437
436
|
f[d] = r;
|
|
438
437
|
return f;
|
|
439
|
-
}, bt = /* @__PURE__ */ Re(gt, [["__scopeId", "data-v-
|
|
438
|
+
}, bt = /* @__PURE__ */ Re(gt, [["__scopeId", "data-v-476baef5"]]);
|
|
440
439
|
function xt(l) {
|
|
441
|
-
var t, f, d, r, p, S,
|
|
440
|
+
var t, f, d, r, p, S, B;
|
|
442
441
|
if (Qe(l))
|
|
443
442
|
return l.includes("database") || l.includes("java.sql.") ? "接口异常" : l;
|
|
444
443
|
if (Te(l)) return "请求已取消";
|
|
@@ -447,8 +446,8 @@ function xt(l) {
|
|
|
447
446
|
if (!window.navigator.onLine || l.message === "Network Error")
|
|
448
447
|
return "网络连接断开,请检查网络设置";
|
|
449
448
|
if (l.response) {
|
|
450
|
-
const g = l.response.status,
|
|
451
|
-
if (
|
|
449
|
+
const g = l.response.status, k = l.response.data;
|
|
450
|
+
if (k && k.message) return k.message;
|
|
452
451
|
switch (g) {
|
|
453
452
|
case 400:
|
|
454
453
|
return "请求参数错误 (400)";
|
|
@@ -468,9 +467,9 @@ function xt(l) {
|
|
|
468
467
|
return `网络异常 (${g})`;
|
|
469
468
|
}
|
|
470
469
|
}
|
|
471
|
-
return l instanceof SyntaxError ? "数据解析异常" : l instanceof TypeError ? "程序运行异常" : l instanceof Object && ((r = (d = l[(f = pe(l)) == null ? void 0 : f[0]]) == null ? void 0 : d[0]) != null && r.message) ? (
|
|
470
|
+
return l instanceof SyntaxError ? "数据解析异常" : l instanceof TypeError ? "程序运行异常" : l instanceof Object && ((r = (d = l[(f = pe(l)) == null ? void 0 : f[0]]) == null ? void 0 : d[0]) != null && r.message) ? (B = (S = l[(p = pe(l)) == null ? void 0 : p[0]]) == null ? void 0 : S[0]) == null ? void 0 : B.message : l.message || "未知错误";
|
|
472
471
|
}
|
|
473
|
-
class
|
|
472
|
+
class wt {
|
|
474
473
|
/**
|
|
475
474
|
* 实例化 SelectionStore
|
|
476
475
|
*
|
|
@@ -540,20 +539,20 @@ class kt {
|
|
|
540
539
|
});
|
|
541
540
|
}
|
|
542
541
|
}
|
|
543
|
-
function
|
|
542
|
+
function kt(l, t, f) {
|
|
544
543
|
let d, r;
|
|
545
|
-
Se(l) ? (d = l, r = t
|
|
544
|
+
Se(l) ? (d = l, r = t) : (d = Fe(l, t), r = 300);
|
|
546
545
|
const p = z(d.value);
|
|
547
546
|
let S = null;
|
|
548
|
-
const
|
|
547
|
+
const B = () => {
|
|
549
548
|
S !== null && (clearTimeout(S), S = null);
|
|
550
549
|
};
|
|
551
550
|
return Ce(
|
|
552
551
|
d,
|
|
553
552
|
(g) => {
|
|
554
|
-
g ? (
|
|
553
|
+
g ? (B(), S = setTimeout(() => {
|
|
555
554
|
p.value = !0;
|
|
556
|
-
}, r)) : (
|
|
555
|
+
}, r)) : (B(), p.value = !1);
|
|
557
556
|
},
|
|
558
557
|
{ immediate: !1 }
|
|
559
558
|
), p;
|
|
@@ -568,10 +567,10 @@ function St({ defaultSort: l, fetchFn: t, onReset: f }) {
|
|
|
568
567
|
), r = he(I(d));
|
|
569
568
|
let p = I(r);
|
|
570
569
|
function S({
|
|
571
|
-
prop:
|
|
570
|
+
prop: B,
|
|
572
571
|
order: g
|
|
573
572
|
}) {
|
|
574
|
-
g ? (r.sort =
|
|
573
|
+
g ? (r.sort = B || "", r.order = g === "ascending" ? "asc" : "desc", t()) : (r.sort = d.sort, r.order = d.order, Ze(r, p) && (r.order = r.order === "asc" ? "desc" : "asc"), f ? f() : t()), p = I(r);
|
|
575
574
|
}
|
|
576
575
|
return {
|
|
577
576
|
sortState: r,
|
|
@@ -584,7 +583,7 @@ const Ct = {
|
|
|
584
583
|
height: "1.2em"
|
|
585
584
|
};
|
|
586
585
|
function Et(l, t) {
|
|
587
|
-
return s(),
|
|
586
|
+
return s(), w("svg", Ct, [...t[0] || (t[0] = [
|
|
588
587
|
R("path", {
|
|
589
588
|
fill: "currentColor",
|
|
590
589
|
d: "m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"
|
|
@@ -597,7 +596,7 @@ const Tt = G({ name: "ri-search-line", render: Et }), Rt = {
|
|
|
597
596
|
height: "1.2em"
|
|
598
597
|
};
|
|
599
598
|
function Vt(l, t) {
|
|
600
|
-
return s(),
|
|
599
|
+
return s(), w("svg", Rt, [...t[0] || (t[0] = [
|
|
601
600
|
R("path", {
|
|
602
601
|
fill: "currentColor",
|
|
603
602
|
d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
|
|
@@ -610,7 +609,7 @@ const $t = G({ name: "ri-add-line", render: Vt }), Bt = {
|
|
|
610
609
|
height: "1.2em"
|
|
611
610
|
};
|
|
612
611
|
function zt(l, t) {
|
|
613
|
-
return s(),
|
|
612
|
+
return s(), w("svg", Bt, [...t[0] || (t[0] = [
|
|
614
613
|
R("path", {
|
|
615
614
|
fill: "currentColor",
|
|
616
615
|
d: "M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1zm1 2H6v12h12zm-9 3h2v6H9zm4 0h2v6h-2zM9 4v2h6V4z"
|
|
@@ -623,17 +622,17 @@ const Pt = G({ name: "ri-delete-bin-line", render: zt }), Ht = {
|
|
|
623
622
|
height: "1.2em"
|
|
624
623
|
};
|
|
625
624
|
function Dt(l, t) {
|
|
626
|
-
return s(),
|
|
625
|
+
return s(), w("svg", Ht, [...t[0] || (t[0] = [
|
|
627
626
|
R("path", {
|
|
628
627
|
fill: "currentColor",
|
|
629
628
|
d: "M6.535 3h14.464a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6.535a1 1 0 0 1-.833-.445l-5.333-8a1 1 0 0 1 0-1.11l5.333-8A1 1 0 0 1 6.535 3m.535 2l-4.667 7l4.667 7H20V5zM13 10.586l2.828-2.829l1.414 1.415L14.414 12l2.828 2.828l-1.414 1.415l-2.829-2.829l-2.828 2.829l-1.414-1.415L11.585 12L8.757 9.172l1.414-1.415z"
|
|
630
629
|
}, null, -1)
|
|
631
630
|
])]);
|
|
632
631
|
}
|
|
633
|
-
const
|
|
632
|
+
const Ft = G({ name: "ri-delete-back2-line", render: Dt }), Mt = { class: "flex h-full flex-col" }, Kt = {
|
|
634
633
|
key: 0,
|
|
635
634
|
class: "mb-6 flex flex-shrink-0 items-center justify-between"
|
|
636
|
-
},
|
|
635
|
+
}, _t = { class: "flex items-center gap-x-3" }, Lt = { class: "mt-5 flex flex-shrink-0 items-center justify-between" }, At = { class: "flex w-[164px] items-center" }, Ot = /* @__PURE__ */ me({
|
|
637
636
|
__name: "index",
|
|
638
637
|
props: {
|
|
639
638
|
columns: {},
|
|
@@ -655,7 +654,7 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
655
654
|
},
|
|
656
655
|
emits: ["add", "batch-delete", "cell-edit"],
|
|
657
656
|
setup(l, { expose: t, emit: f }) {
|
|
658
|
-
const d = l, r = f, p =
|
|
657
|
+
const d = l, r = f, p = ke("proTableRef"), { sortState: S, onSortChange: B } = St({
|
|
659
658
|
defaultSort: d.defaultSort,
|
|
660
659
|
fetchFn: D,
|
|
661
660
|
onReset() {
|
|
@@ -663,28 +662,28 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
663
662
|
const h = S.sort, i = S.order === "asc" ? "ascending" : "descending";
|
|
664
663
|
d.columns.some((W) => W.prop === h) ? (T = (y = p.value) == null ? void 0 : y.tableInstance) == null || T.sort(h, i) : D();
|
|
665
664
|
}
|
|
666
|
-
}), g = z(d.pageSize ?? 0),
|
|
665
|
+
}), g = z(d.pageSize ?? 0), k = z({
|
|
667
666
|
pageSize: g.value,
|
|
668
667
|
currPage: 1,
|
|
669
668
|
total: 0
|
|
670
|
-
}), ne = te(() => et(tt([g.value, 10, 20, 30, 40, 50, 100]))), ae = te(() => (
|
|
669
|
+
}), ne = te(() => et(tt([g.value, 10, 20, 30, 40, 50, 100]))), ae = te(() => (k.value.currPage - 1) * k.value.pageSize), q = z(0), M = z({
|
|
671
670
|
search: ""
|
|
672
|
-
}), N = he({}), b = z([]),
|
|
671
|
+
}), N = he({}), b = z([]), K = z(!1), V = kt(K, 100);
|
|
673
672
|
let P = null;
|
|
674
673
|
async function D() {
|
|
675
|
-
P == null || P.abort(), P = new AbortController(),
|
|
674
|
+
P == null || P.abort(), P = new AbortController(), K.value = !0;
|
|
676
675
|
const h = ae.value;
|
|
677
676
|
try {
|
|
678
677
|
const i = {
|
|
679
|
-
...
|
|
678
|
+
...M.value,
|
|
680
679
|
...N,
|
|
681
680
|
...S,
|
|
682
|
-
limit:
|
|
681
|
+
limit: k.value.pageSize,
|
|
683
682
|
offset: h
|
|
684
683
|
}, y = d.searchParamsHandler ? d.searchParamsHandler(i) : i, { data: T = [], totalCount: W } = await d.fetchFn(y, {
|
|
685
684
|
signal: P.signal
|
|
686
685
|
});
|
|
687
|
-
b.value = T, q.value = h,
|
|
686
|
+
b.value = T, q.value = h, k.value.total = W, await le(() => {
|
|
688
687
|
var L, Q, X;
|
|
689
688
|
(Q = (L = p.value) == null ? void 0 : L.tableInstance) == null || Q.setScrollTop(0), (X = p.value) == null || X.resetCells();
|
|
690
689
|
}), d.selectable && se(T);
|
|
@@ -692,10 +691,10 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
692
691
|
if (Te(i)) return;
|
|
693
692
|
console.error("[SearchTable] 获取数据失败", i), Je.error("表格数据加载失败:" + xt(i));
|
|
694
693
|
}
|
|
695
|
-
|
|
694
|
+
K.value = !1;
|
|
696
695
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
696
|
+
function _() {
|
|
697
|
+
k.value.currPage = 1, D();
|
|
699
698
|
}
|
|
700
699
|
function Y({ type: h, value: i, prop: y, col: T }) {
|
|
701
700
|
if (h === "datetimerange") {
|
|
@@ -703,17 +702,17 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
703
702
|
N[W] = Q, N[L] = X;
|
|
704
703
|
} else
|
|
705
704
|
N[y] = i;
|
|
706
|
-
|
|
705
|
+
_();
|
|
707
706
|
}
|
|
708
707
|
const ie = async () => {
|
|
709
|
-
|
|
708
|
+
K.value || (u(), await D());
|
|
710
709
|
};
|
|
711
710
|
function a() {
|
|
712
711
|
var L;
|
|
713
712
|
const T = ((L = p.value) == null ? void 0 : L.$el).offsetHeight - 40;
|
|
714
713
|
return Math.floor(T / 40);
|
|
715
714
|
}
|
|
716
|
-
const o = z([]), e = te(() => o.value), v = new
|
|
715
|
+
const o = z([]), e = te(() => o.value), v = new wt(d.rowKey);
|
|
717
716
|
let m = !1;
|
|
718
717
|
const c = (h) => {
|
|
719
718
|
m || (v.syncPage(b.value, h), o.value = v.values);
|
|
@@ -736,13 +735,13 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
736
735
|
y
|
|
737
736
|
);
|
|
738
737
|
}
|
|
739
|
-
return
|
|
740
|
-
if (!
|
|
738
|
+
return Me(() => {
|
|
739
|
+
if (!k.value.pageSize) {
|
|
741
740
|
const h = a();
|
|
742
|
-
g.value = h,
|
|
741
|
+
g.value = h, k.value.pageSize = h;
|
|
743
742
|
}
|
|
744
743
|
D();
|
|
745
|
-
}),
|
|
744
|
+
}), Ke(() => {
|
|
746
745
|
P == null || P.abort();
|
|
747
746
|
}), t({
|
|
748
747
|
/**
|
|
@@ -761,48 +760,48 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
761
760
|
* 勾选指定行
|
|
762
761
|
*/
|
|
763
762
|
selectRows: J
|
|
764
|
-
}), (h, i) => (s(),
|
|
765
|
-
l.showSearch ? (s(),
|
|
766
|
-
R("div",
|
|
763
|
+
}), (h, i) => (s(), w("div", Mt, [
|
|
764
|
+
l.showSearch ? (s(), w("section", Kt, [
|
|
765
|
+
R("div", _t, [
|
|
767
766
|
E(n(Ee), {
|
|
768
|
-
modelValue:
|
|
769
|
-
"onUpdate:modelValue": i[0] || (i[0] = (y) =>
|
|
767
|
+
modelValue: M.value.search,
|
|
768
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => M.value.search = y),
|
|
770
769
|
modelModifiers: { trim: !0 },
|
|
771
770
|
class: "!w-[260px] flex-shrink-0",
|
|
772
771
|
placeholder: l.searchInputPlaceholder,
|
|
773
772
|
clearable: "",
|
|
774
|
-
onKeyup: ve(
|
|
775
|
-
onClear:
|
|
773
|
+
onKeyup: ve(_, ["enter"]),
|
|
774
|
+
onClear: _
|
|
776
775
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
777
776
|
ue(h.$slots, "search-form", {
|
|
778
|
-
query:
|
|
779
|
-
search:
|
|
777
|
+
query: M.value,
|
|
778
|
+
search: _
|
|
780
779
|
}, void 0, !0),
|
|
781
|
-
E(n(
|
|
780
|
+
E(n(F), {
|
|
782
781
|
type: "primary",
|
|
783
|
-
onClick:
|
|
782
|
+
onClick: _
|
|
784
783
|
}, {
|
|
785
784
|
default: x(() => [
|
|
786
785
|
E(n(Tt)),
|
|
787
|
-
i[6] || (i[6] =
|
|
786
|
+
i[6] || (i[6] = $(" 搜索 ", -1))
|
|
788
787
|
]),
|
|
789
788
|
_: 1
|
|
790
789
|
})
|
|
791
790
|
]),
|
|
792
791
|
ue(h.$slots, "top-center", {}, void 0, !0),
|
|
793
792
|
R("div", null, [
|
|
794
|
-
l.showAddButton ? (s(), C(n(
|
|
793
|
+
l.showAddButton ? (s(), C(n(F), {
|
|
795
794
|
key: 0,
|
|
796
795
|
type: "primary",
|
|
797
796
|
onClick: i[1] || (i[1] = (y) => r("add"))
|
|
798
797
|
}, {
|
|
799
798
|
default: x(() => [
|
|
800
799
|
E(n($t)),
|
|
801
|
-
i[7] || (i[7] =
|
|
800
|
+
i[7] || (i[7] = $("新增 ", -1))
|
|
802
801
|
]),
|
|
803
802
|
_: 1
|
|
804
803
|
})) : H("", !0),
|
|
805
|
-
l.showBatchDeleteButton ? (s(), C(n(
|
|
804
|
+
l.showBatchDeleteButton ? (s(), C(n(F), {
|
|
806
805
|
key: 1,
|
|
807
806
|
disabled: !o.value.length,
|
|
808
807
|
type: "danger",
|
|
@@ -810,21 +809,18 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
810
809
|
}, {
|
|
811
810
|
default: x(() => [
|
|
812
811
|
E(n(Pt)),
|
|
813
|
-
i[8] || (i[8] =
|
|
812
|
+
i[8] || (i[8] = $("批量删除 ", -1))
|
|
814
813
|
]),
|
|
815
814
|
_: 1
|
|
816
815
|
}, 8, ["disabled"])) : H("", !0),
|
|
817
816
|
ue(h.$slots, "btns", {}, void 0, !0)
|
|
818
817
|
])
|
|
819
818
|
])) : H("", !0),
|
|
820
|
-
E(bt, fe({
|
|
821
|
-
ref_key: "tableRef",
|
|
822
|
-
ref: p
|
|
823
|
-
}, d, {
|
|
819
|
+
E(bt, fe({ ref: "proTableRef" }, d, {
|
|
824
820
|
class: "flex-1 overflow-hidden",
|
|
825
821
|
"index-offset": q.value,
|
|
826
822
|
data: b.value,
|
|
827
|
-
loading: n(
|
|
823
|
+
loading: n(V),
|
|
828
824
|
"default-sort": {
|
|
829
825
|
prop: n(S).sort,
|
|
830
826
|
order: n(S).order === "asc" ? "ascending" : "descending"
|
|
@@ -832,14 +828,14 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
832
828
|
onApplyFilter: Y,
|
|
833
829
|
onSelectionChange: c,
|
|
834
830
|
onCellEdit: i[3] || (i[3] = (...y) => r("cell-edit", ...y)),
|
|
835
|
-
onSortChange: n(
|
|
831
|
+
onSortChange: n(B)
|
|
836
832
|
}), null, 16, ["index-offset", "data", "loading", "default-sort", "onSortChange"]),
|
|
837
833
|
R("section", Lt, [
|
|
838
834
|
R("div", At, [
|
|
839
|
-
l.selectable ? (s(),
|
|
835
|
+
l.selectable ? (s(), w(U, { key: 0 }, [
|
|
840
836
|
E(n(Ie), { type: "info" }, {
|
|
841
837
|
default: x(() => [
|
|
842
|
-
|
|
838
|
+
$("已选 " + O(o.value.length) + " 条", 1)
|
|
843
839
|
]),
|
|
844
840
|
_: 1
|
|
845
841
|
}),
|
|
@@ -851,14 +847,14 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
851
847
|
"hide-after": 0
|
|
852
848
|
}, {
|
|
853
849
|
default: x(() => [
|
|
854
|
-
E(n(
|
|
850
|
+
E(n(F), {
|
|
855
851
|
type: "danger",
|
|
856
852
|
text: "",
|
|
857
853
|
class: "ml-1 !px-2",
|
|
858
854
|
onClick: u
|
|
859
855
|
}, {
|
|
860
856
|
default: x(() => [
|
|
861
|
-
E(n(
|
|
857
|
+
E(n(Ft))
|
|
862
858
|
]),
|
|
863
859
|
_: 1
|
|
864
860
|
})
|
|
@@ -868,11 +864,11 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
868
864
|
], 64)) : H("", !0)
|
|
869
865
|
]),
|
|
870
866
|
E(n(Ye), fe(l.elPaginationProps, {
|
|
871
|
-
"page-size":
|
|
872
|
-
"onUpdate:pageSize": i[4] || (i[4] = (y) =>
|
|
873
|
-
"current-page":
|
|
874
|
-
"onUpdate:currentPage": i[5] || (i[5] = (y) =>
|
|
875
|
-
total:
|
|
867
|
+
"page-size": k.value.pageSize,
|
|
868
|
+
"onUpdate:pageSize": i[4] || (i[4] = (y) => k.value.pageSize = y),
|
|
869
|
+
"current-page": k.value.currPage,
|
|
870
|
+
"onUpdate:currentPage": i[5] || (i[5] = (y) => k.value.currPage = y),
|
|
871
|
+
total: k.value.total,
|
|
876
872
|
background: "",
|
|
877
873
|
"page-sizes": ne.value,
|
|
878
874
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
@@ -884,12 +880,8 @@ const _t = G({ name: "ri-delete-back2-line", render: Dt }), Ft = { class: "flex
|
|
|
884
880
|
])
|
|
885
881
|
]));
|
|
886
882
|
}
|
|
887
|
-
}), qt = /* @__PURE__ */ Re(Ot, [["__scopeId", "data-v-
|
|
883
|
+
}), qt = /* @__PURE__ */ Re(Ot, [["__scopeId", "data-v-c11b5043"]]);
|
|
888
884
|
export {
|
|
889
885
|
bt as ProTable,
|
|
890
|
-
qt as SearchTable
|
|
891
|
-
kt as SelectionStore,
|
|
892
|
-
xt as parseErrorReason,
|
|
893
|
-
wt as useDelayedRef,
|
|
894
|
-
St as useTableSort
|
|
886
|
+
qt as SearchTable
|
|
895
887
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fixed{position:fixed}.\!m-0{margin:0!important}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-\[23px\]{height:23px}.h-full{height:100%}.\!w-\[260px\]{width:260px!important}.w-\[150px\]{width:150px}.w-\[164px\]{width:164px}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-x-0{-moz-column-gap:0px;column-gap:0px}.gap-x-0\.5{-moz-column-gap:.125rem;column-gap:.125rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.border-t{border-top-width:1px}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-\[--el-color-primary\]{color:var(--el-color-primary)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-100{transition-duration:.1s}.hover\:text-\[--el-color-primary\]:hover{color:var(--el-color-primary)}[data-v-
|
|
1
|
+
.fixed{position:fixed}.\!m-0{margin:0!important}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-\[23px\]{height:23px}.h-full{height:100%}.\!w-\[260px\]{width:260px!important}.w-\[150px\]{width:150px}.w-\[164px\]{width:164px}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-x-0{-moz-column-gap:0px;column-gap:0px}.gap-x-0\.5{-moz-column-gap:.125rem;column-gap:.125rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.border-t{border-top-width:1px}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-\[--el-color-primary\]{color:var(--el-color-primary)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-100{transition-duration:.1s}.hover\:text-\[--el-color-primary\]:hover{color:var(--el-color-primary)}[data-v-476baef5] .pro-table{--el-table-header-bg-color: #f7f8fa;--el-table-header-text-color: var(--el-text-color-regular);--el-table-text-color: var(--el-text-color-primary)}[data-v-476baef5] .pro-table thead th{font-weight:400}[data-v-c11b5043] .el-table .el-table-column--selection.el-table__cell{display:flex;align-items:center;justify-content:center}[data-v-c11b5043] .el-button>span{gap:0 4px}.el-pagination[data-v-c11b5043] .el-pagination__sizes .el-select{width:110px}
|