@ys-knife-crud/element-plus 0.0.15 → 0.0.16
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/README.md +10 -0
- package/dist/element-plus/src/table/collectDataDialog.vue.d.ts +4 -2
- package/dist/element-plus/src/table/collectDataDialog.vue.d.ts.map +1 -1
- package/dist/element-plus/src/table/columnConfigDialog.vue.d.ts +2 -1
- package/dist/element-plus/src/table/columnConfigDialog.vue.d.ts.map +1 -1
- package/dist/element-plus/src/table/infiniteList.vue.d.ts +4 -2
- package/dist/element-plus/src/table/infiniteList.vue.d.ts.map +1 -1
- package/dist/element-plus/src/table/table.vue.d.ts +6 -4
- package/dist/element-plus/src/table/table.vue.d.ts.map +1 -1
- package/dist/element-plus/src/tablepage/tablePage.vue.d.ts +6 -4
- package/dist/element-plus/src/tablepage/tablePage.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1368 -1361
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as te, toRef as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import './index.css';const
|
|
1
|
+
import { defineComponent as te, toRef as ne, computed as q, resolveComponent as S, openBlock as o, createElementBlock as v, Fragment as K, createVNode as p, isRef as he, unref as s, withCtx as n, createElementVNode as m, renderList as le, createBlock as C, createTextVNode as $, toDisplayString as I, createCommentVNode as B, resolveDynamicComponent as Ae, normalizeClass as Ce, renderSlot as ee, Teleport as Bt, withModifiers as vt, normalizeStyle as st, ref as T, onMounted as Se, watch as ce, useSlots as Et, onBeforeUnmount as Ue, createSlots as ze, Transition as It, resolveDirective as yt, withDirectives as lt, mergeProps as ot, inject as gt, provide as _t, withKeys as et, nextTick as Ze, shallowRef as Tt, normalizeProps as Oe, guardReactiveProps as qe, createStaticVNode as it, h as ge, isVNode as Yt, render as rt } from "vue";
|
|
2
|
+
import { getCellRender as ut, getDefaultFormatter as Qt, formatCellValue as Nt, isConditionGroup as nt, OPERATOR_LABELS as Ot, isNullOperator as qt, emptyFilter as Le, FilterInfo as Lt } from "@ys-knife-crud/core";
|
|
3
|
+
import { fromArray as Qn, fromBool as Nn, fromObjectItems as On, fromOptions as qn } from "@ys-knife-crud/core";
|
|
4
|
+
import { useExportExcel as Ut, useCollectData as Kt, useCustomConfig as jt, visibleActions as at, isEnabled as kt, useDefault as Ht, useSelection as bt, useRowActions as Gt, filterNodesByKeyword as Wt, collectGroupKeys as Jt, useMainPanelNodes as Xt, useMainPanelTabs as Zt, findNode as dt, isGroupNode as ct, useAdvancedFilter as ht, useFilterPanel as el, FilterPanelKey as wt, useTextFilterItem as tl, useDateFilterItem as ll, useDateRangeFilterItem as ol, useEnumFilterItem as nl, useImportExcel as al, getDefaultModalAppContext as sl, setDefaultModalAppContext as il } from "@ys-knife-crud/vue";
|
|
5
|
+
import { ElMessage as ye, ElMessageBox as xt, ElDialog as rl, ElButton as ul } from "element-plus";
|
|
6
|
+
import pt from "dayjs";
|
|
7
|
+
import './index.css';const dl = { class: "export-options" }, cl = { class: "export-progress-text" }, pl = { class: "export-cancelled-text" }, ml = /* @__PURE__ */ te({
|
|
8
8
|
__name: "exportExcelDialog",
|
|
9
9
|
props: {
|
|
10
10
|
dataFun: { type: Function },
|
|
@@ -21,61 +21,61 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
21
21
|
pageScopeLabel: {}
|
|
22
22
|
},
|
|
23
23
|
setup(e, { expose: y }) {
|
|
24
|
-
const
|
|
25
|
-
exportOptions:
|
|
24
|
+
const t = e, {
|
|
25
|
+
exportOptions: l,
|
|
26
26
|
exportDialogVisible: a,
|
|
27
27
|
exporting: f,
|
|
28
|
-
exportFetched:
|
|
28
|
+
exportFetched: r,
|
|
29
29
|
exportTotal: d,
|
|
30
|
-
exportTotalKnown:
|
|
30
|
+
exportTotalKnown: u,
|
|
31
31
|
exportEtaSeconds: w,
|
|
32
32
|
exportPercent: F,
|
|
33
33
|
exportCancelledVisible: A,
|
|
34
|
-
exportCancelledRows:
|
|
35
|
-
onExportClick:
|
|
34
|
+
exportCancelledRows: U,
|
|
35
|
+
onExportClick: E,
|
|
36
36
|
doExport: h,
|
|
37
37
|
cancelExport: _,
|
|
38
38
|
keepPartialExport: Y,
|
|
39
|
-
discardPartialExport:
|
|
40
|
-
} =
|
|
41
|
-
props:
|
|
39
|
+
discardPartialExport: N
|
|
40
|
+
} = Ut({
|
|
41
|
+
props: t,
|
|
42
42
|
// reactive — dataFun/exportSelected/exportorFunc 自动追踪
|
|
43
|
-
tableName:
|
|
44
|
-
columns:
|
|
45
|
-
currentRows:
|
|
46
|
-
selectedRows:
|
|
47
|
-
total:
|
|
48
|
-
totalKnown:
|
|
49
|
-
exportPageSize:
|
|
50
|
-
hasMorePage:
|
|
51
|
-
pageScopeLabel:
|
|
52
|
-
}), J =
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
return g > 0 ? `${
|
|
43
|
+
tableName: ne(t, "tableName"),
|
|
44
|
+
columns: ne(t, "columns"),
|
|
45
|
+
currentRows: ne(t, "currentRows"),
|
|
46
|
+
selectedRows: ne(t, "selectedRows"),
|
|
47
|
+
total: ne(t, "total"),
|
|
48
|
+
totalKnown: ne(t, "totalKnown"),
|
|
49
|
+
exportPageSize: ne(t, "exportPageSize"),
|
|
50
|
+
hasMorePage: ne(t, "hasMorePage"),
|
|
51
|
+
pageScopeLabel: ne(t, "pageScopeLabel")
|
|
52
|
+
}), J = q(() => {
|
|
53
|
+
const j = w.value;
|
|
54
|
+
if (j == null) return null;
|
|
55
|
+
if (j < 60) return `${j} 秒`;
|
|
56
|
+
const i = Math.floor(j / 60), g = j % 60;
|
|
57
|
+
return g > 0 ? `${i} 分 ${g} 秒` : `${i} 分`;
|
|
58
58
|
});
|
|
59
|
-
return y({ openExportDialog:
|
|
60
|
-
const g =
|
|
61
|
-
return o(), v(
|
|
59
|
+
return y({ openExportDialog: E }), (j, i) => {
|
|
60
|
+
const g = S("el-button"), z = S("el-dialog"), O = S("el-progress");
|
|
61
|
+
return o(), v(K, null, [
|
|
62
62
|
p(z, {
|
|
63
|
-
modelValue:
|
|
64
|
-
"onUpdate:modelValue":
|
|
63
|
+
modelValue: s(a),
|
|
64
|
+
"onUpdate:modelValue": i[0] || (i[0] = (L) => he(a) ? a.value = L : null),
|
|
65
65
|
title: "导出 Excel",
|
|
66
66
|
width: "420px"
|
|
67
67
|
}, {
|
|
68
68
|
default: n(() => [
|
|
69
|
-
m("div",
|
|
70
|
-
(o(!0), v(
|
|
71
|
-
key:
|
|
69
|
+
m("div", dl, [
|
|
70
|
+
(o(!0), v(K, null, le(s(l), (L) => (o(), C(g, {
|
|
71
|
+
key: L.value,
|
|
72
72
|
class: "export-option",
|
|
73
|
-
"data-scope":
|
|
74
|
-
disabled:
|
|
75
|
-
onClick: (ue) =>
|
|
73
|
+
"data-scope": L.value,
|
|
74
|
+
disabled: L.disabled,
|
|
75
|
+
onClick: (ue) => s(h)(L.value)
|
|
76
76
|
}, {
|
|
77
77
|
default: n(() => [
|
|
78
|
-
$(I(
|
|
78
|
+
$(I(L.label), 1)
|
|
79
79
|
]),
|
|
80
80
|
_: 2
|
|
81
81
|
}, 1032, ["data-scope", "disabled", "onClick"]))), 128))
|
|
@@ -84,8 +84,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
84
84
|
_: 1
|
|
85
85
|
}, 8, ["modelValue"]),
|
|
86
86
|
p(z, {
|
|
87
|
-
modelValue:
|
|
88
|
-
"onUpdate:modelValue":
|
|
87
|
+
modelValue: s(f),
|
|
88
|
+
"onUpdate:modelValue": i[1] || (i[1] = (L) => he(f) ? f.value = L : null),
|
|
89
89
|
title: "正在导出",
|
|
90
90
|
width: "420px",
|
|
91
91
|
"close-on-click-modal": !1,
|
|
@@ -94,41 +94,41 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
94
94
|
footer: n(() => [
|
|
95
95
|
p(g, {
|
|
96
96
|
class: "export-cancel",
|
|
97
|
-
onClick:
|
|
97
|
+
onClick: s(_)
|
|
98
98
|
}, {
|
|
99
|
-
default: n(() => [...
|
|
99
|
+
default: n(() => [...i[4] || (i[4] = [
|
|
100
100
|
$("取消", -1)
|
|
101
101
|
])]),
|
|
102
102
|
_: 1
|
|
103
103
|
}, 8, ["onClick"])
|
|
104
104
|
]),
|
|
105
105
|
default: n(() => [
|
|
106
|
-
p(
|
|
107
|
-
m("p",
|
|
108
|
-
$(" 已加载 " + I(
|
|
109
|
-
u
|
|
110
|
-
$(" / " + I(
|
|
111
|
-
], 64)) :
|
|
112
|
-
|
|
113
|
-
J.value ? (o(), v(
|
|
106
|
+
p(O, { percentage: s(F) }, null, 8, ["percentage"]),
|
|
107
|
+
m("p", cl, [
|
|
108
|
+
$(" 已加载 " + I(s(r)), 1),
|
|
109
|
+
s(u) ? (o(), v(K, { key: 0 }, [
|
|
110
|
+
$(" / " + I(s(d)), 1)
|
|
111
|
+
], 64)) : B("", !0),
|
|
112
|
+
i[3] || (i[3] = $(" 条", -1)),
|
|
113
|
+
J.value ? (o(), v(K, { key: 1 }, [
|
|
114
114
|
$(",预计剩余约 " + I(J.value), 1)
|
|
115
|
-
], 64)) :
|
|
115
|
+
], 64)) : B("", !0)
|
|
116
116
|
])
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
119
119
|
}, 8, ["modelValue"]),
|
|
120
120
|
p(z, {
|
|
121
|
-
modelValue:
|
|
122
|
-
"onUpdate:modelValue":
|
|
121
|
+
modelValue: s(A),
|
|
122
|
+
"onUpdate:modelValue": i[2] || (i[2] = (L) => he(A) ? A.value = L : null),
|
|
123
123
|
title: "导出已取消",
|
|
124
124
|
width: "420px"
|
|
125
125
|
}, {
|
|
126
126
|
footer: n(() => [
|
|
127
127
|
p(g, {
|
|
128
128
|
class: "export-discard",
|
|
129
|
-
onClick:
|
|
129
|
+
onClick: s(N)
|
|
130
130
|
}, {
|
|
131
|
-
default: n(() => [...
|
|
131
|
+
default: n(() => [...i[5] || (i[5] = [
|
|
132
132
|
$("丢弃", -1)
|
|
133
133
|
])]),
|
|
134
134
|
_: 1
|
|
@@ -136,16 +136,16 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
136
136
|
p(g, {
|
|
137
137
|
class: "export-keep",
|
|
138
138
|
type: "primary",
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: s(Y)
|
|
140
140
|
}, {
|
|
141
|
-
default: n(() => [...
|
|
141
|
+
default: n(() => [...i[6] || (i[6] = [
|
|
142
142
|
$("保留部分文件", -1)
|
|
143
143
|
])]),
|
|
144
144
|
_: 1
|
|
145
145
|
}, 8, ["onClick"])
|
|
146
146
|
]),
|
|
147
147
|
default: n(() => [
|
|
148
|
-
m("p",
|
|
148
|
+
m("p", pl, " 已写入 " + I(s(U)) + " 条数据,是否保留已导出的部分文件? ", 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
}, 8, ["modelValue"])
|
|
@@ -153,11 +153,11 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
}), re = (e, y) => {
|
|
156
|
-
const
|
|
157
|
-
for (const [
|
|
158
|
-
l
|
|
159
|
-
return
|
|
160
|
-
},
|
|
156
|
+
const t = e.__vccOpts || e;
|
|
157
|
+
for (const [l, a] of y)
|
|
158
|
+
t[l] = a;
|
|
159
|
+
return t;
|
|
160
|
+
}, Ct = /* @__PURE__ */ re(ml, [["__scopeId", "data-v-3dd12e29"]]), fl = { class: "collect-options" }, vl = { class: "collect-limit-hint" }, yl = { class: "collect-progress-text" }, gl = /* @__PURE__ */ te({
|
|
161
161
|
__name: "collectDataDialog",
|
|
162
162
|
props: {
|
|
163
163
|
dataFun: { type: Function },
|
|
@@ -171,79 +171,81 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
171
171
|
totalKnown: { type: Boolean },
|
|
172
172
|
hasMorePage: { type: Boolean },
|
|
173
173
|
selectable: { type: Boolean },
|
|
174
|
+
columns: {},
|
|
174
175
|
pageScopeLabel: {}
|
|
175
176
|
},
|
|
176
177
|
setup(e, { expose: y }) {
|
|
177
|
-
const
|
|
178
|
-
collectOptions:
|
|
178
|
+
const t = e, {
|
|
179
|
+
collectOptions: l,
|
|
179
180
|
collectDialogVisible: a,
|
|
180
181
|
collecting: f,
|
|
181
|
-
collectFetched:
|
|
182
|
+
collectFetched: r,
|
|
182
183
|
collectTotal: d,
|
|
183
|
-
collectTotalKnown:
|
|
184
|
+
collectTotalKnown: u,
|
|
184
185
|
collectEtaSeconds: w,
|
|
185
186
|
collectPercent: F,
|
|
186
187
|
onCollectClick: A,
|
|
187
|
-
doCollect:
|
|
188
|
-
cancelCollect:
|
|
189
|
-
} =
|
|
190
|
-
props:
|
|
188
|
+
doCollect: U,
|
|
189
|
+
cancelCollect: E
|
|
190
|
+
} = Kt({
|
|
191
|
+
props: t,
|
|
191
192
|
// reactive — dataFun/collectorFunc/maxCollectCount 自动追踪
|
|
192
|
-
selectable:
|
|
193
|
-
currentRows:
|
|
194
|
-
selectedRows:
|
|
195
|
-
total:
|
|
196
|
-
totalKnown:
|
|
197
|
-
collectPageSize:
|
|
198
|
-
hasMorePage:
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
selectable: ne(t, "selectable"),
|
|
194
|
+
currentRows: ne(t, "currentRows"),
|
|
195
|
+
selectedRows: ne(t, "selectedRows"),
|
|
196
|
+
total: ne(t, "total"),
|
|
197
|
+
totalKnown: ne(t, "totalKnown"),
|
|
198
|
+
collectPageSize: ne(t, "collectPageSize"),
|
|
199
|
+
hasMorePage: ne(t, "hasMorePage"),
|
|
200
|
+
columns: ne(t, "columns"),
|
|
201
|
+
pageScopeLabel: ne(t, "pageScopeLabel")
|
|
202
|
+
}), h = q(() => {
|
|
201
203
|
const _ = w.value;
|
|
202
204
|
if (_ == null) return null;
|
|
203
205
|
if (_ < 60) return `${_} 秒`;
|
|
204
|
-
const Y = Math.floor(_ / 60),
|
|
205
|
-
return
|
|
206
|
+
const Y = Math.floor(_ / 60), N = _ % 60;
|
|
207
|
+
return N > 0 ? `${Y} 分 ${N} 秒` : `${Y} 分`;
|
|
206
208
|
});
|
|
207
209
|
return y({ openCollectDialog: A }), (_, Y) => {
|
|
208
|
-
const
|
|
209
|
-
return o(), v(
|
|
210
|
+
const N = S("el-button"), J = S("el-dialog"), j = S("el-progress");
|
|
211
|
+
return o(), v(K, null, [
|
|
210
212
|
p(J, {
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (
|
|
213
|
-
title:
|
|
213
|
+
modelValue: s(a),
|
|
214
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (i) => he(a) ? a.value = i : null),
|
|
215
|
+
title: t.collectorTitle ?? "收集数据",
|
|
214
216
|
width: "420px"
|
|
215
217
|
}, {
|
|
216
218
|
default: n(() => [
|
|
217
|
-
m("div",
|
|
218
|
-
(o(!0), v(
|
|
219
|
-
key:
|
|
219
|
+
m("div", fl, [
|
|
220
|
+
(o(!0), v(K, null, le(s(l), (i) => (o(), C(N, {
|
|
221
|
+
key: i.value,
|
|
220
222
|
class: "collect-option",
|
|
221
|
-
"data-scope":
|
|
222
|
-
disabled:
|
|
223
|
-
onClick: (g) =>
|
|
223
|
+
"data-scope": i.value,
|
|
224
|
+
disabled: i.disabled,
|
|
225
|
+
onClick: (g) => s(U)(i.value)
|
|
224
226
|
}, {
|
|
225
227
|
default: n(() => [
|
|
226
|
-
$(I(
|
|
228
|
+
$(I(i.label), 1)
|
|
227
229
|
]),
|
|
228
230
|
_: 2
|
|
229
231
|
}, 1032, ["data-scope", "disabled", "onClick"]))), 128))
|
|
230
232
|
]),
|
|
231
|
-
m("p",
|
|
233
|
+
m("p", vl, " 单次最多 " + I(t.maxCollectCount) + " 条,超出将被截断。 ", 1)
|
|
232
234
|
]),
|
|
233
235
|
_: 1
|
|
234
236
|
}, 8, ["modelValue", "title"]),
|
|
235
237
|
p(J, {
|
|
236
|
-
modelValue:
|
|
237
|
-
"onUpdate:modelValue": Y[1] || (Y[1] = (
|
|
238
|
+
modelValue: s(f),
|
|
239
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (i) => he(f) ? f.value = i : null),
|
|
238
240
|
title: "正在处理数据",
|
|
239
241
|
width: "420px",
|
|
240
242
|
"close-on-click-modal": !1,
|
|
241
243
|
"show-close": !1
|
|
242
244
|
}, {
|
|
243
245
|
footer: n(() => [
|
|
244
|
-
p(
|
|
246
|
+
p(N, {
|
|
245
247
|
class: "collect-cancel",
|
|
246
|
-
onClick:
|
|
248
|
+
onClick: s(E)
|
|
247
249
|
}, {
|
|
248
250
|
default: n(() => [...Y[3] || (Y[3] = [
|
|
249
251
|
$("取消", -1)
|
|
@@ -252,16 +254,16 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
252
254
|
}, 8, ["onClick"])
|
|
253
255
|
]),
|
|
254
256
|
default: n(() => [
|
|
255
|
-
p(
|
|
256
|
-
m("p",
|
|
257
|
-
$(" 已处理 " + I(
|
|
258
|
-
u
|
|
259
|
-
$(" / " + I(
|
|
260
|
-
], 64)) :
|
|
257
|
+
p(j, { percentage: s(F) }, null, 8, ["percentage"]),
|
|
258
|
+
m("p", yl, [
|
|
259
|
+
$(" 已处理 " + I(s(r)), 1),
|
|
260
|
+
s(u) ? (o(), v(K, { key: 0 }, [
|
|
261
|
+
$(" / " + I(s(d)), 1)
|
|
262
|
+
], 64)) : B("", !0),
|
|
261
263
|
Y[2] || (Y[2] = $(" 条", -1)),
|
|
262
|
-
h.value ? (o(), v(
|
|
264
|
+
h.value ? (o(), v(K, { key: 1 }, [
|
|
263
265
|
$(",预计剩余约 " + I(h.value), 1)
|
|
264
|
-
], 64)) :
|
|
266
|
+
], 64)) : B("", !0)
|
|
265
267
|
])
|
|
266
268
|
]),
|
|
267
269
|
_: 1
|
|
@@ -269,7 +271,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
269
271
|
], 64);
|
|
270
272
|
};
|
|
271
273
|
}
|
|
272
|
-
}),
|
|
274
|
+
}), _l = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-fa21b7d3"]]), kl = /* @__PURE__ */ te({
|
|
273
275
|
__name: "columnConfigDialog",
|
|
274
276
|
props: {
|
|
275
277
|
/** 加载自定义配置(含列设置与用户默认分页大小;返回 null 按空配置处理) */
|
|
@@ -280,81 +282,81 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
280
282
|
meta: { type: Object, default: null }
|
|
281
283
|
},
|
|
282
284
|
setup(e, { expose: y }) {
|
|
283
|
-
const
|
|
285
|
+
const t = e, l = {
|
|
284
286
|
get loadCustomConfigFun() {
|
|
285
|
-
return
|
|
287
|
+
return t.loadCustomConfigFun;
|
|
286
288
|
},
|
|
287
289
|
get saveCustomConfigFun() {
|
|
288
|
-
return
|
|
290
|
+
return t.saveCustomConfigFun;
|
|
289
291
|
}
|
|
290
292
|
}, {
|
|
291
293
|
// 字段(状态 + 派生)
|
|
292
294
|
columns: a,
|
|
293
295
|
customConfigLoading: f,
|
|
294
|
-
defaultPageSize:
|
|
296
|
+
defaultPageSize: r,
|
|
295
297
|
configDialogVisible: d,
|
|
296
|
-
draftColumns:
|
|
298
|
+
draftColumns: u,
|
|
297
299
|
// 函数
|
|
298
300
|
loadCustomConfigs: w,
|
|
299
301
|
updateDefaultPageSize: F,
|
|
300
302
|
updateColumnWidth: A,
|
|
301
|
-
openConfigDialog:
|
|
302
|
-
moveDraft:
|
|
303
|
+
openConfigDialog: U,
|
|
304
|
+
moveDraft: E,
|
|
303
305
|
resetDraft: h,
|
|
304
306
|
saveConfigDialog: _
|
|
305
|
-
} =
|
|
307
|
+
} = jt(l, ne(t, "meta"));
|
|
306
308
|
return y({
|
|
307
309
|
// 字段
|
|
308
310
|
columns: a,
|
|
309
|
-
defaultPageSize:
|
|
311
|
+
defaultPageSize: r,
|
|
310
312
|
customConfigLoading: f,
|
|
311
313
|
// 函数
|
|
312
314
|
updateDefaultPageSize: F,
|
|
313
315
|
updateColumnWidth: A,
|
|
314
316
|
loadCustomConfigs: w,
|
|
315
|
-
openDialog:
|
|
316
|
-
}), (Y,
|
|
317
|
-
const J =
|
|
318
|
-
return o(),
|
|
319
|
-
modelValue:
|
|
320
|
-
"onUpdate:modelValue":
|
|
317
|
+
openDialog: U
|
|
318
|
+
}), (Y, N) => {
|
|
319
|
+
const J = S("el-checkbox"), j = S("el-input"), i = S("el-button"), g = S("el-dialog");
|
|
320
|
+
return o(), C(g, {
|
|
321
|
+
modelValue: s(d),
|
|
322
|
+
"onUpdate:modelValue": N[1] || (N[1] = (z) => he(d) ? d.value = z : null),
|
|
321
323
|
title: "列设置",
|
|
322
324
|
width: "480px"
|
|
323
325
|
}, {
|
|
324
326
|
footer: n(() => [
|
|
325
|
-
p(
|
|
326
|
-
default: n(() => [...
|
|
327
|
+
p(i, { onClick: s(h) }, {
|
|
328
|
+
default: n(() => [...N[4] || (N[4] = [
|
|
327
329
|
$("重置", -1)
|
|
328
330
|
])]),
|
|
329
331
|
_: 1
|
|
330
332
|
}, 8, ["onClick"]),
|
|
331
|
-
p(
|
|
332
|
-
onClick:
|
|
333
|
+
p(i, {
|
|
334
|
+
onClick: N[0] || (N[0] = (z) => d.value = !1)
|
|
333
335
|
}, {
|
|
334
|
-
default: n(() => [...
|
|
336
|
+
default: n(() => [...N[5] || (N[5] = [
|
|
335
337
|
$("取消", -1)
|
|
336
338
|
])]),
|
|
337
339
|
_: 1
|
|
338
340
|
}),
|
|
339
|
-
p(
|
|
341
|
+
p(i, {
|
|
340
342
|
type: "primary",
|
|
341
343
|
class: "col-config-save",
|
|
342
|
-
onClick:
|
|
344
|
+
onClick: s(_)
|
|
343
345
|
}, {
|
|
344
|
-
default: n(() => [...
|
|
346
|
+
default: n(() => [...N[6] || (N[6] = [
|
|
345
347
|
$("保存", -1)
|
|
346
348
|
])]),
|
|
347
349
|
_: 1
|
|
348
350
|
}, 8, ["onClick"])
|
|
349
351
|
]),
|
|
350
352
|
default: n(() => [
|
|
351
|
-
(o(!0), v(
|
|
353
|
+
(o(!0), v(K, null, le(s(u), (z, O) => (o(), v("div", {
|
|
352
354
|
key: z.propertyPath,
|
|
353
355
|
class: "col-config-row"
|
|
354
356
|
}, [
|
|
355
357
|
p(J, {
|
|
356
358
|
modelValue: z.visible,
|
|
357
|
-
"onUpdate:modelValue": (
|
|
359
|
+
"onUpdate:modelValue": (L) => z.visible = L,
|
|
358
360
|
class: "col-config-name"
|
|
359
361
|
}, {
|
|
360
362
|
default: n(() => [
|
|
@@ -362,31 +364,31 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
362
364
|
]),
|
|
363
365
|
_: 2
|
|
364
366
|
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
365
|
-
p(
|
|
367
|
+
p(j, {
|
|
366
368
|
modelValue: z.width,
|
|
367
|
-
"onUpdate:modelValue": (
|
|
369
|
+
"onUpdate:modelValue": (L) => z.width = L,
|
|
368
370
|
class: "col-config-width",
|
|
369
371
|
placeholder: "宽度(如 120)",
|
|
370
372
|
size: "small"
|
|
371
373
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
372
|
-
p(
|
|
374
|
+
p(i, {
|
|
373
375
|
link: "",
|
|
374
376
|
type: "primary",
|
|
375
|
-
disabled:
|
|
376
|
-
onClick: (
|
|
377
|
+
disabled: O === 0,
|
|
378
|
+
onClick: (L) => s(E)(O, -1)
|
|
377
379
|
}, {
|
|
378
|
-
default: n(() => [...
|
|
380
|
+
default: n(() => [...N[2] || (N[2] = [
|
|
379
381
|
$("上移", -1)
|
|
380
382
|
])]),
|
|
381
383
|
_: 1
|
|
382
384
|
}, 8, ["disabled", "onClick"]),
|
|
383
|
-
p(
|
|
385
|
+
p(i, {
|
|
384
386
|
link: "",
|
|
385
387
|
type: "primary",
|
|
386
|
-
disabled:
|
|
387
|
-
onClick: (
|
|
388
|
+
disabled: O === s(u).length - 1,
|
|
389
|
+
onClick: (L) => s(E)(O, 1)
|
|
388
390
|
}, {
|
|
389
|
-
default: n(() => [...
|
|
391
|
+
default: n(() => [...N[3] || (N[3] = [
|
|
390
392
|
$(" 下移 ", -1)
|
|
391
393
|
])]),
|
|
392
394
|
_: 1
|
|
@@ -397,7 +399,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
397
399
|
}, 8, ["modelValue"]);
|
|
398
400
|
};
|
|
399
401
|
}
|
|
400
|
-
}),
|
|
402
|
+
}), bl = /* @__PURE__ */ re(kl, [["__scopeId", "data-v-a6f853c4"]]), hl = /* @__PURE__ */ te({
|
|
401
403
|
__name: "rowActionsColumn",
|
|
402
404
|
props: {
|
|
403
405
|
/** 行操作列表(由 Table 的 useRowActions 加载);为空时不渲染操作列 */
|
|
@@ -408,41 +410,41 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
408
410
|
resizable: { type: Boolean, default: !0 }
|
|
409
411
|
},
|
|
410
412
|
setup(e) {
|
|
411
|
-
const y = e,
|
|
413
|
+
const y = e, t = q(
|
|
412
414
|
() => y.actions.length === 0 ? void 0 : y.actions.length * 34 + (y.actions.length - 1) * 12 + 30
|
|
413
415
|
);
|
|
414
|
-
return (
|
|
415
|
-
const f =
|
|
416
|
-
return y.actions.length > 0 ? (o(),
|
|
416
|
+
return (l, a) => {
|
|
417
|
+
const f = S("el-button"), r = S("el-table-column");
|
|
418
|
+
return y.actions.length > 0 ? (o(), C(r, {
|
|
417
419
|
key: 0,
|
|
418
420
|
label: "操作",
|
|
419
421
|
fixed: "right",
|
|
420
|
-
"min-width":
|
|
422
|
+
"min-width": t.value,
|
|
421
423
|
resizable: y.resizable
|
|
422
424
|
}, {
|
|
423
425
|
default: n(({ row: d }) => [
|
|
424
|
-
(o(!0), v(
|
|
425
|
-
key:
|
|
426
|
+
(o(!0), v(K, null, le(s(at)(y.actions, d), (u) => (o(), C(f, {
|
|
427
|
+
key: u.name,
|
|
426
428
|
link: "",
|
|
427
|
-
type:
|
|
428
|
-
disabled: !
|
|
429
|
-
onClick: (w) =>
|
|
429
|
+
type: u.type ?? "primary",
|
|
430
|
+
disabled: !s(kt)(u, d),
|
|
431
|
+
onClick: (w) => u.execute(d, y.table)
|
|
430
432
|
}, {
|
|
431
433
|
default: n(() => [
|
|
432
|
-
|
|
434
|
+
u.icon ? (o(), C(Ae(u.icon), {
|
|
433
435
|
key: 0,
|
|
434
436
|
class: "yk-row-action__icon"
|
|
435
|
-
})) :
|
|
436
|
-
$(" " + I(
|
|
437
|
+
})) : B("", !0),
|
|
438
|
+
$(" " + I(u.desc), 1)
|
|
437
439
|
]),
|
|
438
440
|
_: 2
|
|
439
441
|
}, 1032, ["type", "disabled", "onClick"]))), 128))
|
|
440
442
|
]),
|
|
441
443
|
_: 1
|
|
442
|
-
}, 8, ["min-width", "resizable"])) :
|
|
444
|
+
}, 8, ["min-width", "resizable"])) : B("", !0);
|
|
443
445
|
};
|
|
444
446
|
}
|
|
445
|
-
}),
|
|
447
|
+
}), wl = /* @__PURE__ */ re(hl, [["__scopeId", "data-v-34f3d742"]]), xl = { class: "yk-table__cards" }, Cl = ["title", "onContextmenu"], Sl = { class: "yk-table__card-json" }, $l = /* @__PURE__ */ te({
|
|
446
448
|
__name: "cardView",
|
|
447
449
|
props: {
|
|
448
450
|
rows: {},
|
|
@@ -454,42 +456,42 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
454
456
|
},
|
|
455
457
|
emits: ["check", "contextmenu"],
|
|
456
458
|
setup(e, { emit: y }) {
|
|
457
|
-
const
|
|
459
|
+
const t = e, l = y;
|
|
458
460
|
return (a, f) => {
|
|
459
|
-
const
|
|
460
|
-
return o(), v("div",
|
|
461
|
-
(o(!0), v(
|
|
462
|
-
key: String(
|
|
463
|
-
class:
|
|
464
|
-
"is-selected":
|
|
465
|
-
"has-actions":
|
|
461
|
+
const r = S("el-checkbox"), d = S("el-empty");
|
|
462
|
+
return o(), v("div", xl, [
|
|
463
|
+
(o(!0), v(K, null, le(t.rows, (u, w) => (o(), v("div", {
|
|
464
|
+
key: String(u[t.rowKey]),
|
|
465
|
+
class: Ce(["yk-table__card", {
|
|
466
|
+
"is-selected": t.showCheckbox && t.isSelected(u),
|
|
467
|
+
"has-actions": t.hasActions
|
|
466
468
|
}]),
|
|
467
|
-
title:
|
|
468
|
-
onContextmenu: (F) =>
|
|
469
|
+
title: t.hasActions ? "右键查看行操作" : void 0,
|
|
470
|
+
onContextmenu: (F) => l("contextmenu", F, u)
|
|
469
471
|
}, [
|
|
470
|
-
|
|
472
|
+
t.showCheckbox ? (o(), C(r, {
|
|
471
473
|
key: 0,
|
|
472
474
|
class: "yk-table__card-checkbox",
|
|
473
|
-
"model-value":
|
|
474
|
-
onChange: (F) =>
|
|
475
|
-
}, null, 8, ["model-value", "onChange"])) :
|
|
475
|
+
"model-value": t.isSelected(u),
|
|
476
|
+
onChange: (F) => l("check", u, F)
|
|
477
|
+
}, null, 8, ["model-value", "onChange"])) : B("", !0),
|
|
476
478
|
ee(a.$slots, "default", {
|
|
477
|
-
row:
|
|
479
|
+
row: u,
|
|
478
480
|
index: w
|
|
479
481
|
}, () => [
|
|
480
|
-
m("pre",
|
|
482
|
+
m("pre", Sl, I(JSON.stringify(u, null, 2)), 1)
|
|
481
483
|
], !0)
|
|
482
|
-
], 42,
|
|
483
|
-
!
|
|
484
|
-
a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(),
|
|
484
|
+
], 42, Cl))), 128)),
|
|
485
|
+
!t.loading && t.rows.length === 0 ? (o(), v(K, { key: 0 }, [
|
|
486
|
+
a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(), C(d, {
|
|
485
487
|
key: 1,
|
|
486
488
|
description: "暂无数据"
|
|
487
489
|
}))
|
|
488
|
-
], 64)) :
|
|
490
|
+
], 64)) : B("", !0)
|
|
489
491
|
]);
|
|
490
492
|
};
|
|
491
493
|
}
|
|
492
|
-
}),
|
|
494
|
+
}), Fl = /* @__PURE__ */ re($l, [["__scopeId", "data-v-88966e9a"]]), Vl = { class: "yk-table__list" }, Rl = ["title", "onContextmenu"], Ml = { class: "yk-table__list-item-body" }, Pl = { class: "yk-table__list-item-json" }, zl = /* @__PURE__ */ te({
|
|
493
495
|
__name: "listView",
|
|
494
496
|
props: {
|
|
495
497
|
rows: {},
|
|
@@ -501,44 +503,44 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
501
503
|
},
|
|
502
504
|
emits: ["check", "contextmenu"],
|
|
503
505
|
setup(e, { emit: y }) {
|
|
504
|
-
const
|
|
506
|
+
const t = e, l = y;
|
|
505
507
|
return (a, f) => {
|
|
506
|
-
const
|
|
507
|
-
return o(), v("div",
|
|
508
|
-
(o(!0), v(
|
|
509
|
-
key: String(
|
|
510
|
-
class:
|
|
511
|
-
"is-selected":
|
|
512
|
-
"has-actions":
|
|
508
|
+
const r = S("el-checkbox"), d = S("el-empty");
|
|
509
|
+
return o(), v("div", Vl, [
|
|
510
|
+
(o(!0), v(K, null, le(t.rows, (u, w) => (o(), v("div", {
|
|
511
|
+
key: String(u[t.rowKey]),
|
|
512
|
+
class: Ce(["yk-table__list-item", {
|
|
513
|
+
"is-selected": t.showCheckbox && t.isSelected(u),
|
|
514
|
+
"has-actions": t.hasActions
|
|
513
515
|
}]),
|
|
514
|
-
title:
|
|
515
|
-
onContextmenu: (F) =>
|
|
516
|
+
title: t.hasActions ? "右键查看行操作" : void 0,
|
|
517
|
+
onContextmenu: (F) => l("contextmenu", F, u)
|
|
516
518
|
}, [
|
|
517
|
-
|
|
519
|
+
t.showCheckbox ? (o(), C(r, {
|
|
518
520
|
key: 0,
|
|
519
521
|
class: "yk-table__list-item-checkbox",
|
|
520
|
-
"model-value":
|
|
521
|
-
onChange: (F) =>
|
|
522
|
-
}, null, 8, ["model-value", "onChange"])) :
|
|
523
|
-
m("div",
|
|
522
|
+
"model-value": t.isSelected(u),
|
|
523
|
+
onChange: (F) => l("check", u, F)
|
|
524
|
+
}, null, 8, ["model-value", "onChange"])) : B("", !0),
|
|
525
|
+
m("div", Ml, [
|
|
524
526
|
ee(a.$slots, "default", {
|
|
525
|
-
row:
|
|
527
|
+
row: u,
|
|
526
528
|
index: w
|
|
527
529
|
}, () => [
|
|
528
|
-
m("pre",
|
|
530
|
+
m("pre", Pl, I(JSON.stringify(u, null, 2)), 1)
|
|
529
531
|
], !0)
|
|
530
532
|
])
|
|
531
|
-
], 42,
|
|
532
|
-
!
|
|
533
|
-
a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(),
|
|
533
|
+
], 42, Rl))), 128)),
|
|
534
|
+
!t.loading && t.rows.length === 0 ? (o(), v(K, { key: 0 }, [
|
|
535
|
+
a.$slots.empty ? ee(a.$slots, "empty", {}, void 0, !0, 0) : (o(), C(d, {
|
|
534
536
|
key: 1,
|
|
535
537
|
description: "暂无数据"
|
|
536
538
|
}))
|
|
537
|
-
], 64)) :
|
|
539
|
+
], 64)) : B("", !0)
|
|
538
540
|
]);
|
|
539
541
|
};
|
|
540
542
|
}
|
|
541
|
-
}),
|
|
543
|
+
}), Al = /* @__PURE__ */ re(zl, [["__scopeId", "data-v-0488eb89"]]), Dl = ["onClick"], Bl = /* @__PURE__ */ te({
|
|
542
544
|
__name: "contextMenu",
|
|
543
545
|
props: {
|
|
544
546
|
menu: {},
|
|
@@ -547,40 +549,40 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
547
549
|
},
|
|
548
550
|
emits: ["close", "select"],
|
|
549
551
|
setup(e, { emit: y }) {
|
|
550
|
-
const
|
|
551
|
-
return (a, f) => (o(),
|
|
552
|
-
|
|
552
|
+
const t = e, l = y;
|
|
553
|
+
return (a, f) => (o(), C(Bt, { to: "body" }, [
|
|
554
|
+
t.menu ? (o(), v(K, { key: 0 }, [
|
|
553
555
|
m("div", {
|
|
554
556
|
class: "yk-table__menu-mask",
|
|
555
|
-
onClick: f[0] || (f[0] = (
|
|
556
|
-
onContextmenu: f[1] || (f[1] =
|
|
557
|
+
onClick: f[0] || (f[0] = (r) => l("close")),
|
|
558
|
+
onContextmenu: f[1] || (f[1] = vt((r) => l("close"), ["prevent"]))
|
|
557
559
|
}, null, 32),
|
|
558
560
|
m("ul", {
|
|
559
561
|
class: "yk-table__context-menu",
|
|
560
|
-
style:
|
|
562
|
+
style: st({ left: `${t.menu.x}px`, top: `${t.menu.y}px` })
|
|
561
563
|
}, [
|
|
562
|
-
(o(!0), v(
|
|
563
|
-
key:
|
|
564
|
-
class:
|
|
565
|
-
onClick: (d) =>
|
|
564
|
+
(o(!0), v(K, null, le(t.actions, (r) => (o(), v("li", {
|
|
565
|
+
key: r.name,
|
|
566
|
+
class: Ce(["yk-table__context-menu-item", { "is-disabled": !t.isEnabled(r, t.menu.row) }]),
|
|
567
|
+
onClick: (d) => t.isEnabled(r, t.menu.row) && l("select", r)
|
|
566
568
|
}, [
|
|
567
|
-
|
|
569
|
+
r.icon ? (o(), C(Ae(r.icon), {
|
|
568
570
|
key: 0,
|
|
569
571
|
class: "yk-table__context-menu-icon"
|
|
570
|
-
})) :
|
|
571
|
-
$(" " + I(
|
|
572
|
-
], 10,
|
|
572
|
+
})) : B("", !0),
|
|
573
|
+
$(" " + I(r.desc), 1)
|
|
574
|
+
], 10, Dl))), 128))
|
|
573
575
|
], 4)
|
|
574
|
-
], 64)) :
|
|
576
|
+
], 64)) : B("", !0)
|
|
575
577
|
]));
|
|
576
578
|
}
|
|
577
|
-
}),
|
|
579
|
+
}), El = /* @__PURE__ */ re(Bl, [["__scopeId", "data-v-32592dd4"]]), Il = { class: "yk-table" }, Tl = { class: "yk-table__view-area" }, Yl = {
|
|
578
580
|
key: 0,
|
|
579
581
|
class: "yk-table__loading-mask"
|
|
580
|
-
},
|
|
582
|
+
}, Ql = {
|
|
581
583
|
key: 0,
|
|
582
584
|
class: "yk-table__footer"
|
|
583
|
-
},
|
|
585
|
+
}, Nl = { class: "yk-table__footer-extra" }, Ol = /* @__PURE__ */ te({
|
|
584
586
|
name: "YsTable",
|
|
585
587
|
__name: "table",
|
|
586
588
|
props: {
|
|
@@ -639,71 +641,71 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
639
641
|
viewMode: { type: String, default: "table" }
|
|
640
642
|
},
|
|
641
643
|
emits: ["data-loaded", "update:viewMode", "update:showCheckbox", "update:columnResizable", "update:stickyHeader"],
|
|
642
|
-
setup(e, { expose: y, emit:
|
|
643
|
-
const
|
|
644
|
+
setup(e, { expose: y, emit: t }) {
|
|
645
|
+
const l = e, a = t, {
|
|
644
646
|
meta: f,
|
|
645
|
-
paged:
|
|
647
|
+
paged: r,
|
|
646
648
|
rows: d,
|
|
647
|
-
metaLoading:
|
|
649
|
+
metaLoading: u,
|
|
648
650
|
dataLoading: w,
|
|
649
651
|
currentPage: F,
|
|
650
652
|
total: A,
|
|
651
|
-
totalKnown:
|
|
652
|
-
loadMeta:
|
|
653
|
-
} =
|
|
653
|
+
totalKnown: U,
|
|
654
|
+
loadMeta: E
|
|
655
|
+
} = Ht(l), h = T(null), {
|
|
654
656
|
selectedRows: _,
|
|
655
657
|
onSelectionChange: Y,
|
|
656
|
-
isRowSelected:
|
|
658
|
+
isRowSelected: N,
|
|
657
659
|
toggleRowSelection: J,
|
|
658
|
-
restoreSelection:
|
|
659
|
-
clearSelection:
|
|
660
|
+
restoreSelection: j,
|
|
661
|
+
clearSelection: i,
|
|
660
662
|
selectAllOnPage: g,
|
|
661
663
|
invertSelectionOnPage: z
|
|
662
|
-
} =
|
|
664
|
+
} = bt({ tableEl: h, rows: d, rowKey: ne(l, "rowKey") }), O = {
|
|
663
665
|
get rowActionsFunc() {
|
|
664
|
-
return
|
|
666
|
+
return l.rowActionsFunc;
|
|
665
667
|
}
|
|
666
|
-
}, { actions:
|
|
668
|
+
}, { actions: L, actionsLoading: ue, loadActions: ie } = Gt(O), X = T(null), x = q(() => {
|
|
667
669
|
var c;
|
|
668
670
|
return ((c = X.value) == null ? void 0 : c.columns) ?? [];
|
|
669
|
-
}), b =
|
|
671
|
+
}), b = q(() => {
|
|
670
672
|
var c;
|
|
671
|
-
return ((c = X.value) == null ? void 0 : c.defaultPageSize) ??
|
|
672
|
-
}), R =
|
|
673
|
+
return ((c = X.value) == null ? void 0 : c.defaultPageSize) ?? l.pageSize;
|
|
674
|
+
}), R = q(() => {
|
|
673
675
|
var c;
|
|
674
676
|
return ((c = X.value) == null ? void 0 : c.customConfigLoading) ?? !1;
|
|
675
677
|
}), M = T(null), Z = T(null);
|
|
676
678
|
async function W(c) {
|
|
677
679
|
w.value = !0;
|
|
678
680
|
try {
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
+
const Q = (F.value - 1) * b.value, ae = await l.dataFun({ limit: b.value, offset: Q }, c);
|
|
682
|
+
r.value = ae, a("data-loaded", ae);
|
|
681
683
|
} finally {
|
|
682
684
|
w.value = !1;
|
|
683
685
|
}
|
|
684
686
|
}
|
|
685
|
-
const P =
|
|
686
|
-
var
|
|
687
|
-
const c = Math.min(b.value, ...
|
|
688
|
-
return A.value > c || (((
|
|
689
|
-
}), V =
|
|
690
|
-
() =>
|
|
687
|
+
const P = q(() => {
|
|
688
|
+
var Q;
|
|
689
|
+
const c = Math.min(b.value, ...l.pageSizes);
|
|
690
|
+
return A.value > c || (((Q = r.value) == null ? void 0 : Q.hasNext) ?? !1);
|
|
691
|
+
}), V = q(
|
|
692
|
+
() => u.value || w.value || ue.value || R.value
|
|
691
693
|
);
|
|
692
|
-
function
|
|
694
|
+
function H(c) {
|
|
693
695
|
F.value = c, W();
|
|
694
696
|
}
|
|
695
|
-
function
|
|
696
|
-
var
|
|
697
|
-
(
|
|
697
|
+
function oe(c) {
|
|
698
|
+
var Q;
|
|
699
|
+
(Q = X.value) == null || Q.updateDefaultPageSize(c), F.value = 1, W();
|
|
698
700
|
}
|
|
699
|
-
function de(c,
|
|
700
|
-
var
|
|
701
|
-
|
|
701
|
+
function de(c, Q, ae) {
|
|
702
|
+
var _e;
|
|
703
|
+
ae.property && ((_e = X.value) == null || _e.updateColumnWidth(ae.property, c));
|
|
702
704
|
}
|
|
703
705
|
async function pe() {
|
|
704
706
|
var c;
|
|
705
707
|
await Promise.all([
|
|
706
|
-
|
|
708
|
+
E(),
|
|
707
709
|
ie(),
|
|
708
710
|
(c = X.value) == null ? void 0 : c.loadCustomConfigs()
|
|
709
711
|
]), F.value = 1, W();
|
|
@@ -711,67 +713,67 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
711
713
|
function Fe() {
|
|
712
714
|
W();
|
|
713
715
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}), ce(() =>
|
|
716
|
+
Se(pe), ce(() => l.pageSize, (c) => {
|
|
717
|
+
oe(c);
|
|
718
|
+
}), ce(() => l.dataFun, () => {
|
|
717
719
|
F.value = 1, W();
|
|
718
720
|
});
|
|
719
|
-
const
|
|
720
|
-
ce(() =>
|
|
721
|
-
|
|
721
|
+
const we = T(l.viewMode);
|
|
722
|
+
ce(() => l.viewMode, (c) => {
|
|
723
|
+
we.value = c;
|
|
722
724
|
});
|
|
723
|
-
const
|
|
724
|
-
get: () =>
|
|
725
|
+
const ve = q({
|
|
726
|
+
get: () => we.value,
|
|
725
727
|
set: (c) => {
|
|
726
|
-
|
|
728
|
+
we.value = c, a("update:viewMode", c);
|
|
727
729
|
}
|
|
728
730
|
});
|
|
729
|
-
ce(
|
|
730
|
-
c === "table" &&
|
|
731
|
+
ce(ve, (c) => {
|
|
732
|
+
c === "table" && j();
|
|
731
733
|
});
|
|
732
|
-
const
|
|
733
|
-
ce(() =>
|
|
734
|
-
|
|
734
|
+
const De = T(l.showCheckbox);
|
|
735
|
+
ce(() => l.showCheckbox, (c) => {
|
|
736
|
+
De.value = c;
|
|
735
737
|
});
|
|
736
|
-
const
|
|
737
|
-
get: () =>
|
|
738
|
+
const me = q({
|
|
739
|
+
get: () => De.value,
|
|
738
740
|
set: (c) => {
|
|
739
|
-
|
|
741
|
+
De.value = c, a("update:showCheckbox", c), c || i();
|
|
740
742
|
}
|
|
741
743
|
});
|
|
742
744
|
function je(c) {
|
|
743
|
-
|
|
745
|
+
ve.value = c;
|
|
744
746
|
}
|
|
745
|
-
function
|
|
746
|
-
|
|
747
|
+
function Be(c) {
|
|
748
|
+
me.value = c;
|
|
747
749
|
}
|
|
748
|
-
const
|
|
749
|
-
ce(() =>
|
|
750
|
-
|
|
750
|
+
const Ee = T(l.columnResizable);
|
|
751
|
+
ce(() => l.columnResizable, (c) => {
|
|
752
|
+
Ee.value = c;
|
|
751
753
|
});
|
|
752
|
-
const
|
|
753
|
-
get: () =>
|
|
754
|
+
const $e = q({
|
|
755
|
+
get: () => Ee.value,
|
|
754
756
|
set: (c) => {
|
|
755
|
-
|
|
757
|
+
Ee.value = c, a("update:columnResizable", c);
|
|
756
758
|
}
|
|
757
759
|
});
|
|
758
760
|
function He(c) {
|
|
759
|
-
|
|
761
|
+
$e.value = c;
|
|
760
762
|
}
|
|
761
|
-
const
|
|
762
|
-
ce(() =>
|
|
763
|
-
|
|
763
|
+
const Ie = T(l.stickyHeader);
|
|
764
|
+
ce(() => l.stickyHeader, (c) => {
|
|
765
|
+
Ie.value = c;
|
|
764
766
|
});
|
|
765
|
-
const Ve =
|
|
766
|
-
get: () =>
|
|
767
|
+
const Ve = q({
|
|
768
|
+
get: () => Ie.value,
|
|
767
769
|
set: (c) => {
|
|
768
|
-
|
|
770
|
+
Ie.value = c, a("update:stickyHeader", c);
|
|
769
771
|
}
|
|
770
772
|
});
|
|
771
773
|
function Ge(c) {
|
|
772
774
|
Ve.value = c;
|
|
773
775
|
}
|
|
774
|
-
const We =
|
|
776
|
+
const We = Et(), Te = q(
|
|
775
777
|
() => Object.keys(We).filter((c) => c !== "_" && typeof We[c] == "function")
|
|
776
778
|
);
|
|
777
779
|
function Re() {
|
|
@@ -782,85 +784,89 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
782
784
|
var c;
|
|
783
785
|
(c = M.value) == null || c.openExportDialog();
|
|
784
786
|
}
|
|
785
|
-
function
|
|
786
|
-
var
|
|
787
|
-
(
|
|
787
|
+
function Ye(c) {
|
|
788
|
+
var Q;
|
|
789
|
+
(Q = Z.value) == null || Q.openCollectDialog(c);
|
|
790
|
+
}
|
|
791
|
+
function tt(c, Q) {
|
|
792
|
+
const ae = Q[c.propertyPath], _e = Nt(c, Q), xe = ut(c);
|
|
793
|
+
return xe ? xe(Q, ae, _e, c) : _e;
|
|
788
794
|
}
|
|
789
|
-
function Je(c,
|
|
790
|
-
J(c, !!
|
|
795
|
+
function Je(c, Q) {
|
|
796
|
+
J(c, !!Q);
|
|
791
797
|
}
|
|
792
|
-
const ke = T(null),
|
|
793
|
-
() => ke.value ?
|
|
798
|
+
const ke = T(null), k = q(
|
|
799
|
+
() => ke.value ? at(L.value, ke.value.row) : []
|
|
794
800
|
);
|
|
795
|
-
function
|
|
796
|
-
if (
|
|
801
|
+
function D(c, Q) {
|
|
802
|
+
if (L.value.length === 0) return;
|
|
797
803
|
c.preventDefault();
|
|
798
|
-
const
|
|
804
|
+
const ae = 176, xe = G(Q) * 34 + 8;
|
|
799
805
|
ke.value = {
|
|
800
|
-
x: Math.min(c.clientX, window.innerWidth -
|
|
801
|
-
y: Math.min(c.clientY, window.innerHeight -
|
|
802
|
-
row:
|
|
806
|
+
x: Math.min(c.clientX, window.innerWidth - ae - 8),
|
|
807
|
+
y: Math.min(c.clientY, window.innerHeight - xe - 8),
|
|
808
|
+
row: Q
|
|
803
809
|
};
|
|
804
810
|
}
|
|
805
|
-
function
|
|
806
|
-
return
|
|
811
|
+
function G(c) {
|
|
812
|
+
return at(L.value, c).length;
|
|
807
813
|
}
|
|
808
|
-
function
|
|
809
|
-
var
|
|
810
|
-
const
|
|
811
|
-
ke.value = null,
|
|
814
|
+
function se(c) {
|
|
815
|
+
var ae;
|
|
816
|
+
const Q = (ae = ke.value) == null ? void 0 : ae.row;
|
|
817
|
+
ke.value = null, Q && c.execute(Q, Pe);
|
|
812
818
|
}
|
|
813
|
-
function
|
|
819
|
+
function be(c) {
|
|
814
820
|
c.key === "Escape" && (ke.value = null);
|
|
815
821
|
}
|
|
816
|
-
|
|
822
|
+
Se(() => window.addEventListener("keydown", be)), Ue(() => window.removeEventListener("keydown", be)), y({
|
|
817
823
|
meta: f,
|
|
818
|
-
paged:
|
|
824
|
+
paged: r,
|
|
819
825
|
currentPage: F,
|
|
820
|
-
viewMode:
|
|
821
|
-
selectable:
|
|
822
|
-
columnResizable:
|
|
826
|
+
viewMode: ve,
|
|
827
|
+
selectable: me,
|
|
828
|
+
columnResizable: $e,
|
|
823
829
|
stickyHeader: Ve,
|
|
824
|
-
slotNames:
|
|
830
|
+
slotNames: Te,
|
|
825
831
|
selectedRows: _,
|
|
826
832
|
rows: d,
|
|
827
833
|
reload: pe,
|
|
828
834
|
refresh: Fe,
|
|
829
835
|
setViewMode: je,
|
|
830
|
-
setSelectable:
|
|
836
|
+
setSelectable: Be,
|
|
831
837
|
setColumnResizable: He,
|
|
832
838
|
setStickyHeader: Ge,
|
|
833
|
-
clearSelection:
|
|
839
|
+
clearSelection: i,
|
|
834
840
|
selectAllOnPage: g,
|
|
835
841
|
invertSelectionOnPage: z,
|
|
836
842
|
openConfigDialog: Re,
|
|
837
843
|
openExportDialog: Me,
|
|
838
|
-
openCollectDialog:
|
|
844
|
+
openCollectDialog: Ye
|
|
839
845
|
});
|
|
840
|
-
const
|
|
846
|
+
const Pe = {
|
|
841
847
|
get meta() {
|
|
842
848
|
return f.value;
|
|
843
849
|
},
|
|
844
850
|
get paged() {
|
|
845
|
-
return
|
|
851
|
+
return r.value;
|
|
846
852
|
},
|
|
847
853
|
get currentPage() {
|
|
848
854
|
return F.value;
|
|
849
855
|
},
|
|
850
856
|
get viewMode() {
|
|
851
|
-
return
|
|
857
|
+
return ve.value;
|
|
852
858
|
},
|
|
853
859
|
get selectable() {
|
|
854
|
-
return
|
|
860
|
+
return me.value;
|
|
855
861
|
},
|
|
856
862
|
get columnResizable() {
|
|
857
|
-
return
|
|
863
|
+
return $e.value;
|
|
858
864
|
},
|
|
859
865
|
get stickyHeader() {
|
|
860
866
|
return Ve.value;
|
|
861
867
|
},
|
|
862
868
|
get slotNames() {
|
|
863
|
-
return
|
|
869
|
+
return Te.value;
|
|
864
870
|
},
|
|
865
871
|
get selectedRows() {
|
|
866
872
|
return _.value;
|
|
@@ -871,62 +877,62 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
871
877
|
reload: pe,
|
|
872
878
|
refresh: Fe,
|
|
873
879
|
setViewMode: je,
|
|
874
|
-
setSelectable:
|
|
880
|
+
setSelectable: Be,
|
|
875
881
|
setColumnResizable: He,
|
|
876
882
|
setStickyHeader: Ge,
|
|
877
|
-
clearSelection:
|
|
883
|
+
clearSelection: i,
|
|
878
884
|
selectAllOnPage: g,
|
|
879
885
|
invertSelectionOnPage: z,
|
|
880
886
|
openConfigDialog: Re,
|
|
881
887
|
openExportDialog: Me,
|
|
882
|
-
openCollectDialog:
|
|
888
|
+
openCollectDialog: Ye
|
|
883
889
|
};
|
|
884
|
-
return (c,
|
|
885
|
-
var
|
|
886
|
-
const
|
|
887
|
-
return o(), v("div",
|
|
888
|
-
m("div",
|
|
889
|
-
|
|
890
|
+
return (c, Q) => {
|
|
891
|
+
var Xe;
|
|
892
|
+
const ae = S("el-table-column"), _e = S("el-table"), xe = S("el-pagination");
|
|
893
|
+
return o(), v("div", Il, [
|
|
894
|
+
m("div", Tl, [
|
|
895
|
+
ve.value === "table" ? (o(), v("div", {
|
|
890
896
|
key: 0,
|
|
891
|
-
class:
|
|
897
|
+
class: Ce(["yk-table__table-wrap", { "yk-table__table-wrap--sticky-header": Ve.value }])
|
|
892
898
|
}, [
|
|
893
|
-
p(
|
|
899
|
+
p(_e, {
|
|
894
900
|
ref_key: "tableEl",
|
|
895
901
|
ref: h,
|
|
896
|
-
data:
|
|
902
|
+
data: s(d),
|
|
897
903
|
"row-key": e.rowKey,
|
|
898
904
|
border: "",
|
|
899
|
-
onSelectionChange:
|
|
905
|
+
onSelectionChange: s(Y),
|
|
900
906
|
onHeaderDragend: de
|
|
901
|
-
},
|
|
907
|
+
}, ze({
|
|
902
908
|
default: n(() => [
|
|
903
|
-
|
|
909
|
+
me.value ? (o(), C(ae, {
|
|
904
910
|
key: 0,
|
|
905
911
|
type: "selection",
|
|
906
912
|
width: "48"
|
|
907
|
-
})) :
|
|
908
|
-
(o(!0), v(
|
|
909
|
-
key:
|
|
910
|
-
prop:
|
|
911
|
-
label:
|
|
912
|
-
width:
|
|
913
|
-
resizable:
|
|
913
|
+
})) : B("", !0),
|
|
914
|
+
(o(!0), v(K, null, le(x.value, (fe) => (o(), C(ae, {
|
|
915
|
+
key: fe.propertyPath,
|
|
916
|
+
prop: fe.propertyPath,
|
|
917
|
+
label: fe.displayName,
|
|
918
|
+
width: fe.width,
|
|
919
|
+
resizable: $e.value,
|
|
914
920
|
"show-overflow-tooltip": ""
|
|
915
|
-
},
|
|
916
|
-
|
|
921
|
+
}, ze({ _: 2 }, [
|
|
922
|
+
s(ut)(fe) || fe.formatter || s(Qt)(fe) ? {
|
|
917
923
|
name: "default",
|
|
918
|
-
fn: n(({ row:
|
|
919
|
-
(o(),
|
|
924
|
+
fn: n(({ row: Ne }) => [
|
|
925
|
+
(o(), C(Ae(() => tt(fe, Ne))))
|
|
920
926
|
]),
|
|
921
927
|
key: "0"
|
|
922
928
|
} : void 0
|
|
923
929
|
]), 1032, ["prop", "label", "width", "resizable"]))), 128)),
|
|
924
|
-
|
|
930
|
+
l.rowActionsFunc ? (o(), C(wl, {
|
|
925
931
|
key: 1,
|
|
926
|
-
actions:
|
|
927
|
-
table:
|
|
928
|
-
resizable:
|
|
929
|
-
}, null, 8, ["actions", "resizable"])) :
|
|
932
|
+
actions: s(L),
|
|
933
|
+
table: Pe,
|
|
934
|
+
resizable: $e.value
|
|
935
|
+
}, null, 8, ["actions", "resizable"])) : B("", !0)
|
|
930
936
|
]),
|
|
931
937
|
_: 2
|
|
932
938
|
}, [
|
|
@@ -938,23 +944,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
938
944
|
key: "0"
|
|
939
945
|
} : void 0
|
|
940
946
|
]), 1032, ["data", "row-key", "onSelectionChange"])
|
|
941
|
-
], 2)) :
|
|
947
|
+
], 2)) : ve.value === "card" ? (o(), C(Fl, {
|
|
942
948
|
key: 1,
|
|
943
|
-
rows:
|
|
949
|
+
rows: s(d),
|
|
944
950
|
"row-key": e.rowKey,
|
|
945
|
-
"show-checkbox":
|
|
951
|
+
"show-checkbox": me.value,
|
|
946
952
|
loading: V.value,
|
|
947
|
-
"has-actions":
|
|
948
|
-
"is-selected":
|
|
953
|
+
"has-actions": s(L).length > 0,
|
|
954
|
+
"is-selected": s(N),
|
|
949
955
|
onCheck: Je,
|
|
950
|
-
onContextmenu:
|
|
951
|
-
},
|
|
956
|
+
onContextmenu: D
|
|
957
|
+
}, ze({ _: 2 }, [
|
|
952
958
|
c.$slots.card ? {
|
|
953
959
|
name: "default",
|
|
954
|
-
fn: n(({ row:
|
|
960
|
+
fn: n(({ row: fe, index: Ne }) => [
|
|
955
961
|
ee(c.$slots, "card", {
|
|
956
|
-
row:
|
|
957
|
-
index:
|
|
962
|
+
row: fe,
|
|
963
|
+
index: Ne
|
|
958
964
|
}, void 0, !0)
|
|
959
965
|
]),
|
|
960
966
|
key: "0"
|
|
@@ -966,23 +972,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
966
972
|
]),
|
|
967
973
|
key: "1"
|
|
968
974
|
} : void 0
|
|
969
|
-
]), 1032, ["rows", "row-key", "show-checkbox", "loading", "has-actions", "is-selected"])) : (o(),
|
|
975
|
+
]), 1032, ["rows", "row-key", "show-checkbox", "loading", "has-actions", "is-selected"])) : (o(), C(Al, {
|
|
970
976
|
key: 2,
|
|
971
|
-
rows:
|
|
977
|
+
rows: s(d),
|
|
972
978
|
"row-key": e.rowKey,
|
|
973
|
-
"show-checkbox":
|
|
979
|
+
"show-checkbox": me.value,
|
|
974
980
|
loading: V.value,
|
|
975
|
-
"has-actions":
|
|
976
|
-
"is-selected":
|
|
981
|
+
"has-actions": s(L).length > 0,
|
|
982
|
+
"is-selected": s(N),
|
|
977
983
|
onCheck: Je,
|
|
978
|
-
onContextmenu:
|
|
979
|
-
},
|
|
984
|
+
onContextmenu: D
|
|
985
|
+
}, ze({ _: 2 }, [
|
|
980
986
|
c.$slots.list ? {
|
|
981
987
|
name: "default",
|
|
982
|
-
fn: n(({ row:
|
|
988
|
+
fn: n(({ row: fe, index: Ne }) => [
|
|
983
989
|
ee(c.$slots, "list", {
|
|
984
|
-
row:
|
|
985
|
-
index:
|
|
990
|
+
row: fe,
|
|
991
|
+
index: Ne
|
|
986
992
|
}, void 0, !0)
|
|
987
993
|
]),
|
|
988
994
|
key: "0"
|
|
@@ -995,94 +1001,95 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
995
1001
|
key: "1"
|
|
996
1002
|
} : void 0
|
|
997
1003
|
]), 1032, ["rows", "row-key", "show-checkbox", "loading", "has-actions", "is-selected"])),
|
|
998
|
-
p(
|
|
1004
|
+
p(It, { name: "yk-loading-fade" }, {
|
|
999
1005
|
default: n(() => [
|
|
1000
|
-
V.value ? (o(), v("div",
|
|
1006
|
+
V.value ? (o(), v("div", Yl, [
|
|
1001
1007
|
ee(c.$slots, "loading", {}, () => [
|
|
1002
|
-
|
|
1008
|
+
Q[1] || (Q[1] = m("span", {
|
|
1003
1009
|
class: "yk-table__loading-spinner",
|
|
1004
1010
|
"aria-label": "加载中"
|
|
1005
1011
|
}, null, -1))
|
|
1006
1012
|
], !0)
|
|
1007
|
-
])) :
|
|
1013
|
+
])) : B("", !0)
|
|
1008
1014
|
]),
|
|
1009
1015
|
_: 3
|
|
1010
1016
|
})
|
|
1011
1017
|
]),
|
|
1012
|
-
p(
|
|
1018
|
+
p(El, {
|
|
1013
1019
|
menu: ke.value,
|
|
1014
|
-
actions:
|
|
1015
|
-
"is-enabled":
|
|
1016
|
-
onClose:
|
|
1017
|
-
onSelect:
|
|
1020
|
+
actions: k.value,
|
|
1021
|
+
"is-enabled": s(kt),
|
|
1022
|
+
onClose: Q[0] || (Q[0] = (fe) => ke.value = null),
|
|
1023
|
+
onSelect: se
|
|
1018
1024
|
}, null, 8, ["menu", "actions", "is-enabled"]),
|
|
1019
|
-
P.value || c.$slots.footer ? (o(), v("div",
|
|
1020
|
-
m("div",
|
|
1025
|
+
P.value || c.$slots.footer ? (o(), v("div", Ql, [
|
|
1026
|
+
m("div", Nl, [
|
|
1021
1027
|
ee(c.$slots, "footer", {}, void 0, !0)
|
|
1022
1028
|
]),
|
|
1023
|
-
P.value ? (o(),
|
|
1029
|
+
P.value ? (o(), C(xe, {
|
|
1024
1030
|
key: 0,
|
|
1025
1031
|
class: "yk-table__pagination",
|
|
1026
1032
|
size: "small",
|
|
1027
1033
|
background: "",
|
|
1028
|
-
layout:
|
|
1029
|
-
total:
|
|
1034
|
+
layout: s(U) ? "total, sizes, prev, pager, next" : "sizes, prev, pager, next",
|
|
1035
|
+
total: s(A),
|
|
1030
1036
|
"page-sizes": e.pageSizes,
|
|
1031
1037
|
"page-size": b.value,
|
|
1032
|
-
"current-page":
|
|
1033
|
-
onCurrentChange:
|
|
1034
|
-
onSizeChange:
|
|
1035
|
-
}, null, 8, ["layout", "total", "page-sizes", "page-size", "current-page"])) :
|
|
1036
|
-
])) :
|
|
1037
|
-
p(
|
|
1038
|
+
"current-page": s(F),
|
|
1039
|
+
onCurrentChange: H,
|
|
1040
|
+
onSizeChange: oe
|
|
1041
|
+
}, null, 8, ["layout", "total", "page-sizes", "page-size", "current-page"])) : B("", !0)
|
|
1042
|
+
])) : B("", !0),
|
|
1043
|
+
p(Ct, {
|
|
1038
1044
|
ref_key: "exportDialogRef",
|
|
1039
1045
|
ref: M,
|
|
1040
|
-
"current-rows":
|
|
1041
|
-
"selected-rows":
|
|
1042
|
-
"data-fun":
|
|
1043
|
-
"export-page-size":
|
|
1044
|
-
total:
|
|
1045
|
-
"total-known":
|
|
1046
|
-
"exportor-func":
|
|
1047
|
-
"table-name": ((
|
|
1048
|
-
columns:
|
|
1046
|
+
"current-rows": s(d),
|
|
1047
|
+
"selected-rows": s(_),
|
|
1048
|
+
"data-fun": l.dataFun,
|
|
1049
|
+
"export-page-size": l.exportPageSize,
|
|
1050
|
+
total: s(A),
|
|
1051
|
+
"total-known": s(U),
|
|
1052
|
+
"exportor-func": l.exportorFunc,
|
|
1053
|
+
"table-name": ((Xe = s(f)) == null ? void 0 : Xe.displayName) ?? "数据",
|
|
1054
|
+
columns: x.value,
|
|
1049
1055
|
"has-more-page": P.value,
|
|
1050
|
-
"export-selected":
|
|
1056
|
+
"export-selected": me.value
|
|
1051
1057
|
}, null, 8, ["current-rows", "selected-rows", "data-fun", "export-page-size", "total", "total-known", "exportor-func", "table-name", "columns", "has-more-page", "export-selected"]),
|
|
1052
|
-
p(
|
|
1058
|
+
p(_l, {
|
|
1053
1059
|
ref_key: "collectDialogRef",
|
|
1054
1060
|
ref: Z,
|
|
1055
|
-
"current-rows":
|
|
1056
|
-
"selected-rows":
|
|
1057
|
-
"data-fun":
|
|
1058
|
-
"collect-page-size":
|
|
1059
|
-
"max-collect-count":
|
|
1060
|
-
"collector-func":
|
|
1061
|
-
"collector-title":
|
|
1062
|
-
|
|
1063
|
-
|
|
1061
|
+
"current-rows": s(d),
|
|
1062
|
+
"selected-rows": s(_),
|
|
1063
|
+
"data-fun": l.dataFun,
|
|
1064
|
+
"collect-page-size": l.collectPageSize,
|
|
1065
|
+
"max-collect-count": l.maxCollectCount,
|
|
1066
|
+
"collector-func": l.collectorFunc,
|
|
1067
|
+
"collector-title": l.collectorTitle,
|
|
1068
|
+
columns: x.value,
|
|
1069
|
+
total: s(A),
|
|
1070
|
+
"total-known": s(U),
|
|
1064
1071
|
"has-more-page": P.value,
|
|
1065
|
-
selectable:
|
|
1066
|
-
}, null, 8, ["current-rows", "selected-rows", "data-fun", "collect-page-size", "max-collect-count", "collector-func", "collector-title", "total", "total-known", "has-more-page", "selectable"]),
|
|
1067
|
-
p(
|
|
1072
|
+
selectable: me.value
|
|
1073
|
+
}, null, 8, ["current-rows", "selected-rows", "data-fun", "collect-page-size", "max-collect-count", "collector-func", "collector-title", "columns", "total", "total-known", "has-more-page", "selectable"]),
|
|
1074
|
+
p(bl, {
|
|
1068
1075
|
ref_key: "configDialogRef",
|
|
1069
1076
|
ref: X,
|
|
1070
1077
|
"load-custom-config-fun": e.loadCustomConfigFun,
|
|
1071
1078
|
"save-custom-config-fun": e.saveCustomConfigFun,
|
|
1072
|
-
meta:
|
|
1079
|
+
meta: s(f)
|
|
1073
1080
|
}, null, 8, ["load-custom-config-fun", "save-custom-config-fun", "meta"])
|
|
1074
1081
|
]);
|
|
1075
1082
|
};
|
|
1076
1083
|
}
|
|
1077
|
-
}),
|
|
1084
|
+
}), St = /* @__PURE__ */ re(Ol, [["__scopeId", "data-v-72888750"]]), ql = { class: "yk-table-action-menu-button__check" }, Ll = { class: "yk-table-action-menu-button__check" }, Ul = { class: "yk-table-action-menu-button__check" }, Kl = { class: "yk-table-action-menu-button__check" }, jl = { class: "yk-table-action-menu-button__check" }, Hl = { class: "yk-table-action-menu-button__check" }, Gl = /* @__PURE__ */ te({
|
|
1078
1085
|
__name: "tableActionMenuButton",
|
|
1079
1086
|
props: {
|
|
1080
1087
|
table: {}
|
|
1081
1088
|
},
|
|
1082
1089
|
setup(e) {
|
|
1083
1090
|
const y = e;
|
|
1084
|
-
function l
|
|
1085
|
-
switch (
|
|
1091
|
+
function t(l) {
|
|
1092
|
+
switch (l) {
|
|
1086
1093
|
case "refresh":
|
|
1087
1094
|
y.table.refresh();
|
|
1088
1095
|
break;
|
|
@@ -1112,17 +1119,17 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1112
1119
|
break;
|
|
1113
1120
|
}
|
|
1114
1121
|
}
|
|
1115
|
-
return (
|
|
1116
|
-
const f =
|
|
1117
|
-
return o(),
|
|
1122
|
+
return (l, a) => {
|
|
1123
|
+
const f = S("el-button"), r = S("el-dropdown-item"), d = S("el-dropdown-menu"), u = S("el-dropdown");
|
|
1124
|
+
return o(), C(u, {
|
|
1118
1125
|
trigger: "click",
|
|
1119
1126
|
placement: "bottom-end",
|
|
1120
|
-
onCommand:
|
|
1127
|
+
onCommand: t
|
|
1121
1128
|
}, {
|
|
1122
1129
|
dropdown: n(() => [
|
|
1123
1130
|
p(d, null, {
|
|
1124
1131
|
default: n(() => [
|
|
1125
|
-
p(
|
|
1132
|
+
p(r, { command: "refresh" }, {
|
|
1126
1133
|
default: n(() => [...a[1] || (a[1] = [
|
|
1127
1134
|
m("svg", {
|
|
1128
1135
|
viewBox: "0 0 24 24",
|
|
@@ -1143,7 +1150,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1143
1150
|
])]),
|
|
1144
1151
|
_: 1
|
|
1145
1152
|
}),
|
|
1146
|
-
p(
|
|
1153
|
+
p(r, { command: "export" }, {
|
|
1147
1154
|
default: n(() => [...a[2] || (a[2] = [
|
|
1148
1155
|
m("svg", {
|
|
1149
1156
|
viewBox: "0 0 24 24",
|
|
@@ -1169,7 +1176,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1169
1176
|
])]),
|
|
1170
1177
|
_: 1
|
|
1171
1178
|
}),
|
|
1172
|
-
p(
|
|
1179
|
+
p(r, { command: "config" }, {
|
|
1173
1180
|
default: n(() => [...a[3] || (a[3] = [
|
|
1174
1181
|
m("svg", {
|
|
1175
1182
|
viewBox: "0 0 24 24",
|
|
@@ -1193,56 +1200,56 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1193
1200
|
])]),
|
|
1194
1201
|
_: 1
|
|
1195
1202
|
}),
|
|
1196
|
-
p(
|
|
1203
|
+
p(r, {
|
|
1197
1204
|
command: "view-table",
|
|
1198
1205
|
divided: ""
|
|
1199
1206
|
}, {
|
|
1200
1207
|
default: n(() => [
|
|
1201
|
-
m("span",
|
|
1208
|
+
m("span", ql, I(e.table.viewMode === "table" ? "✓" : ""), 1),
|
|
1202
1209
|
a[4] || (a[4] = $("表格视图 ", -1))
|
|
1203
1210
|
]),
|
|
1204
1211
|
_: 1
|
|
1205
1212
|
}),
|
|
1206
|
-
e.table.slotNames.includes("card") ? (o(),
|
|
1213
|
+
e.table.slotNames.includes("card") ? (o(), C(r, {
|
|
1207
1214
|
key: 0,
|
|
1208
1215
|
command: "view-card"
|
|
1209
1216
|
}, {
|
|
1210
1217
|
default: n(() => [
|
|
1211
|
-
m("span",
|
|
1218
|
+
m("span", Ll, I(e.table.viewMode === "card" ? "✓" : ""), 1),
|
|
1212
1219
|
a[5] || (a[5] = $("卡片视图 ", -1))
|
|
1213
1220
|
]),
|
|
1214
1221
|
_: 1
|
|
1215
|
-
})) :
|
|
1216
|
-
e.table.slotNames.includes("list") ? (o(),
|
|
1222
|
+
})) : B("", !0),
|
|
1223
|
+
e.table.slotNames.includes("list") ? (o(), C(r, {
|
|
1217
1224
|
key: 1,
|
|
1218
1225
|
command: "view-list"
|
|
1219
1226
|
}, {
|
|
1220
1227
|
default: n(() => [
|
|
1221
|
-
m("span",
|
|
1228
|
+
m("span", Ul, I(e.table.viewMode === "list" ? "✓" : ""), 1),
|
|
1222
1229
|
a[6] || (a[6] = $("列表视图 ", -1))
|
|
1223
1230
|
]),
|
|
1224
1231
|
_: 1
|
|
1225
|
-
})) :
|
|
1226
|
-
p(
|
|
1232
|
+
})) : B("", !0),
|
|
1233
|
+
p(r, {
|
|
1227
1234
|
command: "toggle-checkbox",
|
|
1228
1235
|
divided: ""
|
|
1229
1236
|
}, {
|
|
1230
1237
|
default: n(() => [
|
|
1231
|
-
m("span",
|
|
1238
|
+
m("span", Kl, I(e.table.selectable ? "✓" : ""), 1),
|
|
1232
1239
|
a[7] || (a[7] = $("选择行 ", -1))
|
|
1233
1240
|
]),
|
|
1234
1241
|
_: 1
|
|
1235
1242
|
}),
|
|
1236
|
-
p(
|
|
1243
|
+
p(r, { command: "toggle-column-resize" }, {
|
|
1237
1244
|
default: n(() => [
|
|
1238
|
-
m("span",
|
|
1245
|
+
m("span", jl, I(e.table.columnResizable ? "✓" : ""), 1),
|
|
1239
1246
|
a[8] || (a[8] = $("列宽拖动 ", -1))
|
|
1240
1247
|
]),
|
|
1241
1248
|
_: 1
|
|
1242
1249
|
}),
|
|
1243
|
-
p(
|
|
1250
|
+
p(r, { command: "toggle-sticky-header" }, {
|
|
1244
1251
|
default: n(() => [
|
|
1245
|
-
m("span",
|
|
1252
|
+
m("span", Hl, I(e.table.stickyHeader ? "✓" : ""), 1),
|
|
1246
1253
|
a[9] || (a[9] = $("锁定表头 ", -1))
|
|
1247
1254
|
]),
|
|
1248
1255
|
_: 1
|
|
@@ -1252,7 +1259,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1252
1259
|
})
|
|
1253
1260
|
]),
|
|
1254
1261
|
default: n(() => [
|
|
1255
|
-
ee(
|
|
1262
|
+
ee(l.$slots, "trigger", {}, () => [
|
|
1256
1263
|
p(f, {
|
|
1257
1264
|
class: "yk-table-action-menu-button__btn",
|
|
1258
1265
|
title: "表格操作",
|
|
@@ -1314,62 +1321,62 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1314
1321
|
});
|
|
1315
1322
|
};
|
|
1316
1323
|
}
|
|
1317
|
-
}),
|
|
1324
|
+
}), $t = /* @__PURE__ */ re(Gl, [["__scopeId", "data-v-fffcf297"]]), Wl = {
|
|
1318
1325
|
key: 0,
|
|
1319
1326
|
class: "yk-table__selection-bar"
|
|
1320
|
-
},
|
|
1327
|
+
}, Jl = { class: "yk-table__selection-bar__count" }, Xl = /* @__PURE__ */ te({
|
|
1321
1328
|
__name: "selectionBar",
|
|
1322
1329
|
props: {
|
|
1323
1330
|
count: {}
|
|
1324
1331
|
},
|
|
1325
1332
|
emits: ["select-all", "invert", "clear"],
|
|
1326
1333
|
setup(e) {
|
|
1327
|
-
return (y,
|
|
1328
|
-
const
|
|
1329
|
-
return e.count > 0 ? (o(), v("div",
|
|
1330
|
-
m("span",
|
|
1331
|
-
|
|
1332
|
-
p(
|
|
1334
|
+
return (y, t) => {
|
|
1335
|
+
const l = S("el-button");
|
|
1336
|
+
return e.count > 0 ? (o(), v("div", Wl, [
|
|
1337
|
+
m("span", Jl, "已选 " + I(e.count) + " 项", 1),
|
|
1338
|
+
t[6] || (t[6] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
|
|
1339
|
+
p(l, {
|
|
1333
1340
|
link: "",
|
|
1334
1341
|
type: "primary",
|
|
1335
1342
|
class: "yk-table__selection-bar__btn",
|
|
1336
|
-
onClick:
|
|
1343
|
+
onClick: t[0] || (t[0] = (a) => y.$emit("select-all"))
|
|
1337
1344
|
}, {
|
|
1338
|
-
default: n(() => [...
|
|
1345
|
+
default: n(() => [...t[3] || (t[3] = [
|
|
1339
1346
|
$("全选", -1)
|
|
1340
1347
|
])]),
|
|
1341
1348
|
_: 1
|
|
1342
1349
|
}),
|
|
1343
|
-
p(
|
|
1350
|
+
p(l, {
|
|
1344
1351
|
link: "",
|
|
1345
1352
|
type: "primary",
|
|
1346
1353
|
class: "yk-table__selection-bar__btn",
|
|
1347
|
-
onClick:
|
|
1354
|
+
onClick: t[1] || (t[1] = (a) => y.$emit("invert"))
|
|
1348
1355
|
}, {
|
|
1349
|
-
default: n(() => [...
|
|
1356
|
+
default: n(() => [...t[4] || (t[4] = [
|
|
1350
1357
|
$("反选", -1)
|
|
1351
1358
|
])]),
|
|
1352
1359
|
_: 1
|
|
1353
1360
|
}),
|
|
1354
|
-
|
|
1355
|
-
p(
|
|
1361
|
+
t[7] || (t[7] = m("span", { class: "yk-table__selection-bar__sep" }, "|", -1)),
|
|
1362
|
+
p(l, {
|
|
1356
1363
|
link: "",
|
|
1357
1364
|
type: "primary",
|
|
1358
1365
|
class: "yk-table__selection-bar__btn",
|
|
1359
|
-
onClick:
|
|
1366
|
+
onClick: t[2] || (t[2] = (a) => y.$emit("clear"))
|
|
1360
1367
|
}, {
|
|
1361
|
-
default: n(() => [...
|
|
1368
|
+
default: n(() => [...t[5] || (t[5] = [
|
|
1362
1369
|
$("清空", -1)
|
|
1363
1370
|
])]),
|
|
1364
1371
|
_: 1
|
|
1365
1372
|
})
|
|
1366
|
-
])) :
|
|
1373
|
+
])) : B("", !0);
|
|
1367
1374
|
};
|
|
1368
1375
|
}
|
|
1369
|
-
}),
|
|
1376
|
+
}), Zl = /* @__PURE__ */ re(Xl, [["__scopeId", "data-v-3f40dafb"]]), eo = { class: "yk-command-bar" }, to = { class: "yk-command-bar__actions" }, lo = {
|
|
1370
1377
|
key: 0,
|
|
1371
1378
|
class: "yk-command-bar__right"
|
|
1372
|
-
},
|
|
1379
|
+
}, oo = /* @__PURE__ */ te({
|
|
1373
1380
|
__name: "commandBar",
|
|
1374
1381
|
props: {
|
|
1375
1382
|
/** 表级命令列表,每条渲染为一个 el-button(type/plain/icon/desc/align),click 调 execute(table) */
|
|
@@ -1378,113 +1385,113 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1378
1385
|
table: { type: Object, default: null }
|
|
1379
1386
|
},
|
|
1380
1387
|
setup(e) {
|
|
1381
|
-
const y = e,
|
|
1388
|
+
const y = e, t = q(() => y.actions.filter((a) => a.align !== "right")), l = q(() => y.actions.filter((a) => a.align === "right"));
|
|
1382
1389
|
return (a, f) => {
|
|
1383
|
-
const
|
|
1384
|
-
return o(), v("div",
|
|
1385
|
-
m("div",
|
|
1386
|
-
(o(!0), v(
|
|
1390
|
+
const r = S("el-button");
|
|
1391
|
+
return o(), v("div", eo, [
|
|
1392
|
+
m("div", to, [
|
|
1393
|
+
(o(!0), v(K, null, le(t.value, (d) => (o(), C(r, {
|
|
1387
1394
|
key: d.name,
|
|
1388
1395
|
type: d.type === "default" ? void 0 : d.type,
|
|
1389
1396
|
plain: d.plain,
|
|
1390
|
-
onClick: (
|
|
1397
|
+
onClick: (u) => y.table && d.execute(y.table)
|
|
1391
1398
|
}, {
|
|
1392
1399
|
default: n(() => [
|
|
1393
|
-
d.icon ? (o(),
|
|
1400
|
+
d.icon ? (o(), C(Ae(d.icon), {
|
|
1394
1401
|
key: 0,
|
|
1395
1402
|
class: "yk-command-bar__icon"
|
|
1396
|
-
})) :
|
|
1403
|
+
})) : B("", !0),
|
|
1397
1404
|
$(" " + I(d.desc), 1)
|
|
1398
1405
|
]),
|
|
1399
1406
|
_: 2
|
|
1400
1407
|
}, 1032, ["type", "plain", "onClick"]))), 128)),
|
|
1401
|
-
y.table ? (o(),
|
|
1408
|
+
y.table ? (o(), C(Zl, {
|
|
1402
1409
|
key: 0,
|
|
1403
1410
|
count: y.table.selectedRows.length,
|
|
1404
1411
|
onSelectAll: f[0] || (f[0] = (d) => {
|
|
1405
|
-
var
|
|
1406
|
-
return (
|
|
1412
|
+
var u;
|
|
1413
|
+
return (u = y.table) == null ? void 0 : u.selectAllOnPage();
|
|
1407
1414
|
}),
|
|
1408
1415
|
onInvert: f[1] || (f[1] = (d) => {
|
|
1409
|
-
var
|
|
1410
|
-
return (
|
|
1416
|
+
var u;
|
|
1417
|
+
return (u = y.table) == null ? void 0 : u.invertSelectionOnPage();
|
|
1411
1418
|
}),
|
|
1412
1419
|
onClear: f[2] || (f[2] = (d) => {
|
|
1413
|
-
var
|
|
1414
|
-
return (
|
|
1420
|
+
var u;
|
|
1421
|
+
return (u = y.table) == null ? void 0 : u.clearSelection();
|
|
1415
1422
|
})
|
|
1416
|
-
}, null, 8, ["count"])) :
|
|
1423
|
+
}, null, 8, ["count"])) : B("", !0),
|
|
1417
1424
|
ee(a.$slots, "default", {}, void 0, !0)
|
|
1418
1425
|
]),
|
|
1419
|
-
|
|
1420
|
-
(o(!0), v(
|
|
1426
|
+
l.value.length ? (o(), v("div", lo, [
|
|
1427
|
+
(o(!0), v(K, null, le(l.value, (d) => (o(), C(r, {
|
|
1421
1428
|
key: d.name,
|
|
1422
1429
|
type: d.type === "default" ? void 0 : d.type,
|
|
1423
1430
|
plain: d.plain,
|
|
1424
|
-
onClick: (
|
|
1431
|
+
onClick: (u) => y.table && d.execute(y.table)
|
|
1425
1432
|
}, {
|
|
1426
1433
|
default: n(() => [
|
|
1427
|
-
d.icon ? (o(),
|
|
1434
|
+
d.icon ? (o(), C(Ae(d.icon), {
|
|
1428
1435
|
key: 0,
|
|
1429
1436
|
class: "yk-command-bar__icon"
|
|
1430
|
-
})) :
|
|
1437
|
+
})) : B("", !0),
|
|
1431
1438
|
$(" " + I(d.desc), 1)
|
|
1432
1439
|
]),
|
|
1433
1440
|
_: 2
|
|
1434
1441
|
}, 1032, ["type", "plain", "onClick"]))), 128))
|
|
1435
|
-
])) :
|
|
1442
|
+
])) : B("", !0)
|
|
1436
1443
|
]);
|
|
1437
1444
|
};
|
|
1438
1445
|
}
|
|
1439
|
-
}),
|
|
1446
|
+
}), Ft = /* @__PURE__ */ re(oo, [["__scopeId", "data-v-c7eb7da1"]]), no = {
|
|
1440
1447
|
key: 0,
|
|
1441
1448
|
class: "ys-main-panel__menu-icon"
|
|
1442
|
-
},
|
|
1449
|
+
}, ao = { class: "ys-main-panel__menu-text" }, so = {
|
|
1443
1450
|
key: 0,
|
|
1444
1451
|
class: "ys-main-panel__menu-icon"
|
|
1445
|
-
},
|
|
1452
|
+
}, io = { class: "ys-main-panel__menu-text" }, mt = /* @__PURE__ */ te({
|
|
1446
1453
|
name: "YsMainPanelMenuNode",
|
|
1447
1454
|
__name: "mainPanelMenuNode",
|
|
1448
1455
|
props: {
|
|
1449
1456
|
node: {}
|
|
1450
1457
|
},
|
|
1451
1458
|
setup(e) {
|
|
1452
|
-
return (y,
|
|
1453
|
-
const
|
|
1454
|
-
return e.node.children && e.node.children.length > 0 ? (o(),
|
|
1459
|
+
return (y, t) => {
|
|
1460
|
+
const l = S("main-panel-menu-node", !0), a = S("el-sub-menu"), f = S("el-menu-item");
|
|
1461
|
+
return e.node.children && e.node.children.length > 0 ? (o(), C(a, {
|
|
1455
1462
|
key: 0,
|
|
1456
1463
|
index: e.node.key
|
|
1457
1464
|
}, {
|
|
1458
1465
|
title: n(() => [
|
|
1459
|
-
e.node.icon ? (o(), v("i",
|
|
1460
|
-
m("span",
|
|
1466
|
+
e.node.icon ? (o(), v("i", no, I(e.node.icon), 1)) : B("", !0),
|
|
1467
|
+
m("span", ao, I(e.node.label), 1)
|
|
1461
1468
|
]),
|
|
1462
1469
|
default: n(() => [
|
|
1463
|
-
(o(!0), v(
|
|
1464
|
-
key:
|
|
1465
|
-
node:
|
|
1470
|
+
(o(!0), v(K, null, le(e.node.children, (r) => (o(), C(l, {
|
|
1471
|
+
key: r.key,
|
|
1472
|
+
node: r
|
|
1466
1473
|
}, null, 8, ["node"]))), 128))
|
|
1467
1474
|
]),
|
|
1468
1475
|
_: 1
|
|
1469
|
-
}, 8, ["index"])) : (o(),
|
|
1476
|
+
}, 8, ["index"])) : (o(), C(f, {
|
|
1470
1477
|
key: 1,
|
|
1471
1478
|
index: e.node.key
|
|
1472
1479
|
}, {
|
|
1473
1480
|
default: n(() => [
|
|
1474
|
-
e.node.icon ? (o(), v("i",
|
|
1475
|
-
m("span",
|
|
1481
|
+
e.node.icon ? (o(), v("i", so, I(e.node.icon), 1)) : B("", !0),
|
|
1482
|
+
m("span", io, I(e.node.label), 1)
|
|
1476
1483
|
]),
|
|
1477
1484
|
_: 1
|
|
1478
1485
|
}, 8, ["index"]));
|
|
1479
1486
|
};
|
|
1480
1487
|
}
|
|
1481
|
-
}),
|
|
1488
|
+
}), ro = { class: "ys-main-panel" }, uo = { class: "ys-main-panel__aside-header" }, co = ["title"], po = {
|
|
1482
1489
|
key: 0,
|
|
1483
1490
|
class: "ys-main-panel__menu-empty"
|
|
1484
|
-
},
|
|
1491
|
+
}, mo = { class: "ys-main-panel__main" }, fo = {
|
|
1485
1492
|
key: 1,
|
|
1486
1493
|
class: "ys-main-panel__empty"
|
|
1487
|
-
},
|
|
1494
|
+
}, vo = /* @__PURE__ */ te({
|
|
1488
1495
|
name: "YsMainPanel",
|
|
1489
1496
|
__name: "mainPanel",
|
|
1490
1497
|
props: {
|
|
@@ -1509,46 +1516,46 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1509
1516
|
},
|
|
1510
1517
|
emits: ["update:menuKeyword"],
|
|
1511
1518
|
setup(e, { emit: y }) {
|
|
1512
|
-
const
|
|
1519
|
+
const t = e, l = y, a = T(!1), f = T(t.menuKeyword);
|
|
1513
1520
|
ce(
|
|
1514
|
-
() =>
|
|
1515
|
-
(
|
|
1516
|
-
f.value =
|
|
1521
|
+
() => t.menuKeyword,
|
|
1522
|
+
(i) => {
|
|
1523
|
+
f.value = i;
|
|
1517
1524
|
}
|
|
1518
1525
|
);
|
|
1519
|
-
const
|
|
1526
|
+
const r = q({
|
|
1520
1527
|
get: () => f.value,
|
|
1521
|
-
set: (
|
|
1522
|
-
f.value =
|
|
1528
|
+
set: (i) => {
|
|
1529
|
+
f.value = i, l("update:menuKeyword", i);
|
|
1523
1530
|
}
|
|
1524
|
-
}), d =
|
|
1525
|
-
function J(
|
|
1526
|
-
const g =
|
|
1527
|
-
g && !
|
|
1531
|
+
}), d = q(() => r.value.trim().length > 0), u = q(() => Wt(F.value, r.value)), w = q(() => Jt(u.value)), { nodes: F, menuLoading: A, loadNodes: U } = Xt(t), { openTabs: E, activeKey: h, openTab: _, removeTab: Y, getComponent: N } = Zt(t);
|
|
1532
|
+
function J(i) {
|
|
1533
|
+
const g = dt(F.value, i);
|
|
1534
|
+
g && !ct(g) && _(g);
|
|
1528
1535
|
}
|
|
1529
|
-
let
|
|
1530
|
-
return
|
|
1531
|
-
if (await
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1536
|
+
let j = !1;
|
|
1537
|
+
return Se(async () => {
|
|
1538
|
+
if (await U(), !j && t.defaultActive) {
|
|
1539
|
+
const i = dt(F.value, t.defaultActive);
|
|
1540
|
+
i && !ct(i) && _(i), j = !0;
|
|
1534
1541
|
}
|
|
1535
|
-
}), (
|
|
1536
|
-
const z =
|
|
1537
|
-
return o(), v("div",
|
|
1542
|
+
}), (i, g) => {
|
|
1543
|
+
const z = S("el-input"), O = S("el-menu"), L = S("el-tab-pane"), ue = S("el-tabs"), ie = S("el-empty"), X = yt("loading");
|
|
1544
|
+
return o(), v("div", ro, [
|
|
1538
1545
|
m("aside", {
|
|
1539
|
-
class:
|
|
1546
|
+
class: Ce(["ys-main-panel__aside", { "is-collapsed": a.value }])
|
|
1540
1547
|
}, [
|
|
1541
|
-
m("div",
|
|
1548
|
+
m("div", uo, [
|
|
1542
1549
|
m("button", {
|
|
1543
1550
|
class: "ys-main-panel__collapse-btn",
|
|
1544
1551
|
type: "button",
|
|
1545
1552
|
title: a.value ? "展开菜单" : "折叠菜单",
|
|
1546
|
-
onClick: g[0] || (g[0] = (
|
|
1547
|
-
}, "☰", 8,
|
|
1548
|
-
|
|
1553
|
+
onClick: g[0] || (g[0] = (x) => a.value = !a.value)
|
|
1554
|
+
}, "☰", 8, co),
|
|
1555
|
+
t.showMenuSearch && !a.value ? (o(), C(z, {
|
|
1549
1556
|
key: 0,
|
|
1550
|
-
modelValue:
|
|
1551
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
1557
|
+
modelValue: r.value,
|
|
1558
|
+
"onUpdate:modelValue": g[1] || (g[1] = (x) => r.value = x),
|
|
1552
1559
|
class: "ys-main-panel__aside-search",
|
|
1553
1560
|
size: "small",
|
|
1554
1561
|
clearable: "",
|
|
@@ -1570,11 +1577,11 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1570
1577
|
], -1)
|
|
1571
1578
|
])]),
|
|
1572
1579
|
_: 1
|
|
1573
|
-
}, 8, ["modelValue"])) :
|
|
1580
|
+
}, 8, ["modelValue"])) : B("", !0)
|
|
1574
1581
|
]),
|
|
1575
|
-
d.value ?
|
|
1576
|
-
key: "search-" +
|
|
1577
|
-
"default-active":
|
|
1582
|
+
d.value ? lt((o(), C(O, {
|
|
1583
|
+
key: "search-" + r.value,
|
|
1584
|
+
"default-active": s(h),
|
|
1578
1585
|
"default-openeds": w.value,
|
|
1579
1586
|
collapse: a.value,
|
|
1580
1587
|
class: "ys-main-panel__menu",
|
|
@@ -1582,76 +1589,76 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1582
1589
|
onSelect: J
|
|
1583
1590
|
}, {
|
|
1584
1591
|
default: n(() => [
|
|
1585
|
-
(o(!0), v(
|
|
1586
|
-
key:
|
|
1587
|
-
node:
|
|
1592
|
+
(o(!0), v(K, null, le(u.value, (x) => (o(), C(mt, {
|
|
1593
|
+
key: x.key,
|
|
1594
|
+
node: x
|
|
1588
1595
|
}, null, 8, ["node"]))), 128)),
|
|
1589
|
-
|
|
1596
|
+
u.value.length === 0 && !s(A) ? (o(), v("div", po, " 未找到匹配的功能 ")) : B("", !0)
|
|
1590
1597
|
]),
|
|
1591
1598
|
_: 1
|
|
1592
1599
|
}, 8, ["default-active", "default-openeds", "collapse"])), [
|
|
1593
|
-
[X,
|
|
1594
|
-
]) :
|
|
1600
|
+
[X, s(A)]
|
|
1601
|
+
]) : lt((o(), C(O, {
|
|
1595
1602
|
key: 1,
|
|
1596
|
-
"default-active":
|
|
1603
|
+
"default-active": s(h),
|
|
1597
1604
|
collapse: a.value,
|
|
1598
1605
|
class: "ys-main-panel__menu",
|
|
1599
1606
|
"element-loading-background": "transparent",
|
|
1600
1607
|
onSelect: J
|
|
1601
1608
|
}, {
|
|
1602
1609
|
default: n(() => [
|
|
1603
|
-
(o(!0), v(
|
|
1604
|
-
key:
|
|
1605
|
-
node:
|
|
1610
|
+
(o(!0), v(K, null, le(s(F), (x) => (o(), C(mt, {
|
|
1611
|
+
key: x.key,
|
|
1612
|
+
node: x
|
|
1606
1613
|
}, null, 8, ["node"]))), 128))
|
|
1607
1614
|
]),
|
|
1608
1615
|
_: 1
|
|
1609
1616
|
}, 8, ["default-active", "collapse"])), [
|
|
1610
|
-
[X,
|
|
1617
|
+
[X, s(A)]
|
|
1611
1618
|
])
|
|
1612
1619
|
], 2),
|
|
1613
|
-
m("main",
|
|
1614
|
-
|
|
1620
|
+
m("main", mo, [
|
|
1621
|
+
s(E).length > 0 ? (o(), C(ue, {
|
|
1615
1622
|
key: 0,
|
|
1616
|
-
modelValue:
|
|
1617
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
1623
|
+
modelValue: s(h),
|
|
1624
|
+
"onUpdate:modelValue": g[2] || (g[2] = (x) => he(h) ? h.value = x : null),
|
|
1618
1625
|
type: "card",
|
|
1619
1626
|
closable: "",
|
|
1620
1627
|
class: "ys-main-panel__tabs",
|
|
1621
|
-
onTabRemove:
|
|
1628
|
+
onTabRemove: s(Y)
|
|
1622
1629
|
}, {
|
|
1623
1630
|
default: n(() => [
|
|
1624
|
-
(o(!0), v(
|
|
1625
|
-
key:
|
|
1626
|
-
name:
|
|
1631
|
+
(o(!0), v(K, null, le(s(E), (x) => (o(), C(L, {
|
|
1632
|
+
key: x.key,
|
|
1633
|
+
name: x.key
|
|
1627
1634
|
}, {
|
|
1628
1635
|
label: n(() => [
|
|
1629
|
-
$(I(
|
|
1636
|
+
$(I(x.label), 1)
|
|
1630
1637
|
]),
|
|
1631
1638
|
default: n(() => [
|
|
1632
|
-
|
|
1639
|
+
x.componentPath ? (o(), C(Ae(s(N)(x.componentPath)), ot({
|
|
1633
1640
|
key: 0,
|
|
1634
1641
|
ref_for: !0
|
|
1635
|
-
},
|
|
1642
|
+
}, x.props), null, 16)) : B("", !0)
|
|
1636
1643
|
]),
|
|
1637
1644
|
_: 2
|
|
1638
1645
|
}, 1032, ["name"]))), 128))
|
|
1639
1646
|
]),
|
|
1640
1647
|
_: 1
|
|
1641
|
-
}, 8, ["modelValue", "onTabRemove"])) : (o(), v("div",
|
|
1648
|
+
}, 8, ["modelValue", "onTabRemove"])) : (o(), v("div", fo, [
|
|
1642
1649
|
p(ie, { description: "暂无打开的功能,从左侧菜单选择" })
|
|
1643
1650
|
]))
|
|
1644
1651
|
])
|
|
1645
1652
|
]);
|
|
1646
1653
|
};
|
|
1647
1654
|
}
|
|
1648
|
-
}),
|
|
1655
|
+
}), yo = /* @__PURE__ */ re(vo, [["__scopeId", "data-v-c36933e0"]]), go = {
|
|
1649
1656
|
key: 2,
|
|
1650
1657
|
class: "yk-advanced-value-editor yk-advanced-value-editor--range"
|
|
1651
|
-
},
|
|
1658
|
+
}, _o = {
|
|
1652
1659
|
key: 4,
|
|
1653
1660
|
class: "yk-advanced-value-editor yk-advanced-value-editor--daterange"
|
|
1654
|
-
},
|
|
1661
|
+
}, ko = { class: "yk-advanced-value-editor__recent-pop" }, bo = /* @__PURE__ */ te({
|
|
1655
1662
|
name: "YsAdvancedValueEditor",
|
|
1656
1663
|
__name: "advancedValueEditor",
|
|
1657
1664
|
props: {
|
|
@@ -1674,81 +1681,81 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1674
1681
|
},
|
|
1675
1682
|
emits: ["update:modelValue"],
|
|
1676
1683
|
setup(e, { emit: y }) {
|
|
1677
|
-
const
|
|
1678
|
-
get: () => typeof
|
|
1679
|
-
set: (
|
|
1680
|
-
}), d =
|
|
1681
|
-
get: () => typeof
|
|
1682
|
-
set: (
|
|
1683
|
-
}),
|
|
1684
|
-
get: () => typeof
|
|
1685
|
-
set: (
|
|
1686
|
-
}), w =
|
|
1687
|
-
get: () => typeof
|
|
1688
|
-
set: (
|
|
1689
|
-
}), F =
|
|
1684
|
+
const t = e, l = y, a = q(() => t.op === "between" || t.op === "not_between"), f = q(() => t.op === "in" || t.op === "not_in"), r = q({
|
|
1685
|
+
get: () => typeof t.modelValue == "string" ? t.modelValue : "",
|
|
1686
|
+
set: (i) => l("update:modelValue", i)
|
|
1687
|
+
}), d = q({
|
|
1688
|
+
get: () => typeof t.modelValue == "number" ? t.modelValue : void 0,
|
|
1689
|
+
set: (i) => l("update:modelValue", i ?? null)
|
|
1690
|
+
}), u = q({
|
|
1691
|
+
get: () => typeof t.modelValue == "string" ? t.modelValue : null,
|
|
1692
|
+
set: (i) => l("update:modelValue", i)
|
|
1693
|
+
}), w = q({
|
|
1694
|
+
get: () => typeof t.modelValue == "boolean" ? t.modelValue : void 0,
|
|
1695
|
+
set: (i) => l("update:modelValue", i ?? null)
|
|
1696
|
+
}), F = q({
|
|
1690
1697
|
get: () => {
|
|
1691
|
-
const
|
|
1692
|
-
if (typeof
|
|
1698
|
+
const i = t.modelValue;
|
|
1699
|
+
if (typeof i == "string" || typeof i == "number" || typeof i == "boolean") return i;
|
|
1693
1700
|
},
|
|
1694
|
-
set: (
|
|
1695
|
-
}), A =
|
|
1696
|
-
get: () => Array.isArray(
|
|
1697
|
-
set: (
|
|
1698
|
-
}),
|
|
1701
|
+
set: (i) => l("update:modelValue", i ?? null)
|
|
1702
|
+
}), A = q({
|
|
1703
|
+
get: () => Array.isArray(t.modelValue) ? t.modelValue : [],
|
|
1704
|
+
set: (i) => l("update:modelValue", i)
|
|
1705
|
+
}), U = q({
|
|
1699
1706
|
get: () => {
|
|
1700
|
-
if (!Array.isArray(
|
|
1701
|
-
const
|
|
1702
|
-
return typeof
|
|
1707
|
+
if (!Array.isArray(t.modelValue) || t.modelValue.length !== 2) return null;
|
|
1708
|
+
const i = t.modelValue[0], g = t.modelValue[1];
|
|
1709
|
+
return typeof i == "string" && typeof g == "string" ? [i, g] : null;
|
|
1703
1710
|
},
|
|
1704
|
-
set: (
|
|
1705
|
-
}),
|
|
1711
|
+
set: (i) => l("update:modelValue", i)
|
|
1712
|
+
}), E = q({
|
|
1706
1713
|
get: () => {
|
|
1707
|
-
if (Array.isArray(
|
|
1708
|
-
const
|
|
1709
|
-
return typeof
|
|
1714
|
+
if (Array.isArray(t.modelValue)) {
|
|
1715
|
+
const i = t.modelValue[0];
|
|
1716
|
+
return typeof i == "number" ? i : void 0;
|
|
1710
1717
|
}
|
|
1711
1718
|
},
|
|
1712
|
-
set: (
|
|
1713
|
-
const g = Array.isArray(
|
|
1714
|
-
|
|
1719
|
+
set: (i) => {
|
|
1720
|
+
const g = Array.isArray(t.modelValue) && typeof t.modelValue[1] == "number" ? t.modelValue[1] : null;
|
|
1721
|
+
l("update:modelValue", [i ?? null, g]);
|
|
1715
1722
|
}
|
|
1716
|
-
}), h =
|
|
1723
|
+
}), h = q({
|
|
1717
1724
|
get: () => {
|
|
1718
|
-
if (Array.isArray(
|
|
1719
|
-
const
|
|
1720
|
-
return typeof
|
|
1725
|
+
if (Array.isArray(t.modelValue)) {
|
|
1726
|
+
const i = t.modelValue[1];
|
|
1727
|
+
return typeof i == "number" ? i : void 0;
|
|
1721
1728
|
}
|
|
1722
1729
|
},
|
|
1723
|
-
set: (
|
|
1724
|
-
const g = Array.isArray(
|
|
1725
|
-
|
|
1730
|
+
set: (i) => {
|
|
1731
|
+
const g = Array.isArray(t.modelValue) && typeof t.modelValue[0] == "number" ? t.modelValue[0] : null;
|
|
1732
|
+
l("update:modelValue", [g, i ?? null]);
|
|
1726
1733
|
}
|
|
1727
1734
|
}), _ = [
|
|
1728
1735
|
{ label: "是", value: !0 },
|
|
1729
1736
|
{ label: "否", value: !1 }
|
|
1730
1737
|
];
|
|
1731
|
-
function Y(
|
|
1738
|
+
function Y(i) {
|
|
1732
1739
|
const g = /* @__PURE__ */ new Date(), z = /* @__PURE__ */ new Date();
|
|
1733
|
-
return z.setDate(z.getDate() -
|
|
1740
|
+
return z.setDate(z.getDate() - i), [z, g];
|
|
1734
1741
|
}
|
|
1735
|
-
const
|
|
1742
|
+
const N = [
|
|
1736
1743
|
{ text: "最近 7 天", value: () => Y(7) },
|
|
1737
1744
|
{ text: "最近 30 天", value: () => Y(30) },
|
|
1738
1745
|
{ text: "最近 90 天", value: () => Y(90) }
|
|
1739
1746
|
], J = T(7);
|
|
1740
|
-
function
|
|
1741
|
-
const
|
|
1742
|
-
if (!
|
|
1743
|
-
const [g, z] = Y(
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
+
function j() {
|
|
1748
|
+
const i = J.value;
|
|
1749
|
+
if (!i || i < 1) return;
|
|
1750
|
+
const [g, z] = Y(i);
|
|
1751
|
+
U.value = [
|
|
1752
|
+
pt(g).format(t.valueFormat),
|
|
1753
|
+
pt(z).format(t.valueFormat)
|
|
1747
1754
|
];
|
|
1748
1755
|
}
|
|
1749
|
-
return (
|
|
1750
|
-
const z =
|
|
1751
|
-
return e.fieldType === "string" && f.value ? (o(),
|
|
1756
|
+
return (i, g) => {
|
|
1757
|
+
const z = S("el-select"), O = S("el-input"), L = S("el-input-number"), ue = S("el-date-picker"), ie = S("el-button"), X = S("el-popover"), x = S("el-option");
|
|
1758
|
+
return e.fieldType === "string" && f.value ? (o(), C(z, {
|
|
1752
1759
|
key: 0,
|
|
1753
1760
|
modelValue: A.value,
|
|
1754
1761
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => A.value = b),
|
|
@@ -1759,44 +1766,44 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1759
1766
|
"default-first-option": "",
|
|
1760
1767
|
"reserve-keyword": !1,
|
|
1761
1768
|
placeholder: "输入后回车添加"
|
|
1762
|
-
}, null, 8, ["modelValue"])) : e.fieldType === "string" ? (o(),
|
|
1769
|
+
}, null, 8, ["modelValue"])) : e.fieldType === "string" ? (o(), C(O, {
|
|
1763
1770
|
key: 1,
|
|
1764
|
-
modelValue:
|
|
1765
|
-
"onUpdate:modelValue": g[1] || (g[1] = (b) =>
|
|
1771
|
+
modelValue: r.value,
|
|
1772
|
+
"onUpdate:modelValue": g[1] || (g[1] = (b) => r.value = b),
|
|
1766
1773
|
placeholder: "请输入",
|
|
1767
1774
|
clearable: ""
|
|
1768
|
-
}, null, 8, ["modelValue"])) : e.fieldType === "number" && a.value ? (o(), v("div",
|
|
1769
|
-
p(
|
|
1770
|
-
modelValue:
|
|
1771
|
-
"onUpdate:modelValue": g[2] || (g[2] = (b) =>
|
|
1775
|
+
}, null, 8, ["modelValue"])) : e.fieldType === "number" && a.value ? (o(), v("div", go, [
|
|
1776
|
+
p(L, {
|
|
1777
|
+
modelValue: E.value,
|
|
1778
|
+
"onUpdate:modelValue": g[2] || (g[2] = (b) => E.value = b),
|
|
1772
1779
|
placeholder: "最小值",
|
|
1773
1780
|
controls: !1,
|
|
1774
1781
|
class: "yk-advanced-value-editor__num"
|
|
1775
1782
|
}, null, 8, ["modelValue"]),
|
|
1776
1783
|
g[11] || (g[11] = m("span", { class: "yk-advanced-value-editor__sep" }, "~", -1)),
|
|
1777
|
-
p(
|
|
1784
|
+
p(L, {
|
|
1778
1785
|
modelValue: h.value,
|
|
1779
1786
|
"onUpdate:modelValue": g[3] || (g[3] = (b) => h.value = b),
|
|
1780
1787
|
placeholder: "最大值",
|
|
1781
1788
|
controls: !1,
|
|
1782
1789
|
class: "yk-advanced-value-editor__num"
|
|
1783
1790
|
}, null, 8, ["modelValue"])
|
|
1784
|
-
])) : e.fieldType === "number" ? (o(),
|
|
1791
|
+
])) : e.fieldType === "number" ? (o(), C(L, {
|
|
1785
1792
|
key: 3,
|
|
1786
1793
|
modelValue: d.value,
|
|
1787
1794
|
"onUpdate:modelValue": g[4] || (g[4] = (b) => d.value = b),
|
|
1788
1795
|
placeholder: "请输入数字",
|
|
1789
1796
|
controls: !1,
|
|
1790
1797
|
class: "yk-advanced-value-editor"
|
|
1791
|
-
}, null, 8, ["modelValue"])) : e.fieldType === "date" && a.value ? (o(), v("div",
|
|
1798
|
+
}, null, 8, ["modelValue"])) : e.fieldType === "date" && a.value ? (o(), v("div", _o, [
|
|
1792
1799
|
p(ue, {
|
|
1793
|
-
modelValue:
|
|
1794
|
-
"onUpdate:modelValue": g[5] || (g[5] = (b) =>
|
|
1800
|
+
modelValue: U.value,
|
|
1801
|
+
"onUpdate:modelValue": g[5] || (g[5] = (b) => U.value = b),
|
|
1795
1802
|
type: "daterange",
|
|
1796
1803
|
"value-format": e.valueFormat,
|
|
1797
1804
|
"start-placeholder": "开始日期",
|
|
1798
1805
|
"end-placeholder": "结束日期",
|
|
1799
|
-
shortcuts:
|
|
1806
|
+
shortcuts: N,
|
|
1800
1807
|
class: "yk-advanced-value-editor__daterange-picker"
|
|
1801
1808
|
}, null, 8, ["modelValue", "value-format"]),
|
|
1802
1809
|
p(X, {
|
|
@@ -1813,9 +1820,9 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1813
1820
|
})
|
|
1814
1821
|
]),
|
|
1815
1822
|
default: n(() => [
|
|
1816
|
-
m("div",
|
|
1823
|
+
m("div", ko, [
|
|
1817
1824
|
g[14] || (g[14] = m("span", null, "最近", -1)),
|
|
1818
|
-
p(
|
|
1825
|
+
p(L, {
|
|
1819
1826
|
modelValue: J.value,
|
|
1820
1827
|
"onUpdate:modelValue": g[6] || (g[6] = (b) => J.value = b),
|
|
1821
1828
|
min: 1,
|
|
@@ -1826,7 +1833,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1826
1833
|
p(ie, {
|
|
1827
1834
|
type: "primary",
|
|
1828
1835
|
size: "small",
|
|
1829
|
-
onClick:
|
|
1836
|
+
onClick: j
|
|
1830
1837
|
}, {
|
|
1831
1838
|
default: n(() => [...g[13] || (g[13] = [
|
|
1832
1839
|
$("应用", -1)
|
|
@@ -1837,15 +1844,15 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1837
1844
|
]),
|
|
1838
1845
|
_: 1
|
|
1839
1846
|
})
|
|
1840
|
-
])) : e.fieldType === "date" ? (o(),
|
|
1847
|
+
])) : e.fieldType === "date" ? (o(), C(ue, {
|
|
1841
1848
|
key: 5,
|
|
1842
|
-
modelValue:
|
|
1843
|
-
"onUpdate:modelValue": g[7] || (g[7] = (b) =>
|
|
1849
|
+
modelValue: u.value,
|
|
1850
|
+
"onUpdate:modelValue": g[7] || (g[7] = (b) => u.value = b),
|
|
1844
1851
|
type: "date",
|
|
1845
1852
|
"value-format": e.valueFormat,
|
|
1846
1853
|
placeholder: "选择日期",
|
|
1847
1854
|
clearable: ""
|
|
1848
|
-
}, null, 8, ["modelValue", "value-format"])) : e.fieldType === "boolean" ? (o(),
|
|
1855
|
+
}, null, 8, ["modelValue", "value-format"])) : e.fieldType === "boolean" ? (o(), C(z, {
|
|
1849
1856
|
key: 6,
|
|
1850
1857
|
modelValue: w.value,
|
|
1851
1858
|
"onUpdate:modelValue": g[8] || (g[8] = (b) => w.value = b),
|
|
@@ -1853,14 +1860,14 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1853
1860
|
clearable: ""
|
|
1854
1861
|
}, {
|
|
1855
1862
|
default: n(() => [
|
|
1856
|
-
(o(), v(
|
|
1863
|
+
(o(), v(K, null, le(_, (b) => p(x, {
|
|
1857
1864
|
key: String(b.value),
|
|
1858
1865
|
label: b.label,
|
|
1859
1866
|
value: b.value
|
|
1860
1867
|
}, null, 8, ["label", "value"])), 64))
|
|
1861
1868
|
]),
|
|
1862
1869
|
_: 1
|
|
1863
|
-
}, 8, ["modelValue"])) : e.fieldType === "enum" && f.value ? (o(),
|
|
1870
|
+
}, 8, ["modelValue"])) : e.fieldType === "enum" && f.value ? (o(), C(z, {
|
|
1864
1871
|
key: 7,
|
|
1865
1872
|
modelValue: A.value,
|
|
1866
1873
|
"onUpdate:modelValue": g[9] || (g[9] = (b) => A.value = b),
|
|
@@ -1870,14 +1877,14 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1870
1877
|
clearable: ""
|
|
1871
1878
|
}, {
|
|
1872
1879
|
default: n(() => [
|
|
1873
|
-
(o(!0), v(
|
|
1880
|
+
(o(!0), v(K, null, le(e.options, (b) => (o(), C(x, {
|
|
1874
1881
|
key: String(b.value),
|
|
1875
1882
|
label: b.label,
|
|
1876
1883
|
value: b.value
|
|
1877
1884
|
}, null, 8, ["label", "value"]))), 128))
|
|
1878
1885
|
]),
|
|
1879
1886
|
_: 1
|
|
1880
|
-
}, 8, ["modelValue", "loading"])) : e.fieldType === "enum" ? (o(),
|
|
1887
|
+
}, 8, ["modelValue", "loading"])) : e.fieldType === "enum" ? (o(), C(z, {
|
|
1881
1888
|
key: 8,
|
|
1882
1889
|
modelValue: F.value,
|
|
1883
1890
|
"onUpdate:modelValue": g[10] || (g[10] = (b) => F.value = b),
|
|
@@ -1886,26 +1893,26 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1886
1893
|
clearable: ""
|
|
1887
1894
|
}, {
|
|
1888
1895
|
default: n(() => [
|
|
1889
|
-
(o(!0), v(
|
|
1896
|
+
(o(!0), v(K, null, le(e.options, (b) => (o(), C(x, {
|
|
1890
1897
|
key: String(b.value),
|
|
1891
1898
|
label: b.label,
|
|
1892
1899
|
value: b.value
|
|
1893
1900
|
}, null, 8, ["label", "value"]))), 128))
|
|
1894
1901
|
]),
|
|
1895
1902
|
_: 1
|
|
1896
|
-
}, 8, ["modelValue", "loading"])) :
|
|
1903
|
+
}, 8, ["modelValue", "loading"])) : B("", !0);
|
|
1897
1904
|
};
|
|
1898
1905
|
}
|
|
1899
|
-
}),
|
|
1906
|
+
}), Vt = /* @__PURE__ */ re(bo, [["__scopeId", "data-v-dda18bcf"]]), Rt = Symbol("YsAdvancedFilter"), ho = { class: "yk-adv-group__header" }, wo = { class: "yk-adv-group__actions" }, xo = { class: "yk-adv-group__children" }, Co = {
|
|
1900
1907
|
key: 0,
|
|
1901
1908
|
class: "yk-adv-group__nested"
|
|
1902
|
-
},
|
|
1909
|
+
}, So = {
|
|
1903
1910
|
key: 1,
|
|
1904
1911
|
class: "yk-adv-group__row"
|
|
1905
|
-
},
|
|
1912
|
+
}, $o = {
|
|
1906
1913
|
key: 0,
|
|
1907
1914
|
class: "yk-adv-group__empty"
|
|
1908
|
-
},
|
|
1915
|
+
}, Fo = /* @__PURE__ */ te({
|
|
1909
1916
|
name: "YsAdvancedConditionGroup",
|
|
1910
1917
|
__name: "advancedConditionGroup",
|
|
1911
1918
|
props: {
|
|
@@ -1915,50 +1922,50 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1915
1922
|
level: { type: Number, default: 0 }
|
|
1916
1923
|
},
|
|
1917
1924
|
setup(e) {
|
|
1918
|
-
const y = e,
|
|
1919
|
-
function
|
|
1920
|
-
(h === "and" || h === "or") &&
|
|
1925
|
+
const y = e, t = gt(Rt);
|
|
1926
|
+
function l(h) {
|
|
1927
|
+
(h === "and" || h === "or") && t.api.setGroupCombinator(y.group.id, h);
|
|
1921
1928
|
}
|
|
1922
1929
|
function a() {
|
|
1923
|
-
|
|
1930
|
+
t.api.addLeaf(y.group.id);
|
|
1924
1931
|
}
|
|
1925
1932
|
function f() {
|
|
1926
|
-
|
|
1933
|
+
t.api.addNestedGroup(y.group.id);
|
|
1927
1934
|
}
|
|
1928
|
-
function
|
|
1929
|
-
|
|
1935
|
+
function r() {
|
|
1936
|
+
t.api.removeNode(y.group.id);
|
|
1930
1937
|
}
|
|
1931
1938
|
function d(h, _) {
|
|
1932
|
-
typeof _ == "string" &&
|
|
1939
|
+
typeof _ == "string" && t.api.changeField(h.id, _);
|
|
1933
1940
|
}
|
|
1934
|
-
function
|
|
1935
|
-
|
|
1941
|
+
function u(h, _) {
|
|
1942
|
+
t.api.changeOperator(h.id, _);
|
|
1936
1943
|
}
|
|
1937
1944
|
function w(h) {
|
|
1938
|
-
|
|
1945
|
+
t.api.removeNode(h);
|
|
1939
1946
|
}
|
|
1940
1947
|
const F = nt;
|
|
1941
1948
|
function A(h) {
|
|
1942
1949
|
return h;
|
|
1943
1950
|
}
|
|
1944
|
-
function
|
|
1945
|
-
return
|
|
1951
|
+
function U(h) {
|
|
1952
|
+
return t.columns.find((_) => _.propertyPath === h);
|
|
1946
1953
|
}
|
|
1947
|
-
function
|
|
1954
|
+
function E(h) {
|
|
1948
1955
|
var _;
|
|
1949
|
-
return ((_ =
|
|
1956
|
+
return ((_ = U(h)) == null ? void 0 : _.displayFormat) ?? "YYYY-MM-DD";
|
|
1950
1957
|
}
|
|
1951
1958
|
return (h, _) => {
|
|
1952
|
-
const Y =
|
|
1959
|
+
const Y = S("el-radio-button"), N = S("el-radio-group"), J = S("el-button"), j = S("YsAdvancedConditionGroup"), i = S("el-option"), g = S("el-select");
|
|
1953
1960
|
return o(), v("div", {
|
|
1954
|
-
class:
|
|
1961
|
+
class: Ce(["yk-adv-group", [`level-${e.level}`, { "is-root": e.level === 0 }]])
|
|
1955
1962
|
}, [
|
|
1956
|
-
m("div",
|
|
1963
|
+
m("div", ho, [
|
|
1957
1964
|
_[5] || (_[5] = m("span", { class: "yk-adv-group__comb-label" }, "满足", -1)),
|
|
1958
|
-
p(
|
|
1965
|
+
p(N, {
|
|
1959
1966
|
"model-value": e.group.combinator,
|
|
1960
1967
|
size: "small",
|
|
1961
|
-
"onUpdate:modelValue":
|
|
1968
|
+
"onUpdate:modelValue": l
|
|
1962
1969
|
}, {
|
|
1963
1970
|
default: n(() => [
|
|
1964
1971
|
p(Y, { value: "and" }, {
|
|
@@ -1977,7 +1984,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1977
1984
|
_: 1
|
|
1978
1985
|
}, 8, ["model-value"]),
|
|
1979
1986
|
_[6] || (_[6] = m("span", { class: "yk-adv-group__comb-label" }, "条件", -1)),
|
|
1980
|
-
m("span",
|
|
1987
|
+
m("span", wo, [
|
|
1981
1988
|
p(J, {
|
|
1982
1989
|
link: "",
|
|
1983
1990
|
type: "primary",
|
|
@@ -1998,41 +2005,41 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
1998
2005
|
])]),
|
|
1999
2006
|
_: 1
|
|
2000
2007
|
}),
|
|
2001
|
-
e.level > 0 ? (o(),
|
|
2008
|
+
e.level > 0 ? (o(), C(J, {
|
|
2002
2009
|
key: 0,
|
|
2003
2010
|
link: "",
|
|
2004
2011
|
type: "danger",
|
|
2005
|
-
onClick:
|
|
2012
|
+
onClick: r
|
|
2006
2013
|
}, {
|
|
2007
2014
|
default: n(() => [..._[4] || (_[4] = [
|
|
2008
2015
|
$(" 删除组 ", -1)
|
|
2009
2016
|
])]),
|
|
2010
2017
|
_: 1
|
|
2011
|
-
})) :
|
|
2018
|
+
})) : B("", !0)
|
|
2012
2019
|
])
|
|
2013
2020
|
]),
|
|
2014
|
-
m("div",
|
|
2015
|
-
(o(!0), v(
|
|
2021
|
+
m("div", xo, [
|
|
2022
|
+
(o(!0), v(K, null, le(e.group.children, (z) => (o(), v(K, {
|
|
2016
2023
|
key: z.id
|
|
2017
2024
|
}, [
|
|
2018
|
-
|
|
2019
|
-
p(
|
|
2025
|
+
s(F)(z) ? (o(), v("div", Co, [
|
|
2026
|
+
p(j, {
|
|
2020
2027
|
group: z,
|
|
2021
2028
|
level: e.level + 1
|
|
2022
2029
|
}, null, 8, ["group", "level"])
|
|
2023
|
-
])) : (o(), v("div",
|
|
2030
|
+
])) : (o(), v("div", So, [
|
|
2024
2031
|
p(g, {
|
|
2025
2032
|
"model-value": z.propertyPath,
|
|
2026
2033
|
class: "yk-adv-group__field",
|
|
2027
2034
|
placeholder: "选择字段",
|
|
2028
2035
|
filterable: "",
|
|
2029
|
-
"onUpdate:modelValue": (
|
|
2036
|
+
"onUpdate:modelValue": (O) => d(z, O)
|
|
2030
2037
|
}, {
|
|
2031
2038
|
default: n(() => [
|
|
2032
|
-
(o(!0), v(
|
|
2033
|
-
key:
|
|
2034
|
-
label:
|
|
2035
|
-
value:
|
|
2039
|
+
(o(!0), v(K, null, le(s(t).columns, (O) => (o(), C(i, {
|
|
2040
|
+
key: O.propertyPath,
|
|
2041
|
+
label: O.displayName ?? O.propertyPath,
|
|
2042
|
+
value: O.propertyPath
|
|
2036
2043
|
}, null, 8, ["label", "value"]))), 128))
|
|
2037
2044
|
]),
|
|
2038
2045
|
_: 1
|
|
@@ -2042,36 +2049,36 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2042
2049
|
class: "yk-adv-group__op",
|
|
2043
2050
|
placeholder: "操作符",
|
|
2044
2051
|
filterable: "",
|
|
2045
|
-
"onUpdate:modelValue": (
|
|
2052
|
+
"onUpdate:modelValue": (O) => u(z, O)
|
|
2046
2053
|
}, {
|
|
2047
2054
|
default: n(() => [
|
|
2048
|
-
(o(!0), v(
|
|
2049
|
-
key:
|
|
2050
|
-
label:
|
|
2051
|
-
value:
|
|
2055
|
+
(o(!0), v(K, null, le(s(t).api.operatorsOf(z.propertyPath), (O) => (o(), C(i, {
|
|
2056
|
+
key: O,
|
|
2057
|
+
label: s(Ot)[O],
|
|
2058
|
+
value: O
|
|
2052
2059
|
}, null, 8, ["label", "value"]))), 128))
|
|
2053
2060
|
]),
|
|
2054
2061
|
_: 2
|
|
2055
2062
|
}, 1032, ["model-value", "onUpdate:modelValue"]),
|
|
2056
|
-
|
|
2063
|
+
s(qt)(z.op) ? B("", !0) : (o(), C(Vt, {
|
|
2057
2064
|
key: 0,
|
|
2058
|
-
"field-type":
|
|
2065
|
+
"field-type": s(t).api.fieldTypeOf(z.propertyPath),
|
|
2059
2066
|
op: z.op,
|
|
2060
|
-
options:
|
|
2061
|
-
"options-loading":
|
|
2062
|
-
"value-format":
|
|
2063
|
-
class:
|
|
2067
|
+
options: s(t).optionsMap.value[z.propertyPath] ?? [],
|
|
2068
|
+
"options-loading": s(t).loadingMap.value[z.propertyPath] === !0,
|
|
2069
|
+
"value-format": E(z.propertyPath),
|
|
2070
|
+
class: Ce([
|
|
2064
2071
|
"yk-adv-group__value",
|
|
2065
|
-
{ "is-invalid":
|
|
2072
|
+
{ "is-invalid": s(t).api.isConditionEmpty(z) }
|
|
2066
2073
|
]),
|
|
2067
2074
|
modelValue: z.value,
|
|
2068
|
-
"onUpdate:modelValue": (
|
|
2075
|
+
"onUpdate:modelValue": (O) => z.value = O
|
|
2069
2076
|
}, null, 8, ["field-type", "op", "options", "options-loading", "value-format", "class", "modelValue", "onUpdate:modelValue"])),
|
|
2070
2077
|
p(J, {
|
|
2071
2078
|
link: "",
|
|
2072
2079
|
type: "danger",
|
|
2073
2080
|
class: "yk-adv-group__remove",
|
|
2074
|
-
onClick: (
|
|
2081
|
+
onClick: (O) => w(z.id)
|
|
2075
2082
|
}, {
|
|
2076
2083
|
default: n(() => [..._[7] || (_[7] = [
|
|
2077
2084
|
$(" 删除 ", -1)
|
|
@@ -2080,15 +2087,15 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2080
2087
|
}, 8, ["onClick"])
|
|
2081
2088
|
]))
|
|
2082
2089
|
], 64))), 128)),
|
|
2083
|
-
e.group.children.length === 0 ? (o(), v("div",
|
|
2090
|
+
e.group.children.length === 0 ? (o(), v("div", $o, " 暂无条件,点击「+ 条件」或「+ 嵌套组」 ")) : B("", !0)
|
|
2084
2091
|
])
|
|
2085
2092
|
], 2);
|
|
2086
2093
|
};
|
|
2087
2094
|
}
|
|
2088
|
-
}),
|
|
2095
|
+
}), Mt = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-518d9c97"]]), Vo = {
|
|
2089
2096
|
key: 0,
|
|
2090
2097
|
class: "yk-advanced-filter__actions"
|
|
2091
|
-
},
|
|
2098
|
+
}, Ro = /* @__PURE__ */ te({
|
|
2092
2099
|
name: "YsAdvancedFilterPanel",
|
|
2093
2100
|
__name: "advancedFilterPanel",
|
|
2094
2101
|
props: {
|
|
@@ -2116,105 +2123,105 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2116
2123
|
}
|
|
2117
2124
|
},
|
|
2118
2125
|
emits: ["search", "reset", "update:savedQueries"],
|
|
2119
|
-
setup(e, { expose: y, emit:
|
|
2120
|
-
const
|
|
2121
|
-
async function
|
|
2126
|
+
setup(e, { expose: y, emit: t }) {
|
|
2127
|
+
const l = e, a = t, f = ht(l), { rootGroup: r, fieldTypeOf: d, filter: u, reset: w } = f, F = T({}), A = T({});
|
|
2128
|
+
async function U(x) {
|
|
2122
2129
|
var R;
|
|
2123
|
-
const b = (R =
|
|
2124
|
-
if (b && !(F.value[
|
|
2125
|
-
A.value[
|
|
2130
|
+
const b = (R = l.optionSources) == null ? void 0 : R[x];
|
|
2131
|
+
if (b && !(F.value[x] || A.value[x])) {
|
|
2132
|
+
A.value[x] = !0;
|
|
2126
2133
|
try {
|
|
2127
|
-
F.value[
|
|
2134
|
+
F.value[x] = await b();
|
|
2128
2135
|
} finally {
|
|
2129
|
-
A.value[
|
|
2136
|
+
A.value[x] = !1;
|
|
2130
2137
|
}
|
|
2131
2138
|
}
|
|
2132
2139
|
}
|
|
2133
|
-
function
|
|
2140
|
+
function E(x) {
|
|
2134
2141
|
const b = /* @__PURE__ */ new Set();
|
|
2135
2142
|
function R(M) {
|
|
2136
2143
|
nt(M) ? M.children.forEach(R) : d(M.propertyPath) === "enum" && b.add(M.propertyPath);
|
|
2137
2144
|
}
|
|
2138
|
-
return
|
|
2145
|
+
return x.children.forEach(R), [...b];
|
|
2139
2146
|
}
|
|
2140
2147
|
ce(
|
|
2141
|
-
|
|
2142
|
-
(
|
|
2143
|
-
for (const b of
|
|
2144
|
-
|
|
2148
|
+
r,
|
|
2149
|
+
(x) => {
|
|
2150
|
+
for (const b of E(x))
|
|
2151
|
+
U(b);
|
|
2145
2152
|
},
|
|
2146
2153
|
{ deep: !0, immediate: !0 }
|
|
2147
|
-
),
|
|
2148
|
-
columns:
|
|
2154
|
+
), _t(Rt, {
|
|
2155
|
+
columns: l.columns,
|
|
2149
2156
|
optionsMap: F,
|
|
2150
2157
|
loadingMap: A,
|
|
2151
2158
|
api: f
|
|
2152
2159
|
});
|
|
2153
2160
|
function h() {
|
|
2154
|
-
a("search",
|
|
2161
|
+
a("search", u.value);
|
|
2155
2162
|
}
|
|
2156
2163
|
function _() {
|
|
2157
2164
|
w(), a("reset");
|
|
2158
2165
|
}
|
|
2159
|
-
const Y = T([]),
|
|
2160
|
-
() =>
|
|
2166
|
+
const Y = T([]), N = q(
|
|
2167
|
+
() => l.savedQueries ?? Y.value
|
|
2161
2168
|
);
|
|
2162
|
-
function J(
|
|
2163
|
-
Y.value =
|
|
2169
|
+
function J(x) {
|
|
2170
|
+
Y.value = x, a("update:savedQueries", x);
|
|
2164
2171
|
}
|
|
2165
|
-
const
|
|
2172
|
+
const j = T(!1), i = T(""), g = T("");
|
|
2166
2173
|
let z = 0;
|
|
2167
|
-
function
|
|
2168
|
-
function
|
|
2169
|
-
return b.children.some((R) => nt(R) ?
|
|
2174
|
+
function O() {
|
|
2175
|
+
function x(b) {
|
|
2176
|
+
return b.children.some((R) => nt(R) ? x(R) : f.isConditionEmpty(R));
|
|
2170
2177
|
}
|
|
2171
|
-
return
|
|
2178
|
+
return x(r.value);
|
|
2172
2179
|
}
|
|
2173
|
-
function
|
|
2174
|
-
|
|
2180
|
+
function L() {
|
|
2181
|
+
i.value = "", g.value = "", j.value = !0;
|
|
2175
2182
|
}
|
|
2176
2183
|
function ue() {
|
|
2177
|
-
const
|
|
2178
|
-
if (!
|
|
2179
|
-
|
|
2180
|
-
const b = JSON.parse(JSON.stringify(
|
|
2184
|
+
const x = i.value.trim();
|
|
2185
|
+
if (!x) return;
|
|
2186
|
+
O() && ye.warning("当前存在未填值的条件行(标红),保存的预设可能不完整");
|
|
2187
|
+
const b = JSON.parse(JSON.stringify(r.value)), R = {
|
|
2181
2188
|
id: `sq-${++z}`,
|
|
2182
|
-
name:
|
|
2189
|
+
name: x,
|
|
2183
2190
|
description: g.value.trim(),
|
|
2184
2191
|
group: b,
|
|
2185
|
-
filterInfo:
|
|
2192
|
+
filterInfo: u.value
|
|
2186
2193
|
};
|
|
2187
|
-
J([...
|
|
2194
|
+
J([...N.value, R]), j.value = !1;
|
|
2188
2195
|
}
|
|
2189
|
-
function ie(
|
|
2190
|
-
|
|
2196
|
+
function ie(x) {
|
|
2197
|
+
r.value = JSON.parse(JSON.stringify(x.group)), h();
|
|
2191
2198
|
}
|
|
2192
|
-
function X(
|
|
2193
|
-
J(
|
|
2199
|
+
function X(x) {
|
|
2200
|
+
J(N.value.filter((b) => b.id !== x));
|
|
2194
2201
|
}
|
|
2195
2202
|
return y({
|
|
2196
2203
|
get filter() {
|
|
2197
|
-
return
|
|
2204
|
+
return u.value;
|
|
2198
2205
|
},
|
|
2199
2206
|
reset: _,
|
|
2200
|
-
openSaveDialog:
|
|
2207
|
+
openSaveDialog: L,
|
|
2201
2208
|
applySavedQuery: ie,
|
|
2202
2209
|
removeSavedQuery: X,
|
|
2203
2210
|
get savedQueries() {
|
|
2204
|
-
return
|
|
2211
|
+
return N.value;
|
|
2205
2212
|
}
|
|
2206
|
-
}), (
|
|
2207
|
-
const R =
|
|
2213
|
+
}), (x, b) => {
|
|
2214
|
+
const R = S("el-button"), M = S("el-input"), Z = S("el-form-item"), W = S("el-form"), P = S("el-dialog");
|
|
2208
2215
|
return o(), v("div", {
|
|
2209
2216
|
class: "yk-advanced-filter",
|
|
2210
|
-
onKeydown:
|
|
2217
|
+
onKeydown: et(h, ["enter"])
|
|
2211
2218
|
}, [
|
|
2212
|
-
p(
|
|
2213
|
-
group:
|
|
2219
|
+
p(Mt, {
|
|
2220
|
+
group: s(r),
|
|
2214
2221
|
level: 0
|
|
2215
2222
|
}, null, 8, ["group"]),
|
|
2216
|
-
e.showSearch || e.showReset || e.showSaveQuery ? (o(), v("div",
|
|
2217
|
-
e.showSearch ? (o(),
|
|
2223
|
+
e.showSearch || e.showReset || e.showSaveQuery ? (o(), v("div", Vo, [
|
|
2224
|
+
e.showSearch ? (o(), C(R, {
|
|
2218
2225
|
key: 0,
|
|
2219
2226
|
type: "primary",
|
|
2220
2227
|
onClick: h
|
|
@@ -2223,8 +2230,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2223
2230
|
$(I(e.searchButtonText), 1)
|
|
2224
2231
|
]),
|
|
2225
2232
|
_: 1
|
|
2226
|
-
})) :
|
|
2227
|
-
e.showReset ? (o(),
|
|
2233
|
+
})) : B("", !0),
|
|
2234
|
+
e.showReset ? (o(), C(R, {
|
|
2228
2235
|
key: 1,
|
|
2229
2236
|
onClick: _
|
|
2230
2237
|
}, {
|
|
@@ -2232,27 +2239,27 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2232
2239
|
$(I(e.resetButtonText), 1)
|
|
2233
2240
|
]),
|
|
2234
2241
|
_: 1
|
|
2235
|
-
})) :
|
|
2236
|
-
e.showSaveQuery ? (o(),
|
|
2242
|
+
})) : B("", !0),
|
|
2243
|
+
e.showSaveQuery ? (o(), C(R, {
|
|
2237
2244
|
key: 2,
|
|
2238
|
-
onClick:
|
|
2245
|
+
onClick: L
|
|
2239
2246
|
}, {
|
|
2240
2247
|
default: n(() => [...b[4] || (b[4] = [
|
|
2241
2248
|
$("保存", -1)
|
|
2242
2249
|
])]),
|
|
2243
2250
|
_: 1
|
|
2244
|
-
})) :
|
|
2245
|
-
])) :
|
|
2251
|
+
})) : B("", !0)
|
|
2252
|
+
])) : B("", !0),
|
|
2246
2253
|
p(P, {
|
|
2247
|
-
modelValue:
|
|
2248
|
-
"onUpdate:modelValue": b[3] || (b[3] = (V) =>
|
|
2254
|
+
modelValue: j.value,
|
|
2255
|
+
"onUpdate:modelValue": b[3] || (b[3] = (V) => j.value = V),
|
|
2249
2256
|
title: "保存查询",
|
|
2250
2257
|
width: "440px",
|
|
2251
2258
|
"append-to-body": ""
|
|
2252
2259
|
}, {
|
|
2253
2260
|
footer: n(() => [
|
|
2254
2261
|
p(R, {
|
|
2255
|
-
onClick: b[2] || (b[2] = (V) =>
|
|
2262
|
+
onClick: b[2] || (b[2] = (V) => j.value = !1)
|
|
2256
2263
|
}, {
|
|
2257
2264
|
default: n(() => [...b[5] || (b[5] = [
|
|
2258
2265
|
$("取消", -1)
|
|
@@ -2261,7 +2268,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2261
2268
|
}),
|
|
2262
2269
|
p(R, {
|
|
2263
2270
|
type: "primary",
|
|
2264
|
-
disabled: !
|
|
2271
|
+
disabled: !i.value.trim(),
|
|
2265
2272
|
onClick: ue
|
|
2266
2273
|
}, {
|
|
2267
2274
|
default: n(() => [...b[6] || (b[6] = [
|
|
@@ -2276,12 +2283,12 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2276
2283
|
p(Z, { label: "名称" }, {
|
|
2277
2284
|
default: n(() => [
|
|
2278
2285
|
p(M, {
|
|
2279
|
-
modelValue:
|
|
2280
|
-
"onUpdate:modelValue": b[0] || (b[0] = (V) =>
|
|
2286
|
+
modelValue: i.value,
|
|
2287
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => i.value = V),
|
|
2281
2288
|
placeholder: "请输入查询名称",
|
|
2282
2289
|
maxlength: "50",
|
|
2283
2290
|
"show-word-limit": "",
|
|
2284
|
-
onKeydown:
|
|
2291
|
+
onKeydown: et(ue, ["enter"])
|
|
2285
2292
|
}, null, 8, ["modelValue"])
|
|
2286
2293
|
]),
|
|
2287
2294
|
_: 1
|
|
@@ -2309,7 +2316,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2309
2316
|
], 32);
|
|
2310
2317
|
};
|
|
2311
2318
|
}
|
|
2312
|
-
}),
|
|
2319
|
+
}), Pt = /* @__PURE__ */ re(Ro, [["__scopeId", "data-v-0563cef9"]]), zt = /* @__PURE__ */ te({
|
|
2313
2320
|
name: "YsRootFilterPanel",
|
|
2314
2321
|
__name: "rootFilterPanel",
|
|
2315
2322
|
props: {
|
|
@@ -2324,25 +2331,25 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2324
2331
|
}
|
|
2325
2332
|
},
|
|
2326
2333
|
setup(e, { expose: y }) {
|
|
2327
|
-
const
|
|
2328
|
-
|
|
2329
|
-
const
|
|
2330
|
-
const
|
|
2331
|
-
|
|
2332
|
-
const w =
|
|
2333
|
-
return w && !w.isEmpty() &&
|
|
2334
|
+
const t = e, { filter: l, register: a, reset: f } = el();
|
|
2335
|
+
_t(wt, a);
|
|
2336
|
+
const r = q(() => {
|
|
2337
|
+
const u = [];
|
|
2338
|
+
t.extraFilter && u.push(t.extraFilter);
|
|
2339
|
+
const w = l.value;
|
|
2340
|
+
return w && !w.isEmpty() && u.push(w), u.length === 0 ? Le() : u.length === 1 ? u[0] : Lt.createAnd(...u);
|
|
2334
2341
|
});
|
|
2335
2342
|
function d() {
|
|
2336
2343
|
f();
|
|
2337
2344
|
}
|
|
2338
2345
|
return y({
|
|
2339
2346
|
/** 当前聚合后的查询条件(extraFilter AND 所有子项) */
|
|
2340
|
-
filter:
|
|
2347
|
+
filter: r,
|
|
2341
2348
|
/** 重置所有已注册子项(extraFilter 由外部自行维护) */
|
|
2342
2349
|
reset: d
|
|
2343
|
-
}), (
|
|
2350
|
+
}), (u, w) => ee(u.$slots, "default");
|
|
2344
2351
|
}
|
|
2345
|
-
}),
|
|
2352
|
+
}), Mo = {
|
|
2346
2353
|
key: 0,
|
|
2347
2354
|
viewBox: "0 0 24 24",
|
|
2348
2355
|
width: "16",
|
|
@@ -2352,7 +2359,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2352
2359
|
"stroke-width": "2",
|
|
2353
2360
|
"stroke-linecap": "round",
|
|
2354
2361
|
"stroke-linejoin": "round"
|
|
2355
|
-
},
|
|
2362
|
+
}, Po = {
|
|
2356
2363
|
key: 1,
|
|
2357
2364
|
viewBox: "0 0 24 24",
|
|
2358
2365
|
width: "16",
|
|
@@ -2362,16 +2369,16 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2362
2369
|
"stroke-width": "2",
|
|
2363
2370
|
"stroke-linecap": "round",
|
|
2364
2371
|
"stroke-linejoin": "round"
|
|
2365
|
-
},
|
|
2372
|
+
}, zo = {
|
|
2366
2373
|
key: 1,
|
|
2367
2374
|
class: "yk-filter-panel__actions"
|
|
2368
|
-
},
|
|
2375
|
+
}, Ao = {
|
|
2369
2376
|
key: 2,
|
|
2370
2377
|
class: "yk-filter-panel__saved"
|
|
2371
|
-
},
|
|
2378
|
+
}, Do = { class: "yk-filter-panel__mode-bar" }, Bo = {
|
|
2372
2379
|
key: 0,
|
|
2373
2380
|
class: "yk-filter-panel__saved"
|
|
2374
|
-
},
|
|
2381
|
+
}, Eo = /* @__PURE__ */ te({
|
|
2375
2382
|
name: "YsFilterPanel",
|
|
2376
2383
|
__name: "filterPanel",
|
|
2377
2384
|
props: {
|
|
@@ -2428,77 +2435,77 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2428
2435
|
singleLine: { type: Boolean, default: !1 }
|
|
2429
2436
|
},
|
|
2430
2437
|
emits: ["search", "reset", "update:quickQueries"],
|
|
2431
|
-
setup(e, { expose: y, emit:
|
|
2432
|
-
const
|
|
2433
|
-
() =>
|
|
2434
|
-
),
|
|
2438
|
+
setup(e, { expose: y, emit: t }) {
|
|
2439
|
+
const l = e, a = t, f = T(null), r = T("simple"), d = T(!0), u = T(0), w = T(null), F = T([]), A = q(
|
|
2440
|
+
() => l.quickQueries ?? F.value
|
|
2441
|
+
), U = T(null), E = q(() => {
|
|
2435
2442
|
var R, M;
|
|
2436
|
-
return
|
|
2443
|
+
return r.value === "advanced" ? ((R = U.value) == null ? void 0 : R.filter) ?? Le() : ((M = f.value) == null ? void 0 : M.filter) ?? Le();
|
|
2437
2444
|
});
|
|
2438
2445
|
function h() {
|
|
2439
|
-
a("search",
|
|
2446
|
+
a("search", E.value);
|
|
2440
2447
|
}
|
|
2441
2448
|
function _() {
|
|
2442
2449
|
var R, M;
|
|
2443
|
-
|
|
2450
|
+
r.value === "advanced" ? (R = U.value) == null || R.reset() : (M = f.value) == null || M.reset(), a("reset");
|
|
2444
2451
|
}
|
|
2445
2452
|
function Y(R) {
|
|
2446
2453
|
a("search", R);
|
|
2447
2454
|
}
|
|
2448
|
-
function
|
|
2455
|
+
function N() {
|
|
2449
2456
|
a("reset");
|
|
2450
2457
|
}
|
|
2451
2458
|
async function J(R) {
|
|
2452
2459
|
const M = new Set(A.value.map((W) => W.id)), Z = R.filter((W) => !M.has(W.id));
|
|
2453
|
-
if (
|
|
2460
|
+
if (l.saveQuickQueryFun && Z.length > 0) {
|
|
2454
2461
|
const W = [];
|
|
2455
2462
|
for (const V of Z)
|
|
2456
2463
|
try {
|
|
2457
|
-
const
|
|
2458
|
-
W.push(
|
|
2464
|
+
const H = await l.saveQuickQueryFun(V);
|
|
2465
|
+
W.push(H ?? V);
|
|
2459
2466
|
} catch {
|
|
2460
|
-
|
|
2467
|
+
ye.error(`保存快速查询「${V.name}」失败`), W.push(V);
|
|
2461
2468
|
}
|
|
2462
2469
|
let P = R;
|
|
2463
|
-
if (W.some((V,
|
|
2464
|
-
const V = new Map(Z.map((
|
|
2465
|
-
P = R.map((
|
|
2470
|
+
if (W.some((V, H) => V !== Z[H])) {
|
|
2471
|
+
const V = new Map(Z.map((H, oe) => [H.id, W[oe] ?? H]));
|
|
2472
|
+
P = R.map((H) => V.get(H.id) ?? H);
|
|
2466
2473
|
}
|
|
2467
2474
|
F.value = P, a("update:quickQueries", P);
|
|
2468
2475
|
} else
|
|
2469
2476
|
F.value = R, a("update:quickQueries", R);
|
|
2470
2477
|
}
|
|
2471
|
-
let
|
|
2472
|
-
function
|
|
2473
|
-
return !
|
|
2474
|
-
columns:
|
|
2475
|
-
optionSources:
|
|
2476
|
-
})),
|
|
2478
|
+
let j = null;
|
|
2479
|
+
function i() {
|
|
2480
|
+
return !j && l.advancedColumns.length && (j = ht({
|
|
2481
|
+
columns: l.advancedColumns,
|
|
2482
|
+
optionSources: l.advancedOptionSources
|
|
2483
|
+
})), j;
|
|
2477
2484
|
}
|
|
2478
2485
|
function g(R) {
|
|
2479
|
-
const M =
|
|
2486
|
+
const M = i();
|
|
2480
2487
|
return M ? (M.rootGroup.value = JSON.parse(JSON.stringify(R)), M.filter.value) : { toString: () => "", isEmpty: () => !0 };
|
|
2481
2488
|
}
|
|
2482
|
-
|
|
2483
|
-
if (
|
|
2489
|
+
Se(async () => {
|
|
2490
|
+
if (l.loadQuickQueryFun)
|
|
2484
2491
|
try {
|
|
2485
|
-
const M = (await
|
|
2492
|
+
const M = (await l.loadQuickQueryFun()).map((Z) => ({
|
|
2486
2493
|
...Z,
|
|
2487
2494
|
filterInfo: Z.filterInfo ?? g(Z.group)
|
|
2488
2495
|
}));
|
|
2489
2496
|
F.value = M, a("update:quickQueries", M);
|
|
2490
2497
|
} catch {
|
|
2491
|
-
|
|
2498
|
+
ye.error("加载快速查询失败");
|
|
2492
2499
|
}
|
|
2493
2500
|
});
|
|
2494
2501
|
function z() {
|
|
2495
|
-
|
|
2502
|
+
r.value !== "advanced" && h();
|
|
2496
2503
|
}
|
|
2497
|
-
function
|
|
2498
|
-
|
|
2504
|
+
function O() {
|
|
2505
|
+
r.value = "advanced";
|
|
2499
2506
|
}
|
|
2500
|
-
function
|
|
2501
|
-
|
|
2507
|
+
function L() {
|
|
2508
|
+
r.value = "simple";
|
|
2502
2509
|
}
|
|
2503
2510
|
function ue() {
|
|
2504
2511
|
d.value = !d.value;
|
|
@@ -2506,31 +2513,31 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2506
2513
|
function ie() {
|
|
2507
2514
|
const R = w.value;
|
|
2508
2515
|
if (!R) return;
|
|
2509
|
-
for (const
|
|
2510
|
-
|
|
2511
|
-
if (!
|
|
2512
|
-
|
|
2516
|
+
for (const oe of Array.from(R.children))
|
|
2517
|
+
oe.style.display = "";
|
|
2518
|
+
if (!l.singleLine || !d.value) {
|
|
2519
|
+
u.value = 0, R.style.maxWidth = "";
|
|
2513
2520
|
return;
|
|
2514
2521
|
}
|
|
2515
2522
|
const M = R.nextElementSibling, Z = M ? M.offsetWidth : 0, W = 16;
|
|
2516
2523
|
R.style.maxWidth = `calc(100% - ${Z + W}px)`;
|
|
2517
2524
|
const P = R.clientWidth;
|
|
2518
|
-
let V = 0,
|
|
2519
|
-
for (const
|
|
2520
|
-
const de =
|
|
2521
|
-
V > 0 && V + pe + W > P ? (de.style.display = "none",
|
|
2525
|
+
let V = 0, H = 0;
|
|
2526
|
+
for (const oe of Array.from(R.children)) {
|
|
2527
|
+
const de = oe, pe = de.offsetWidth;
|
|
2528
|
+
V > 0 && V + pe + W > P ? (de.style.display = "none", H++) : V += pe + W;
|
|
2522
2529
|
}
|
|
2523
|
-
|
|
2530
|
+
u.value = H;
|
|
2524
2531
|
}
|
|
2525
2532
|
let X = null;
|
|
2526
|
-
function
|
|
2533
|
+
function x(R) {
|
|
2527
2534
|
var M;
|
|
2528
|
-
|
|
2535
|
+
r.value === "advanced" ? (M = U.value) == null || M.applySavedQuery(R) : a("search", R.filterInfo);
|
|
2529
2536
|
}
|
|
2530
2537
|
async function b(R) {
|
|
2531
2538
|
const M = A.value.find((W) => W.id === R), Z = (M == null ? void 0 : M.name) ?? "该查询";
|
|
2532
2539
|
try {
|
|
2533
|
-
await
|
|
2540
|
+
await xt.confirm(
|
|
2534
2541
|
`确定要删除快速查询「${Z}」吗?`,
|
|
2535
2542
|
"删除确认",
|
|
2536
2543
|
{ type: "warning", confirmButtonText: "删除", cancelButtonText: "取消" }
|
|
@@ -2540,48 +2547,48 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2540
2547
|
}
|
|
2541
2548
|
await J(A.value.filter((W) => W.id !== R));
|
|
2542
2549
|
}
|
|
2543
|
-
return
|
|
2544
|
-
|
|
2550
|
+
return Se(() => {
|
|
2551
|
+
l.singleLine && (ie(), X = new ResizeObserver(() => ie()), w.value && X.observe(w.value));
|
|
2545
2552
|
}), Ue(() => {
|
|
2546
2553
|
X == null || X.disconnect(), X = null;
|
|
2547
|
-
}), ce([d, () =>
|
|
2548
|
-
|
|
2554
|
+
}), ce([d, () => l.singleLine], () => {
|
|
2555
|
+
Ze(ie);
|
|
2549
2556
|
}), y({
|
|
2550
|
-
filter:
|
|
2557
|
+
filter: E,
|
|
2551
2558
|
reset: _,
|
|
2552
|
-
mode:
|
|
2559
|
+
mode: r
|
|
2553
2560
|
}), (R, M) => {
|
|
2554
|
-
const Z =
|
|
2561
|
+
const Z = S("el-button"), W = S("el-tooltip"), P = S("el-tag");
|
|
2555
2562
|
return o(), v("div", {
|
|
2556
|
-
class:
|
|
2557
|
-
onKeydown:
|
|
2563
|
+
class: Ce(["yk-filter-panel", { "is-single-line": e.singleLine, "is-collapsed": e.singleLine && d.value }]),
|
|
2564
|
+
onKeydown: et(z, ["enter"])
|
|
2558
2565
|
}, [
|
|
2559
|
-
|
|
2560
|
-
e.singleLine ? (o(),
|
|
2566
|
+
r.value === "simple" ? (o(), v(K, { key: 0 }, [
|
|
2567
|
+
e.singleLine ? (o(), C(Z, {
|
|
2561
2568
|
key: 0,
|
|
2562
2569
|
link: "",
|
|
2563
2570
|
class: "yk-filter-panel__toggle",
|
|
2564
2571
|
"aria-label": d.value ? "展开更多条件" : "折叠",
|
|
2565
|
-
title: d.value ?
|
|
2572
|
+
title: d.value ? u.value ? `展开(${u.value} 个条件被隐藏)` : "展开" : "折叠",
|
|
2566
2573
|
onClick: ue
|
|
2567
2574
|
}, {
|
|
2568
2575
|
default: n(() => [
|
|
2569
|
-
d.value ? (o(), v("svg",
|
|
2576
|
+
d.value ? (o(), v("svg", Mo, [...M[0] || (M[0] = [
|
|
2570
2577
|
m("polyline", { points: "6 9 12 15 18 9" }, null, -1),
|
|
2571
2578
|
m("polyline", { points: "6 14 12 20 18 14" }, null, -1)
|
|
2572
|
-
])])) : (o(), v("svg",
|
|
2579
|
+
])])) : (o(), v("svg", Po, [...M[1] || (M[1] = [
|
|
2573
2580
|
m("polyline", { points: "18 15 12 9 6 15" }, null, -1),
|
|
2574
2581
|
m("polyline", { points: "18 10 12 4 6 10" }, null, -1)
|
|
2575
2582
|
])]))
|
|
2576
2583
|
]),
|
|
2577
2584
|
_: 1
|
|
2578
|
-
}, 8, ["aria-label", "title"])) :
|
|
2585
|
+
}, 8, ["aria-label", "title"])) : B("", !0),
|
|
2579
2586
|
m("div", {
|
|
2580
2587
|
class: "yk-filter-panel__items",
|
|
2581
2588
|
ref_key: "itemsEl",
|
|
2582
2589
|
ref: w
|
|
2583
2590
|
}, [
|
|
2584
|
-
p(
|
|
2591
|
+
p(zt, {
|
|
2585
2592
|
ref_key: "rootRef",
|
|
2586
2593
|
ref: f
|
|
2587
2594
|
}, {
|
|
@@ -2591,8 +2598,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2591
2598
|
_: 3
|
|
2592
2599
|
}, 512)
|
|
2593
2600
|
], 512),
|
|
2594
|
-
e.showSearch || e.showReset || e.enableAdvancedFilter ? (o(), v("div",
|
|
2595
|
-
e.showSearch ? (o(),
|
|
2601
|
+
e.showSearch || e.showReset || e.enableAdvancedFilter ? (o(), v("div", zo, [
|
|
2602
|
+
e.showSearch ? (o(), C(Z, {
|
|
2596
2603
|
key: 0,
|
|
2597
2604
|
type: "primary",
|
|
2598
2605
|
onClick: h
|
|
@@ -2601,8 +2608,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2601
2608
|
$(I(e.searchButtonText), 1)
|
|
2602
2609
|
]),
|
|
2603
2610
|
_: 1
|
|
2604
|
-
})) :
|
|
2605
|
-
e.showReset ? (o(),
|
|
2611
|
+
})) : B("", !0),
|
|
2612
|
+
e.showReset ? (o(), C(Z, {
|
|
2606
2613
|
key: 1,
|
|
2607
2614
|
onClick: _
|
|
2608
2615
|
}, {
|
|
@@ -2610,22 +2617,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2610
2617
|
$(I(e.resetButtonText), 1)
|
|
2611
2618
|
]),
|
|
2612
2619
|
_: 1
|
|
2613
|
-
})) :
|
|
2614
|
-
e.enableAdvancedFilter && !(e.singleLine && d.value) ? (o(),
|
|
2620
|
+
})) : B("", !0),
|
|
2621
|
+
e.enableAdvancedFilter && !(e.singleLine && d.value) ? (o(), C(Z, {
|
|
2615
2622
|
key: 2,
|
|
2616
2623
|
link: "",
|
|
2617
2624
|
type: "primary",
|
|
2618
|
-
onClick:
|
|
2625
|
+
onClick: O
|
|
2619
2626
|
}, {
|
|
2620
2627
|
default: n(() => [...M[2] || (M[2] = [
|
|
2621
2628
|
$(" 高级查询 ", -1)
|
|
2622
2629
|
])]),
|
|
2623
2630
|
_: 1
|
|
2624
|
-
})) :
|
|
2625
|
-
])) :
|
|
2626
|
-
e.showQuickQuery && A.value.length ? (o(), v("div",
|
|
2631
|
+
})) : B("", !0)
|
|
2632
|
+
])) : B("", !0),
|
|
2633
|
+
e.showQuickQuery && A.value.length ? (o(), v("div", Ao, [
|
|
2627
2634
|
M[3] || (M[3] = m("span", { class: "yk-filter-panel__saved-label" }, "快速查询:", -1)),
|
|
2628
|
-
(o(!0), v(
|
|
2635
|
+
(o(!0), v(K, null, le(A.value, (V) => (o(), C(W, {
|
|
2629
2636
|
key: V.id,
|
|
2630
2637
|
content: V.description,
|
|
2631
2638
|
disabled: !V.description,
|
|
@@ -2634,7 +2641,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2634
2641
|
default: n(() => [
|
|
2635
2642
|
p(Z, {
|
|
2636
2643
|
size: "small",
|
|
2637
|
-
onClick: (
|
|
2644
|
+
onClick: (H) => x(V)
|
|
2638
2645
|
}, {
|
|
2639
2646
|
default: n(() => [
|
|
2640
2647
|
$(I(V.name), 1)
|
|
@@ -2644,13 +2651,13 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2644
2651
|
]),
|
|
2645
2652
|
_: 2
|
|
2646
2653
|
}, 1032, ["content", "disabled"]))), 128))
|
|
2647
|
-
])) :
|
|
2648
|
-
], 64)) : (o(), v(
|
|
2649
|
-
m("div",
|
|
2654
|
+
])) : B("", !0)
|
|
2655
|
+
], 64)) : (o(), v(K, { key: 1 }, [
|
|
2656
|
+
m("div", Do, [
|
|
2650
2657
|
p(Z, {
|
|
2651
2658
|
link: "",
|
|
2652
2659
|
type: "primary",
|
|
2653
|
-
onClick:
|
|
2660
|
+
onClick: L
|
|
2654
2661
|
}, {
|
|
2655
2662
|
default: n(() => [...M[4] || (M[4] = [
|
|
2656
2663
|
$("← 简单查询", -1)
|
|
@@ -2658,19 +2665,19 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2658
2665
|
_: 1
|
|
2659
2666
|
})
|
|
2660
2667
|
]),
|
|
2661
|
-
p(
|
|
2668
|
+
p(Pt, {
|
|
2662
2669
|
ref_key: "advancedPanelRef",
|
|
2663
|
-
ref:
|
|
2670
|
+
ref: U,
|
|
2664
2671
|
columns: e.advancedColumns,
|
|
2665
2672
|
"option-sources": e.advancedOptionSources,
|
|
2666
2673
|
"saved-queries": A.value,
|
|
2667
2674
|
onSearch: Y,
|
|
2668
|
-
onReset:
|
|
2675
|
+
onReset: N,
|
|
2669
2676
|
"onUpdate:savedQueries": J
|
|
2670
2677
|
}, null, 8, ["columns", "option-sources", "saved-queries"]),
|
|
2671
|
-
A.value.length ? (o(), v("div",
|
|
2678
|
+
A.value.length ? (o(), v("div", Bo, [
|
|
2672
2679
|
M[5] || (M[5] = m("span", { class: "yk-filter-panel__saved-label" }, "已存查询:", -1)),
|
|
2673
|
-
(o(!0), v(
|
|
2680
|
+
(o(!0), v(K, null, le(A.value, (V) => (o(), C(W, {
|
|
2674
2681
|
key: V.id,
|
|
2675
2682
|
content: V.description,
|
|
2676
2683
|
disabled: !V.description,
|
|
@@ -2681,8 +2688,8 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2681
2688
|
class: "yk-filter-panel__saved-tag",
|
|
2682
2689
|
effect: "plain",
|
|
2683
2690
|
closable: "",
|
|
2684
|
-
onClick: (
|
|
2685
|
-
onClose: (
|
|
2691
|
+
onClick: (H) => x(V),
|
|
2692
|
+
onClose: (H) => b(V.id)
|
|
2686
2693
|
}, {
|
|
2687
2694
|
default: n(() => [
|
|
2688
2695
|
$(I(V.name), 1)
|
|
@@ -2692,12 +2699,12 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2692
2699
|
]),
|
|
2693
2700
|
_: 2
|
|
2694
2701
|
}, 1032, ["content", "disabled"]))), 128))
|
|
2695
|
-
])) :
|
|
2702
|
+
])) : B("", !0)
|
|
2696
2703
|
], 64))
|
|
2697
2704
|
], 34);
|
|
2698
2705
|
};
|
|
2699
2706
|
}
|
|
2700
|
-
}),
|
|
2707
|
+
}), At = /* @__PURE__ */ re(Eo, [["__scopeId", "data-v-cc097ffb"]]), Io = { class: "yk-filter-item__label" }, To = { class: "yk-filter-item__control" }, Yo = /* @__PURE__ */ te({
|
|
2701
2708
|
name: "YsFilterItemLayout",
|
|
2702
2709
|
__name: "filterItemLayout",
|
|
2703
2710
|
props: {
|
|
@@ -2712,23 +2719,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2712
2719
|
api: { type: Object, required: !0 }
|
|
2713
2720
|
},
|
|
2714
2721
|
setup(e) {
|
|
2715
|
-
const y = e,
|
|
2716
|
-
let
|
|
2717
|
-
return
|
|
2718
|
-
|
|
2722
|
+
const y = e, t = gt(wt, null);
|
|
2723
|
+
let l = null;
|
|
2724
|
+
return Se(() => {
|
|
2725
|
+
t && (l = t(y.api));
|
|
2719
2726
|
}), Ue(() => {
|
|
2720
|
-
|
|
2727
|
+
l == null || l();
|
|
2721
2728
|
}), (a, f) => (o(), v("div", {
|
|
2722
2729
|
class: "yk-filter-item",
|
|
2723
|
-
style:
|
|
2730
|
+
style: st({ minWidth: e.minWidth + "px" })
|
|
2724
2731
|
}, [
|
|
2725
|
-
m("label",
|
|
2726
|
-
m("div",
|
|
2732
|
+
m("label", Io, I(e.label), 1),
|
|
2733
|
+
m("div", To, [
|
|
2727
2734
|
ee(a.$slots, "default", {}, void 0, !0)
|
|
2728
2735
|
])
|
|
2729
2736
|
], 4));
|
|
2730
2737
|
}
|
|
2731
|
-
}), Ke = /* @__PURE__ */ re(
|
|
2738
|
+
}), Ke = /* @__PURE__ */ re(Yo, [["__scopeId", "data-v-2f9ea4d2"]]), Qo = /* @__PURE__ */ te({
|
|
2732
2739
|
name: "YsTextFilterItem",
|
|
2733
2740
|
__name: "textFilterItem",
|
|
2734
2741
|
props: {
|
|
@@ -2752,22 +2759,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2752
2759
|
placeholder: { type: String, required: !1 }
|
|
2753
2760
|
},
|
|
2754
2761
|
setup(e, { expose: y }) {
|
|
2755
|
-
const
|
|
2762
|
+
const t = e, { value: l, filter: a, reset: f } = tl(t), r = {
|
|
2756
2763
|
get filter() {
|
|
2757
2764
|
return a.value;
|
|
2758
2765
|
},
|
|
2759
2766
|
reset: f
|
|
2760
2767
|
};
|
|
2761
|
-
return y(
|
|
2762
|
-
const w =
|
|
2763
|
-
return o(),
|
|
2768
|
+
return y(r), (d, u) => {
|
|
2769
|
+
const w = S("el-input");
|
|
2770
|
+
return o(), C(Ke, {
|
|
2764
2771
|
label: e.label,
|
|
2765
|
-
api:
|
|
2772
|
+
api: r
|
|
2766
2773
|
}, {
|
|
2767
2774
|
default: n(() => [
|
|
2768
2775
|
p(w, {
|
|
2769
|
-
modelValue:
|
|
2770
|
-
"onUpdate:modelValue":
|
|
2776
|
+
modelValue: s(l),
|
|
2777
|
+
"onUpdate:modelValue": u[0] || (u[0] = (F) => he(l) ? l.value = F : null),
|
|
2771
2778
|
placeholder: e.placeholder,
|
|
2772
2779
|
clearable: ""
|
|
2773
2780
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -2776,7 +2783,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2776
2783
|
}, 8, ["label"]);
|
|
2777
2784
|
};
|
|
2778
2785
|
}
|
|
2779
|
-
}),
|
|
2786
|
+
}), No = /* @__PURE__ */ te({
|
|
2780
2787
|
name: "YsDateFilterItem",
|
|
2781
2788
|
__name: "dateFilterItem",
|
|
2782
2789
|
props: {
|
|
@@ -2801,22 +2808,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2801
2808
|
valueFormat: { type: String, default: "YYYY-MM-DD" }
|
|
2802
2809
|
},
|
|
2803
2810
|
setup(e, { expose: y }) {
|
|
2804
|
-
const
|
|
2811
|
+
const t = e, { value: l, filter: a, reset: f } = ll(t), r = {
|
|
2805
2812
|
get filter() {
|
|
2806
2813
|
return a.value;
|
|
2807
2814
|
},
|
|
2808
2815
|
reset: f
|
|
2809
2816
|
};
|
|
2810
|
-
return y(
|
|
2811
|
-
const w =
|
|
2812
|
-
return o(),
|
|
2817
|
+
return y(r), (d, u) => {
|
|
2818
|
+
const w = S("el-date-picker");
|
|
2819
|
+
return o(), C(Ke, {
|
|
2813
2820
|
label: e.label,
|
|
2814
|
-
api:
|
|
2821
|
+
api: r
|
|
2815
2822
|
}, {
|
|
2816
2823
|
default: n(() => [
|
|
2817
2824
|
p(w, {
|
|
2818
|
-
modelValue:
|
|
2819
|
-
"onUpdate:modelValue":
|
|
2825
|
+
modelValue: s(l),
|
|
2826
|
+
"onUpdate:modelValue": u[0] || (u[0] = (F) => he(l) ? l.value = F : null),
|
|
2820
2827
|
type: "date",
|
|
2821
2828
|
placeholder: e.placeholder,
|
|
2822
2829
|
"value-format": e.valueFormat,
|
|
@@ -2827,7 +2834,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2827
2834
|
}, 8, ["label"]);
|
|
2828
2835
|
};
|
|
2829
2836
|
}
|
|
2830
|
-
}),
|
|
2837
|
+
}), Oo = /* @__PURE__ */ te({
|
|
2831
2838
|
name: "YsDateRangeFilterItem",
|
|
2832
2839
|
__name: "dateRangeFilterItem",
|
|
2833
2840
|
props: {
|
|
@@ -2857,23 +2864,23 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2857
2864
|
}
|
|
2858
2865
|
},
|
|
2859
2866
|
setup(e, { expose: y }) {
|
|
2860
|
-
const
|
|
2867
|
+
const t = e, { value: l, filter: a, reset: f } = ol(t), r = {
|
|
2861
2868
|
get filter() {
|
|
2862
2869
|
return a.value;
|
|
2863
2870
|
},
|
|
2864
2871
|
reset: f
|
|
2865
2872
|
};
|
|
2866
|
-
return y(
|
|
2867
|
-
const w =
|
|
2868
|
-
return o(),
|
|
2873
|
+
return y(r), (d, u) => {
|
|
2874
|
+
const w = S("el-date-picker");
|
|
2875
|
+
return o(), C(Ke, {
|
|
2869
2876
|
label: e.label,
|
|
2870
|
-
api:
|
|
2877
|
+
api: r,
|
|
2871
2878
|
"min-width": 240
|
|
2872
2879
|
}, {
|
|
2873
2880
|
default: n(() => [
|
|
2874
2881
|
p(w, {
|
|
2875
|
-
modelValue:
|
|
2876
|
-
"onUpdate:modelValue":
|
|
2882
|
+
modelValue: s(l),
|
|
2883
|
+
"onUpdate:modelValue": u[0] || (u[0] = (F) => he(l) ? l.value = F : null),
|
|
2877
2884
|
type: "daterange",
|
|
2878
2885
|
"start-placeholder": e.startPlaceholder,
|
|
2879
2886
|
"end-placeholder": e.endPlaceholder,
|
|
@@ -2886,7 +2893,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2886
2893
|
}, 8, ["label"]);
|
|
2887
2894
|
};
|
|
2888
2895
|
}
|
|
2889
|
-
}),
|
|
2896
|
+
}), qo = /* @__PURE__ */ te({
|
|
2890
2897
|
name: "YsEnumFilterItem",
|
|
2891
2898
|
__name: "enumFilterItem",
|
|
2892
2899
|
props: {
|
|
@@ -2924,18 +2931,18 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2924
2931
|
multiple: { type: Boolean, default: !1 }
|
|
2925
2932
|
},
|
|
2926
2933
|
setup(e, { expose: y }) {
|
|
2927
|
-
const
|
|
2928
|
-
get: () =>
|
|
2934
|
+
const t = e, { value: l, filter: a, reset: f } = nl(t), r = q({
|
|
2935
|
+
get: () => l.value,
|
|
2929
2936
|
set: (F) => {
|
|
2930
|
-
|
|
2937
|
+
l.value = F;
|
|
2931
2938
|
}
|
|
2932
|
-
}), d = T([]),
|
|
2933
|
-
|
|
2934
|
-
|
|
2939
|
+
}), d = T([]), u = T(!1);
|
|
2940
|
+
Se(async () => {
|
|
2941
|
+
u.value = !0;
|
|
2935
2942
|
try {
|
|
2936
|
-
d.value = await
|
|
2943
|
+
d.value = await t.optionsSource();
|
|
2937
2944
|
} finally {
|
|
2938
|
-
|
|
2945
|
+
u.value = !1;
|
|
2939
2946
|
}
|
|
2940
2947
|
});
|
|
2941
2948
|
const w = {
|
|
@@ -2945,22 +2952,22 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2945
2952
|
reset: f
|
|
2946
2953
|
};
|
|
2947
2954
|
return y(w), (F, A) => {
|
|
2948
|
-
const
|
|
2949
|
-
return o(),
|
|
2955
|
+
const U = S("el-option"), E = S("el-select");
|
|
2956
|
+
return o(), C(Ke, {
|
|
2950
2957
|
label: e.label,
|
|
2951
2958
|
api: w
|
|
2952
2959
|
}, {
|
|
2953
2960
|
default: n(() => [
|
|
2954
|
-
p(
|
|
2955
|
-
modelValue:
|
|
2956
|
-
"onUpdate:modelValue": A[0] || (A[0] = (h) =>
|
|
2961
|
+
p(E, {
|
|
2962
|
+
modelValue: r.value,
|
|
2963
|
+
"onUpdate:modelValue": A[0] || (A[0] = (h) => r.value = h),
|
|
2957
2964
|
multiple: e.multiple,
|
|
2958
2965
|
placeholder: e.placeholder,
|
|
2959
2966
|
clearable: e.clearable,
|
|
2960
|
-
loading:
|
|
2967
|
+
loading: u.value
|
|
2961
2968
|
}, {
|
|
2962
2969
|
default: n(() => [
|
|
2963
|
-
(o(!0), v(
|
|
2970
|
+
(o(!0), v(K, null, le(d.value, (h) => (o(), C(U, {
|
|
2964
2971
|
key: String(h.value),
|
|
2965
2972
|
value: h.value,
|
|
2966
2973
|
label: h.label
|
|
@@ -2973,7 +2980,7 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
2973
2980
|
}, 8, ["label"]);
|
|
2974
2981
|
};
|
|
2975
2982
|
}
|
|
2976
|
-
}),
|
|
2983
|
+
}), Lo = { class: "yk-table-page" }, Uo = { class: "yk-table-page__filter-row" }, Ko = { class: "yk-table-page__filter-extra" }, jo = /* @__PURE__ */ te({
|
|
2977
2984
|
name: "YsTablePage",
|
|
2978
2985
|
__name: "tablePage",
|
|
2979
2986
|
props: {
|
|
@@ -3011,91 +3018,91 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
3011
3018
|
singleLine: { type: Boolean, default: !1 }
|
|
3012
3019
|
},
|
|
3013
3020
|
emits: ["search", "reset", "update:quickQueries", "data-loaded", "update:viewMode", "update:showCheckbox", "update:columnResizable", "update:stickyHeader"],
|
|
3014
|
-
setup(e, { expose: y, emit:
|
|
3015
|
-
const
|
|
3016
|
-
metaFun:
|
|
3017
|
-
dataFun:
|
|
3018
|
-
rowActionsFunc:
|
|
3019
|
-
pageSize:
|
|
3020
|
-
pageSizes:
|
|
3021
|
-
showCheckbox:
|
|
3022
|
-
columnResizable:
|
|
3023
|
-
stickyHeader:
|
|
3024
|
-
loadCustomConfigFun:
|
|
3025
|
-
saveCustomConfigFun:
|
|
3026
|
-
exportPageSize:
|
|
3027
|
-
exportorFunc:
|
|
3028
|
-
collectorFunc:
|
|
3029
|
-
collectorTitle:
|
|
3030
|
-
collectPageSize:
|
|
3031
|
-
maxCollectCount:
|
|
3032
|
-
rowKey:
|
|
3033
|
-
viewMode:
|
|
3034
|
-
})), F =
|
|
3035
|
-
showSearch:
|
|
3036
|
-
showReset:
|
|
3037
|
-
searchButtonText:
|
|
3038
|
-
resetButtonText:
|
|
3039
|
-
enableAdvancedFilter:
|
|
3040
|
-
advancedColumns:
|
|
3041
|
-
advancedOptionSources:
|
|
3042
|
-
showQuickQuery:
|
|
3043
|
-
quickQueries:
|
|
3044
|
-
loadQuickQueryFun:
|
|
3045
|
-
saveQuickQueryFun:
|
|
3046
|
-
singleLine:
|
|
3021
|
+
setup(e, { expose: y, emit: t }) {
|
|
3022
|
+
const l = e, a = t, f = Tt(Le()), r = T(null), d = T(null), u = q(() => async (E, h) => l.dataFun(E, f.value, h)), w = q(() => ({
|
|
3023
|
+
metaFun: l.metaFun,
|
|
3024
|
+
dataFun: u.value,
|
|
3025
|
+
rowActionsFunc: l.rowActionsFunc,
|
|
3026
|
+
pageSize: l.pageSize,
|
|
3027
|
+
pageSizes: l.pageSizes,
|
|
3028
|
+
showCheckbox: l.showCheckbox,
|
|
3029
|
+
columnResizable: l.columnResizable,
|
|
3030
|
+
stickyHeader: l.stickyHeader,
|
|
3031
|
+
loadCustomConfigFun: l.loadCustomConfigFun,
|
|
3032
|
+
saveCustomConfigFun: l.saveCustomConfigFun,
|
|
3033
|
+
exportPageSize: l.exportPageSize,
|
|
3034
|
+
exportorFunc: l.exportorFunc,
|
|
3035
|
+
collectorFunc: l.collectorFunc,
|
|
3036
|
+
collectorTitle: l.collectorTitle,
|
|
3037
|
+
collectPageSize: l.collectPageSize,
|
|
3038
|
+
maxCollectCount: l.maxCollectCount,
|
|
3039
|
+
rowKey: l.rowKey,
|
|
3040
|
+
viewMode: l.viewMode
|
|
3041
|
+
})), F = q(() => ({
|
|
3042
|
+
showSearch: l.showSearch,
|
|
3043
|
+
showReset: l.showReset,
|
|
3044
|
+
searchButtonText: l.searchButtonText,
|
|
3045
|
+
resetButtonText: l.resetButtonText,
|
|
3046
|
+
enableAdvancedFilter: l.enableAdvancedFilter,
|
|
3047
|
+
advancedColumns: l.advancedColumns,
|
|
3048
|
+
advancedOptionSources: l.advancedOptionSources,
|
|
3049
|
+
showQuickQuery: l.showQuickQuery,
|
|
3050
|
+
quickQueries: l.quickQueries,
|
|
3051
|
+
loadQuickQueryFun: l.loadQuickQueryFun,
|
|
3052
|
+
saveQuickQueryFun: l.saveQuickQueryFun,
|
|
3053
|
+
singleLine: l.singleLine
|
|
3047
3054
|
}));
|
|
3048
|
-
function A(
|
|
3055
|
+
function A(E) {
|
|
3049
3056
|
var h;
|
|
3050
|
-
f.value =
|
|
3057
|
+
f.value = E, a("search", E), (h = r.value) == null || h.reload();
|
|
3051
3058
|
}
|
|
3052
|
-
function
|
|
3053
|
-
var
|
|
3054
|
-
f.value = Le(), a("reset"), (
|
|
3059
|
+
function U() {
|
|
3060
|
+
var E;
|
|
3061
|
+
f.value = Le(), a("reset"), (E = r.value) == null || E.reload();
|
|
3055
3062
|
}
|
|
3056
3063
|
return y({
|
|
3057
|
-
table:
|
|
3064
|
+
table: r,
|
|
3058
3065
|
filterPanel: d
|
|
3059
|
-
}), (
|
|
3060
|
-
m("div",
|
|
3061
|
-
p(
|
|
3066
|
+
}), (E, h) => (o(), v("div", Lo, [
|
|
3067
|
+
m("div", Uo, [
|
|
3068
|
+
p(At, ot({
|
|
3062
3069
|
ref_key: "filterPanelRef",
|
|
3063
3070
|
ref: d,
|
|
3064
3071
|
class: "yk-table-page__filter"
|
|
3065
3072
|
}, F.value, {
|
|
3066
3073
|
onSearch: A,
|
|
3067
|
-
onReset:
|
|
3074
|
+
onReset: U,
|
|
3068
3075
|
"onUpdate:quickQueries": h[0] || (h[0] = (_) => a("update:quickQueries", _))
|
|
3069
3076
|
}), {
|
|
3070
3077
|
default: n(() => [
|
|
3071
|
-
ee(
|
|
3078
|
+
ee(E.$slots, "default", {}, void 0, !0)
|
|
3072
3079
|
]),
|
|
3073
3080
|
_: 3
|
|
3074
3081
|
}, 16),
|
|
3075
|
-
m("div",
|
|
3076
|
-
ee(
|
|
3077
|
-
!
|
|
3082
|
+
m("div", Ko, [
|
|
3083
|
+
ee(E.$slots, "filter-extra", {}, void 0, !0),
|
|
3084
|
+
!E.$slots["filter-extra"] && r.value ? (o(), C($t, {
|
|
3078
3085
|
key: 0,
|
|
3079
|
-
table:
|
|
3080
|
-
}, null, 8, ["table"])) :
|
|
3086
|
+
table: r.value
|
|
3087
|
+
}, null, 8, ["table"])) : B("", !0)
|
|
3081
3088
|
])
|
|
3082
3089
|
]),
|
|
3083
|
-
p(
|
|
3090
|
+
p(Ft, {
|
|
3084
3091
|
class: "yk-table-page__command",
|
|
3085
|
-
actions:
|
|
3086
|
-
table:
|
|
3087
|
-
},
|
|
3088
|
-
|
|
3092
|
+
actions: l.actions,
|
|
3093
|
+
table: r.value
|
|
3094
|
+
}, ze({ _: 2 }, [
|
|
3095
|
+
E.$slots["command-bar"] ? {
|
|
3089
3096
|
name: "default",
|
|
3090
3097
|
fn: n(() => [
|
|
3091
|
-
ee(
|
|
3098
|
+
ee(E.$slots, "command-bar", {}, void 0, !0)
|
|
3092
3099
|
]),
|
|
3093
3100
|
key: "0"
|
|
3094
3101
|
} : void 0
|
|
3095
3102
|
]), 1032, ["actions", "table"]),
|
|
3096
|
-
p(
|
|
3103
|
+
p(St, ot({
|
|
3097
3104
|
ref_key: "tableRef",
|
|
3098
|
-
ref:
|
|
3105
|
+
ref: r,
|
|
3099
3106
|
class: "yk-table-page__table"
|
|
3100
3107
|
}, w.value, {
|
|
3101
3108
|
onDataLoaded: h[1] || (h[1] = (_) => a("data-loaded", _)),
|
|
@@ -3103,47 +3110,47 @@ import './index.css';const sl = { class: "export-options" }, il = { class: "expo
|
|
|
3103
3110
|
"onUpdate:showCheckbox": h[3] || (h[3] = (_) => a("update:showCheckbox", _)),
|
|
3104
3111
|
"onUpdate:columnResizable": h[4] || (h[4] = (_) => a("update:columnResizable", _)),
|
|
3105
3112
|
"onUpdate:stickyHeader": h[5] || (h[5] = (_) => a("update:stickyHeader", _))
|
|
3106
|
-
}),
|
|
3107
|
-
|
|
3113
|
+
}), ze({ _: 2 }, [
|
|
3114
|
+
E.$slots.card ? {
|
|
3108
3115
|
name: "card",
|
|
3109
3116
|
fn: n((_) => [
|
|
3110
|
-
ee(
|
|
3117
|
+
ee(E.$slots, "card", Oe(qe(_)), void 0, !0)
|
|
3111
3118
|
]),
|
|
3112
3119
|
key: "0"
|
|
3113
3120
|
} : void 0,
|
|
3114
|
-
|
|
3121
|
+
E.$slots.list ? {
|
|
3115
3122
|
name: "list",
|
|
3116
3123
|
fn: n((_) => [
|
|
3117
|
-
ee(
|
|
3124
|
+
ee(E.$slots, "list", Oe(qe(_)), void 0, !0)
|
|
3118
3125
|
]),
|
|
3119
3126
|
key: "1"
|
|
3120
3127
|
} : void 0,
|
|
3121
|
-
|
|
3128
|
+
E.$slots.empty ? {
|
|
3122
3129
|
name: "empty",
|
|
3123
3130
|
fn: n((_) => [
|
|
3124
|
-
ee(
|
|
3131
|
+
ee(E.$slots, "empty", Oe(qe(_)), void 0, !0)
|
|
3125
3132
|
]),
|
|
3126
3133
|
key: "2"
|
|
3127
3134
|
} : void 0,
|
|
3128
|
-
|
|
3135
|
+
E.$slots.loading ? {
|
|
3129
3136
|
name: "loading",
|
|
3130
3137
|
fn: n((_) => [
|
|
3131
|
-
ee(
|
|
3138
|
+
ee(E.$slots, "loading", Oe(qe(_)), void 0, !0)
|
|
3132
3139
|
]),
|
|
3133
3140
|
key: "3"
|
|
3134
3141
|
} : void 0,
|
|
3135
|
-
|
|
3142
|
+
E.$slots.footer ? {
|
|
3136
3143
|
name: "footer",
|
|
3137
3144
|
fn: n((_) => [
|
|
3138
|
-
ee(
|
|
3145
|
+
ee(E.$slots, "footer", Oe(qe(_)), void 0, !0)
|
|
3139
3146
|
]),
|
|
3140
3147
|
key: "4"
|
|
3141
3148
|
} : void 0
|
|
3142
3149
|
]), 1040)
|
|
3143
3150
|
]));
|
|
3144
3151
|
}
|
|
3145
|
-
}),
|
|
3146
|
-
function
|
|
3152
|
+
}), Ho = /* @__PURE__ */ re(jo, [["__scopeId", "data-v-94d594ea"]]);
|
|
3153
|
+
function Dt(e) {
|
|
3147
3154
|
if (e == null) return "";
|
|
3148
3155
|
if (typeof e == "object")
|
|
3149
3156
|
try {
|
|
@@ -3153,7 +3160,7 @@ function zt(e) {
|
|
|
3153
3160
|
}
|
|
3154
3161
|
return String(e);
|
|
3155
3162
|
}
|
|
3156
|
-
const
|
|
3163
|
+
const Go = /* @__PURE__ */ te({
|
|
3157
3164
|
__name: "importRowEditDialog",
|
|
3158
3165
|
props: {
|
|
3159
3166
|
visible: { type: Boolean },
|
|
@@ -3163,40 +3170,40 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3163
3170
|
},
|
|
3164
3171
|
emits: ["update:visible", "saved"],
|
|
3165
3172
|
setup(e, { emit: y }) {
|
|
3166
|
-
const
|
|
3173
|
+
const t = e, l = y, a = T({}), f = T([]);
|
|
3167
3174
|
ce(
|
|
3168
|
-
() =>
|
|
3169
|
-
(
|
|
3170
|
-
if (!
|
|
3175
|
+
() => t.visible,
|
|
3176
|
+
(u) => {
|
|
3177
|
+
if (!u || !t.row) return;
|
|
3171
3178
|
const w = {};
|
|
3172
|
-
for (const F of
|
|
3173
|
-
w[F.name] =
|
|
3179
|
+
for (const F of t.columns)
|
|
3180
|
+
w[F.name] = Dt(t.row.data[F.name]);
|
|
3174
3181
|
a.value = w, f.value = [];
|
|
3175
3182
|
}
|
|
3176
3183
|
);
|
|
3177
|
-
function
|
|
3178
|
-
|
|
3184
|
+
function r() {
|
|
3185
|
+
l("update:visible", !1);
|
|
3179
3186
|
}
|
|
3180
3187
|
function d() {
|
|
3181
|
-
if (!
|
|
3182
|
-
const
|
|
3183
|
-
for (const A of
|
|
3184
|
-
|
|
3185
|
-
const { row: w, errors: F } =
|
|
3186
|
-
f.value = F, !(F.length > 0) && (
|
|
3188
|
+
if (!t.row) return;
|
|
3189
|
+
const u = {};
|
|
3190
|
+
for (const A of t.columns)
|
|
3191
|
+
u[A.name] = a.value[A.name] ?? "";
|
|
3192
|
+
const { row: w, errors: F } = t.saver(t.row, u);
|
|
3193
|
+
f.value = F, !(F.length > 0) && (l("saved", w), l("update:visible", !1));
|
|
3187
3194
|
}
|
|
3188
|
-
return (
|
|
3189
|
-
const F =
|
|
3190
|
-
return o(),
|
|
3195
|
+
return (u, w) => {
|
|
3196
|
+
const F = S("el-alert"), A = S("el-input"), U = S("el-form-item"), E = S("el-form"), h = S("el-button"), _ = S("el-dialog");
|
|
3197
|
+
return o(), C(_, {
|
|
3191
3198
|
"model-value": e.visible,
|
|
3192
3199
|
title: e.row ? `编辑第 ${e.row.rowNumber} 行` : "编辑数据行",
|
|
3193
3200
|
width: "480px",
|
|
3194
3201
|
"append-to-body": "",
|
|
3195
3202
|
"close-on-click-modal": !1,
|
|
3196
|
-
"onUpdate:modelValue": w[1] || (w[1] = (Y) =>
|
|
3203
|
+
"onUpdate:modelValue": w[1] || (w[1] = (Y) => l("update:visible", Y))
|
|
3197
3204
|
}, {
|
|
3198
3205
|
footer: n(() => [
|
|
3199
|
-
p(h, { onClick:
|
|
3206
|
+
p(h, { onClick: r }, {
|
|
3200
3207
|
default: n(() => [...w[2] || (w[2] = [
|
|
3201
3208
|
$("取消", -1)
|
|
3202
3209
|
])]),
|
|
@@ -3213,7 +3220,7 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3213
3220
|
})
|
|
3214
3221
|
]),
|
|
3215
3222
|
default: n(() => [
|
|
3216
|
-
f.value.length > 0 ? (o(),
|
|
3223
|
+
f.value.length > 0 ? (o(), C(F, {
|
|
3217
3224
|
key: 0,
|
|
3218
3225
|
class: "yk-import-row-edit-dialog__alert",
|
|
3219
3226
|
type: "error",
|
|
@@ -3221,17 +3228,17 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3221
3228
|
"show-icon": ""
|
|
3222
3229
|
}, {
|
|
3223
3230
|
default: n(() => [
|
|
3224
|
-
(o(!0), v(
|
|
3231
|
+
(o(!0), v(K, null, le(f.value, (Y, N) => (o(), v("div", { key: N }, I(Y), 1))), 128))
|
|
3225
3232
|
]),
|
|
3226
3233
|
_: 1
|
|
3227
|
-
})) :
|
|
3228
|
-
p(
|
|
3234
|
+
})) : B("", !0),
|
|
3235
|
+
p(E, {
|
|
3229
3236
|
"label-width": "92px",
|
|
3230
|
-
onSubmit: w[0] || (w[0] =
|
|
3237
|
+
onSubmit: w[0] || (w[0] = vt(() => {
|
|
3231
3238
|
}, ["prevent"]))
|
|
3232
3239
|
}, {
|
|
3233
3240
|
default: n(() => [
|
|
3234
|
-
(o(!0), v(
|
|
3241
|
+
(o(!0), v(K, null, le(e.columns, (Y) => (o(), C(U, {
|
|
3235
3242
|
key: Y.name,
|
|
3236
3243
|
label: Y.name,
|
|
3237
3244
|
required: !Y.optional
|
|
@@ -3239,9 +3246,9 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3239
3246
|
default: n(() => [
|
|
3240
3247
|
p(A, {
|
|
3241
3248
|
modelValue: a.value[Y.name],
|
|
3242
|
-
"onUpdate:modelValue": (
|
|
3249
|
+
"onUpdate:modelValue": (N) => a.value[Y.name] = N,
|
|
3243
3250
|
placeholder: Y.optional ? "可留空" : `请输入${Y.name}`,
|
|
3244
|
-
onKeyup:
|
|
3251
|
+
onKeyup: et(d, ["enter"])
|
|
3245
3252
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
3246
3253
|
]),
|
|
3247
3254
|
_: 2
|
|
@@ -3254,28 +3261,28 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3254
3261
|
}, 8, ["model-value", "title"]);
|
|
3255
3262
|
};
|
|
3256
3263
|
}
|
|
3257
|
-
}),
|
|
3264
|
+
}), Wo = /* @__PURE__ */ re(Go, [["__scopeId", "data-v-24918b65"]]), Jo = ["accept"], Xo = { class: "yk-import-excel__toolbar" }, Zo = ["title"], en = {
|
|
3258
3265
|
key: 2,
|
|
3259
3266
|
class: "yk-import-excel__stats"
|
|
3260
|
-
},
|
|
3267
|
+
}, tn = { class: "yk-import-excel__stat" }, ln = { class: "yk-import-excel__stat" }, on = { class: "yk-import-excel__stat yk-import-excel__stat--danger" }, nn = {
|
|
3261
3268
|
key: 0,
|
|
3262
3269
|
class: "yk-import-excel__progress"
|
|
3263
|
-
},
|
|
3270
|
+
}, an = { class: "yk-import-excel__progress-meta" }, sn = { class: "yk-import-excel__danger-text" }, rn = { class: "yk-import-excel__progress-eta" }, un = { class: "yk-import-excel__body" }, dn = ["title"], cn = {
|
|
3264
3271
|
key: 0,
|
|
3265
3272
|
class: "yk-import-excel__spin"
|
|
3266
|
-
},
|
|
3273
|
+
}, pn = {
|
|
3267
3274
|
key: 0,
|
|
3268
3275
|
class: "yk-import-excel__msg yk-import-excel__msg--danger"
|
|
3269
|
-
},
|
|
3276
|
+
}, mn = {
|
|
3270
3277
|
key: 1,
|
|
3271
3278
|
class: "yk-import-excel__msg yk-import-excel__msg--danger"
|
|
3272
|
-
},
|
|
3279
|
+
}, fn = {
|
|
3273
3280
|
key: 1,
|
|
3274
3281
|
class: "yk-import-excel__action-placeholder"
|
|
3275
|
-
},
|
|
3282
|
+
}, vn = { class: "yk-import-excel__empty-hint" }, yn = {
|
|
3276
3283
|
key: 1,
|
|
3277
3284
|
class: "yk-import-excel__drop-mask"
|
|
3278
|
-
},
|
|
3285
|
+
}, gn = /* @__PURE__ */ te({
|
|
3279
3286
|
__name: "importExcel",
|
|
3280
3287
|
props: {
|
|
3281
3288
|
columns: {},
|
|
@@ -3285,149 +3292,149 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3285
3292
|
autoScroll: { type: Boolean, default: !0 }
|
|
3286
3293
|
},
|
|
3287
3294
|
emits: ["loaded", "selection-change", "processed", "row-update", "row-remove"],
|
|
3288
|
-
setup(e, { expose: y, emit:
|
|
3289
|
-
const
|
|
3295
|
+
setup(e, { expose: y, emit: t }) {
|
|
3296
|
+
const l = e, a = t, {
|
|
3290
3297
|
rows: f,
|
|
3291
|
-
fileName:
|
|
3298
|
+
fileName: r,
|
|
3292
3299
|
sheetName: d,
|
|
3293
|
-
loading:
|
|
3300
|
+
loading: u,
|
|
3294
3301
|
processing: w,
|
|
3295
3302
|
stopping: F,
|
|
3296
3303
|
processingTotal: A,
|
|
3297
|
-
progressDone:
|
|
3298
|
-
progressSuccess:
|
|
3304
|
+
progressDone: U,
|
|
3305
|
+
progressSuccess: E,
|
|
3299
3306
|
progressFailed: h,
|
|
3300
3307
|
hasData: _,
|
|
3301
3308
|
invalidCount: Y,
|
|
3302
|
-
successCount:
|
|
3309
|
+
successCount: N,
|
|
3303
3310
|
failedCount: J,
|
|
3304
|
-
selectedCount:
|
|
3305
|
-
pendingCount:
|
|
3311
|
+
selectedCount: j,
|
|
3312
|
+
pendingCount: i,
|
|
3306
3313
|
loadFile: g,
|
|
3307
3314
|
syncSelection: z,
|
|
3308
|
-
saveRowEdit:
|
|
3309
|
-
removeRow:
|
|
3315
|
+
saveRowEdit: O,
|
|
3316
|
+
removeRow: L,
|
|
3310
3317
|
startProcessing: ue,
|
|
3311
3318
|
stopProcessing: ie,
|
|
3312
3319
|
clear: X
|
|
3313
|
-
} =
|
|
3314
|
-
columns:
|
|
3315
|
-
processor:
|
|
3316
|
-
parser:
|
|
3317
|
-
}),
|
|
3320
|
+
} = al({
|
|
3321
|
+
columns: ne(l, "columns"),
|
|
3322
|
+
processor: ne(l, "processor"),
|
|
3323
|
+
parser: ne(l, "parser")
|
|
3324
|
+
}), x = T(), b = T(), R = {
|
|
3318
3325
|
valid: { label: "待处理", type: "info" },
|
|
3319
3326
|
invalid: { label: "校验失败", type: "danger" },
|
|
3320
3327
|
processing: { label: "处理中", type: "warning" },
|
|
3321
3328
|
success: { label: "成功", type: "success" },
|
|
3322
3329
|
failed: { label: "失败", type: "danger" }
|
|
3323
|
-
}, M =
|
|
3330
|
+
}, M = q(
|
|
3324
3331
|
() => Object.keys(R).map((k) => ({
|
|
3325
|
-
text: `${R[k].label}(${f.value.filter((
|
|
3332
|
+
text: `${R[k].label}(${f.value.filter((D) => D.status === k).length})`,
|
|
3326
3333
|
value: k
|
|
3327
3334
|
}))
|
|
3328
3335
|
);
|
|
3329
|
-
function Z(k,
|
|
3330
|
-
return
|
|
3336
|
+
function Z(k, D) {
|
|
3337
|
+
return D.status === k;
|
|
3331
3338
|
}
|
|
3332
3339
|
function W(k) {
|
|
3333
|
-
var
|
|
3334
|
-
if (!
|
|
3335
|
-
const
|
|
3336
|
-
if (!
|
|
3337
|
-
const
|
|
3338
|
-
if (
|
|
3339
|
-
const
|
|
3340
|
-
(
|
|
3340
|
+
var _e, xe;
|
|
3341
|
+
if (!l.autoScroll) return;
|
|
3342
|
+
const D = (_e = x.value) == null ? void 0 : _e.$el, G = D == null ? void 0 : D.querySelector(".el-table__body-wrapper .el-scrollbar__wrap"), se = D == null ? void 0 : D.querySelector(".el-table__body-wrapper tbody");
|
|
3343
|
+
if (!D || !G || !se) return;
|
|
3344
|
+
const be = f.value.findIndex((Xe) => Xe.rowNumber === k), Qe = se.querySelectorAll("tr")[be];
|
|
3345
|
+
if (!Qe) return;
|
|
3346
|
+
const Pe = G.getBoundingClientRect(), c = Qe.getBoundingClientRect(), Q = Math.max(0, G.scrollHeight - G.clientHeight), ae = G.scrollTop + (c.top - Pe.top) - (G.clientHeight - c.height) / 2;
|
|
3347
|
+
(xe = x.value) == null || xe.setScrollTop(Math.min(Q, Math.max(0, Math.round(ae))));
|
|
3341
3348
|
}
|
|
3342
3349
|
ce(
|
|
3343
3350
|
() => {
|
|
3344
3351
|
var k;
|
|
3345
|
-
return ((k = f.value.find((
|
|
3352
|
+
return ((k = f.value.find((D) => D.status === "processing")) == null ? void 0 : k.rowNumber) ?? null;
|
|
3346
3353
|
},
|
|
3347
3354
|
(k) => {
|
|
3348
|
-
k !== null &&
|
|
3355
|
+
k !== null && Ze(() => W(k));
|
|
3349
3356
|
}
|
|
3350
3357
|
);
|
|
3351
3358
|
const P = T(0), V = T(0);
|
|
3352
|
-
let
|
|
3353
|
-
const
|
|
3359
|
+
let H;
|
|
3360
|
+
const oe = q(() => {
|
|
3354
3361
|
const k = A.value;
|
|
3355
|
-
return k <= 0 ? 0 : Math.min(100,
|
|
3362
|
+
return k <= 0 ? 0 : Math.min(100, U.value / k * 100);
|
|
3356
3363
|
});
|
|
3357
3364
|
function de() {
|
|
3358
|
-
return `${
|
|
3365
|
+
return `${U.value}/${A.value}`;
|
|
3359
3366
|
}
|
|
3360
|
-
const pe =
|
|
3361
|
-
if (!w.value ||
|
|
3362
|
-
const
|
|
3363
|
-
return `预计剩余 ${Fe(
|
|
3367
|
+
const pe = q(() => {
|
|
3368
|
+
if (!w.value || U.value === 0) return "预计剩余 计算中…";
|
|
3369
|
+
const D = (V.value - P.value) / U.value, G = A.value - U.value;
|
|
3370
|
+
return `预计剩余 ${Fe(D * G)}`;
|
|
3364
3371
|
});
|
|
3365
3372
|
function Fe(k) {
|
|
3366
|
-
const
|
|
3367
|
-
if (
|
|
3368
|
-
const
|
|
3369
|
-
return
|
|
3373
|
+
const D = Math.max(0, Math.ceil(k / 1e3));
|
|
3374
|
+
if (D < 60) return `${D} 秒`;
|
|
3375
|
+
const G = Math.floor(D / 60), se = D % 60;
|
|
3376
|
+
return se > 0 ? `${G} 分 ${se} 秒` : `${G} 分`;
|
|
3370
3377
|
}
|
|
3371
3378
|
ce(w, (k) => {
|
|
3372
|
-
k ? (P.value = Date.now(), V.value = P.value,
|
|
3379
|
+
k ? (P.value = Date.now(), V.value = P.value, H = setInterval(() => {
|
|
3373
3380
|
V.value = Date.now();
|
|
3374
|
-
}, 500)) :
|
|
3381
|
+
}, 500)) : H && (clearInterval(H), H = void 0);
|
|
3375
3382
|
}), Ue(() => {
|
|
3376
|
-
|
|
3383
|
+
H && clearInterval(H);
|
|
3377
3384
|
});
|
|
3378
|
-
function
|
|
3385
|
+
function we() {
|
|
3379
3386
|
var k;
|
|
3380
3387
|
(k = b.value) == null || k.click();
|
|
3381
3388
|
}
|
|
3382
|
-
const
|
|
3383
|
-
function
|
|
3384
|
-
var
|
|
3385
|
-
return Array.from(((
|
|
3389
|
+
const ve = T(0), De = q(() => ve.value > 0);
|
|
3390
|
+
function me(k) {
|
|
3391
|
+
var D;
|
|
3392
|
+
return Array.from(((D = k.dataTransfer) == null ? void 0 : D.types) ?? []).includes("Files");
|
|
3386
3393
|
}
|
|
3387
3394
|
function je(k) {
|
|
3388
|
-
const
|
|
3389
|
-
if (
|
|
3390
|
-
const
|
|
3391
|
-
return
|
|
3395
|
+
const D = l.accept.split(",").map((se) => se.trim().toLowerCase()).filter(Boolean);
|
|
3396
|
+
if (D.length === 0) return !0;
|
|
3397
|
+
const G = k.name.toLowerCase();
|
|
3398
|
+
return D.some((se) => G.endsWith(se));
|
|
3392
3399
|
}
|
|
3393
|
-
async function
|
|
3394
|
-
var
|
|
3395
|
-
if (!
|
|
3400
|
+
async function Be(k) {
|
|
3401
|
+
var D;
|
|
3402
|
+
if (!u.value) {
|
|
3396
3403
|
if (!je(k)) {
|
|
3397
|
-
|
|
3404
|
+
ye.error(`仅支持 ${l.accept} 格式的文件`);
|
|
3398
3405
|
return;
|
|
3399
3406
|
}
|
|
3400
3407
|
try {
|
|
3401
|
-
const
|
|
3402
|
-
a("loaded",
|
|
3403
|
-
for (const
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
} catch (
|
|
3407
|
-
|
|
3408
|
+
const G = await g(k);
|
|
3409
|
+
a("loaded", G), await Ze();
|
|
3410
|
+
for (const se of f.value)
|
|
3411
|
+
se.status !== "invalid" && ((D = x.value) == null || D.toggleRowSelection(se, !0));
|
|
3412
|
+
ye.success(`已加载 ${G.length} 行(工作表「${d.value}」)`);
|
|
3413
|
+
} catch (G) {
|
|
3414
|
+
ye.error(G instanceof Error ? G.message : String(G));
|
|
3408
3415
|
}
|
|
3409
3416
|
}
|
|
3410
3417
|
}
|
|
3411
|
-
async function
|
|
3412
|
-
var
|
|
3413
|
-
const
|
|
3414
|
-
|
|
3418
|
+
async function Ee(k) {
|
|
3419
|
+
var se;
|
|
3420
|
+
const D = k.target, G = (se = D.files) == null ? void 0 : se[0];
|
|
3421
|
+
D.value = "", G && await Be(G);
|
|
3415
3422
|
}
|
|
3416
|
-
function
|
|
3417
|
-
|
|
3423
|
+
function $e(k) {
|
|
3424
|
+
me(k) && (ve.value += 1);
|
|
3418
3425
|
}
|
|
3419
3426
|
function He(k) {
|
|
3420
|
-
|
|
3427
|
+
me(k) && (k.preventDefault(), k.dataTransfer && (k.dataTransfer.dropEffect = "copy"));
|
|
3421
3428
|
}
|
|
3422
|
-
function
|
|
3423
|
-
|
|
3429
|
+
function Ie(k) {
|
|
3430
|
+
me(k) && (ve.value = Math.max(0, ve.value - 1));
|
|
3424
3431
|
}
|
|
3425
3432
|
function Ve(k) {
|
|
3426
|
-
var
|
|
3427
|
-
if (!
|
|
3428
|
-
k.preventDefault(),
|
|
3429
|
-
const
|
|
3430
|
-
|
|
3433
|
+
var G, se;
|
|
3434
|
+
if (!me(k)) return;
|
|
3435
|
+
k.preventDefault(), ve.value = 0;
|
|
3436
|
+
const D = (se = (G = k.dataTransfer) == null ? void 0 : G.files) == null ? void 0 : se[0];
|
|
3437
|
+
D && Be(D);
|
|
3431
3438
|
}
|
|
3432
3439
|
function Ge(k) {
|
|
3433
3440
|
z(k), a("selection-change", k);
|
|
@@ -3435,35 +3442,35 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3435
3442
|
function We(k) {
|
|
3436
3443
|
return k.status !== "invalid";
|
|
3437
3444
|
}
|
|
3438
|
-
async function
|
|
3445
|
+
async function Te() {
|
|
3439
3446
|
try {
|
|
3440
3447
|
const k = await ue();
|
|
3441
3448
|
if (!k) return;
|
|
3442
3449
|
if (a("processed", k), k.stopped) {
|
|
3443
|
-
const
|
|
3444
|
-
|
|
3445
|
-
`已停止:成功 ${k.success} 行,失败 ${k.failed} 行,剩余 ${
|
|
3450
|
+
const D = k.total - k.success - k.failed;
|
|
3451
|
+
ye.warning(
|
|
3452
|
+
`已停止:成功 ${k.success} 行,失败 ${k.failed} 行,剩余 ${D} 行未处理(可再次「开始处理」续跑)`
|
|
3446
3453
|
);
|
|
3447
|
-
} else k.failed === 0 ?
|
|
3454
|
+
} else k.failed === 0 ? ye.success(`全部处理完成,共 ${k.success} 行`) : ye.warning(`处理完成:成功 ${k.success} 行,失败 ${k.failed} 行`);
|
|
3448
3455
|
} catch (k) {
|
|
3449
|
-
|
|
3456
|
+
ye.error(k instanceof Error ? k.message : String(k));
|
|
3450
3457
|
}
|
|
3451
3458
|
}
|
|
3452
3459
|
function Re(k) {
|
|
3453
3460
|
return !w.value && (k.status === "invalid" || k.status === "failed");
|
|
3454
3461
|
}
|
|
3455
|
-
const Me = T(!1),
|
|
3456
|
-
function
|
|
3457
|
-
Re(k) && (
|
|
3462
|
+
const Me = T(!1), Ye = T(null);
|
|
3463
|
+
function tt(k) {
|
|
3464
|
+
Re(k) && (Ye.value = k, Me.value = !0);
|
|
3458
3465
|
}
|
|
3459
|
-
async function
|
|
3460
|
-
var
|
|
3461
|
-
a("row-update", k), await
|
|
3466
|
+
async function Je(k) {
|
|
3467
|
+
var D;
|
|
3468
|
+
a("row-update", k), await Ze(), (D = x.value) == null || D.toggleRowSelection(k, !0), ye.success(`第 ${k.rowNumber} 行已修正,可重新处理`);
|
|
3462
3469
|
}
|
|
3463
|
-
async function
|
|
3470
|
+
async function ke(k) {
|
|
3464
3471
|
if (Re(k)) {
|
|
3465
3472
|
try {
|
|
3466
|
-
await
|
|
3473
|
+
await xt.confirm(
|
|
3467
3474
|
`确定删除第 ${k.rowNumber} 行吗?删除后不可恢复。`,
|
|
3468
3475
|
"删除数据行",
|
|
3469
3476
|
{ type: "warning", confirmButtonText: "删除", cancelButtonText: "取消" }
|
|
@@ -3471,16 +3478,16 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3471
3478
|
} catch {
|
|
3472
3479
|
return;
|
|
3473
3480
|
}
|
|
3474
|
-
|
|
3481
|
+
L(k), a("row-remove", k), ye.success(`已删除第 ${k.rowNumber} 行`);
|
|
3475
3482
|
}
|
|
3476
3483
|
}
|
|
3477
|
-
return y({ openFilePicker:
|
|
3478
|
-
const
|
|
3484
|
+
return y({ openFilePicker: we, startProcessing: Te, stopProcessing: ie, clear: X }), (k, D) => {
|
|
3485
|
+
const G = S("el-button"), se = S("el-progress"), be = S("el-table-column"), Qe = S("el-tag"), Pe = S("el-table"), c = yt("loading");
|
|
3479
3486
|
return o(), v("div", {
|
|
3480
3487
|
class: "yk-import-excel",
|
|
3481
|
-
onDragenter:
|
|
3488
|
+
onDragenter: $e,
|
|
3482
3489
|
onDragover: He,
|
|
3483
|
-
onDragleave:
|
|
3490
|
+
onDragleave: Ie,
|
|
3484
3491
|
onDrop: Ve
|
|
3485
3492
|
}, [
|
|
3486
3493
|
m("input", {
|
|
@@ -3488,87 +3495,87 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3488
3495
|
ref: b,
|
|
3489
3496
|
class: "yk-import-excel__file",
|
|
3490
3497
|
type: "file",
|
|
3491
|
-
accept:
|
|
3492
|
-
onChange:
|
|
3493
|
-
}, null, 40,
|
|
3494
|
-
m("div",
|
|
3495
|
-
p(
|
|
3498
|
+
accept: l.accept,
|
|
3499
|
+
onChange: Ee
|
|
3500
|
+
}, null, 40, Jo),
|
|
3501
|
+
m("div", Xo, [
|
|
3502
|
+
p(G, {
|
|
3496
3503
|
type: "primary",
|
|
3497
|
-
loading: u
|
|
3498
|
-
onClick:
|
|
3504
|
+
loading: s(u),
|
|
3505
|
+
onClick: we
|
|
3499
3506
|
}, {
|
|
3500
|
-
default: n(() => [...
|
|
3507
|
+
default: n(() => [...D[1] || (D[1] = [
|
|
3501
3508
|
$(" 选择 Excel 文件 ", -1)
|
|
3502
3509
|
])]),
|
|
3503
3510
|
_: 1
|
|
3504
3511
|
}, 8, ["loading"]),
|
|
3505
|
-
p(
|
|
3512
|
+
p(G, {
|
|
3506
3513
|
type: "success",
|
|
3507
|
-
loading:
|
|
3508
|
-
disabled:
|
|
3509
|
-
onClick:
|
|
3514
|
+
loading: s(w),
|
|
3515
|
+
disabled: s(i) === 0,
|
|
3516
|
+
onClick: Te
|
|
3510
3517
|
}, {
|
|
3511
3518
|
default: n(() => [
|
|
3512
|
-
$(" 开始处理" + I(
|
|
3519
|
+
$(" 开始处理" + I(s(i) > 0 ? `(${s(i)} 行)` : ""), 1)
|
|
3513
3520
|
]),
|
|
3514
3521
|
_: 1
|
|
3515
3522
|
}, 8, ["loading", "disabled"]),
|
|
3516
|
-
|
|
3523
|
+
s(w) ? (o(), C(G, {
|
|
3517
3524
|
key: 0,
|
|
3518
3525
|
type: "danger",
|
|
3519
|
-
disabled:
|
|
3520
|
-
onClick:
|
|
3526
|
+
disabled: s(F),
|
|
3527
|
+
onClick: s(ie)
|
|
3521
3528
|
}, {
|
|
3522
3529
|
default: n(() => [
|
|
3523
|
-
$(I(
|
|
3530
|
+
$(I(s(F) ? "正在停止…" : "停止"), 1)
|
|
3524
3531
|
]),
|
|
3525
3532
|
_: 1
|
|
3526
|
-
}, 8, ["disabled", "onClick"])) :
|
|
3527
|
-
p(
|
|
3528
|
-
disabled: !
|
|
3529
|
-
onClick:
|
|
3533
|
+
}, 8, ["disabled", "onClick"])) : B("", !0),
|
|
3534
|
+
p(G, {
|
|
3535
|
+
disabled: !s(_) || s(w),
|
|
3536
|
+
onClick: s(X)
|
|
3530
3537
|
}, {
|
|
3531
|
-
default: n(() => [...
|
|
3538
|
+
default: n(() => [...D[2] || (D[2] = [
|
|
3532
3539
|
$("清空", -1)
|
|
3533
3540
|
])]),
|
|
3534
3541
|
_: 1
|
|
3535
3542
|
}, 8, ["disabled", "onClick"]),
|
|
3536
|
-
|
|
3543
|
+
s(r) ? (o(), v("span", {
|
|
3537
3544
|
key: 1,
|
|
3538
3545
|
class: "yk-import-excel__file-name",
|
|
3539
|
-
title:
|
|
3546
|
+
title: s(r)
|
|
3540
3547
|
}, [
|
|
3541
|
-
$(" 📄 " + I(
|
|
3542
|
-
|
|
3543
|
-
$("(工作表:" + I(
|
|
3544
|
-
], 64)) :
|
|
3545
|
-
], 8,
|
|
3546
|
-
|
|
3547
|
-
m("span",
|
|
3548
|
-
m("span",
|
|
3549
|
-
m("span",
|
|
3550
|
-
])) :
|
|
3548
|
+
$(" 📄 " + I(s(r)), 1),
|
|
3549
|
+
s(d) ? (o(), v(K, { key: 0 }, [
|
|
3550
|
+
$("(工作表:" + I(s(d)) + ")", 1)
|
|
3551
|
+
], 64)) : B("", !0)
|
|
3552
|
+
], 8, Zo)) : B("", !0),
|
|
3553
|
+
s(_) ? (o(), v("div", en, [
|
|
3554
|
+
m("span", tn, "共 " + I(s(f).length) + " 行", 1),
|
|
3555
|
+
m("span", ln, "已选 " + I(s(j)), 1),
|
|
3556
|
+
m("span", on, "校验失败 " + I(s(Y)), 1)
|
|
3557
|
+
])) : B("", !0)
|
|
3551
3558
|
]),
|
|
3552
|
-
|
|
3553
|
-
p(
|
|
3554
|
-
percentage:
|
|
3559
|
+
s(w) ? (o(), v("div", nn, [
|
|
3560
|
+
p(se, {
|
|
3561
|
+
percentage: oe.value,
|
|
3555
3562
|
"stroke-width": 14,
|
|
3556
3563
|
"text-inside": "",
|
|
3557
3564
|
format: de,
|
|
3558
3565
|
class: "yk-import-excel__progress-bar"
|
|
3559
3566
|
}, null, 8, ["percentage"]),
|
|
3560
|
-
m("span",
|
|
3561
|
-
$(" 成功 " + I(
|
|
3562
|
-
m("span",
|
|
3567
|
+
m("span", an, [
|
|
3568
|
+
$(" 成功 " + I(s(E)), 1),
|
|
3569
|
+
m("span", sn, " / 失败 " + I(s(h)), 1)
|
|
3563
3570
|
]),
|
|
3564
|
-
m("span",
|
|
3565
|
-
])) :
|
|
3566
|
-
|
|
3567
|
-
|
|
3571
|
+
m("span", rn, I(pe.value), 1)
|
|
3572
|
+
])) : B("", !0),
|
|
3573
|
+
lt((o(), v("div", un, [
|
|
3574
|
+
s(_) ? (o(), C(Pe, {
|
|
3568
3575
|
key: 0,
|
|
3569
3576
|
ref_key: "tableRef",
|
|
3570
|
-
ref:
|
|
3571
|
-
data:
|
|
3577
|
+
ref: x,
|
|
3578
|
+
data: s(f),
|
|
3572
3579
|
height: "100%",
|
|
3573
3580
|
"row-key": "rowNumber",
|
|
3574
3581
|
border: "",
|
|
@@ -3576,37 +3583,37 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3576
3583
|
onSelectionChange: Ge
|
|
3577
3584
|
}, {
|
|
3578
3585
|
default: n(() => [
|
|
3579
|
-
p(
|
|
3586
|
+
p(be, {
|
|
3580
3587
|
type: "selection",
|
|
3581
3588
|
width: "44",
|
|
3582
3589
|
fixed: "left",
|
|
3583
3590
|
selectable: We
|
|
3584
3591
|
}),
|
|
3585
|
-
p(
|
|
3592
|
+
p(be, {
|
|
3586
3593
|
label: "行号",
|
|
3587
3594
|
width: "70",
|
|
3588
3595
|
align: "center",
|
|
3589
3596
|
fixed: "left"
|
|
3590
3597
|
}, {
|
|
3591
|
-
default: n(({ row:
|
|
3598
|
+
default: n(({ row: Q, $index: ae }) => [
|
|
3592
3599
|
m("span", {
|
|
3593
|
-
title: `Excel 第 ${
|
|
3594
|
-
}, I(
|
|
3600
|
+
title: `Excel 第 ${Q.rowNumber} 行`
|
|
3601
|
+
}, I(ae + 1), 9, dn)
|
|
3595
3602
|
]),
|
|
3596
3603
|
_: 1
|
|
3597
3604
|
}),
|
|
3598
|
-
(o(!0), v(
|
|
3599
|
-
key:
|
|
3600
|
-
label:
|
|
3605
|
+
(o(!0), v(K, null, le(l.columns, (Q) => (o(), C(be, {
|
|
3606
|
+
key: Q.name,
|
|
3607
|
+
label: Q.name,
|
|
3601
3608
|
"min-width": "120",
|
|
3602
3609
|
"show-overflow-tooltip": ""
|
|
3603
3610
|
}, {
|
|
3604
|
-
default: n(({ row:
|
|
3605
|
-
$(I(
|
|
3611
|
+
default: n(({ row: ae }) => [
|
|
3612
|
+
$(I(s(Dt)(ae.data[Q.name])), 1)
|
|
3606
3613
|
]),
|
|
3607
3614
|
_: 2
|
|
3608
3615
|
}, 1032, ["label"]))), 128)),
|
|
3609
|
-
p(
|
|
3616
|
+
p(be, {
|
|
3610
3617
|
label: "状态",
|
|
3611
3618
|
width: "200",
|
|
3612
3619
|
fixed: "right",
|
|
@@ -3616,37 +3623,37 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3616
3623
|
"filter-multiple": !1,
|
|
3617
3624
|
"filter-placement": "bottom-end"
|
|
3618
3625
|
}, {
|
|
3619
|
-
default: n(({ row:
|
|
3620
|
-
p(
|
|
3621
|
-
type: R[
|
|
3626
|
+
default: n(({ row: Q }) => [
|
|
3627
|
+
p(Qe, {
|
|
3628
|
+
type: R[Q.status].type,
|
|
3622
3629
|
size: "small",
|
|
3623
3630
|
"disable-transitions": ""
|
|
3624
3631
|
}, {
|
|
3625
3632
|
default: n(() => [
|
|
3626
|
-
|
|
3627
|
-
$(" " + I(R[
|
|
3633
|
+
Q.status === "processing" ? (o(), v("span", cn)) : B("", !0),
|
|
3634
|
+
$(" " + I(R[Q.status].label), 1)
|
|
3628
3635
|
]),
|
|
3629
3636
|
_: 2
|
|
3630
3637
|
}, 1032, ["type"]),
|
|
3631
|
-
|
|
3638
|
+
Q.status === "invalid" ? (o(), v("div", pn, I(Q.errors.join(";")), 1)) : Q.message ? (o(), v("div", mn, I(Q.message), 1)) : B("", !0)
|
|
3632
3639
|
]),
|
|
3633
3640
|
_: 1
|
|
3634
3641
|
}, 8, ["filters"]),
|
|
3635
|
-
p(
|
|
3642
|
+
p(be, {
|
|
3636
3643
|
label: "操作",
|
|
3637
3644
|
width: "110",
|
|
3638
3645
|
fixed: "right",
|
|
3639
3646
|
align: "center"
|
|
3640
3647
|
}, {
|
|
3641
|
-
default: n(({ row:
|
|
3642
|
-
Re(
|
|
3643
|
-
p(
|
|
3648
|
+
default: n(({ row: Q }) => [
|
|
3649
|
+
Re(Q) ? (o(), v(K, { key: 0 }, [
|
|
3650
|
+
p(G, {
|
|
3644
3651
|
link: "",
|
|
3645
3652
|
type: "primary",
|
|
3646
3653
|
size: "small",
|
|
3647
|
-
onClick: (
|
|
3654
|
+
onClick: (ae) => tt(Q)
|
|
3648
3655
|
}, {
|
|
3649
|
-
default: n(() => [...
|
|
3656
|
+
default: n(() => [...D[3] || (D[3] = [
|
|
3650
3657
|
m("svg", {
|
|
3651
3658
|
class: "yk-import-excel__action-icon",
|
|
3652
3659
|
viewBox: "0 0 24 24",
|
|
@@ -3664,13 +3671,13 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3664
3671
|
])]),
|
|
3665
3672
|
_: 1
|
|
3666
3673
|
}, 8, ["onClick"]),
|
|
3667
|
-
p(
|
|
3674
|
+
p(G, {
|
|
3668
3675
|
link: "",
|
|
3669
3676
|
type: "danger",
|
|
3670
3677
|
size: "small",
|
|
3671
|
-
onClick: (
|
|
3678
|
+
onClick: (ae) => ke(Q)
|
|
3672
3679
|
}, {
|
|
3673
|
-
default: n(() => [...
|
|
3680
|
+
default: n(() => [...D[4] || (D[4] = [
|
|
3674
3681
|
m("svg", {
|
|
3675
3682
|
class: "yk-import-excel__action-icon",
|
|
3676
3683
|
viewBox: "0 0 24 24",
|
|
@@ -3700,7 +3707,7 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3700
3707
|
])]),
|
|
3701
3708
|
_: 1
|
|
3702
3709
|
}, 8, ["onClick"])
|
|
3703
|
-
], 64)) : (o(), v("span",
|
|
3710
|
+
], 64)) : (o(), v("span", fn, "—"))
|
|
3704
3711
|
]),
|
|
3705
3712
|
_: 1
|
|
3706
3713
|
})
|
|
@@ -3709,41 +3716,41 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3709
3716
|
}, 8, ["data"])) : (o(), v("div", {
|
|
3710
3717
|
key: 1,
|
|
3711
3718
|
class: "yk-import-excel__empty",
|
|
3712
|
-
onClick:
|
|
3719
|
+
onClick: we
|
|
3713
3720
|
}, [
|
|
3714
|
-
|
|
3715
|
-
m("p",
|
|
3721
|
+
D[5] || (D[5] = it('<svg class="yk-import-excel__empty-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-2d035039><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-v-2d035039></path><polyline points="14 2 14 8 20 8" data-v-2d035039></polyline><path d="M12 18v-6" data-v-2d035039></path><polyline points="9.5 14.5 12 12l2.5 2.5" data-v-2d035039></polyline></svg><p class="yk-import-excel__empty-title" data-v-2d035039>点击选择 Excel 文件,或将文件拖拽到此处</p>', 2)),
|
|
3722
|
+
m("p", vn, "支持 " + I(l.accept) + " 格式,首行需为表头", 1)
|
|
3716
3723
|
]))
|
|
3717
3724
|
])), [
|
|
3718
|
-
[
|
|
3725
|
+
[c, s(u)]
|
|
3719
3726
|
]),
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
])])) :
|
|
3723
|
-
p(
|
|
3727
|
+
De.value ? (o(), v("div", yn, [...D[6] || (D[6] = [
|
|
3728
|
+
it('<div class="yk-import-excel__drop-tip" data-v-2d035039><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-2d035039><path d="M12 15V3" data-v-2d035039></path><polyline points="7 8 12 3 17 8" data-v-2d035039></polyline><path d="M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4" data-v-2d035039></path></svg><span data-v-2d035039>松开鼠标,加载 Excel 文件</span></div>', 1)
|
|
3729
|
+
])])) : B("", !0),
|
|
3730
|
+
p(Wo, {
|
|
3724
3731
|
visible: Me.value,
|
|
3725
|
-
"onUpdate:visible":
|
|
3726
|
-
row:
|
|
3727
|
-
columns:
|
|
3728
|
-
saver:
|
|
3729
|
-
onSaved:
|
|
3732
|
+
"onUpdate:visible": D[0] || (D[0] = (Q) => Me.value = Q),
|
|
3733
|
+
row: Ye.value,
|
|
3734
|
+
columns: l.columns,
|
|
3735
|
+
saver: s(O),
|
|
3736
|
+
onSaved: Je
|
|
3730
3737
|
}, null, 8, ["visible", "row", "columns", "saver"])
|
|
3731
3738
|
], 32);
|
|
3732
3739
|
};
|
|
3733
3740
|
}
|
|
3734
|
-
}),
|
|
3741
|
+
}), _n = /* @__PURE__ */ re(gn, [["__scopeId", "data-v-2d035039"]]), kn = { class: "yk-infinite-list__item-body" }, bn = { class: "yk-infinite-list__item-json" }, hn = {
|
|
3735
3742
|
key: 0,
|
|
3736
3743
|
class: "yk-infinite-list__status"
|
|
3737
|
-
},
|
|
3744
|
+
}, wn = {
|
|
3738
3745
|
key: 1,
|
|
3739
3746
|
class: "yk-infinite-list__status"
|
|
3740
|
-
},
|
|
3747
|
+
}, xn = {
|
|
3741
3748
|
key: 2,
|
|
3742
3749
|
class: "yk-infinite-list__loading-more"
|
|
3743
|
-
},
|
|
3750
|
+
}, Cn = {
|
|
3744
3751
|
key: 3,
|
|
3745
3752
|
class: "yk-infinite-list__no-more"
|
|
3746
|
-
},
|
|
3753
|
+
}, Sn = /* @__PURE__ */ te({
|
|
3747
3754
|
name: "YsInfiniteList",
|
|
3748
3755
|
__name: "infiniteList",
|
|
3749
3756
|
props: {
|
|
@@ -3786,79 +3793,79 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3786
3793
|
exportPageSize: { type: Number, default: 1e3 }
|
|
3787
3794
|
},
|
|
3788
3795
|
emits: ["data-loaded", "error", "selection-change"],
|
|
3789
|
-
setup(e, { expose: y, emit:
|
|
3790
|
-
const
|
|
3796
|
+
setup(e, { expose: y, emit: t }) {
|
|
3797
|
+
const l = e, a = t, f = T([]), r = T(!1), d = T(!1), u = T(!0), w = T(null), F = q(() => f.value.length), A = T(null), {
|
|
3791
3798
|
/** 跨页累计选中的行(滚动加载更多不丢失) */
|
|
3792
|
-
selectedRows:
|
|
3793
|
-
isRowSelected:
|
|
3799
|
+
selectedRows: U,
|
|
3800
|
+
isRowSelected: E,
|
|
3794
3801
|
toggleRowSelection: h,
|
|
3795
3802
|
clearSelection: _,
|
|
3796
3803
|
selectAllOnPage: Y,
|
|
3797
|
-
invertSelectionOnPage:
|
|
3798
|
-
} =
|
|
3799
|
-
ce(
|
|
3800
|
-
const J = T(0),
|
|
3804
|
+
invertSelectionOnPage: N
|
|
3805
|
+
} = bt({ tableEl: A, rows: f, rowKey: ne(l, "rowKey") });
|
|
3806
|
+
ce(U, (P) => a("selection-change", [...P]));
|
|
3807
|
+
const J = T(0), j = T(!1), i = T(null);
|
|
3801
3808
|
async function g() {
|
|
3802
|
-
if (!
|
|
3803
|
-
|
|
3809
|
+
if (!l.metaFun) {
|
|
3810
|
+
i.value = null;
|
|
3804
3811
|
return;
|
|
3805
3812
|
}
|
|
3806
3813
|
try {
|
|
3807
|
-
|
|
3814
|
+
i.value = await l.metaFun();
|
|
3808
3815
|
} catch {
|
|
3809
|
-
|
|
3816
|
+
i.value = null;
|
|
3810
3817
|
}
|
|
3811
3818
|
}
|
|
3812
|
-
const z =
|
|
3813
|
-
const P =
|
|
3819
|
+
const z = q(() => {
|
|
3820
|
+
const P = i.value;
|
|
3814
3821
|
if (P)
|
|
3815
|
-
return P.columns.map((
|
|
3816
|
-
const V = /* @__PURE__ */ new Set(),
|
|
3817
|
-
for (const
|
|
3818
|
-
for (const de of Object.keys(
|
|
3819
|
-
V.has(de) || (V.add(de),
|
|
3820
|
-
return
|
|
3821
|
-
}),
|
|
3822
|
+
return P.columns.map((oe, de) => ({ c: oe, i: de })).filter(({ c: oe }) => oe.showForDisplay !== !1).sort((oe, de) => (oe.c.displayOrder ?? oe.i) - (de.c.displayOrder ?? de.i)).map(({ c: oe }) => oe);
|
|
3823
|
+
const V = /* @__PURE__ */ new Set(), H = [];
|
|
3824
|
+
for (const oe of f.value)
|
|
3825
|
+
for (const de of Object.keys(oe))
|
|
3826
|
+
V.has(de) || (V.add(de), H.push({ propertyPath: de }));
|
|
3827
|
+
return H;
|
|
3828
|
+
}), O = q(() => {
|
|
3822
3829
|
var P;
|
|
3823
|
-
return ((P =
|
|
3824
|
-
}),
|
|
3830
|
+
return ((P = i.value) == null ? void 0 : P.displayName) ?? "数据";
|
|
3831
|
+
}), L = T(null);
|
|
3825
3832
|
function ue() {
|
|
3826
3833
|
var P;
|
|
3827
|
-
(P =
|
|
3834
|
+
(P = L.value) == null || P.openExportDialog();
|
|
3828
3835
|
}
|
|
3829
3836
|
async function ie(P) {
|
|
3830
3837
|
if (P) {
|
|
3831
|
-
if (d.value ||
|
|
3838
|
+
if (d.value || r.value || !u.value) return;
|
|
3832
3839
|
d.value = !0;
|
|
3833
3840
|
} else {
|
|
3834
|
-
if (
|
|
3835
|
-
|
|
3841
|
+
if (r.value) return;
|
|
3842
|
+
r.value = !0, w.value = null;
|
|
3836
3843
|
}
|
|
3837
3844
|
try {
|
|
3838
|
-
const V = P ? F.value : 0,
|
|
3839
|
-
P ? f.value.push(...
|
|
3845
|
+
const V = P ? F.value : 0, H = await l.dataFun({ limit: l.pageSize, offset: V });
|
|
3846
|
+
P ? f.value.push(...H.items) : f.value = H.items, u.value = H.hasNext ?? !1, H.totalCount != null && (J.value = H.totalCount, j.value = !0), a("data-loaded", H, P);
|
|
3840
3847
|
} catch (V) {
|
|
3841
3848
|
w.value = V, a("error", V);
|
|
3842
3849
|
} finally {
|
|
3843
|
-
P ? d.value = !1 :
|
|
3850
|
+
P ? d.value = !1 : r.value = !1;
|
|
3844
3851
|
}
|
|
3845
3852
|
}
|
|
3846
3853
|
function X() {
|
|
3847
3854
|
ie(!0);
|
|
3848
3855
|
}
|
|
3849
|
-
function
|
|
3850
|
-
|
|
3856
|
+
function x() {
|
|
3857
|
+
u.value = !0, ie(!1);
|
|
3851
3858
|
}
|
|
3852
3859
|
const b = T(null), R = T(null);
|
|
3853
3860
|
let M = null;
|
|
3854
3861
|
function Z() {
|
|
3855
3862
|
!b.value || !R.value || (M = new IntersectionObserver(
|
|
3856
3863
|
(P) => {
|
|
3857
|
-
P.some((V) => V.isIntersecting) &&
|
|
3864
|
+
P.some((V) => V.isIntersecting) && u.value && !r.value && !d.value && X();
|
|
3858
3865
|
},
|
|
3859
3866
|
{
|
|
3860
3867
|
root: b.value,
|
|
3861
|
-
rootMargin: `0px 0px ${
|
|
3868
|
+
rootMargin: `0px 0px ${l.threshold}px 0px`,
|
|
3862
3869
|
threshold: 0
|
|
3863
3870
|
}
|
|
3864
3871
|
), M.observe(R.value));
|
|
@@ -3866,33 +3873,33 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3866
3873
|
function W() {
|
|
3867
3874
|
M == null || M.disconnect(), M = null;
|
|
3868
3875
|
}
|
|
3869
|
-
return
|
|
3870
|
-
Z(), g(),
|
|
3871
|
-
}), Ue(W), ce(() =>
|
|
3876
|
+
return Se(() => {
|
|
3877
|
+
Z(), g(), l.immediate && ie(!1);
|
|
3878
|
+
}), Ue(W), ce(() => l.dataFun, () => x()), ce(() => l.metaFun, () => void g()), ce(() => l.threshold, () => {
|
|
3872
3879
|
W(), Z();
|
|
3873
3880
|
}), y({
|
|
3874
3881
|
/** 当前已加载的全部数据 */
|
|
3875
3882
|
items: f,
|
|
3876
3883
|
/** 首屏加载态 */
|
|
3877
|
-
loading:
|
|
3884
|
+
loading: r,
|
|
3878
3885
|
/** 追加加载态 */
|
|
3879
3886
|
loadingMore: d,
|
|
3880
3887
|
/** 是否还有下一页 */
|
|
3881
|
-
hasMore:
|
|
3888
|
+
hasMore: u,
|
|
3882
3889
|
/** 重置并从第一页重新加载 */
|
|
3883
|
-
reload:
|
|
3890
|
+
reload: x,
|
|
3884
3891
|
/** 刷新:重置为第一页重新加载(与 YsTable 的 refresh 同名同义) */
|
|
3885
|
-
refresh:
|
|
3892
|
+
refresh: x,
|
|
3886
3893
|
/** 手动触发加载下一页(一般由滚动自动触发) */
|
|
3887
3894
|
loadNextPage: X,
|
|
3888
3895
|
/** rows 别名:当前已加载的全部数据(与 YsTable 的 rows 同名) */
|
|
3889
3896
|
rows: f,
|
|
3890
3897
|
/** 元数据(metaFun 加载结果;未提供 metaFun 或加载失败时为 null) */
|
|
3891
|
-
meta:
|
|
3898
|
+
meta: i,
|
|
3892
3899
|
/** 跨页累计选中的行(showCheckbox 开启时有意义) */
|
|
3893
|
-
selectedRows:
|
|
3900
|
+
selectedRows: U,
|
|
3894
3901
|
/** 某行当前是否选中 */
|
|
3895
|
-
isRowSelected:
|
|
3902
|
+
isRowSelected: E,
|
|
3896
3903
|
/** 切换某行选中态(selected 缺省时取反) */
|
|
3897
3904
|
toggleRowSelection: h,
|
|
3898
3905
|
/** 清空全部选中 */
|
|
@@ -3900,49 +3907,49 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3900
3907
|
/** 选中当前已加载的全部行(不影响「没有加载出来」的行) */
|
|
3901
3908
|
selectAllOnPage: Y,
|
|
3902
3909
|
/** 反选当前已加载的行 */
|
|
3903
|
-
invertSelectionOnPage:
|
|
3910
|
+
invertSelectionOnPage: N,
|
|
3904
3911
|
/** 打开导出 Excel 对话框(选中 / 当前已加载 / 所有数据) */
|
|
3905
3912
|
openExportDialog: ue
|
|
3906
3913
|
}), (P, V) => {
|
|
3907
|
-
const
|
|
3914
|
+
const H = S("el-checkbox"), oe = S("el-empty"), de = S("el-button");
|
|
3908
3915
|
return o(), v("div", {
|
|
3909
3916
|
ref_key: "scrollEl",
|
|
3910
3917
|
ref: b,
|
|
3911
3918
|
class: "yk-infinite-list",
|
|
3912
|
-
style:
|
|
3919
|
+
style: st({ height: e.height })
|
|
3913
3920
|
}, [
|
|
3914
|
-
(o(!0), v(
|
|
3921
|
+
(o(!0), v(K, null, le(f.value, (pe, Fe) => (o(), v("div", {
|
|
3915
3922
|
key: String(pe[e.rowKey]),
|
|
3916
|
-
class:
|
|
3923
|
+
class: Ce(["yk-infinite-list__item", { "is-selected": e.showCheckbox && s(E)(pe) }])
|
|
3917
3924
|
}, [
|
|
3918
|
-
e.showCheckbox ? (o(),
|
|
3925
|
+
e.showCheckbox ? (o(), C(H, {
|
|
3919
3926
|
key: 0,
|
|
3920
3927
|
class: "yk-infinite-list__item-checkbox",
|
|
3921
|
-
"model-value":
|
|
3922
|
-
onChange: (
|
|
3923
|
-
}, null, 8, ["model-value", "onChange"])) :
|
|
3924
|
-
m("div",
|
|
3928
|
+
"model-value": s(E)(pe),
|
|
3929
|
+
onChange: (we) => s(h)(pe, !!we)
|
|
3930
|
+
}, null, 8, ["model-value", "onChange"])) : B("", !0),
|
|
3931
|
+
m("div", kn, [
|
|
3925
3932
|
ee(P.$slots, "default", {
|
|
3926
3933
|
row: pe,
|
|
3927
3934
|
index: Fe
|
|
3928
3935
|
}, () => [
|
|
3929
|
-
m("pre",
|
|
3936
|
+
m("pre", bn, I(JSON.stringify(pe, null, 2)), 1)
|
|
3930
3937
|
], !0)
|
|
3931
3938
|
])
|
|
3932
3939
|
], 2))), 128)),
|
|
3933
|
-
!
|
|
3940
|
+
!r.value && f.value.length === 0 && !w.value ? (o(), v("div", hn, [
|
|
3934
3941
|
ee(P.$slots, "empty", {}, () => [
|
|
3935
|
-
p(
|
|
3942
|
+
p(oe, { description: "暂无数据" })
|
|
3936
3943
|
], !0)
|
|
3937
|
-
])) : w.value ? (o(), v("div",
|
|
3944
|
+
])) : w.value ? (o(), v("div", wn, [
|
|
3938
3945
|
ee(P.$slots, "error", { error: w.value }, () => [
|
|
3939
|
-
p(
|
|
3946
|
+
p(oe, {
|
|
3940
3947
|
description: `加载失败:${String(w.value)}`
|
|
3941
3948
|
}, {
|
|
3942
3949
|
default: n(() => [
|
|
3943
3950
|
p(de, {
|
|
3944
3951
|
type: "primary",
|
|
3945
|
-
onClick:
|
|
3952
|
+
onClick: x
|
|
3946
3953
|
}, {
|
|
3947
3954
|
default: n(() => [...V[0] || (V[0] = [
|
|
3948
3955
|
$("重试", -1)
|
|
@@ -3953,47 +3960,47 @@ const Uo = /* @__PURE__ */ te({
|
|
|
3953
3960
|
_: 1
|
|
3954
3961
|
}, 8, ["description"])
|
|
3955
3962
|
], !0)
|
|
3956
|
-
])) :
|
|
3963
|
+
])) : B("", !0),
|
|
3957
3964
|
m("div", {
|
|
3958
3965
|
ref_key: "sentinelEl",
|
|
3959
3966
|
ref: R,
|
|
3960
3967
|
class: "yk-infinite-list__sentinel"
|
|
3961
3968
|
}, null, 512),
|
|
3962
|
-
d.value ? (o(), v("div",
|
|
3969
|
+
d.value ? (o(), v("div", xn, [
|
|
3963
3970
|
ee(P.$slots, "loading", {}, () => [
|
|
3964
3971
|
V[1] || (V[1] = m("span", { class: "yk-infinite-list__spinner" }, null, -1)),
|
|
3965
3972
|
V[2] || (V[2] = m("span", null, "加载中...", -1))
|
|
3966
3973
|
], !0)
|
|
3967
|
-
])) :
|
|
3968
|
-
!
|
|
3974
|
+
])) : B("", !0),
|
|
3975
|
+
!u.value && f.value.length > 0 && !r.value ? (o(), v("div", Cn, [
|
|
3969
3976
|
ee(P.$slots, "no-more", {}, () => [
|
|
3970
3977
|
V[3] || (V[3] = m("span", null, "— 没有更多了 —", -1))
|
|
3971
3978
|
], !0)
|
|
3972
|
-
])) :
|
|
3973
|
-
p(
|
|
3979
|
+
])) : B("", !0),
|
|
3980
|
+
p(Ct, {
|
|
3974
3981
|
ref_key: "exportDialogRef",
|
|
3975
|
-
ref:
|
|
3982
|
+
ref: L,
|
|
3976
3983
|
"current-rows": f.value,
|
|
3977
|
-
"selected-rows":
|
|
3978
|
-
"data-fun":
|
|
3979
|
-
"export-page-size":
|
|
3984
|
+
"selected-rows": s(U),
|
|
3985
|
+
"data-fun": l.dataFun,
|
|
3986
|
+
"export-page-size": l.exportPageSize,
|
|
3980
3987
|
total: J.value,
|
|
3981
|
-
"total-known":
|
|
3982
|
-
"exportor-func":
|
|
3983
|
-
"table-name":
|
|
3988
|
+
"total-known": j.value,
|
|
3989
|
+
"exportor-func": l.exportorFunc,
|
|
3990
|
+
"table-name": O.value,
|
|
3984
3991
|
columns: z.value,
|
|
3985
|
-
"has-more-page":
|
|
3992
|
+
"has-more-page": u.value,
|
|
3986
3993
|
"export-selected": e.showCheckbox,
|
|
3987
3994
|
"page-scope-label": "导出当前已加载"
|
|
3988
3995
|
}, null, 8, ["current-rows", "selected-rows", "data-fun", "export-page-size", "total", "total-known", "exportor-func", "table-name", "columns", "has-more-page", "export-selected"])
|
|
3989
3996
|
], 4);
|
|
3990
3997
|
};
|
|
3991
3998
|
}
|
|
3992
|
-
}),
|
|
3993
|
-
function
|
|
3994
|
-
if (document.getElementById(
|
|
3999
|
+
}), $n = /* @__PURE__ */ re(Sn, [["__scopeId", "data-v-4b99ac8e"]]), ft = "ys-modal-style";
|
|
4000
|
+
function Fn() {
|
|
4001
|
+
if (document.getElementById(ft)) return;
|
|
3995
4002
|
const e = document.createElement("style");
|
|
3996
|
-
e.id =
|
|
4003
|
+
e.id = ft, e.textContent = [
|
|
3997
4004
|
// 固定高度:height 由内联 CSS 变量 --ys-modal-height 传入(每个弹窗可不同)。
|
|
3998
4005
|
// .el-dialog 设为 flex column,body 区 flex:1 + overflow:auto,
|
|
3999
4006
|
// 内容超出时在弹窗内纵向滚动,不会撑大弹窗。
|
|
@@ -4017,8 +4024,8 @@ function xn() {
|
|
|
4017
4024
|
".ys-modal-header__maximize svg{display:block;margin-top:-2px}"
|
|
4018
4025
|
].join(""), document.head.appendChild(e);
|
|
4019
4026
|
}
|
|
4020
|
-
function
|
|
4021
|
-
return
|
|
4027
|
+
function Vn() {
|
|
4028
|
+
return ge(
|
|
4022
4029
|
"svg",
|
|
4023
4030
|
{
|
|
4024
4031
|
viewBox: "0 0 24 24",
|
|
@@ -4030,11 +4037,11 @@ function Cn() {
|
|
|
4030
4037
|
"stroke-linecap": "round",
|
|
4031
4038
|
"stroke-linejoin": "round"
|
|
4032
4039
|
},
|
|
4033
|
-
[
|
|
4040
|
+
[ge("rect", { x: 4, y: 4, width: 16, height: 16, rx: 2 })]
|
|
4034
4041
|
);
|
|
4035
4042
|
}
|
|
4036
|
-
function
|
|
4037
|
-
return
|
|
4043
|
+
function Rn() {
|
|
4044
|
+
return ge(
|
|
4038
4045
|
"svg",
|
|
4039
4046
|
{
|
|
4040
4047
|
viewBox: "0 0 24 24",
|
|
@@ -4047,60 +4054,60 @@ function Sn() {
|
|
|
4047
4054
|
"stroke-linejoin": "round"
|
|
4048
4055
|
},
|
|
4049
4056
|
[
|
|
4050
|
-
|
|
4051
|
-
|
|
4057
|
+
ge("rect", { x: 8, y: 8, width: 12, height: 12, rx: 2 }),
|
|
4058
|
+
ge("path", { d: "M4 16V6a2 2 0 0 1 2-2h10" })
|
|
4052
4059
|
]
|
|
4053
4060
|
);
|
|
4054
4061
|
}
|
|
4055
|
-
function
|
|
4056
|
-
var
|
|
4062
|
+
function Mn(e) {
|
|
4063
|
+
var L;
|
|
4057
4064
|
const {
|
|
4058
4065
|
title: y = "",
|
|
4059
|
-
width:
|
|
4060
|
-
height:
|
|
4066
|
+
width: t = "500px",
|
|
4067
|
+
height: l,
|
|
4061
4068
|
component: a,
|
|
4062
4069
|
props: f,
|
|
4063
|
-
actions:
|
|
4070
|
+
actions: r,
|
|
4064
4071
|
onCancel: d,
|
|
4065
|
-
onClosed:
|
|
4072
|
+
onClosed: u,
|
|
4066
4073
|
closeOnClickModal: w = !1,
|
|
4067
4074
|
closeOnPressEscape: F = !1,
|
|
4068
4075
|
maximizable: A = !1,
|
|
4069
|
-
defaultMaximized:
|
|
4070
|
-
appContext:
|
|
4076
|
+
defaultMaximized: U = !1,
|
|
4077
|
+
appContext: E
|
|
4071
4078
|
} = e;
|
|
4072
|
-
(A ||
|
|
4073
|
-
const h =
|
|
4079
|
+
(A || l != null) && Fn();
|
|
4080
|
+
const h = l == null ? void 0 : typeof l == "number" ? `${l}px` : l, _ = document.createElement("div");
|
|
4074
4081
|
document.body.appendChild(_);
|
|
4075
|
-
let Y = null,
|
|
4082
|
+
let Y = null, N = !1;
|
|
4076
4083
|
const J = () => {
|
|
4077
|
-
|
|
4078
|
-
},
|
|
4079
|
-
close: () =>
|
|
4080
|
-
toggleMaximize: () =>
|
|
4081
|
-
isMaximized: () => (
|
|
4084
|
+
N || (N = !0, rt(null, _), _.remove());
|
|
4085
|
+
}, j = {
|
|
4086
|
+
close: () => O == null ? void 0 : O.close(),
|
|
4087
|
+
toggleMaximize: () => O == null ? void 0 : O.toggleMaximize(),
|
|
4088
|
+
isMaximized: () => (O == null ? void 0 : O.isMaximized()) ?? !1,
|
|
4082
4089
|
getContentInstance: () => Y
|
|
4083
|
-
},
|
|
4090
|
+
}, i = te({
|
|
4084
4091
|
name: "YsModalHost",
|
|
4085
4092
|
setup(ue, { expose: ie }) {
|
|
4086
|
-
const X = T(!0),
|
|
4093
|
+
const X = T(!0), x = T(-1), b = T(A && U), R = () => {
|
|
4087
4094
|
A && (b.value = !b.value);
|
|
4088
4095
|
}, M = () => {
|
|
4089
4096
|
X.value = !1;
|
|
4090
4097
|
}, Z = () => {
|
|
4091
|
-
|
|
4098
|
+
x.value >= 0 || (d == null || d(), X.value = !1);
|
|
4092
4099
|
}, W = async (P, V) => {
|
|
4093
|
-
if (!(
|
|
4094
|
-
|
|
4100
|
+
if (!(x.value >= 0)) {
|
|
4101
|
+
x.value = V;
|
|
4095
4102
|
try {
|
|
4096
|
-
await P.execute(
|
|
4103
|
+
await P.execute(j, Y);
|
|
4097
4104
|
} finally {
|
|
4098
|
-
|
|
4105
|
+
x.value = -1;
|
|
4099
4106
|
}
|
|
4100
4107
|
}
|
|
4101
4108
|
};
|
|
4102
|
-
return ie({ close: M, toggleMaximize: R, isMaximized: () => b.value }), () =>
|
|
4103
|
-
|
|
4109
|
+
return ie({ close: M, toggleMaximize: R, isMaximized: () => b.value }), () => ge(
|
|
4110
|
+
rl,
|
|
4104
4111
|
{
|
|
4105
4112
|
// Element Plus 2.x 显隐规范:modelValue + update:modelValue
|
|
4106
4113
|
modelValue: X.value,
|
|
@@ -4108,7 +4115,7 @@ function $n(e) {
|
|
|
4108
4115
|
P || Z();
|
|
4109
4116
|
},
|
|
4110
4117
|
title: A ? void 0 : y,
|
|
4111
|
-
width:
|
|
4118
|
+
width: t,
|
|
4112
4119
|
// 最大化时贴顶(配合样式中 --el-dialog-margin-top:0)
|
|
4113
4120
|
top: b.value ? "0vh" : void 0,
|
|
4114
4121
|
// 最大化 class 优先(height:100vh!important 覆盖固定高度);
|
|
@@ -4119,10 +4126,10 @@ function $n(e) {
|
|
|
4119
4126
|
closeOnClickModal: w,
|
|
4120
4127
|
closeOnPressEscape: F,
|
|
4121
4128
|
// 动作执行中隐藏右上角 ✕,与底部其余按钮禁用保持一致
|
|
4122
|
-
showClose:
|
|
4129
|
+
showClose: x.value < 0,
|
|
4123
4130
|
destroyOnClose: !0,
|
|
4124
4131
|
onClosed: () => {
|
|
4125
|
-
|
|
4132
|
+
u == null || u(), J();
|
|
4126
4133
|
}
|
|
4127
4134
|
},
|
|
4128
4135
|
{
|
|
@@ -4132,8 +4139,8 @@ function $n(e) {
|
|
|
4132
4139
|
// 按钮 absolute 脱离文档流,以 .el-dialog 为包含块定位。
|
|
4133
4140
|
// EP 的 ✕ 关闭按钮渲染在插槽内容之外,自动保留且定位不受影响。
|
|
4134
4141
|
header: A ? () => [
|
|
4135
|
-
|
|
4136
|
-
|
|
4142
|
+
ge("span", { class: "el-dialog__title" }, y),
|
|
4143
|
+
ge(
|
|
4137
4144
|
"button",
|
|
4138
4145
|
{
|
|
4139
4146
|
type: "button",
|
|
@@ -4142,10 +4149,10 @@ function $n(e) {
|
|
|
4142
4149
|
"aria-label": b.value ? "还原" : "最大化",
|
|
4143
4150
|
onClick: R
|
|
4144
4151
|
},
|
|
4145
|
-
b.value ?
|
|
4152
|
+
b.value ? Rn() : Vn()
|
|
4146
4153
|
)
|
|
4147
4154
|
] : void 0,
|
|
4148
|
-
default: () =>
|
|
4155
|
+
default: () => ge(a, {
|
|
4149
4156
|
...f ?? {},
|
|
4150
4157
|
// 注入关闭监听器:内容组件 defineEmits(["close"]) 后
|
|
4151
4158
|
// emit("close") 即可关闭;无需在业务 props 里声明。
|
|
@@ -4156,29 +4163,29 @@ function $n(e) {
|
|
|
4156
4163
|
Y = P;
|
|
4157
4164
|
}
|
|
4158
4165
|
}),
|
|
4159
|
-
footer: () =>
|
|
4160
|
-
(P, V) =>
|
|
4161
|
-
|
|
4166
|
+
footer: () => r != null && r.length ? r.map(
|
|
4167
|
+
(P, V) => ge(
|
|
4168
|
+
ul,
|
|
4162
4169
|
{
|
|
4163
4170
|
key: P.name,
|
|
4164
4171
|
// 与 commandBar 同构:'default' 归一化为 undefined
|
|
4165
4172
|
type: P.type === "default" ? void 0 : P.type,
|
|
4166
4173
|
title: P.desc,
|
|
4167
4174
|
// 执行中:当前动作 loading,其余动作禁用
|
|
4168
|
-
disabled:
|
|
4169
|
-
loading:
|
|
4175
|
+
disabled: x.value >= 0 && x.value !== V,
|
|
4176
|
+
loading: x.value === V,
|
|
4170
4177
|
onClick: () => W(P, V)
|
|
4171
4178
|
},
|
|
4172
4179
|
{
|
|
4173
4180
|
default: () => [
|
|
4174
4181
|
// 与模板 <component :is> 行为对齐:VNode 原样嵌入、组件 h() 渲染;
|
|
4175
4182
|
// 外包 span 提供与 commandBar 图标一致的间距(teleport 内容无法用 scoped 样式命中)
|
|
4176
|
-
P.icon ?
|
|
4183
|
+
P.icon ? ge(
|
|
4177
4184
|
"span",
|
|
4178
4185
|
{
|
|
4179
4186
|
style: "margin-right:4px;display:inline-flex;align-items:center;vertical-align:-2px"
|
|
4180
4187
|
},
|
|
4181
|
-
[
|
|
4188
|
+
[Yt(P.icon) ? P.icon : ge(P.icon)]
|
|
4182
4189
|
) : null,
|
|
4183
4190
|
P.desc
|
|
4184
4191
|
]
|
|
@@ -4188,66 +4195,66 @@ function $n(e) {
|
|
|
4188
4195
|
}
|
|
4189
4196
|
);
|
|
4190
4197
|
}
|
|
4191
|
-
}), g = p(
|
|
4198
|
+
}), g = p(i), z = E ?? sl();
|
|
4192
4199
|
z || console.warn(
|
|
4193
4200
|
"[openModal] 未检测到 AppContext:弹窗内的全局组件(如 el-form)与 inject 将不可用。请在应用入口 app.use(YsCrudElementPlus),或调用 openModal 时传入 appContext(getCurrentInstance()?.appContext)。"
|
|
4194
|
-
), g.appContext = z,
|
|
4195
|
-
const
|
|
4196
|
-
return
|
|
4201
|
+
), g.appContext = z, rt(g, _);
|
|
4202
|
+
const O = (L = g.component) == null ? void 0 : L.exposed;
|
|
4203
|
+
return j;
|
|
4197
4204
|
}
|
|
4198
|
-
function
|
|
4205
|
+
function En(e) {
|
|
4199
4206
|
const {
|
|
4200
4207
|
confirmText: y = "确定",
|
|
4201
|
-
cancelText:
|
|
4202
|
-
confirmType:
|
|
4208
|
+
cancelText: t = "取消",
|
|
4209
|
+
confirmType: l = "primary",
|
|
4203
4210
|
onConfirm: a,
|
|
4204
4211
|
...f
|
|
4205
4212
|
} = e;
|
|
4206
|
-
return
|
|
4207
|
-
{ name: "cancel", desc:
|
|
4213
|
+
return Mn({ ...f, actions: [
|
|
4214
|
+
{ name: "cancel", desc: t, execute: (d) => d.close() },
|
|
4208
4215
|
{
|
|
4209
4216
|
name: "confirm",
|
|
4210
4217
|
desc: y,
|
|
4211
|
-
type:
|
|
4212
|
-
execute: async (d,
|
|
4218
|
+
type: l,
|
|
4219
|
+
execute: async (d, u) => {
|
|
4213
4220
|
if (!a) {
|
|
4214
4221
|
d.close();
|
|
4215
4222
|
return;
|
|
4216
4223
|
}
|
|
4217
|
-
await a(d,
|
|
4224
|
+
await a(d, u) !== !1 && d.close();
|
|
4218
4225
|
}
|
|
4219
4226
|
}
|
|
4220
4227
|
] });
|
|
4221
4228
|
}
|
|
4222
|
-
const
|
|
4229
|
+
const In = {
|
|
4223
4230
|
install(e) {
|
|
4224
|
-
|
|
4231
|
+
il(e._context), e.component("YsTable", St), e.component("YsTableActionMenuButton", $t), e.component("YsCommandBar", Ft), e.component("YsMainPanel", yo), e.component("YsFilterPanel", At), e.component("YsRootFilterPanel", zt), e.component("YsTextFilterItem", Qo), e.component("YsDateFilterItem", No), e.component("YsDateRangeFilterItem", Oo), e.component("YsEnumFilterItem", qo), e.component("YsFilterItemLayout", Ke), e.component("YsAdvancedFilterPanel", Pt), e.component("YsAdvancedValueEditor", Vt), e.component("YsAdvancedConditionGroup", Mt), e.component("YsTablePage", Ho), e.component("YsImportExcel", _n), e.component("YsInfiniteList", $n);
|
|
4225
4232
|
}
|
|
4226
4233
|
};
|
|
4227
4234
|
export {
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
+
Mt as YsAdvancedConditionGroup,
|
|
4236
|
+
Pt as YsAdvancedFilterPanel,
|
|
4237
|
+
Vt as YsAdvancedValueEditor,
|
|
4238
|
+
Ft as YsCommandBar,
|
|
4239
|
+
No as YsDateFilterItem,
|
|
4240
|
+
Oo as YsDateRangeFilterItem,
|
|
4241
|
+
qo as YsEnumFilterItem,
|
|
4235
4242
|
Ke as YsFilterItemLayout,
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4243
|
+
At as YsFilterPanel,
|
|
4244
|
+
_n as YsImportExcel,
|
|
4245
|
+
$n as YsInfiniteList,
|
|
4246
|
+
yo as YsMainPanel,
|
|
4247
|
+
zt as YsRootFilterPanel,
|
|
4248
|
+
St as YsTable,
|
|
4249
|
+
$t as YsTableActionMenuButton,
|
|
4250
|
+
Ho as YsTablePage,
|
|
4251
|
+
Qo as YsTextFilterItem,
|
|
4252
|
+
In as default,
|
|
4253
|
+
Qn as fromArray,
|
|
4254
|
+
Nn as fromBool,
|
|
4255
|
+
On as fromObjectItems,
|
|
4256
|
+
qn as fromOptions,
|
|
4257
|
+
En as openDialog,
|
|
4258
|
+
Mn as openModal
|
|
4252
4259
|
};
|
|
4253
4260
|
//# sourceMappingURL=index.js.map
|