orion-design 0.1.9 → 0.1.12

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