orion-design 0.1.53 → 0.1.55

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