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