orion-design 0.1.9 → 0.1.10

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