orion-design 0.1.28 → 0.1.29

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.
Files changed (30) hide show
  1. package/dist/components/Form/index.js +308 -306
  2. package/dist/components/Form/index.js.map +1 -1
  3. package/dist/components/LovTable/LovPagetable.vue.d.ts +16 -0
  4. package/dist/components/LovTable/index.d.ts +8 -0
  5. package/dist/components/Pagetable/Pagetable.d.ts +7 -0
  6. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +75 -0
  7. package/dist/components/Pagetable/hooks/useColumns.js +6 -6
  8. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  9. package/dist/components/Pagetable/index.d.ts +7 -0
  10. package/dist/components/Pagetable/index.js +297 -243
  11. package/dist/components/Pagetable/index.js.map +1 -1
  12. package/dist/components/Pagetable/interface.d.ts +1 -0
  13. package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +75 -0
  14. package/dist/components/Querytable/hooks/useColumns.js +6 -6
  15. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  16. package/dist/components/Querytable/index.d.ts +2 -0
  17. package/dist/components/Querytable/index.js +227 -180
  18. package/dist/components/Querytable/index.js.map +1 -1
  19. package/dist/components/components.js +1 -1
  20. package/dist/components/index.js +2 -2
  21. package/dist/components-J6-qau6Y.js +73 -0
  22. package/dist/components-J6-qau6Y.js.map +1 -0
  23. package/dist/index.css +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/version/version.d.ts +1 -1
  26. package/dist/version/version.js +1 -1
  27. package/dist/version/version.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/components-0PErqPHo.js +0 -72
  30. package/dist/components-0PErqPHo.js.map +0 -1
@@ -1,37 +1,37 @@
1
1
  import "lodash-es";
2
- import { defineComponent as C, ref as X, computed as Z, createVNode as o, createTextVNode as ee, isVNode as V } from "vue";
3
- import { withInstall as te } from "../_util/vue/install.js";
4
- import { ElTable as le, ElPagination as ne, ElTableColumn as S, ElButton as oe } from "element-plus";
5
- import re from "../_util/classNames.js";
6
- import { arrayType as ae, objectType as se, booleanType as T, stringType as l, someType as p, numberType as ie } from "../_util/type.js";
7
- import { number2string as ue, formatDate as j, getSingleCodeContent as M, getMultiCodeContent as z } from "./utils/index.js";
8
- import pe from "dayjs";
9
- import { S as ce } from "../../index-BbsXWo7C.js";
10
- import de from "../../error/OrionError.js";
11
- import ge from "./hooks/useColumns.js";
2
+ import { defineComponent as C, ref as Z, computed as ee, createVNode as l, createTextVNode as te, isVNode as V } from "vue";
3
+ import { withInstall as ne } from "../_util/vue/install.js";
4
+ import { ElTable as le, ElPagination as oe, ElTableColumn as S, ElButton as re } from "element-plus";
5
+ import ae from "../_util/classNames.js";
6
+ import { arrayType as ie, objectType as se, booleanType as D, stringType as n, someType as p, numberType as ue } from "../_util/type.js";
7
+ import { number2string as pe, formatDate as z, getSingleCodeContent as j, getMultiCodeContent as M } from "./utils/index.js";
8
+ import ce from "dayjs";
9
+ import { S as de } from "../../index-BbsXWo7C.js";
10
+ import ge from "../../error/OrionError.js";
11
+ import me from "./hooks/useColumns.js";
12
12
  import I from "../../Throne/index.js";
13
- function me(n) {
14
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !V(n);
13
+ function he(o) {
14
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !V(o);
15
15
  }
16
- const he = () => ({
17
- data: ae(),
16
+ const fe = () => ({
17
+ data: ie(),
18
18
  pagination: se(),
19
- showRowNumber: T(!0),
20
- selectionMode: T(!1),
21
- currentRowMode: T(!1),
22
- size: l()
23
- }), fe = /* @__PURE__ */ C({
19
+ showRowNumber: D(!0),
20
+ selectionMode: D(!1),
21
+ currentRowMode: D(!1),
22
+ size: n()
23
+ }), be = /* @__PURE__ */ C({
24
24
  name: "OPagetable",
25
25
  inheritAttrs: !1,
26
- props: he(),
26
+ props: fe(),
27
27
  emits: ["selectionChange", "currentRowChange", "update:pagination", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
28
- setup(n, {
29
- slots: d,
30
- attrs: b,
31
- emit: i,
28
+ setup(o, {
29
+ slots: g,
30
+ attrs: h,
31
+ emit: s,
32
32
  expose: w
33
33
  }) {
34
- const y = X(), B = Z(() => ({})), D = ge(d);
34
+ const y = Z(), B = ee(() => ({})), k = me(g);
35
35
  return w({
36
36
  clearSelection: () => {
37
37
  y.value.clearSelection();
@@ -44,24 +44,24 @@ const he = () => ({
44
44
  }), () => {
45
45
  const {
46
46
  data: O
47
- } = n, {
47
+ } = o, {
48
48
  selectionMode: E = !1
49
- } = n, {
49
+ } = o, {
50
50
  pagination: v
51
- } = n, {
52
- showRowNumber: $ = !0
53
- } = n, {
54
- currentRowMode: Y = !1
55
- } = n, {
56
- size: k = "default"
57
- } = n, F = re("orion-pagetbale"), H = () => o(S, {
51
+ } = o, {
52
+ showRowNumber: L = !0
53
+ } = o, {
54
+ currentRowMode: $ = !1
55
+ } = o, {
56
+ size: R = "default"
57
+ } = o, Y = ae("orion-pagetbale"), F = () => l(S, {
58
58
  type: "index",
59
59
  label: "No",
60
60
  width: 56,
61
61
  fixed: "left",
62
62
  showOverflowTooltip: !0,
63
63
  index: (t) => (v.currentPage - 1) * v.pageSize + t + 1
64
- }, null), _ = () => o(S, {
64
+ }, null), H = () => l(S, {
65
65
  type: "selection",
66
66
  width: 40,
67
67
  fixed: "left"
@@ -69,100 +69,126 @@ const he = () => ({
69
69
  const {
70
70
  name: e,
71
71
  head: r,
72
- headAlign: s,
73
- width: g,
72
+ headAlign: i,
73
+ width: d,
74
74
  fixed: m
75
75
  } = t;
76
- return o(S, {
76
+ return l(S, {
77
77
  label: r,
78
- headerAlign: s,
78
+ headerAlign: i,
79
79
  prop: e,
80
- width: g,
80
+ width: d,
81
81
  fixed: m,
82
82
  showOverflowTooltip: !0
83
83
  }, null);
84
+ }, _ = (t) => {
85
+ const {
86
+ name: e,
87
+ head: r,
88
+ headAlign: i,
89
+ width: d,
90
+ fixed: m
91
+ } = t;
92
+ return l(S, {
93
+ label: r,
94
+ headerAlign: i,
95
+ prop: e,
96
+ width: d,
97
+ fixed: m,
98
+ showOverflowTooltip: !0
99
+ }, {
100
+ default: (a) => {
101
+ const {
102
+ row: c,
103
+ column: u
104
+ } = a;
105
+ return l("span", {
106
+ class: "cell-linkcolumn"
107
+ }, [c[u.property]]);
108
+ }
109
+ });
84
110
  }, q = (t) => {
85
111
  const {
86
112
  name: e,
87
113
  head: r,
88
- headAlign: s,
89
- width: g,
114
+ headAlign: i,
115
+ width: d,
90
116
  fixed: m
91
117
  } = t, {
92
118
  thousandsSeparator: a = !0,
93
119
  precision: c = -1,
94
120
  percentage: u = !1
95
121
  } = t;
96
- return o(S, {
122
+ return l(S, {
97
123
  label: r,
98
- headerAlign: s,
124
+ headerAlign: i,
99
125
  align: "right",
100
126
  prop: e,
101
- width: g,
127
+ width: d,
102
128
  fixed: m,
103
129
  showOverflowTooltip: !0
104
130
  }, {
105
- default: (h) => {
131
+ default: (f) => {
106
132
  const {
107
133
  row: P,
108
- column: f
109
- } = h;
110
- return o("span", {
134
+ column: b
135
+ } = f;
136
+ return l("span", {
111
137
  class: "cell-numbercolumn"
112
- }, [ue(P[f.property], a, c, u === !0 || u === "")]);
138
+ }, [pe(P[b.property], a, c, u === !0 || u === "")]);
113
139
  }
114
140
  });
115
141
  }, G = (t) => {
116
142
  const {
117
143
  name: e,
118
144
  head: r,
119
- headAlign: s,
120
- width: g,
145
+ headAlign: i,
146
+ width: d,
121
147
  fixed: m,
122
148
  sourceFormat: a,
123
149
  format: c = "YYYYMMDDHHmmss"
124
150
  } = t;
125
- return o(S, {
151
+ return l(S, {
126
152
  label: r,
127
- headerAlign: s,
153
+ headerAlign: i,
128
154
  prop: e,
129
- width: g,
155
+ width: d,
130
156
  fixed: m,
131
157
  showOverflowTooltip: !0
132
158
  }, {
133
159
  default: (u) => {
134
160
  const {
135
- row: h,
161
+ row: f,
136
162
  column: P
137
- } = u, f = h[P.property];
138
- return f instanceof Date || pe.isDayjs(f) ? o("div", null, [j(f, c)]) : a && c ? o("div", null, [j(f, a, c)]) : o("div", null, [f]);
163
+ } = u, b = f[P.property];
164
+ return b instanceof Date || ce.isDayjs(b) ? l("div", null, [z(b, c)]) : a && c ? l("div", null, [z(b, a, c)]) : l("div", null, [b]);
139
165
  }
140
166
  });
141
167
  }, J = (t) => {
142
168
  const {
143
169
  name: e,
144
170
  head: r,
145
- headAlign: s,
146
- width: g,
171
+ headAlign: i,
172
+ width: d,
147
173
  fixed: m
148
174
  } = t, {
149
175
  code: a
150
176
  } = t;
151
- return o(S, {
177
+ return l(S, {
152
178
  label: r,
153
- headerAlign: s,
179
+ headerAlign: i,
154
180
  prop: e,
155
- width: g,
181
+ width: d,
156
182
  fixed: m,
157
183
  showOverflowTooltip: !0
158
184
  }, {
159
185
  default: (c) => {
160
186
  const {
161
187
  row: u,
162
- column: h
163
- } = c, P = u[h.property];
164
- let f, x, A;
165
- return a ? typeof a == "string" ? (f = a, x = I.getCode(f), A = M(x.value, P)) : (x = a, A = M(x, P)) : A = null, o("span", {
188
+ column: f
189
+ } = c, P = u[f.property];
190
+ let b, x, A;
191
+ return a ? typeof a == "string" ? (b = a, x = I.getCode(b), A = j(x.value, P)) : (x = a, A = j(x, P)) : A = null, l("span", {
166
192
  class: "cell-singleselect"
167
193
  }, [A]);
168
194
  }
@@ -171,103 +197,105 @@ const he = () => ({
171
197
  const {
172
198
  name: e,
173
199
  head: r,
174
- headAlign: s,
175
- width: g,
200
+ headAlign: i,
201
+ width: d,
176
202
  fixed: m
177
203
  } = t, {
178
204
  code: a
179
205
  } = t;
180
- return o(S, {
206
+ return l(S, {
181
207
  label: r,
182
- headerAlign: s,
208
+ headerAlign: i,
183
209
  prop: e,
184
- width: g,
210
+ width: d,
185
211
  fixed: m,
186
212
  showOverflowTooltip: !0
187
213
  }, {
188
214
  default: (c) => {
189
215
  const {
190
216
  row: u,
191
- column: h
192
- } = c, P = u[h.property];
193
- let f, x, A;
194
- return a ? typeof a == "string" ? (f = a, x = I.getCode(f), A = z(x.value, P)) : (x = a, A = z(x, P)) : A = null, o("span", {
217
+ column: f
218
+ } = c, P = u[f.property];
219
+ let b, x, A;
220
+ return a ? typeof a == "string" ? (b = a, x = I.getCode(b), A = M(x.value, P)) : (x = a, A = M(x, P)) : A = null, l("span", {
195
221
  class: "cell-multiselect"
196
222
  }, [A]);
197
223
  }
198
224
  });
199
- }, L = (t) => {
225
+ }, Q = (t) => {
200
226
  const {
201
227
  name: e,
202
228
  head: r,
203
- headAlign: s,
204
- width: g,
229
+ headAlign: i,
230
+ width: d,
205
231
  fixed: m
206
232
  } = t;
207
- return o(S, {
233
+ return l(S, {
208
234
  label: r,
209
- headerAlign: s,
235
+ headerAlign: i,
210
236
  prop: e,
211
- width: g,
237
+ width: d,
212
238
  fixed: m
213
239
  }, {
214
240
  default: (a) => {
215
- var u, h;
216
- const c = (h = (u = t.children) == null ? void 0 : u.default) == null ? void 0 : h.call(u, {
241
+ var u, f;
242
+ const c = (f = (u = t.children) == null ? void 0 : u.default) == null ? void 0 : f.call(u, {
217
243
  rowData: a.row,
218
244
  column: t,
219
245
  rowIndex: a.$index
220
246
  });
221
- return o("div", {
247
+ return l("div", {
222
248
  class: "cell-buttongroup"
223
- }, [o(ce, null, me(c) ? c : {
249
+ }, [l(de, null, he(c) ? c : {
224
250
  default: () => [c]
225
251
  })]);
226
252
  }
227
253
  });
228
- }, Q = (t) => {
254
+ }, W = (t) => {
229
255
  const {
230
256
  head: e,
231
257
  headAlign: r
232
258
  } = t, {
233
- children: s
259
+ children: i
234
260
  } = t;
235
- return o(S, {
261
+ return l(S, {
236
262
  label: e,
237
263
  headerAlign: r
238
264
  }, {
239
- default: (g) => N(s)
265
+ default: (d) => N(i)
240
266
  });
241
- }, W = (t) => {
267
+ }, X = (t) => {
242
268
  const {
243
269
  name: e,
244
270
  head: r,
245
- headAlign: s,
246
- width: g,
271
+ headAlign: i,
272
+ width: d,
247
273
  fixed: m
248
274
  } = t;
249
- return o(S, {
275
+ return l(S, {
250
276
  label: r,
251
- headerAlign: s,
277
+ headerAlign: i,
252
278
  prop: e,
253
- width: g,
279
+ width: d,
254
280
  fixed: m
255
281
  }, {
256
282
  default: (a) => {
257
- var u, h;
258
- const c = (h = (u = t.children) == null ? void 0 : u.default) == null ? void 0 : h.call(u, {
283
+ var u, f;
284
+ const c = (f = (u = t.children) == null ? void 0 : u.default) == null ? void 0 : f.call(u, {
259
285
  rowData: a.row,
260
286
  column: t,
261
287
  rowIndex: a.$index
262
288
  });
263
- return o("div", {
289
+ return l("div", {
264
290
  class: "cell-diy"
265
- }, [c, ee(" ")]);
291
+ }, [c, te(" ")]);
266
292
  }
267
293
  });
268
294
  }, N = (t) => t == null ? void 0 : t.map((e) => {
269
295
  if (e.type === "OPagetableColumnString")
270
296
  return U(e);
297
+ if (e.type === "OPagetableColumnLink")
298
+ return _(e);
271
299
  if (e.type === "OPagetableColumnNumber")
272
300
  return q(e);
273
301
  if (e.type === "OPagetableColumnDate")
@@ -277,19 +305,19 @@ const he = () => ({
277
305
  if (e.type === "OPagetableColumnMultiselect")
278
306
  return K(e);
279
307
  if (e.type === "OPagetableColumnButtongroup")
280
- return L(e);
281
- if (e.type === "OPagetableColumngroup")
282
308
  return Q(e);
283
- if (e.type === "OPagetableColumnDiy")
309
+ if (e.type === "OPagetableColumngroup")
284
310
  return W(e);
285
- throw new de(`OPagetable不能正确渲染'${e.type.name}'子组件。`);
311
+ if (e.type === "OPagetableColumnDiy")
312
+ return X(e);
313
+ throw new ge(`OPagetable不能正确渲染'${e.type.name}'子组件。`);
286
314
  });
287
- return o("div", {
288
- class: [F, b.class],
289
- style: [B.value, b.style]
290
- }, [o("div", {
315
+ return l("div", {
316
+ class: [Y, h.class],
317
+ style: [B.value, h.style]
318
+ }, [l("div", {
291
319
  class: "pagetable-wrapper"
292
- }, [o(le, {
320
+ }, [l(le, {
293
321
  border: !0,
294
322
  ref: y,
295
323
  data: O,
@@ -297,256 +325,282 @@ const he = () => ({
297
325
  style: {
298
326
  width: "100%"
299
327
  },
300
- "onSelection-change": (t) => i("selectionChange", t),
301
- "highlight-current-row": Y,
302
- "onCurrent-change": (t, e) => i("currentRowChange", t, e),
303
- "onRow-click": (t, e, r) => i("rowClick", t, {
328
+ "onSelection-change": (t) => s("selectionChange", t),
329
+ "highlight-current-row": $,
330
+ "onCurrent-change": (t, e) => s("currentRowChange", t, e),
331
+ "onRow-click": (t, e, r) => s("rowClick", t, {
304
332
  name: e.property,
305
333
  head: e.label
306
334
  }, r),
307
- "onRow-dblclick": (t, e, r) => i("rowDblclick", t, {
335
+ "onRow-dblclick": (t, e, r) => s("rowDblclick", t, {
308
336
  name: e.property,
309
337
  head: e.label
310
338
  }, r),
311
- "onCell-click": (t, e, r, s) => i("cellClick", t, {
339
+ "onCell-click": (t, e, r, i) => s("cellClick", t, {
312
340
  name: e.property,
313
341
  head: e.label
314
- }, r, s),
315
- "onCell-dblclick": (t, e, r, s) => i("cellDblclick", t, {
342
+ }, r, i),
343
+ "onCell-dblclick": (t, e, r, i) => s("cellDblclick", t, {
316
344
  name: e.property,
317
345
  head: e.label
318
- }, r, s),
319
- size: k
346
+ }, r, i),
347
+ size: R
320
348
  }, {
321
- default: () => [$ && H(), E && _(), N(D.value)]
322
- })]), o("div", {
349
+ default: () => [L && F(), E && H(), N(k.value)]
350
+ })]), l("div", {
323
351
  class: "pagination-wrapper"
324
- }, [o(ne, {
352
+ }, [l(oe, {
325
353
  currentPage: v.currentPage,
326
354
  "onUpdate:current-page": (t) => {
327
- i("update:pagination", {
355
+ s("update:pagination", {
328
356
  ...v,
329
357
  currentPage: t
330
358
  });
331
359
  },
332
360
  pageSize: v.pageSize,
361
+ pageSizes: v.pageSizes,
362
+ "onUpdate:page-size": (t) => {
363
+ s("update:pagination", {
364
+ ...v,
365
+ pageSize: t
366
+ });
367
+ },
333
368
  total: v.total,
334
- layout: "total, ->, prev, pager, next, jumper",
335
- size: k
369
+ layout: "total, ->, sizes, prev, pager, next, jumper",
370
+ size: R
336
371
  }, null)])]);
337
372
  };
338
373
  }
339
- }), be = () => ({}), we = /* @__PURE__ */ C({
374
+ }), we = () => ({}), Ce = /* @__PURE__ */ C({
340
375
  name: "OPagetableColumnIndex",
341
376
  inheritAttrs: !1,
342
- props: be(),
343
- setup(n, {
344
- slots: d,
345
- attrs: b,
346
- emit: i,
377
+ props: we(),
378
+ setup(o, {
379
+ slots: g,
380
+ attrs: h,
381
+ emit: s,
347
382
  expose: w
348
383
  }) {
349
384
  return () => null;
350
385
  }
351
- }), Ce = () => ({
352
- head: l(),
353
- headAlign: l(),
354
- name: l(),
386
+ }), Se = () => ({
387
+ head: n(),
388
+ headAlign: n(),
389
+ name: n(),
355
390
  width: p([Boolean, String]),
356
391
  fixed: p([Boolean, String])
357
- }), Se = /* @__PURE__ */ C({
392
+ }), ye = /* @__PURE__ */ C({
358
393
  name: "OPagetableColumnString",
359
394
  inheritAttrs: !1,
360
- props: Ce(),
361
- setup(n, {
362
- slots: d,
363
- attrs: b,
364
- emit: i,
395
+ props: Se(),
396
+ setup(o, {
397
+ slots: g,
398
+ attrs: h,
399
+ emit: s,
400
+ expose: w
401
+ }) {
402
+ return () => null;
403
+ }
404
+ }), Pe = () => ({
405
+ head: n(),
406
+ headAlign: n(),
407
+ name: n(),
408
+ width: p([Boolean, String]),
409
+ fixed: p([Boolean, String])
410
+ }), xe = /* @__PURE__ */ C({
411
+ name: "OPagetableColumnLink",
412
+ inheritAttrs: !1,
413
+ props: Pe(),
414
+ setup(o, {
415
+ slots: g,
416
+ attrs: h,
417
+ emit: s,
365
418
  expose: w
366
419
  }) {
367
420
  return () => null;
368
421
  }
369
- }), ye = () => ({
370
- head: l(),
371
- headAlign: l(),
372
- name: l(),
422
+ }), Ae = () => ({
423
+ head: n(),
424
+ headAlign: n(),
425
+ name: n(),
373
426
  width: p([Boolean, String]),
374
427
  fixed: p([Boolean, String]),
375
- thousandsSeparator: T(!0),
376
- precision: ie(-1),
377
- percentage: T(!1)
378
- }), Pe = /* @__PURE__ */ C({
428
+ thousandsSeparator: D(!0),
429
+ precision: ue(-1),
430
+ percentage: D(!1)
431
+ }), Oe = /* @__PURE__ */ C({
379
432
  name: "OPagetableColumnNumber",
380
433
  inheritAttrs: !1,
381
- props: ye(),
382
- setup(n, {
383
- slots: d,
384
- attrs: b,
385
- emit: i,
434
+ props: Ae(),
435
+ setup(o, {
436
+ slots: g,
437
+ attrs: h,
438
+ emit: s,
386
439
  expose: w
387
440
  }) {
388
441
  return () => null;
389
442
  }
390
- }), xe = () => ({
391
- head: l(),
392
- headAlign: l(),
393
- name: l(),
443
+ }), ve = () => ({
444
+ head: n(),
445
+ headAlign: n(),
446
+ name: n(),
394
447
  width: p([Boolean, String]),
395
448
  fixed: p([Boolean, String]),
396
449
  // Date
397
- format: l(),
398
- sourceFormat: l()
399
- }), Ae = /* @__PURE__ */ C({
450
+ format: n(),
451
+ sourceFormat: n()
452
+ }), Be = /* @__PURE__ */ C({
400
453
  name: "OPagetableColumnDate",
401
454
  inheritAttrs: !1,
402
- props: xe(),
403
- setup(n, {
404
- slots: d,
405
- attrs: b,
406
- emit: i,
455
+ props: ve(),
456
+ setup(o, {
457
+ slots: g,
458
+ attrs: h,
459
+ emit: s,
407
460
  expose: w
408
461
  }) {
409
462
  return () => null;
410
463
  }
411
- }), Oe = () => ({
412
- head: l(),
413
- headAlign: l(),
414
- name: l(),
464
+ }), ke = () => ({
465
+ head: n(),
466
+ headAlign: n(),
467
+ name: n(),
415
468
  width: p([Boolean, String]),
416
469
  fixed: p([Boolean, String]),
417
470
  code: p([String, Array])
418
- }), ve = /* @__PURE__ */ C({
471
+ }), De = /* @__PURE__ */ C({
419
472
  name: "OPagetableColumnSingleselect",
420
473
  inheritAttrs: !1,
421
- props: Oe(),
422
- setup(n, {
423
- slots: d,
424
- attrs: b,
425
- emit: i,
474
+ props: ke(),
475
+ setup(o, {
476
+ slots: g,
477
+ attrs: h,
478
+ emit: s,
426
479
  expose: w
427
480
  }) {
428
481
  return () => null;
429
482
  }
430
- }), Be = () => ({
431
- head: l(),
432
- headAlign: l(),
433
- name: l(),
483
+ }), Te = () => ({
484
+ head: n(),
485
+ headAlign: n(),
486
+ name: n(),
434
487
  width: p([Boolean, String]),
435
488
  fixed: p([Boolean, String]),
436
489
  code: p([String, Array])
437
- }), De = /* @__PURE__ */ C({
490
+ }), Re = /* @__PURE__ */ C({
438
491
  name: "OPagetableColumnMultiselect",
439
492
  inheritAttrs: !1,
440
- props: Be(),
441
- setup(n, {
442
- slots: d,
443
- attrs: b,
444
- emit: i,
493
+ props: Te(),
494
+ setup(o, {
495
+ slots: g,
496
+ attrs: h,
497
+ emit: s,
445
498
  expose: w
446
499
  }) {
447
500
  return () => null;
448
501
  }
449
- }), Te = () => ({
450
- head: l(),
451
- headAlign: l(),
452
- name: l(),
502
+ }), Ne = () => ({
503
+ head: n(),
504
+ headAlign: n(),
505
+ name: n(),
453
506
  width: p([Boolean, String]),
454
507
  fixed: p([Boolean, String])
455
- }), Re = /* @__PURE__ */ C({
508
+ }), ze = /* @__PURE__ */ C({
456
509
  name: "OPagetableColumnButtongroup",
457
510
  inheritAttrs: !1,
458
- props: Te(),
511
+ props: Ne(),
459
512
  slots: Object,
460
- setup(n, {
461
- slots: d,
462
- attrs: b,
463
- emit: i,
513
+ setup(o, {
514
+ slots: g,
515
+ attrs: h,
516
+ emit: s,
464
517
  expose: w
465
518
  }) {
466
519
  return () => null;
467
520
  }
468
521
  });
469
- function ke(n) {
470
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !V(n);
522
+ function je(o) {
523
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !V(o);
471
524
  }
472
- const Ne = () => ({
473
- type: l()
474
- }), je = /* @__PURE__ */ C({
525
+ const Me = () => ({
526
+ type: n()
527
+ }), Ie = /* @__PURE__ */ C({
475
528
  name: "OPagetableCellButton",
476
529
  inheritAttrs: !1,
477
- props: Ne(),
530
+ props: Me(),
478
531
  emits: ["click"],
479
- setup(n, {
480
- slots: d,
481
- attrs: b,
482
- emit: i,
532
+ setup(o, {
533
+ slots: g,
534
+ attrs: h,
535
+ emit: s,
483
536
  expose: w
484
537
  }) {
485
538
  const y = (B) => {
486
- i("click", B);
539
+ s("click", B);
487
540
  };
488
541
  return () => {
489
- var R;
542
+ var T;
490
543
  const {
491
544
  type: B
492
- } = n, D = (R = d.default) == null ? void 0 : R.call(d);
493
- return o(oe, {
545
+ } = o, k = (T = g.default) == null ? void 0 : T.call(g);
546
+ return l(re, {
494
547
  link: !0,
495
548
  type: B,
496
549
  size: "small",
497
550
  onClick: y
498
- }, ke(D) ? D : {
499
- default: () => [D]
551
+ }, je(k) ? k : {
552
+ default: () => [k]
500
553
  });
501
554
  };
502
555
  }
503
- }), Me = () => ({
504
- head: l(),
505
- headAlign: l()
506
- }), ze = /* @__PURE__ */ C({
556
+ }), Ve = () => ({
557
+ head: n(),
558
+ headAlign: n()
559
+ }), Ee = /* @__PURE__ */ C({
507
560
  name: "OPagetableColumngroup",
508
561
  inheritAttrs: !1,
509
- props: Me(),
510
- setup(n, {
511
- slots: d,
512
- attrs: b,
513
- emit: i,
562
+ props: Ve(),
563
+ setup(o, {
564
+ slots: g,
565
+ attrs: h,
566
+ emit: s,
514
567
  expose: w
515
568
  }) {
516
569
  return () => null;
517
570
  }
518
- }), Ie = () => ({
519
- head: l(),
520
- headAlign: l(),
521
- name: l(),
571
+ }), Le = () => ({
572
+ head: n(),
573
+ headAlign: n(),
574
+ name: n(),
522
575
  width: p([Boolean, String]),
523
576
  fixed: p([Boolean, String])
524
- }), Ve = /* @__PURE__ */ C({
577
+ }), $e = /* @__PURE__ */ C({
525
578
  name: "OPagetableColumnDiy",
526
579
  inheritAttrs: !1,
527
- props: Ie(),
580
+ props: Le(),
528
581
  slots: Object,
529
- setup(n, {
530
- slots: d,
531
- attrs: b,
532
- emit: i,
582
+ setup(o, {
583
+ slots: g,
584
+ attrs: h,
585
+ emit: s,
533
586
  expose: w
534
587
  }) {
535
588
  return () => null;
536
589
  }
537
- }), tt = te(fe, {
538
- PagetableColumnIndex: we,
539
- PagetableColumnString: Se,
540
- PagetableColumnNumber: Pe,
541
- PagetableColumnDate: Ae,
542
- PagetableColumnSingleselect: ve,
543
- PagetableColumnMultiselect: De,
544
- PagetableColumnButtongroup: Re,
545
- PagetableCellButton: je,
546
- PagetableColumngroup: ze,
547
- PagetableColumnDiy: Ve
590
+ }), ot = ne(be, {
591
+ PagetableColumnIndex: Ce,
592
+ PagetableColumnString: ye,
593
+ PagetableColumnLink: xe,
594
+ PagetableColumnNumber: Oe,
595
+ PagetableColumnDate: Be,
596
+ PagetableColumnSingleselect: De,
597
+ PagetableColumnMultiselect: Re,
598
+ PagetableColumnButtongroup: ze,
599
+ PagetableCellButton: Ie,
600
+ PagetableColumngroup: Ee,
601
+ PagetableColumnDiy: $e
548
602
  });
549
603
  export {
550
- tt as default
604
+ ot as default
551
605
  };
552
606
  //# sourceMappingURL=index.js.map