orion-design 0.1.5 → 0.1.6

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