orion-design 0.1.45 → 0.1.46

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.
@@ -1,65 +1,69 @@
1
1
  import "lodash-es";
2
- import { defineComponent as x, ref as ie, computed as $, createVNode as a, createTextVNode as se, isVNode as U } from "vue";
3
- import { withInstall as ue } from "../_util/vue/install.js";
4
- import { ElTable as ce, ElTableColumn as S, ElPagination as pe, ElButton as de } from "element-plus";
5
- import ge from "../_util/classNames.js";
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
- import ye from "dayjs";
9
- import { S as Ce } from "../../index-BbsXWo7C.js";
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 Se from "./hooks/useColumns.js";
11
+ import ve from "./hooks/useColumns.js";
12
12
  import H from "./hooks/useCode.js";
13
- function xe(o) {
14
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !U(o);
13
+ function Oe(o) {
14
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !J(o);
15
15
  }
16
- const Ae = () => ({
17
- data: me(),
16
+ const Be = () => ({
17
+ data: Ce(),
18
18
  tailData: L(),
19
19
  pagination: L(),
20
- paginationTeleported: R(!0),
21
- showRowNumber: R(!0),
22
- selectionMode: R(!1),
23
- currentRowMode: R(!1),
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
- }), Pe = /* @__PURE__ */ x({
33
+ }), De = /* @__PURE__ */ x({
30
34
  name: "OPagetable",
31
35
  inheritAttrs: !1,
32
- props: Ae(),
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: y,
40
+ attrs: C,
37
41
  emit: s,
38
- expose: C
42
+ expose: y
39
43
  }) {
40
- const v = ie(), k = $(() => ({})), B = Se(c), _ = $(() => {
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 O(d) {
51
+ function B(d) {
48
52
  if (d)
49
53
  for (let A = 0; A < d.length; A++) {
50
- const T = d[A];
51
- T.type === "OPagetableColumngroup" ? O(T.children) : m.push({
52
- ...T
54
+ const k = d[A];
55
+ k.type === "OPagetableColumngroup" ? B(k.children) : m.push({
56
+ ...k
53
57
  });
54
58
  }
55
59
  }
56
- return O(B.value), m;
60
+ return B(D.value), m;
57
61
  }), q = $(() => {
58
- function m(O) {
59
- if (!O)
62
+ function m(B) {
63
+ if (!B)
60
64
  return !1;
61
- for (let d = 0; d < O.length; d++) {
62
- const A = O[d];
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(B.value);
75
+ return m(D.value);
72
76
  });
73
- return C({
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: O = !1
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: T = !0
99
+ showRowNumber: W = !0
92
100
  } = o, {
93
- currentRowMode: G = !1
101
+ currentRowMode: X = !1
94
102
  } = o, {
95
103
  size: V = "default"
96
104
  } = o, {
97
105
  rowClassName: I,
98
- rowStyle: M,
99
- cellClassName: j,
100
- cellStyle: z
101
- } = o, J = (e) => {
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
- }, K = ge("orion-pagetbale"), Q = () => a(S, {
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), W = () => a(S, {
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), X = (e) => {
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
- }, Z = (e) => {
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
- }, ee = (e) => {
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: D,
212
+ row: R,
205
213
  column: b
206
214
  } = P;
207
215
  return a("span", {
208
216
  class: "cell-numbercolumn"
209
- }, [he(D[b.property], w, p, g === !0 || g === "")]);
217
+ }, [ye(R[b.property], w, p, g === !0 || g === "")]);
210
218
  }
211
219
  });
212
- }, te = (e) => {
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: D
236
- } = g, b = P[D.property];
237
- return b instanceof Date || ye.isDayjs(b) ? a("div", null, [Y(b, p)]) : w && p ? a("div", null, [Y(b, w, p)]) : a("div", null, [b]);
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
- }, ne = (e) => {
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, D = g[P.property];
272
+ } = p, R = g[P.property];
265
273
  let b;
266
274
  const N = H(w);
267
- return N.value ? b = we(N.value, D) : b = null, a("span", {
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
- }, le = (e) => {
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, D = g[P.property];
304
+ } = p, R = g[P.property];
297
305
  let b;
298
306
  const N = H(w);
299
- return N.value ? b = be(N.value, D) : b = null, a("span", {
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
- }, oe = (e) => {
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(Ce, null, xe(p) ? p : {
338
+ }, [a(Pe, null, Oe(p) ? p : {
331
339
  default: () => [p]
332
340
  })]);
333
341
  }
334
342
  });
335
- }, re = (e) => {
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
- }, ae = (e) => {
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, se(" ")]);
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 X(t);
385
+ return le(t);
378
386
  if (t.type === "OPagetableColumnLink")
379
- return Z(t);
387
+ return oe(t);
380
388
  if (t.type === "OPagetableColumnNumber")
381
- return ee(t);
389
+ return re(t);
382
390
  if (t.type === "OPagetableColumnDate")
383
- return te(t);
391
+ return ae(t);
384
392
  if (t.type === "OPagetableColumnSingleselect")
385
- return ne(t);
393
+ return ie(t);
386
394
  if (t.type === "OPagetableColumnMultiselect")
387
- return le(t);
395
+ return se(t);
388
396
  if (t.type === "OPagetableColumnButtongroup")
389
- return oe(t);
397
+ return ue(t);
390
398
  if (t.type === "OPagetableColumngroup")
391
- return re(t);
399
+ return ce(t);
392
400
  if (t.type === "OPagetableColumnDiy")
393
- return ae(t);
401
+ return pe(t);
394
402
  throw new F(`OPagetable不能正确渲染'${t.type.name}'子组件。`);
395
403
  });
396
404
  return a("div", {
397
- class: [K, y.class],
398
- style: [k.value, y.style]
405
+ class: [ee, C.class],
406
+ style: [T.value, C.style]
399
407
  }, [a("div", {
400
408
  class: "pagetable-wrapper"
401
- }, [a(ce, {
409
+ }, [a(fe, {
402
410
  showSummary: q.value,
403
- summaryMethod: J,
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": G,
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 M == "function" ? M({
445
+ rowStyle: (e) => typeof z == "function" ? z({
438
446
  rowData: e.row,
439
447
  rowIndex: e.rowIndex
440
- }) : typeof M == "object" ? M : {},
441
- cellClassName: (e) => typeof j == "string" ? j : typeof j == "function" ? j({
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 z == "function" ? z({
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 z == "object" ? z : {}
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
- }), T && Q(), O && W(), E(B.value)]
482
+ }), W && te(), B && ne(), E(D.value)]
475
483
  })]), a("div", {
476
484
  class: "pagination-wrapper"
477
- }, [a(pe, {
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
- layout: "total, ->, sizes, prev, pager, next, jumper",
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
- }), ve = () => ({}), Oe = /* @__PURE__ */ x({
510
+ }), Re = () => ({}), Te = /* @__PURE__ */ x({
502
511
  name: "OPagetableColumnIndex",
503
512
  inheritAttrs: !1,
504
- props: ve(),
513
+ props: Re(),
505
514
  setup(o, {
506
515
  slots: c,
507
- attrs: y,
516
+ attrs: C,
508
517
  emit: s,
509
- expose: C
518
+ expose: y
510
519
  }) {
511
520
  return () => null;
512
521
  }
513
- }), Be = () => ({
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
- }), De = /* @__PURE__ */ x({
530
+ }), Ne = /* @__PURE__ */ x({
522
531
  name: "OPagetableColumnString",
523
532
  inheritAttrs: !1,
524
- props: Be(),
533
+ props: ke(),
525
534
  setup(o, {
526
535
  slots: c,
527
- attrs: y,
536
+ attrs: C,
528
537
  emit: s,
529
- expose: C
538
+ expose: y
530
539
  }) {
531
540
  return () => null;
532
541
  }
533
- }), Re = () => ({
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
- }), ke = /* @__PURE__ */ x({
550
+ }), Ie = /* @__PURE__ */ x({
542
551
  name: "OPagetableColumnLink",
543
552
  inheritAttrs: !1,
544
- props: Re(),
553
+ props: _e(),
545
554
  setup(o, {
546
555
  slots: c,
547
- attrs: y,
556
+ attrs: C,
548
557
  emit: s,
549
- expose: C
558
+ expose: y
550
559
  }) {
551
560
  return () => null;
552
561
  }
553
- }), Te = () => ({
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: R(!0),
562
- precision: fe(-1),
563
- percentage: R(!1)
564
- }), Ne = /* @__PURE__ */ x({
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: Te(),
576
+ props: ze(),
568
577
  setup(o, {
569
578
  slots: c,
570
- attrs: y,
579
+ attrs: C,
571
580
  emit: s,
572
- expose: C
581
+ expose: y
573
582
  }) {
574
583
  return () => null;
575
584
  }
576
- }), _e = () => ({
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
- }), Ie = /* @__PURE__ */ x({
596
+ }), $e = /* @__PURE__ */ x({
588
597
  name: "OPagetableColumnDate",
589
598
  inheritAttrs: !1,
590
- props: _e(),
599
+ props: je(),
591
600
  setup(o, {
592
601
  slots: c,
593
- attrs: y,
602
+ attrs: C,
594
603
  emit: s,
595
- expose: C
604
+ expose: y
596
605
  }) {
597
606
  return () => null;
598
607
  }
599
- }), Me = () => ({
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
- }), je = /* @__PURE__ */ x({
617
+ }), Ee = /* @__PURE__ */ x({
609
618
  name: "OPagetableColumnSingleselect",
610
619
  inheritAttrs: !1,
611
- props: Me(),
620
+ props: Ve(),
612
621
  setup(o, {
613
622
  slots: c,
614
- attrs: y,
623
+ attrs: C,
615
624
  emit: s,
616
- expose: C
625
+ expose: y
617
626
  }) {
618
627
  return () => null;
619
628
  }
620
- }), ze = () => ({
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
- }), $e = /* @__PURE__ */ x({
638
+ }), Ye = /* @__PURE__ */ x({
630
639
  name: "OPagetableColumnMultiselect",
631
640
  inheritAttrs: !1,
632
- props: ze(),
641
+ props: Le(),
633
642
  setup(o, {
634
643
  slots: c,
635
- attrs: y,
644
+ attrs: C,
636
645
  emit: s,
637
- expose: C
646
+ expose: y
638
647
  }) {
639
648
  return () => null;
640
649
  }
641
- }), Ve = () => ({
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
- }), Ee = /* @__PURE__ */ x({
658
+ }), He = /* @__PURE__ */ x({
650
659
  name: "OPagetableColumnButtongroup",
651
660
  inheritAttrs: !1,
652
- props: Ve(),
661
+ props: Fe(),
653
662
  slots: Object,
654
663
  setup(o, {
655
664
  slots: c,
656
- attrs: y,
665
+ attrs: C,
657
666
  emit: s,
658
- expose: C
667
+ expose: y
659
668
  }) {
660
669
  return () => null;
661
670
  }
662
671
  });
663
- function Le(o) {
664
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !U(o);
672
+ function Je(o) {
673
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !J(o);
665
674
  }
666
- const Ye = () => ({
675
+ const Ue = () => ({
667
676
  type: n()
668
- }), Fe = /* @__PURE__ */ x({
677
+ }), qe = /* @__PURE__ */ x({
669
678
  name: "OPagetableCellButton",
670
679
  inheritAttrs: !1,
671
- props: Ye(),
680
+ props: Ue(),
672
681
  emits: ["click"],
673
682
  setup(o, {
674
683
  slots: c,
675
- attrs: y,
684
+ attrs: C,
676
685
  emit: s,
677
- expose: C
686
+ expose: y
678
687
  }) {
679
- const v = (k) => {
680
- s("click", k);
688
+ const v = (T) => {
689
+ s("click", T);
681
690
  };
682
691
  return () => {
683
692
  var _;
684
693
  const {
685
- type: k
686
- } = o, B = (_ = c.default) == null ? void 0 : _.call(c);
687
- return a(de, {
694
+ type: T
695
+ } = o, D = (_ = c.default) == null ? void 0 : _.call(c);
696
+ return a(we, {
688
697
  link: !0,
689
- type: k,
698
+ type: T,
690
699
  size: "small",
691
700
  onClick: v
692
- }, Le(B) ? B : {
693
- default: () => [B]
701
+ }, Je(D) ? D : {
702
+ default: () => [D]
694
703
  });
695
704
  };
696
705
  }
697
- }), He = () => ({
706
+ }), Ge = () => ({
698
707
  head: n(),
699
708
  headAlign: n()
700
- }), Ue = /* @__PURE__ */ x({
709
+ }), Ke = /* @__PURE__ */ x({
701
710
  name: "OPagetableColumngroup",
702
711
  inheritAttrs: !1,
703
- props: He(),
712
+ props: Ge(),
704
713
  setup(o, {
705
714
  slots: c,
706
- attrs: y,
715
+ attrs: C,
707
716
  emit: s,
708
- expose: C
717
+ expose: y
709
718
  }) {
710
719
  return () => null;
711
720
  }
712
- }), qe = () => ({
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
- }), Ge = /* @__PURE__ */ x({
728
+ }), We = /* @__PURE__ */ x({
720
729
  name: "OPagetableColumnDiy",
721
730
  inheritAttrs: !1,
722
- props: qe(),
731
+ props: Qe(),
723
732
  slots: Object,
724
733
  setup(o, {
725
734
  slots: c,
726
- attrs: y,
735
+ attrs: C,
727
736
  emit: s,
728
- expose: C
737
+ expose: y
729
738
  }) {
730
739
  return () => null;
731
740
  }
732
- }), dt = ue(Pe, {
733
- PagetableColumnIndex: Oe,
734
- PagetableColumnString: De,
735
- PagetableColumnLink: ke,
736
- PagetableColumnNumber: Ne,
737
- PagetableColumnDate: Ie,
738
- PagetableColumnSingleselect: je,
739
- PagetableColumnMultiselect: $e,
740
- PagetableColumnButtongroup: Ee,
741
- PagetableCellButton: Fe,
742
- PagetableColumngroup: Ue,
743
- PagetableColumnDiy: Ge
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
- dt as default
755
+ ht as default
747
756
  };
748
757
  //# sourceMappingURL=index.js.map