orion-design 0.1.33 → 0.1.35
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 +19 -20
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +8 -2
- package/dist/components/LovTable/index.d.ts +4 -1
- package/dist/components/Pagetable/Pagetable.d.ts +2 -1
- package/dist/components/Pagetable/index.d.ts +2 -1
- package/dist/components/Pagetable/index.js +302 -288
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/{MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts → TableSelectPagetable/TableSelectPagetable.vue.d.ts} +10 -2
- package/dist/components/{MultiTableSelectPagetable → TableSelectPagetable}/index.d.ts +5 -1
- package/dist/components/TableSelectPagetable/index.js +168 -0
- package/dist/components/TableSelectPagetable/index.js.map +1 -0
- 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.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,325 +1,325 @@
|
|
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
|
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
|
-
emits: ["selectionChange", "currentRowChange", "update:pagination", "rowClick", "rowDblclick", "cellClick", "cellDblclick", "select", "select-all"],
|
34
|
-
setup(
|
35
|
-
slots:
|
33
|
+
emits: ["selectionChange", "currentRowChange", "update:pagination", "paginationChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick", "select", "select-all"],
|
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(),
|
41
|
-
let
|
42
|
-
|
40
|
+
const v = ie(), T = $(() => ({})), 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 k = d[A];
|
51
|
+
k.type === "OPagetableColumngroup" ? O(k.children) : m.push({
|
52
|
+
...k
|
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: k = !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
122
|
width: 56,
|
123
|
-
fixed: "left",
|
123
|
+
fixed: p.expandedRowRender ? !1 : "left",
|
124
124
|
showOverflowTooltip: !0,
|
125
|
-
index: (e) => (
|
126
|
-
}, null), W = () => a(
|
125
|
+
index: (e) => (d.currentPage - 1) * d.pageSize + e + 1
|
126
|
+
}, null), W = () => a(S, {
|
127
127
|
type: "selection",
|
128
128
|
width: 40,
|
129
|
-
fixed: "left"
|
129
|
+
fixed: p.expandedRowRender ? !1 : "left"
|
130
130
|
}, null), X = (e) => {
|
131
131
|
const {
|
132
132
|
name: t,
|
133
|
-
head:
|
133
|
+
head: l,
|
134
134
|
headAlign: i,
|
135
|
-
bodyAlign:
|
135
|
+
bodyAlign: u,
|
136
136
|
width: h,
|
137
|
-
fixed:
|
137
|
+
fixed: f
|
138
138
|
} = e;
|
139
|
-
return a(
|
140
|
-
label:
|
139
|
+
return a(S, {
|
140
|
+
label: l,
|
141
141
|
headerAlign: i,
|
142
|
-
align:
|
142
|
+
align: u,
|
143
143
|
prop: t,
|
144
144
|
width: h,
|
145
|
-
fixed:
|
145
|
+
fixed: f,
|
146
146
|
showOverflowTooltip: !0
|
147
147
|
}, null);
|
148
148
|
}, Z = (e) => {
|
149
149
|
const {
|
150
150
|
name: t,
|
151
|
-
head:
|
151
|
+
head: l,
|
152
152
|
headAlign: i,
|
153
|
-
bodyAlign:
|
153
|
+
bodyAlign: u,
|
154
154
|
width: h,
|
155
|
-
fixed:
|
155
|
+
fixed: f
|
156
156
|
} = e;
|
157
|
-
return a(
|
158
|
-
label:
|
157
|
+
return a(S, {
|
158
|
+
label: l,
|
159
159
|
headerAlign: i,
|
160
|
-
align:
|
160
|
+
align: u,
|
161
161
|
prop: t,
|
162
162
|
width: h,
|
163
|
-
fixed:
|
163
|
+
fixed: f,
|
164
164
|
showOverflowTooltip: !0
|
165
165
|
}, {
|
166
|
-
default: (
|
166
|
+
default: (w) => {
|
167
167
|
const {
|
168
168
|
row: c,
|
169
|
-
column:
|
170
|
-
} =
|
169
|
+
column: g
|
170
|
+
} = w;
|
171
171
|
return a("span", {
|
172
172
|
class: "cell-linkcolumn"
|
173
|
-
}, [c[
|
173
|
+
}, [c[g.property]]);
|
174
174
|
}
|
175
175
|
});
|
176
176
|
}, ee = (e) => {
|
177
177
|
const {
|
178
178
|
name: t,
|
179
|
-
head:
|
179
|
+
head: l,
|
180
180
|
headAlign: i,
|
181
|
-
bodyAlign:
|
181
|
+
bodyAlign: u = "right",
|
182
182
|
width: h,
|
183
|
-
fixed:
|
183
|
+
fixed: f
|
184
184
|
} = e, {
|
185
|
-
thousandsSeparator:
|
185
|
+
thousandsSeparator: w = !0,
|
186
186
|
precision: c = -1,
|
187
|
-
percentage:
|
187
|
+
percentage: g = !1
|
188
188
|
} = e;
|
189
|
-
return a(
|
190
|
-
label:
|
189
|
+
return a(S, {
|
190
|
+
label: l,
|
191
191
|
headerAlign: i,
|
192
|
-
align:
|
192
|
+
align: u,
|
193
193
|
prop: t,
|
194
194
|
width: h,
|
195
|
-
fixed:
|
195
|
+
fixed: f,
|
196
196
|
showOverflowTooltip: !0
|
197
197
|
}, {
|
198
198
|
default: (P) => {
|
199
199
|
const {
|
200
200
|
row: D,
|
201
|
-
column:
|
201
|
+
column: b
|
202
202
|
} = P;
|
203
203
|
return a("span", {
|
204
204
|
class: "cell-numbercolumn"
|
205
|
-
}, [he(D[
|
205
|
+
}, [he(D[b.property], w, c, g === !0 || g === "")]);
|
206
206
|
}
|
207
207
|
});
|
208
208
|
}, te = (e) => {
|
209
209
|
const {
|
210
210
|
name: t,
|
211
|
-
head:
|
211
|
+
head: l,
|
212
212
|
headAlign: i,
|
213
|
-
bodyAlign:
|
213
|
+
bodyAlign: u,
|
214
214
|
width: h,
|
215
|
-
fixed:
|
216
|
-
sourceFormat:
|
215
|
+
fixed: f,
|
216
|
+
sourceFormat: w,
|
217
217
|
format: c = "YYYYMMDDHHmmss"
|
218
218
|
} = e;
|
219
|
-
return a(
|
220
|
-
label:
|
219
|
+
return a(S, {
|
220
|
+
label: l,
|
221
221
|
headerAlign: i,
|
222
|
-
align:
|
222
|
+
align: u,
|
223
223
|
prop: t,
|
224
224
|
width: h,
|
225
|
-
fixed:
|
225
|
+
fixed: f,
|
226
226
|
showOverflowTooltip: !0
|
227
227
|
}, {
|
228
|
-
default: (
|
228
|
+
default: (g) => {
|
229
229
|
const {
|
230
230
|
row: P,
|
231
231
|
column: D
|
232
|
-
} =
|
233
|
-
return
|
232
|
+
} = g, b = P[D.property];
|
233
|
+
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
234
|
}
|
235
235
|
});
|
236
|
-
},
|
236
|
+
}, ne = (e) => {
|
237
237
|
const {
|
238
238
|
name: t,
|
239
|
-
head:
|
239
|
+
head: l,
|
240
240
|
headAlign: i,
|
241
|
-
bodyAlign:
|
241
|
+
bodyAlign: u,
|
242
242
|
width: h,
|
243
|
-
fixed:
|
243
|
+
fixed: f
|
244
244
|
} = e, {
|
245
|
-
code:
|
245
|
+
code: w
|
246
246
|
} = e;
|
247
|
-
return a(
|
248
|
-
label:
|
247
|
+
return a(S, {
|
248
|
+
label: l,
|
249
249
|
headerAlign: i,
|
250
|
-
align:
|
250
|
+
align: u,
|
251
251
|
prop: t,
|
252
252
|
width: h,
|
253
|
-
fixed:
|
253
|
+
fixed: f,
|
254
254
|
showOverflowTooltip: !0
|
255
255
|
}, {
|
256
256
|
default: (c) => {
|
257
257
|
const {
|
258
|
-
row:
|
258
|
+
row: g,
|
259
259
|
column: P
|
260
|
-
} = c, D =
|
261
|
-
let
|
262
|
-
const
|
263
|
-
return
|
260
|
+
} = c, D = g[P.property];
|
261
|
+
let b;
|
262
|
+
const N = H(w);
|
263
|
+
return N.value ? b = we(N.value, D) : b = null, a("span", {
|
264
264
|
class: "cell-singleselect"
|
265
|
-
}, [
|
265
|
+
}, [b]);
|
266
266
|
}
|
267
267
|
});
|
268
|
-
},
|
268
|
+
}, le = (e) => {
|
269
269
|
const {
|
270
270
|
name: t,
|
271
|
-
head:
|
271
|
+
head: l,
|
272
272
|
headAlign: i,
|
273
|
-
bodyAlign:
|
273
|
+
bodyAlign: u,
|
274
274
|
width: h,
|
275
|
-
fixed:
|
275
|
+
fixed: f
|
276
276
|
} = e, {
|
277
|
-
code:
|
277
|
+
code: w
|
278
278
|
} = e;
|
279
|
-
return a(
|
280
|
-
label:
|
279
|
+
return a(S, {
|
280
|
+
label: l,
|
281
281
|
headerAlign: i,
|
282
|
-
align:
|
282
|
+
align: u,
|
283
283
|
prop: t,
|
284
284
|
width: h,
|
285
|
-
fixed:
|
285
|
+
fixed: f,
|
286
286
|
showOverflowTooltip: !0
|
287
287
|
}, {
|
288
288
|
default: (c) => {
|
289
289
|
const {
|
290
|
-
row:
|
290
|
+
row: g,
|
291
291
|
column: P
|
292
|
-
} = c, D =
|
293
|
-
let
|
294
|
-
const
|
295
|
-
return
|
292
|
+
} = c, D = g[P.property];
|
293
|
+
let b;
|
294
|
+
const N = H(w);
|
295
|
+
return N.value ? b = be(N.value, D) : b = null, a("span", {
|
296
296
|
class: "cell-multiselect"
|
297
|
-
}, [
|
297
|
+
}, [b]);
|
298
298
|
}
|
299
299
|
});
|
300
300
|
}, oe = (e) => {
|
301
301
|
const {
|
302
302
|
name: t,
|
303
|
-
head:
|
303
|
+
head: l,
|
304
304
|
headAlign: i,
|
305
|
-
bodyAlign:
|
305
|
+
bodyAlign: u,
|
306
306
|
width: h,
|
307
|
-
fixed:
|
307
|
+
fixed: f
|
308
308
|
} = e;
|
309
|
-
return a(
|
310
|
-
label:
|
309
|
+
return a(S, {
|
310
|
+
label: l,
|
311
311
|
headerAlign: i,
|
312
|
-
align:
|
312
|
+
align: u,
|
313
313
|
prop: t,
|
314
314
|
width: h,
|
315
|
-
fixed:
|
315
|
+
fixed: f
|
316
316
|
}, {
|
317
|
-
default: (
|
318
|
-
var
|
319
|
-
const c = (P = (
|
320
|
-
rowData:
|
317
|
+
default: (w) => {
|
318
|
+
var g, P;
|
319
|
+
const c = (P = (g = e.children) == null ? void 0 : g.default) == null ? void 0 : P.call(g, {
|
320
|
+
rowData: w.row,
|
321
321
|
column: e,
|
322
|
-
rowIndex:
|
322
|
+
rowIndex: w.$index
|
323
323
|
});
|
324
324
|
return a("div", {
|
325
325
|
class: "cell-buttongroup"
|
@@ -331,41 +331,41 @@ const Ae = () => ({
|
|
331
331
|
}, re = (e) => {
|
332
332
|
const {
|
333
333
|
head: t,
|
334
|
-
headAlign:
|
334
|
+
headAlign: l
|
335
335
|
} = e, {
|
336
336
|
children: i
|
337
337
|
} = e;
|
338
|
-
return a(
|
338
|
+
return a(S, {
|
339
339
|
label: t,
|
340
|
-
headerAlign:
|
340
|
+
headerAlign: l
|
341
341
|
}, {
|
342
|
-
default: (
|
342
|
+
default: (u) => E(i)
|
343
343
|
});
|
344
344
|
}, ae = (e) => {
|
345
345
|
const {
|
346
346
|
name: t,
|
347
|
-
head:
|
347
|
+
head: l,
|
348
348
|
headAlign: i,
|
349
|
-
width:
|
349
|
+
width: u,
|
350
350
|
fixed: h
|
351
351
|
} = e;
|
352
|
-
return a(
|
353
|
-
label:
|
352
|
+
return a(S, {
|
353
|
+
label: l,
|
354
354
|
headerAlign: i,
|
355
355
|
prop: t,
|
356
|
-
width:
|
356
|
+
width: u,
|
357
357
|
fixed: h
|
358
358
|
}, {
|
359
|
-
default: (
|
360
|
-
var c,
|
361
|
-
const
|
362
|
-
rowData:
|
359
|
+
default: (f) => {
|
360
|
+
var c, g;
|
361
|
+
const w = (g = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : g.call(c, {
|
362
|
+
rowData: f.row,
|
363
363
|
column: e,
|
364
|
-
rowIndex:
|
364
|
+
rowIndex: f.$index
|
365
365
|
});
|
366
366
|
return a("div", {
|
367
367
|
class: "cell-diy"
|
368
|
-
}, [
|
368
|
+
}, [w, se(" ")]);
|
369
369
|
}
|
370
370
|
});
|
371
371
|
}, E = (e) => e == null ? void 0 : e.map((t) => {
|
@@ -378,9 +378,9 @@ const Ae = () => ({
|
|
378
378
|
if (t.type === "OPagetableColumnDate")
|
379
379
|
return te(t);
|
380
380
|
if (t.type === "OPagetableColumnSingleselect")
|
381
|
-
return le(t);
|
382
|
-
if (t.type === "OPagetableColumnMultiselect")
|
383
381
|
return ne(t);
|
382
|
+
if (t.type === "OPagetableColumnMultiselect")
|
383
|
+
return le(t);
|
384
384
|
if (t.type === "OPagetableColumnButtongroup")
|
385
385
|
return oe(t);
|
386
386
|
if (t.type === "OPagetableColumngroup")
|
@@ -391,40 +391,40 @@ const Ae = () => ({
|
|
391
391
|
});
|
392
392
|
return a("div", {
|
393
393
|
class: [K, y.class],
|
394
|
-
style: [
|
394
|
+
style: [T.value, y.style]
|
395
395
|
}, [a("div", {
|
396
396
|
class: "pagetable-wrapper"
|
397
|
-
}, [a(
|
397
|
+
}, [a(pe, {
|
398
398
|
showSummary: q.value,
|
399
399
|
summaryMethod: J,
|
400
400
|
border: !0,
|
401
401
|
ref: v,
|
402
|
-
data:
|
402
|
+
data: m,
|
403
403
|
height: "100%",
|
404
404
|
style: {
|
405
405
|
width: "100%"
|
406
406
|
},
|
407
|
-
"onSelection-change": (e) =>
|
407
|
+
"onSelection-change": (e) => s("selectionChange", e),
|
408
408
|
"highlight-current-row": G,
|
409
|
-
"onCurrent-change": (e, t) =>
|
410
|
-
"onRow-click": (e, t,
|
409
|
+
"onCurrent-change": (e, t) => s("currentRowChange", e, t),
|
410
|
+
"onRow-click": (e, t, l) => s("rowClick", e, {
|
411
411
|
name: t.property,
|
412
412
|
head: t.label
|
413
|
-
},
|
414
|
-
"onRow-dblclick": (e, t,
|
413
|
+
}, l),
|
414
|
+
"onRow-dblclick": (e, t, l) => s("rowDblclick", e, {
|
415
415
|
name: t.property,
|
416
416
|
head: t.label
|
417
|
-
},
|
418
|
-
"onCell-click": (e, t,
|
417
|
+
}, l),
|
418
|
+
"onCell-click": (e, t, l, i) => s("cellClick", e, {
|
419
419
|
name: t.property,
|
420
420
|
head: t.label
|
421
|
-
},
|
422
|
-
"onCell-dblclick": (e, t,
|
421
|
+
}, l, i),
|
422
|
+
"onCell-dblclick": (e, t, l, i) => s("cellDblclick", e, {
|
423
423
|
name: t.property,
|
424
424
|
head: t.label
|
425
|
-
},
|
426
|
-
onSelect: (e, t) =>
|
427
|
-
"onSelect-all": (e) =>
|
425
|
+
}, l, i),
|
426
|
+
onSelect: (e, t) => s("select", e, t),
|
427
|
+
"onSelect-all": (e) => s("select-all", e),
|
428
428
|
size: V,
|
429
429
|
rowClassName: (e) => typeof I == "string" ? I : typeof I == "function" ? I({
|
430
430
|
rowData: e.row,
|
@@ -453,221 +453,235 @@ const Ae = () => ({
|
|
453
453
|
columnIndex: e.columnIndex
|
454
454
|
}) : typeof z == "object" ? z : {}
|
455
455
|
}, {
|
456
|
-
default: () => [
|
456
|
+
default: () => [p.expandedRowRender && a(S, {
|
457
|
+
type: "expand",
|
458
|
+
fixed: !1
|
459
|
+
}, {
|
460
|
+
default: (e) => {
|
461
|
+
var l;
|
462
|
+
const t = (l = p.expandedRowRender) == null ? void 0 : l.call(p, {
|
463
|
+
rowData: e.row,
|
464
|
+
rowIndex: e.$index
|
465
|
+
});
|
466
|
+
return a("div", {
|
467
|
+
class: "row-expand"
|
468
|
+
}, [t]);
|
469
|
+
}
|
470
|
+
}), k && Q(), O && W(), E(B.value)]
|
457
471
|
})]), a("div", {
|
458
472
|
class: "pagination-wrapper"
|
459
|
-
}, [a(
|
460
|
-
currentPage:
|
473
|
+
}, [a(ce, {
|
474
|
+
currentPage: d.currentPage,
|
461
475
|
"onUpdate:current-page": (e) => {
|
462
|
-
|
463
|
-
...
|
476
|
+
s("update:pagination", {
|
477
|
+
...d,
|
464
478
|
currentPage: e
|
465
|
-
});
|
479
|
+
}), s("paginationChange", e, d.pageSize);
|
466
480
|
},
|
467
|
-
pageSize:
|
468
|
-
pageSizes:
|
481
|
+
pageSize: d.pageSize,
|
482
|
+
pageSizes: d.pageSizes,
|
469
483
|
"onUpdate:page-size": (e) => {
|
470
|
-
|
471
|
-
...
|
484
|
+
s("update:pagination", {
|
485
|
+
...d,
|
472
486
|
pageSize: e
|
473
|
-
});
|
487
|
+
}), s("paginationChange", d.currentPage, e);
|
474
488
|
},
|
475
|
-
total:
|
489
|
+
total: d.total,
|
476
490
|
layout: "total, ->, sizes, prev, pager, next, jumper",
|
477
491
|
size: V,
|
478
|
-
teleported:
|
492
|
+
teleported: A
|
479
493
|
}, null)])]);
|
480
494
|
};
|
481
495
|
}
|
482
|
-
}), ve = () => ({}), Oe = /* @__PURE__ */
|
496
|
+
}), ve = () => ({}), Oe = /* @__PURE__ */ x({
|
483
497
|
name: "OPagetableColumnIndex",
|
484
498
|
inheritAttrs: !1,
|
485
499
|
props: ve(),
|
486
|
-
setup(
|
487
|
-
slots:
|
500
|
+
setup(o, {
|
501
|
+
slots: p,
|
488
502
|
attrs: y,
|
489
|
-
emit:
|
503
|
+
emit: s,
|
490
504
|
expose: C
|
491
505
|
}) {
|
492
506
|
return () => null;
|
493
507
|
}
|
494
508
|
}), Be = () => ({
|
495
|
-
head:
|
496
|
-
headAlign:
|
497
|
-
bodyAlign:
|
498
|
-
name:
|
509
|
+
head: n(),
|
510
|
+
headAlign: n(),
|
511
|
+
bodyAlign: n(),
|
512
|
+
name: n(),
|
499
513
|
width: r([Boolean, String]),
|
500
514
|
fixed: r([Boolean, String]),
|
501
515
|
tail: r([Boolean, String])
|
502
|
-
}), De = /* @__PURE__ */
|
516
|
+
}), De = /* @__PURE__ */ x({
|
503
517
|
name: "OPagetableColumnString",
|
504
518
|
inheritAttrs: !1,
|
505
519
|
props: Be(),
|
506
|
-
setup(
|
507
|
-
slots:
|
520
|
+
setup(o, {
|
521
|
+
slots: p,
|
508
522
|
attrs: y,
|
509
|
-
emit:
|
523
|
+
emit: s,
|
510
524
|
expose: C
|
511
525
|
}) {
|
512
526
|
return () => null;
|
513
527
|
}
|
514
|
-
}),
|
515
|
-
head:
|
516
|
-
headAlign:
|
517
|
-
bodyAlign:
|
518
|
-
name:
|
528
|
+
}), Re = () => ({
|
529
|
+
head: n(),
|
530
|
+
headAlign: n(),
|
531
|
+
bodyAlign: n(),
|
532
|
+
name: n(),
|
519
533
|
width: r([Boolean, String]),
|
520
534
|
fixed: r([Boolean, String]),
|
521
535
|
tail: r([Boolean, String])
|
522
|
-
}),
|
536
|
+
}), Te = /* @__PURE__ */ x({
|
523
537
|
name: "OPagetableColumnLink",
|
524
538
|
inheritAttrs: !1,
|
525
|
-
props:
|
526
|
-
setup(
|
527
|
-
slots:
|
539
|
+
props: Re(),
|
540
|
+
setup(o, {
|
541
|
+
slots: p,
|
528
542
|
attrs: y,
|
529
|
-
emit:
|
543
|
+
emit: s,
|
530
544
|
expose: C
|
531
545
|
}) {
|
532
546
|
return () => null;
|
533
547
|
}
|
534
|
-
}),
|
535
|
-
head:
|
536
|
-
headAlign:
|
537
|
-
bodyAlign:
|
538
|
-
name:
|
548
|
+
}), ke = () => ({
|
549
|
+
head: n(),
|
550
|
+
headAlign: n(),
|
551
|
+
bodyAlign: n(),
|
552
|
+
name: n(),
|
539
553
|
width: r([Boolean, String]),
|
540
554
|
fixed: r([Boolean, String]),
|
541
555
|
tail: r([Boolean, String]),
|
542
|
-
thousandsSeparator:
|
556
|
+
thousandsSeparator: R(!0),
|
543
557
|
precision: fe(-1),
|
544
|
-
percentage:
|
545
|
-
}),
|
558
|
+
percentage: R(!1)
|
559
|
+
}), Ne = /* @__PURE__ */ x({
|
546
560
|
name: "OPagetableColumnNumber",
|
547
561
|
inheritAttrs: !1,
|
548
|
-
props:
|
549
|
-
setup(
|
550
|
-
slots:
|
562
|
+
props: ke(),
|
563
|
+
setup(o, {
|
564
|
+
slots: p,
|
551
565
|
attrs: y,
|
552
|
-
emit:
|
566
|
+
emit: s,
|
553
567
|
expose: C
|
554
568
|
}) {
|
555
569
|
return () => null;
|
556
570
|
}
|
557
|
-
}),
|
558
|
-
head:
|
559
|
-
headAlign:
|
560
|
-
bodyAlign:
|
561
|
-
name:
|
571
|
+
}), _e = () => ({
|
572
|
+
head: n(),
|
573
|
+
headAlign: n(),
|
574
|
+
bodyAlign: n(),
|
575
|
+
name: n(),
|
562
576
|
width: r([Boolean, String]),
|
563
577
|
fixed: r([Boolean, String]),
|
564
578
|
tail: r([Boolean, String]),
|
565
579
|
// Date
|
566
|
-
format:
|
567
|
-
sourceFormat:
|
568
|
-
}), Ie = /* @__PURE__ */
|
580
|
+
format: n(),
|
581
|
+
sourceFormat: n()
|
582
|
+
}), Ie = /* @__PURE__ */ x({
|
569
583
|
name: "OPagetableColumnDate",
|
570
584
|
inheritAttrs: !1,
|
571
|
-
props:
|
572
|
-
setup(
|
573
|
-
slots:
|
585
|
+
props: _e(),
|
586
|
+
setup(o, {
|
587
|
+
slots: p,
|
574
588
|
attrs: y,
|
575
|
-
emit:
|
589
|
+
emit: s,
|
576
590
|
expose: C
|
577
591
|
}) {
|
578
592
|
return () => null;
|
579
593
|
}
|
580
594
|
}), Me = () => ({
|
581
|
-
head:
|
582
|
-
headAlign:
|
583
|
-
bodyAlign:
|
584
|
-
name:
|
595
|
+
head: n(),
|
596
|
+
headAlign: n(),
|
597
|
+
bodyAlign: n(),
|
598
|
+
name: n(),
|
585
599
|
width: r([Boolean, String]),
|
586
600
|
fixed: r([Boolean, String]),
|
587
601
|
tail: r([Boolean, String]),
|
588
602
|
code: r([String, Array])
|
589
|
-
}), je = /* @__PURE__ */
|
603
|
+
}), je = /* @__PURE__ */ x({
|
590
604
|
name: "OPagetableColumnSingleselect",
|
591
605
|
inheritAttrs: !1,
|
592
606
|
props: Me(),
|
593
|
-
setup(
|
594
|
-
slots:
|
607
|
+
setup(o, {
|
608
|
+
slots: p,
|
595
609
|
attrs: y,
|
596
|
-
emit:
|
610
|
+
emit: s,
|
597
611
|
expose: C
|
598
612
|
}) {
|
599
613
|
return () => null;
|
600
614
|
}
|
601
615
|
}), ze = () => ({
|
602
|
-
head:
|
603
|
-
headAlign:
|
604
|
-
bodyAlign:
|
605
|
-
name:
|
616
|
+
head: n(),
|
617
|
+
headAlign: n(),
|
618
|
+
bodyAlign: n(),
|
619
|
+
name: n(),
|
606
620
|
width: r([Boolean, String]),
|
607
621
|
fixed: r([Boolean, String]),
|
608
622
|
tail: r([Boolean, String]),
|
609
623
|
code: r([String, Array])
|
610
|
-
}), $e = /* @__PURE__ */
|
624
|
+
}), $e = /* @__PURE__ */ x({
|
611
625
|
name: "OPagetableColumnMultiselect",
|
612
626
|
inheritAttrs: !1,
|
613
627
|
props: ze(),
|
614
|
-
setup(
|
615
|
-
slots:
|
628
|
+
setup(o, {
|
629
|
+
slots: p,
|
616
630
|
attrs: y,
|
617
|
-
emit:
|
631
|
+
emit: s,
|
618
632
|
expose: C
|
619
633
|
}) {
|
620
634
|
return () => null;
|
621
635
|
}
|
622
636
|
}), Ve = () => ({
|
623
|
-
head:
|
624
|
-
headAlign:
|
625
|
-
bodyAlign:
|
626
|
-
name:
|
637
|
+
head: n(),
|
638
|
+
headAlign: n(),
|
639
|
+
bodyAlign: n(),
|
640
|
+
name: n(),
|
627
641
|
width: r([Boolean, String]),
|
628
642
|
fixed: r([Boolean, String]),
|
629
643
|
tail: r([Boolean, String])
|
630
|
-
}), Ee = /* @__PURE__ */
|
644
|
+
}), Ee = /* @__PURE__ */ x({
|
631
645
|
name: "OPagetableColumnButtongroup",
|
632
646
|
inheritAttrs: !1,
|
633
647
|
props: Ve(),
|
634
648
|
slots: Object,
|
635
|
-
setup(
|
636
|
-
slots:
|
649
|
+
setup(o, {
|
650
|
+
slots: p,
|
637
651
|
attrs: y,
|
638
|
-
emit:
|
652
|
+
emit: s,
|
639
653
|
expose: C
|
640
654
|
}) {
|
641
655
|
return () => null;
|
642
656
|
}
|
643
657
|
});
|
644
|
-
function Le(
|
645
|
-
return typeof
|
658
|
+
function Le(o) {
|
659
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !U(o);
|
646
660
|
}
|
647
661
|
const Ye = () => ({
|
648
|
-
type:
|
649
|
-
}), Fe = /* @__PURE__ */
|
662
|
+
type: n()
|
663
|
+
}), Fe = /* @__PURE__ */ x({
|
650
664
|
name: "OPagetableCellButton",
|
651
665
|
inheritAttrs: !1,
|
652
666
|
props: Ye(),
|
653
667
|
emits: ["click"],
|
654
|
-
setup(
|
655
|
-
slots:
|
668
|
+
setup(o, {
|
669
|
+
slots: p,
|
656
670
|
attrs: y,
|
657
|
-
emit:
|
671
|
+
emit: s,
|
658
672
|
expose: C
|
659
673
|
}) {
|
660
|
-
const v = (
|
661
|
-
|
674
|
+
const v = (T) => {
|
675
|
+
s("click", T);
|
662
676
|
};
|
663
677
|
return () => {
|
664
|
-
var
|
678
|
+
var _;
|
665
679
|
const {
|
666
|
-
type:
|
667
|
-
} =
|
680
|
+
type: T
|
681
|
+
} = o, B = (_ = p.default) == null ? void 0 : _.call(p);
|
668
682
|
return a(de, {
|
669
683
|
link: !0,
|
670
|
-
type:
|
684
|
+
type: T,
|
671
685
|
size: "small",
|
672
686
|
onClick: v
|
673
687
|
}, Le(B) ? B : {
|
@@ -676,36 +690,36 @@ const Ye = () => ({
|
|
676
690
|
};
|
677
691
|
}
|
678
692
|
}), He = () => ({
|
679
|
-
head:
|
680
|
-
headAlign:
|
681
|
-
}), Ue = /* @__PURE__ */
|
693
|
+
head: n(),
|
694
|
+
headAlign: n()
|
695
|
+
}), Ue = /* @__PURE__ */ x({
|
682
696
|
name: "OPagetableColumngroup",
|
683
697
|
inheritAttrs: !1,
|
684
698
|
props: He(),
|
685
|
-
setup(
|
686
|
-
slots:
|
699
|
+
setup(o, {
|
700
|
+
slots: p,
|
687
701
|
attrs: y,
|
688
|
-
emit:
|
702
|
+
emit: s,
|
689
703
|
expose: C
|
690
704
|
}) {
|
691
705
|
return () => null;
|
692
706
|
}
|
693
707
|
}), qe = () => ({
|
694
|
-
head:
|
695
|
-
headAlign:
|
696
|
-
name:
|
708
|
+
head: n(),
|
709
|
+
headAlign: n(),
|
710
|
+
name: n(),
|
697
711
|
width: r([Boolean, String]),
|
698
712
|
fixed: r([Boolean, String]),
|
699
713
|
tail: r([Boolean, String])
|
700
|
-
}), Ge = /* @__PURE__ */
|
714
|
+
}), Ge = /* @__PURE__ */ x({
|
701
715
|
name: "OPagetableColumnDiy",
|
702
716
|
inheritAttrs: !1,
|
703
717
|
props: qe(),
|
704
718
|
slots: Object,
|
705
|
-
setup(
|
706
|
-
slots:
|
719
|
+
setup(o, {
|
720
|
+
slots: p,
|
707
721
|
attrs: y,
|
708
|
-
emit:
|
722
|
+
emit: s,
|
709
723
|
expose: C
|
710
724
|
}) {
|
711
725
|
return () => null;
|
@@ -713,8 +727,8 @@ const Ye = () => ({
|
|
713
727
|
}), dt = ue(Pe, {
|
714
728
|
PagetableColumnIndex: Oe,
|
715
729
|
PagetableColumnString: De,
|
716
|
-
PagetableColumnLink:
|
717
|
-
PagetableColumnNumber:
|
730
|
+
PagetableColumnLink: Te,
|
731
|
+
PagetableColumnNumber: Ne,
|
718
732
|
PagetableColumnDate: Ie,
|
719
733
|
PagetableColumnSingleselect: je,
|
720
734
|
PagetableColumnMultiselect: $e,
|