orion-design 0.1.34 → 0.1.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/{MultiTableSelect/MultiTableSelect.d.ts → TableSelect/TableSelect.d.ts} +3 -3
- package/dist/components/Form/TableSelect/TableSelect.js +5 -0
- package/dist/components/Form/TableSelect/TableSelect.js.map +1 -0
- package/dist/components/Form/{MultiTableSelect/MultiTableSelect.vue.d.ts → TableSelect/TableSelect.vue.d.ts} +3 -3
- package/dist/components/Form/TableSelect/hooks/useTableSelect.d.ts +1 -0
- package/dist/components/Form/TableSelect/hooks/useTableSelect.js +9 -0
- package/dist/components/Form/TableSelect/hooks/useTableSelect.js.map +1 -0
- package/dist/components/Form/TableSelect/index.d.ts +2 -0
- package/dist/components/Form/TableSelect/index.js +7 -0
- package/dist/components/Form/index.d.ts +3 -3
- package/dist/components/Form/index.js +23 -23
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Modal/index.js +30 -28
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Pagetable/index.js +305 -290
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/index.js +3 -0
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/{MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts → TableSelectPagetable/TableSelectPagetable.vue.d.ts} +2 -0
- package/dist/components/{MultiTableSelectPagetable → TableSelectPagetable}/index.d.ts +1 -0
- package/dist/components/TableSelectPagetable/index.js +171 -0
- package/dist/components/TableSelectPagetable/index.js.map +1 -0
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/components.d.ts +1 -1
- package/dist/components/components.js +13 -13
- package/dist/components/index.js +18 -18
- package/dist/{components-DP9bnDLm.js → components-BJrXhY2G.js} +11 -11
- package/dist/{components-DP9bnDLm.js.map → components-BJrXhY2G.js.map} +1 -1
- package/dist/{index-ChkLOmNK.js → index-Bm0F5NQQ.js} +43 -28
- package/dist/{index-ChkLOmNK.js.map → index-Bm0F5NQQ.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +17 -17
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +0 -5
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +0 -1
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +0 -1
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +0 -9
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +0 -1
- package/dist/components/Form/MultiTableSelect/index.d.ts +0 -2
- package/dist/components/Form/MultiTableSelect/index.js +0 -7
- package/dist/components/MultiTableSelectPagetable/index.js +0 -164
- package/dist/components/MultiTableSelectPagetable/index.js.map +0 -1
- /package/dist/components/Form/{MultiTableSelect → TableSelect}/index.js.map +0 -0
@@ -1,371 +1,374 @@
|
|
1
1
|
import "lodash-es";
|
2
|
-
import { defineComponent as
|
2
|
+
import { defineComponent as x, ref as ie, computed as $, createVNode as a, createTextVNode as se, isVNode as U } from "vue";
|
3
3
|
import { withInstall as ue } from "../_util/vue/install.js";
|
4
|
-
import { ElTable as pe,
|
4
|
+
import { ElTable as pe, ElTableColumn as S, ElPagination as ce, ElButton as de } from "element-plus";
|
5
5
|
import ge from "../_util/classNames.js";
|
6
|
-
import { arrayType as me, objectType as L, booleanType as
|
7
|
-
import { number2string as he, formatDate as Y, getSingleCodeContent as
|
6
|
+
import { arrayType as me, objectType as L, booleanType as R, stringType as n, someType as r, numberType as fe } from "../_util/type.js";
|
7
|
+
import { number2string as he, formatDate as Y, getSingleCodeContent as we, getMultiCodeContent as be } from "./utils/index.js";
|
8
8
|
import ye from "dayjs";
|
9
9
|
import { S as Ce } from "../../index-BbsXWo7C.js";
|
10
10
|
import F from "../../error/OrionError.js";
|
11
11
|
import Se from "./hooks/useColumns.js";
|
12
12
|
import H from "./hooks/useCode.js";
|
13
|
-
function xe(
|
14
|
-
return typeof
|
13
|
+
function xe(o) {
|
14
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !U(o);
|
15
15
|
}
|
16
16
|
const Ae = () => ({
|
17
17
|
data: me(),
|
18
18
|
tailData: L(),
|
19
19
|
pagination: L(),
|
20
|
-
paginationTeleported:
|
21
|
-
showRowNumber:
|
22
|
-
selectionMode:
|
23
|
-
currentRowMode:
|
24
|
-
size:
|
20
|
+
paginationTeleported: R(!0),
|
21
|
+
showRowNumber: R(!0),
|
22
|
+
selectionMode: R(!1),
|
23
|
+
currentRowMode: R(!1),
|
24
|
+
size: n(),
|
25
25
|
rowClassName: r(),
|
26
26
|
rowStyle: r(),
|
27
27
|
cellClassName: r(),
|
28
28
|
cellStyle: r()
|
29
|
-
}), Pe = /* @__PURE__ */
|
29
|
+
}), Pe = /* @__PURE__ */ x({
|
30
30
|
name: "OPagetable",
|
31
31
|
inheritAttrs: !1,
|
32
32
|
props: Ae(),
|
33
33
|
emits: ["selectionChange", "currentRowChange", "update:pagination", "paginationChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick", "select", "select-all"],
|
34
|
-
setup(
|
35
|
-
slots:
|
34
|
+
setup(o, {
|
35
|
+
slots: p,
|
36
36
|
attrs: y,
|
37
|
-
emit:
|
37
|
+
emit: s,
|
38
38
|
expose: C
|
39
39
|
}) {
|
40
|
-
const v = ie(), k = $(() => ({})), B = Se(
|
41
|
-
let
|
42
|
-
|
40
|
+
const v = ie(), k = $(() => ({})), B = Se(p), _ = $(() => {
|
41
|
+
let m = [];
|
42
|
+
o.showRowNumber && m.push({
|
43
43
|
type: "__showRowNumber__"
|
44
|
-
}),
|
44
|
+
}), o.selectionMode && m.push({
|
45
45
|
type: "__selectionMode__"
|
46
46
|
});
|
47
|
-
function O(
|
48
|
-
if (
|
49
|
-
for (let
|
50
|
-
const
|
51
|
-
|
52
|
-
...
|
47
|
+
function O(d) {
|
48
|
+
if (d)
|
49
|
+
for (let A = 0; A < d.length; A++) {
|
50
|
+
const T = d[A];
|
51
|
+
T.type === "OPagetableColumngroup" ? O(T.children) : m.push({
|
52
|
+
...T
|
53
53
|
});
|
54
54
|
}
|
55
55
|
}
|
56
|
-
return O(B.value),
|
56
|
+
return O(B.value), m;
|
57
57
|
}), q = $(() => {
|
58
|
-
function
|
58
|
+
function m(O) {
|
59
59
|
if (!O)
|
60
60
|
return !1;
|
61
|
-
for (let
|
62
|
-
const
|
63
|
-
if (
|
64
|
-
if (
|
61
|
+
for (let d = 0; d < O.length; d++) {
|
62
|
+
const A = O[d];
|
63
|
+
if (A.type === "OPagetableColumngroup") {
|
64
|
+
if (m(A.children))
|
65
65
|
return !0;
|
66
|
-
} else if (
|
66
|
+
} else if (A.tail === "" || A.tail === !0 || A.tail)
|
67
67
|
return !0;
|
68
68
|
}
|
69
69
|
return !1;
|
70
70
|
}
|
71
|
-
return
|
71
|
+
return m(B.value);
|
72
72
|
});
|
73
73
|
return C({
|
74
74
|
clearSelection: () => {
|
75
75
|
v.value.clearSelection();
|
76
76
|
},
|
77
77
|
getSelectionRows: () => v.value.getSelectionRows(),
|
78
|
-
toggleRowSelection: (...
|
78
|
+
toggleRowSelection: (...m) => v.value.toggleRowSelection(...m),
|
79
79
|
toggleAllSelection: () => v.value.toggleAllSelection(),
|
80
|
-
setCurrentRow: (...
|
81
|
-
scrollTo: (...
|
80
|
+
setCurrentRow: (...m) => v.value.setCurrentRow(...m),
|
81
|
+
scrollTo: (...m) => v.value.scrollTo(...m)
|
82
82
|
}), () => {
|
83
83
|
const {
|
84
|
-
data:
|
85
|
-
} =
|
84
|
+
data: m
|
85
|
+
} = o, {
|
86
86
|
selectionMode: O = !1
|
87
|
-
} =
|
88
|
-
pagination:
|
89
|
-
paginationTeleported:
|
90
|
-
} =
|
91
|
-
showRowNumber:
|
92
|
-
} =
|
87
|
+
} = o, {
|
88
|
+
pagination: d,
|
89
|
+
paginationTeleported: A
|
90
|
+
} = o, {
|
91
|
+
showRowNumber: T = !0
|
92
|
+
} = o, {
|
93
93
|
currentRowMode: G = !1
|
94
|
-
} =
|
94
|
+
} = o, {
|
95
95
|
size: V = "default"
|
96
|
-
} =
|
96
|
+
} = o, {
|
97
97
|
rowClassName: I,
|
98
98
|
rowStyle: M,
|
99
99
|
cellClassName: j,
|
100
100
|
cellStyle: z
|
101
|
-
} =
|
102
|
-
const t = $(() =>
|
103
|
-
return
|
104
|
-
if (
|
101
|
+
} = o, J = (e) => {
|
102
|
+
const t = $(() => o.tailData);
|
103
|
+
return _.value.map((l) => {
|
104
|
+
if (l.type === "__showRowNumber__")
|
105
105
|
return "Σ";
|
106
|
-
if (
|
106
|
+
if (l.type === "__selectionMode__" || !t.value)
|
107
107
|
return;
|
108
|
-
const i =
|
109
|
-
if (
|
110
|
-
if (
|
108
|
+
const i = l.name, u = l.tail;
|
109
|
+
if (u != null && u !== !1)
|
110
|
+
if (u === "" || u === !0) {
|
111
111
|
if (t.value[i] != null)
|
112
112
|
return t.value[i];
|
113
113
|
} else {
|
114
|
-
if (typeof
|
115
|
-
return
|
116
|
-
throw new F(`列[${i}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof
|
114
|
+
if (typeof u == "string")
|
115
|
+
return u.replace("{}", t.value[i]);
|
116
|
+
throw new F(`列[${i}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof u}]类型。`);
|
117
117
|
}
|
118
118
|
});
|
119
|
-
}, K = ge("orion-pagetbale"), Q = () => a(
|
119
|
+
}, K = ge("orion-pagetbale"), Q = () => a(S, {
|
120
120
|
type: "index",
|
121
121
|
label: "No",
|
122
|
+
headerAlign: "center",
|
123
|
+
align: "center",
|
122
124
|
width: 56,
|
123
|
-
fixed: "left",
|
125
|
+
fixed: p.expandedRowRender ? !1 : "left",
|
124
126
|
showOverflowTooltip: !0,
|
125
|
-
index: (e) => (
|
126
|
-
}, null), W = () => a(
|
127
|
+
index: (e) => (d.currentPage - 1) * d.pageSize + e + 1
|
128
|
+
}, null), W = () => a(S, {
|
127
129
|
type: "selection",
|
130
|
+
align: "center",
|
128
131
|
width: 40,
|
129
|
-
fixed: "left"
|
132
|
+
fixed: p.expandedRowRender ? !1 : "left"
|
130
133
|
}, null), X = (e) => {
|
131
134
|
const {
|
132
135
|
name: t,
|
133
|
-
head:
|
136
|
+
head: l,
|
134
137
|
headAlign: i,
|
135
|
-
bodyAlign:
|
138
|
+
bodyAlign: u,
|
136
139
|
width: h,
|
137
|
-
fixed:
|
140
|
+
fixed: f
|
138
141
|
} = e;
|
139
|
-
return a(
|
140
|
-
label:
|
142
|
+
return a(S, {
|
143
|
+
label: l,
|
141
144
|
headerAlign: i,
|
142
|
-
align:
|
145
|
+
align: u,
|
143
146
|
prop: t,
|
144
147
|
width: h,
|
145
|
-
fixed:
|
148
|
+
fixed: f,
|
146
149
|
showOverflowTooltip: !0
|
147
150
|
}, null);
|
148
151
|
}, Z = (e) => {
|
149
152
|
const {
|
150
153
|
name: t,
|
151
|
-
head:
|
154
|
+
head: l,
|
152
155
|
headAlign: i,
|
153
|
-
bodyAlign:
|
156
|
+
bodyAlign: u,
|
154
157
|
width: h,
|
155
|
-
fixed:
|
158
|
+
fixed: f
|
156
159
|
} = e;
|
157
|
-
return a(
|
158
|
-
label:
|
160
|
+
return a(S, {
|
161
|
+
label: l,
|
159
162
|
headerAlign: i,
|
160
|
-
align:
|
163
|
+
align: u,
|
161
164
|
prop: t,
|
162
165
|
width: h,
|
163
|
-
fixed:
|
166
|
+
fixed: f,
|
164
167
|
showOverflowTooltip: !0
|
165
168
|
}, {
|
166
|
-
default: (
|
169
|
+
default: (w) => {
|
167
170
|
const {
|
168
|
-
row:
|
169
|
-
column:
|
170
|
-
} =
|
171
|
+
row: c,
|
172
|
+
column: g
|
173
|
+
} = w;
|
171
174
|
return a("span", {
|
172
175
|
class: "cell-linkcolumn"
|
173
|
-
}, [
|
176
|
+
}, [c[g.property]]);
|
174
177
|
}
|
175
178
|
});
|
176
179
|
}, ee = (e) => {
|
177
180
|
const {
|
178
181
|
name: t,
|
179
|
-
head:
|
182
|
+
head: l,
|
180
183
|
headAlign: i,
|
181
|
-
bodyAlign:
|
184
|
+
bodyAlign: u = "right",
|
182
185
|
width: h,
|
183
|
-
fixed:
|
186
|
+
fixed: f
|
184
187
|
} = e, {
|
185
|
-
thousandsSeparator:
|
186
|
-
precision:
|
187
|
-
percentage:
|
188
|
+
thousandsSeparator: w = !0,
|
189
|
+
precision: c = -1,
|
190
|
+
percentage: g = !1
|
188
191
|
} = e;
|
189
|
-
return a(
|
190
|
-
label:
|
192
|
+
return a(S, {
|
193
|
+
label: l,
|
191
194
|
headerAlign: i,
|
192
|
-
align:
|
195
|
+
align: u,
|
193
196
|
prop: t,
|
194
197
|
width: h,
|
195
|
-
fixed:
|
198
|
+
fixed: f,
|
196
199
|
showOverflowTooltip: !0
|
197
200
|
}, {
|
198
201
|
default: (P) => {
|
199
202
|
const {
|
200
203
|
row: D,
|
201
|
-
column:
|
204
|
+
column: b
|
202
205
|
} = P;
|
203
206
|
return a("span", {
|
204
207
|
class: "cell-numbercolumn"
|
205
|
-
}, [he(D[
|
208
|
+
}, [he(D[b.property], w, c, g === !0 || g === "")]);
|
206
209
|
}
|
207
210
|
});
|
208
211
|
}, te = (e) => {
|
209
212
|
const {
|
210
213
|
name: t,
|
211
|
-
head:
|
214
|
+
head: l,
|
212
215
|
headAlign: i,
|
213
|
-
bodyAlign:
|
216
|
+
bodyAlign: u,
|
214
217
|
width: h,
|
215
|
-
fixed:
|
216
|
-
sourceFormat:
|
217
|
-
format:
|
218
|
+
fixed: f,
|
219
|
+
sourceFormat: w,
|
220
|
+
format: c = "YYYYMMDDHHmmss"
|
218
221
|
} = e;
|
219
|
-
return a(
|
220
|
-
label:
|
222
|
+
return a(S, {
|
223
|
+
label: l,
|
221
224
|
headerAlign: i,
|
222
|
-
align:
|
225
|
+
align: u,
|
223
226
|
prop: t,
|
224
227
|
width: h,
|
225
|
-
fixed:
|
228
|
+
fixed: f,
|
226
229
|
showOverflowTooltip: !0
|
227
230
|
}, {
|
228
|
-
default: (
|
231
|
+
default: (g) => {
|
229
232
|
const {
|
230
233
|
row: P,
|
231
234
|
column: D
|
232
|
-
} =
|
233
|
-
return
|
235
|
+
} = g, b = P[D.property];
|
236
|
+
return b instanceof Date || ye.isDayjs(b) ? a("div", null, [Y(b, c)]) : w && c ? a("div", null, [Y(b, w, c)]) : a("div", null, [b]);
|
234
237
|
}
|
235
238
|
});
|
236
|
-
},
|
239
|
+
}, ne = (e) => {
|
237
240
|
const {
|
238
241
|
name: t,
|
239
|
-
head:
|
242
|
+
head: l,
|
240
243
|
headAlign: i,
|
241
|
-
bodyAlign:
|
244
|
+
bodyAlign: u,
|
242
245
|
width: h,
|
243
|
-
fixed:
|
246
|
+
fixed: f
|
244
247
|
} = e, {
|
245
|
-
code:
|
248
|
+
code: w
|
246
249
|
} = e;
|
247
|
-
return a(
|
248
|
-
label:
|
250
|
+
return a(S, {
|
251
|
+
label: l,
|
249
252
|
headerAlign: i,
|
250
|
-
align:
|
253
|
+
align: u,
|
251
254
|
prop: t,
|
252
255
|
width: h,
|
253
|
-
fixed:
|
256
|
+
fixed: f,
|
254
257
|
showOverflowTooltip: !0
|
255
258
|
}, {
|
256
|
-
default: (
|
259
|
+
default: (c) => {
|
257
260
|
const {
|
258
|
-
row:
|
261
|
+
row: g,
|
259
262
|
column: P
|
260
|
-
} =
|
261
|
-
let
|
262
|
-
const
|
263
|
-
return
|
263
|
+
} = c, D = g[P.property];
|
264
|
+
let b;
|
265
|
+
const N = H(w);
|
266
|
+
return N.value ? b = we(N.value, D) : b = null, a("span", {
|
264
267
|
class: "cell-singleselect"
|
265
|
-
}, [
|
268
|
+
}, [b]);
|
266
269
|
}
|
267
270
|
});
|
268
|
-
},
|
271
|
+
}, le = (e) => {
|
269
272
|
const {
|
270
273
|
name: t,
|
271
|
-
head:
|
274
|
+
head: l,
|
272
275
|
headAlign: i,
|
273
|
-
bodyAlign:
|
276
|
+
bodyAlign: u,
|
274
277
|
width: h,
|
275
|
-
fixed:
|
278
|
+
fixed: f
|
276
279
|
} = e, {
|
277
|
-
code:
|
280
|
+
code: w
|
278
281
|
} = e;
|
279
|
-
return a(
|
280
|
-
label:
|
282
|
+
return a(S, {
|
283
|
+
label: l,
|
281
284
|
headerAlign: i,
|
282
|
-
align:
|
285
|
+
align: u,
|
283
286
|
prop: t,
|
284
287
|
width: h,
|
285
|
-
fixed:
|
288
|
+
fixed: f,
|
286
289
|
showOverflowTooltip: !0
|
287
290
|
}, {
|
288
|
-
default: (
|
291
|
+
default: (c) => {
|
289
292
|
const {
|
290
|
-
row:
|
293
|
+
row: g,
|
291
294
|
column: P
|
292
|
-
} =
|
293
|
-
let
|
294
|
-
const
|
295
|
-
return
|
295
|
+
} = c, D = g[P.property];
|
296
|
+
let b;
|
297
|
+
const N = H(w);
|
298
|
+
return N.value ? b = be(N.value, D) : b = null, a("span", {
|
296
299
|
class: "cell-multiselect"
|
297
|
-
}, [
|
300
|
+
}, [b]);
|
298
301
|
}
|
299
302
|
});
|
300
303
|
}, oe = (e) => {
|
301
304
|
const {
|
302
305
|
name: t,
|
303
|
-
head:
|
306
|
+
head: l,
|
304
307
|
headAlign: i,
|
305
|
-
bodyAlign:
|
308
|
+
bodyAlign: u,
|
306
309
|
width: h,
|
307
|
-
fixed:
|
310
|
+
fixed: f
|
308
311
|
} = e;
|
309
|
-
return a(
|
310
|
-
label:
|
312
|
+
return a(S, {
|
313
|
+
label: l,
|
311
314
|
headerAlign: i,
|
312
|
-
align:
|
315
|
+
align: u,
|
313
316
|
prop: t,
|
314
317
|
width: h,
|
315
|
-
fixed:
|
318
|
+
fixed: f
|
316
319
|
}, {
|
317
|
-
default: (
|
318
|
-
var
|
319
|
-
const
|
320
|
-
rowData:
|
320
|
+
default: (w) => {
|
321
|
+
var g, P;
|
322
|
+
const c = (P = (g = e.children) == null ? void 0 : g.default) == null ? void 0 : P.call(g, {
|
323
|
+
rowData: w.row,
|
321
324
|
column: e,
|
322
|
-
rowIndex:
|
325
|
+
rowIndex: w.$index
|
323
326
|
});
|
324
327
|
return a("div", {
|
325
328
|
class: "cell-buttongroup"
|
326
|
-
}, [a(Ce, null, xe(
|
327
|
-
default: () => [
|
329
|
+
}, [a(Ce, null, xe(c) ? c : {
|
330
|
+
default: () => [c]
|
328
331
|
})]);
|
329
332
|
}
|
330
333
|
});
|
331
334
|
}, re = (e) => {
|
332
335
|
const {
|
333
336
|
head: t,
|
334
|
-
headAlign:
|
337
|
+
headAlign: l
|
335
338
|
} = e, {
|
336
339
|
children: i
|
337
340
|
} = e;
|
338
|
-
return a(
|
341
|
+
return a(S, {
|
339
342
|
label: t,
|
340
|
-
headerAlign:
|
343
|
+
headerAlign: l
|
341
344
|
}, {
|
342
|
-
default: (
|
345
|
+
default: (u) => E(i)
|
343
346
|
});
|
344
347
|
}, ae = (e) => {
|
345
348
|
const {
|
346
349
|
name: t,
|
347
|
-
head:
|
350
|
+
head: l,
|
348
351
|
headAlign: i,
|
349
|
-
width:
|
352
|
+
width: u,
|
350
353
|
fixed: h
|
351
354
|
} = e;
|
352
|
-
return a(
|
353
|
-
label:
|
355
|
+
return a(S, {
|
356
|
+
label: l,
|
354
357
|
headerAlign: i,
|
355
358
|
prop: t,
|
356
|
-
width:
|
359
|
+
width: u,
|
357
360
|
fixed: h
|
358
361
|
}, {
|
359
|
-
default: (
|
360
|
-
var
|
361
|
-
const
|
362
|
-
rowData:
|
362
|
+
default: (f) => {
|
363
|
+
var c, g;
|
364
|
+
const w = (g = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : g.call(c, {
|
365
|
+
rowData: f.row,
|
363
366
|
column: e,
|
364
|
-
rowIndex:
|
367
|
+
rowIndex: f.$index
|
365
368
|
});
|
366
369
|
return a("div", {
|
367
370
|
class: "cell-diy"
|
368
|
-
}, [
|
371
|
+
}, [w, se(" ")]);
|
369
372
|
}
|
370
373
|
});
|
371
374
|
}, E = (e) => e == null ? void 0 : e.map((t) => {
|
@@ -378,9 +381,9 @@ const Ae = () => ({
|
|
378
381
|
if (t.type === "OPagetableColumnDate")
|
379
382
|
return te(t);
|
380
383
|
if (t.type === "OPagetableColumnSingleselect")
|
381
|
-
return le(t);
|
382
|
-
if (t.type === "OPagetableColumnMultiselect")
|
383
384
|
return ne(t);
|
385
|
+
if (t.type === "OPagetableColumnMultiselect")
|
386
|
+
return le(t);
|
384
387
|
if (t.type === "OPagetableColumnButtongroup")
|
385
388
|
return oe(t);
|
386
389
|
if (t.type === "OPagetableColumngroup")
|
@@ -399,32 +402,32 @@ const Ae = () => ({
|
|
399
402
|
summaryMethod: J,
|
400
403
|
border: !0,
|
401
404
|
ref: v,
|
402
|
-
data:
|
405
|
+
data: m,
|
403
406
|
height: "100%",
|
404
407
|
style: {
|
405
408
|
width: "100%"
|
406
409
|
},
|
407
|
-
"onSelection-change": (e) =>
|
410
|
+
"onSelection-change": (e) => s("selectionChange", e),
|
408
411
|
"highlight-current-row": G,
|
409
|
-
"onCurrent-change": (e, t) =>
|
410
|
-
"onRow-click": (e, t,
|
412
|
+
"onCurrent-change": (e, t) => s("currentRowChange", e, t),
|
413
|
+
"onRow-click": (e, t, l) => s("rowClick", e, {
|
411
414
|
name: t.property,
|
412
415
|
head: t.label
|
413
|
-
},
|
414
|
-
"onRow-dblclick": (e, t,
|
416
|
+
}, l),
|
417
|
+
"onRow-dblclick": (e, t, l) => s("rowDblclick", e, {
|
415
418
|
name: t.property,
|
416
419
|
head: t.label
|
417
|
-
},
|
418
|
-
"onCell-click": (e, t,
|
420
|
+
}, l),
|
421
|
+
"onCell-click": (e, t, l, i) => s("cellClick", e, {
|
419
422
|
name: t.property,
|
420
423
|
head: t.label
|
421
|
-
},
|
422
|
-
"onCell-dblclick": (e, t,
|
424
|
+
}, l, i),
|
425
|
+
"onCell-dblclick": (e, t, l, i) => s("cellDblclick", e, {
|
423
426
|
name: t.property,
|
424
427
|
head: t.label
|
425
|
-
},
|
426
|
-
onSelect: (e, t) =>
|
427
|
-
"onSelect-all": (e) =>
|
428
|
+
}, l, i),
|
429
|
+
onSelect: (e, t) => s("select", e, t),
|
430
|
+
"onSelect-all": (e) => s("select-all", e),
|
428
431
|
size: V,
|
429
432
|
rowClassName: (e) => typeof I == "string" ? I : typeof I == "function" ? I({
|
430
433
|
rowData: e.row,
|
@@ -453,221 +456,233 @@ const Ae = () => ({
|
|
453
456
|
columnIndex: e.columnIndex
|
454
457
|
}) : typeof z == "object" ? z : {}
|
455
458
|
}, {
|
456
|
-
default: () => [
|
459
|
+
default: () => [p.expandedRowRender && a(S, {
|
460
|
+
type: "expand",
|
461
|
+
fixed: !1
|
462
|
+
}, {
|
463
|
+
default: (e) => {
|
464
|
+
var l;
|
465
|
+
const t = (l = p.expandedRowRender) == null ? void 0 : l.call(p, {
|
466
|
+
rowData: e.row,
|
467
|
+
rowIndex: e.$index
|
468
|
+
});
|
469
|
+
return a("div", {
|
470
|
+
class: "row-expand"
|
471
|
+
}, [t]);
|
472
|
+
}
|
473
|
+
}), T && Q(), O && W(), E(B.value)]
|
457
474
|
})]), a("div", {
|
458
475
|
class: "pagination-wrapper"
|
459
476
|
}, [a(ce, {
|
460
|
-
currentPage:
|
477
|
+
currentPage: d.currentPage,
|
461
478
|
"onUpdate:current-page": (e) => {
|
462
|
-
|
463
|
-
...
|
479
|
+
s("update:pagination", {
|
480
|
+
...d,
|
464
481
|
currentPage: e
|
465
|
-
});
|
482
|
+
}), s("paginationChange", e, d.pageSize);
|
466
483
|
},
|
467
|
-
pageSize:
|
468
|
-
pageSizes:
|
484
|
+
pageSize: d.pageSize,
|
485
|
+
pageSizes: d.pageSizes,
|
469
486
|
"onUpdate:page-size": (e) => {
|
470
|
-
|
471
|
-
...
|
487
|
+
s("update:pagination", {
|
488
|
+
...d,
|
472
489
|
pageSize: e
|
473
|
-
});
|
490
|
+
}), s("paginationChange", d.currentPage, e);
|
474
491
|
},
|
475
|
-
|
476
|
-
u("paginationChange", e, t);
|
477
|
-
},
|
478
|
-
total: g.total,
|
492
|
+
total: d.total,
|
479
493
|
layout: "total, ->, sizes, prev, pager, next, jumper",
|
494
|
+
background: !0,
|
480
495
|
size: V,
|
481
|
-
teleported:
|
496
|
+
teleported: A
|
482
497
|
}, null)])]);
|
483
498
|
};
|
484
499
|
}
|
485
|
-
}), ve = () => ({}), Oe = /* @__PURE__ */
|
500
|
+
}), ve = () => ({}), Oe = /* @__PURE__ */ x({
|
486
501
|
name: "OPagetableColumnIndex",
|
487
502
|
inheritAttrs: !1,
|
488
503
|
props: ve(),
|
489
|
-
setup(
|
490
|
-
slots:
|
504
|
+
setup(o, {
|
505
|
+
slots: p,
|
491
506
|
attrs: y,
|
492
|
-
emit:
|
507
|
+
emit: s,
|
493
508
|
expose: C
|
494
509
|
}) {
|
495
510
|
return () => null;
|
496
511
|
}
|
497
512
|
}), Be = () => ({
|
498
|
-
head:
|
499
|
-
headAlign:
|
500
|
-
bodyAlign:
|
501
|
-
name:
|
513
|
+
head: n(),
|
514
|
+
headAlign: n(),
|
515
|
+
bodyAlign: n(),
|
516
|
+
name: n(),
|
502
517
|
width: r([Boolean, String]),
|
503
518
|
fixed: r([Boolean, String]),
|
504
519
|
tail: r([Boolean, String])
|
505
|
-
}), De = /* @__PURE__ */
|
520
|
+
}), De = /* @__PURE__ */ x({
|
506
521
|
name: "OPagetableColumnString",
|
507
522
|
inheritAttrs: !1,
|
508
523
|
props: Be(),
|
509
|
-
setup(
|
510
|
-
slots:
|
524
|
+
setup(o, {
|
525
|
+
slots: p,
|
511
526
|
attrs: y,
|
512
|
-
emit:
|
527
|
+
emit: s,
|
513
528
|
expose: C
|
514
529
|
}) {
|
515
530
|
return () => null;
|
516
531
|
}
|
517
|
-
}),
|
518
|
-
head:
|
519
|
-
headAlign:
|
520
|
-
bodyAlign:
|
521
|
-
name:
|
532
|
+
}), Re = () => ({
|
533
|
+
head: n(),
|
534
|
+
headAlign: n(),
|
535
|
+
bodyAlign: n(),
|
536
|
+
name: n(),
|
522
537
|
width: r([Boolean, String]),
|
523
538
|
fixed: r([Boolean, String]),
|
524
539
|
tail: r([Boolean, String])
|
525
|
-
}), ke = /* @__PURE__ */
|
540
|
+
}), ke = /* @__PURE__ */ x({
|
526
541
|
name: "OPagetableColumnLink",
|
527
542
|
inheritAttrs: !1,
|
528
|
-
props:
|
529
|
-
setup(
|
530
|
-
slots:
|
543
|
+
props: Re(),
|
544
|
+
setup(o, {
|
545
|
+
slots: p,
|
531
546
|
attrs: y,
|
532
|
-
emit:
|
547
|
+
emit: s,
|
533
548
|
expose: C
|
534
549
|
}) {
|
535
550
|
return () => null;
|
536
551
|
}
|
537
|
-
}),
|
538
|
-
head:
|
539
|
-
headAlign:
|
540
|
-
bodyAlign:
|
541
|
-
name:
|
552
|
+
}), Te = () => ({
|
553
|
+
head: n(),
|
554
|
+
headAlign: n(),
|
555
|
+
bodyAlign: n(),
|
556
|
+
name: n(),
|
542
557
|
width: r([Boolean, String]),
|
543
558
|
fixed: r([Boolean, String]),
|
544
559
|
tail: r([Boolean, String]),
|
545
|
-
thousandsSeparator:
|
560
|
+
thousandsSeparator: R(!0),
|
546
561
|
precision: fe(-1),
|
547
|
-
percentage:
|
548
|
-
}),
|
562
|
+
percentage: R(!1)
|
563
|
+
}), Ne = /* @__PURE__ */ x({
|
549
564
|
name: "OPagetableColumnNumber",
|
550
565
|
inheritAttrs: !1,
|
551
|
-
props:
|
552
|
-
setup(
|
553
|
-
slots:
|
566
|
+
props: Te(),
|
567
|
+
setup(o, {
|
568
|
+
slots: p,
|
554
569
|
attrs: y,
|
555
|
-
emit:
|
570
|
+
emit: s,
|
556
571
|
expose: C
|
557
572
|
}) {
|
558
573
|
return () => null;
|
559
574
|
}
|
560
|
-
}),
|
561
|
-
head:
|
562
|
-
headAlign:
|
563
|
-
bodyAlign:
|
564
|
-
name:
|
575
|
+
}), _e = () => ({
|
576
|
+
head: n(),
|
577
|
+
headAlign: n(),
|
578
|
+
bodyAlign: n(),
|
579
|
+
name: n(),
|
565
580
|
width: r([Boolean, String]),
|
566
581
|
fixed: r([Boolean, String]),
|
567
582
|
tail: r([Boolean, String]),
|
568
583
|
// Date
|
569
|
-
format:
|
570
|
-
sourceFormat:
|
571
|
-
}), Ie = /* @__PURE__ */
|
584
|
+
format: n(),
|
585
|
+
sourceFormat: n()
|
586
|
+
}), Ie = /* @__PURE__ */ x({
|
572
587
|
name: "OPagetableColumnDate",
|
573
588
|
inheritAttrs: !1,
|
574
|
-
props:
|
575
|
-
setup(
|
576
|
-
slots:
|
589
|
+
props: _e(),
|
590
|
+
setup(o, {
|
591
|
+
slots: p,
|
577
592
|
attrs: y,
|
578
|
-
emit:
|
593
|
+
emit: s,
|
579
594
|
expose: C
|
580
595
|
}) {
|
581
596
|
return () => null;
|
582
597
|
}
|
583
598
|
}), Me = () => ({
|
584
|
-
head:
|
585
|
-
headAlign:
|
586
|
-
bodyAlign:
|
587
|
-
name:
|
599
|
+
head: n(),
|
600
|
+
headAlign: n(),
|
601
|
+
bodyAlign: n(),
|
602
|
+
name: n(),
|
588
603
|
width: r([Boolean, String]),
|
589
604
|
fixed: r([Boolean, String]),
|
590
605
|
tail: r([Boolean, String]),
|
591
606
|
code: r([String, Array])
|
592
|
-
}), je = /* @__PURE__ */
|
607
|
+
}), je = /* @__PURE__ */ x({
|
593
608
|
name: "OPagetableColumnSingleselect",
|
594
609
|
inheritAttrs: !1,
|
595
610
|
props: Me(),
|
596
|
-
setup(
|
597
|
-
slots:
|
611
|
+
setup(o, {
|
612
|
+
slots: p,
|
598
613
|
attrs: y,
|
599
|
-
emit:
|
614
|
+
emit: s,
|
600
615
|
expose: C
|
601
616
|
}) {
|
602
617
|
return () => null;
|
603
618
|
}
|
604
619
|
}), ze = () => ({
|
605
|
-
head:
|
606
|
-
headAlign:
|
607
|
-
bodyAlign:
|
608
|
-
name:
|
620
|
+
head: n(),
|
621
|
+
headAlign: n(),
|
622
|
+
bodyAlign: n(),
|
623
|
+
name: n(),
|
609
624
|
width: r([Boolean, String]),
|
610
625
|
fixed: r([Boolean, String]),
|
611
626
|
tail: r([Boolean, String]),
|
612
627
|
code: r([String, Array])
|
613
|
-
}), $e = /* @__PURE__ */
|
628
|
+
}), $e = /* @__PURE__ */ x({
|
614
629
|
name: "OPagetableColumnMultiselect",
|
615
630
|
inheritAttrs: !1,
|
616
631
|
props: ze(),
|
617
|
-
setup(
|
618
|
-
slots:
|
632
|
+
setup(o, {
|
633
|
+
slots: p,
|
619
634
|
attrs: y,
|
620
|
-
emit:
|
635
|
+
emit: s,
|
621
636
|
expose: C
|
622
637
|
}) {
|
623
638
|
return () => null;
|
624
639
|
}
|
625
640
|
}), Ve = () => ({
|
626
|
-
head:
|
627
|
-
headAlign:
|
628
|
-
bodyAlign:
|
629
|
-
name:
|
641
|
+
head: n(),
|
642
|
+
headAlign: n(),
|
643
|
+
bodyAlign: n(),
|
644
|
+
name: n(),
|
630
645
|
width: r([Boolean, String]),
|
631
646
|
fixed: r([Boolean, String]),
|
632
647
|
tail: r([Boolean, String])
|
633
|
-
}), Ee = /* @__PURE__ */
|
648
|
+
}), Ee = /* @__PURE__ */ x({
|
634
649
|
name: "OPagetableColumnButtongroup",
|
635
650
|
inheritAttrs: !1,
|
636
651
|
props: Ve(),
|
637
652
|
slots: Object,
|
638
|
-
setup(
|
639
|
-
slots:
|
653
|
+
setup(o, {
|
654
|
+
slots: p,
|
640
655
|
attrs: y,
|
641
|
-
emit:
|
656
|
+
emit: s,
|
642
657
|
expose: C
|
643
658
|
}) {
|
644
659
|
return () => null;
|
645
660
|
}
|
646
661
|
});
|
647
|
-
function Le(
|
648
|
-
return typeof
|
662
|
+
function Le(o) {
|
663
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !U(o);
|
649
664
|
}
|
650
665
|
const Ye = () => ({
|
651
|
-
type:
|
652
|
-
}), Fe = /* @__PURE__ */
|
666
|
+
type: n()
|
667
|
+
}), Fe = /* @__PURE__ */ x({
|
653
668
|
name: "OPagetableCellButton",
|
654
669
|
inheritAttrs: !1,
|
655
670
|
props: Ye(),
|
656
671
|
emits: ["click"],
|
657
|
-
setup(
|
658
|
-
slots:
|
672
|
+
setup(o, {
|
673
|
+
slots: p,
|
659
674
|
attrs: y,
|
660
|
-
emit:
|
675
|
+
emit: s,
|
661
676
|
expose: C
|
662
677
|
}) {
|
663
678
|
const v = (k) => {
|
664
|
-
|
679
|
+
s("click", k);
|
665
680
|
};
|
666
681
|
return () => {
|
667
|
-
var
|
682
|
+
var _;
|
668
683
|
const {
|
669
684
|
type: k
|
670
|
-
} =
|
685
|
+
} = o, B = (_ = p.default) == null ? void 0 : _.call(p);
|
671
686
|
return a(de, {
|
672
687
|
link: !0,
|
673
688
|
type: k,
|
@@ -679,36 +694,36 @@ const Ye = () => ({
|
|
679
694
|
};
|
680
695
|
}
|
681
696
|
}), He = () => ({
|
682
|
-
head:
|
683
|
-
headAlign:
|
684
|
-
}), Ue = /* @__PURE__ */
|
697
|
+
head: n(),
|
698
|
+
headAlign: n()
|
699
|
+
}), Ue = /* @__PURE__ */ x({
|
685
700
|
name: "OPagetableColumngroup",
|
686
701
|
inheritAttrs: !1,
|
687
702
|
props: He(),
|
688
|
-
setup(
|
689
|
-
slots:
|
703
|
+
setup(o, {
|
704
|
+
slots: p,
|
690
705
|
attrs: y,
|
691
|
-
emit:
|
706
|
+
emit: s,
|
692
707
|
expose: C
|
693
708
|
}) {
|
694
709
|
return () => null;
|
695
710
|
}
|
696
711
|
}), qe = () => ({
|
697
|
-
head:
|
698
|
-
headAlign:
|
699
|
-
name:
|
712
|
+
head: n(),
|
713
|
+
headAlign: n(),
|
714
|
+
name: n(),
|
700
715
|
width: r([Boolean, String]),
|
701
716
|
fixed: r([Boolean, String]),
|
702
717
|
tail: r([Boolean, String])
|
703
|
-
}), Ge = /* @__PURE__ */
|
718
|
+
}), Ge = /* @__PURE__ */ x({
|
704
719
|
name: "OPagetableColumnDiy",
|
705
720
|
inheritAttrs: !1,
|
706
721
|
props: qe(),
|
707
722
|
slots: Object,
|
708
|
-
setup(
|
709
|
-
slots:
|
723
|
+
setup(o, {
|
724
|
+
slots: p,
|
710
725
|
attrs: y,
|
711
|
-
emit:
|
726
|
+
emit: s,
|
712
727
|
expose: C
|
713
728
|
}) {
|
714
729
|
return () => null;
|
@@ -717,7 +732,7 @@ const Ye = () => ({
|
|
717
732
|
PagetableColumnIndex: Oe,
|
718
733
|
PagetableColumnString: De,
|
719
734
|
PagetableColumnLink: ke,
|
720
|
-
PagetableColumnNumber:
|
735
|
+
PagetableColumnNumber: Ne,
|
721
736
|
PagetableColumnDate: Ie,
|
722
737
|
PagetableColumnSingleselect: je,
|
723
738
|
PagetableColumnMultiselect: $e,
|