orion-design 0.1.58 → 0.1.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/README.md +5 -5
  2. package/dist/Throne/hooks/use-throne-context.js.map +1 -1
  3. package/dist/components/Button/index.d.ts +2 -41
  4. package/dist/components/Button/index.js.map +1 -1
  5. package/dist/components/Card/index.d.ts +1 -3
  6. package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -101
  7. package/dist/components/Form/Form.vue.d.ts +2 -70
  8. package/dist/components/Form/LovInput/LovInput.vue.d.ts +10 -284
  9. package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +10 -284
  10. package/dist/components/Form/index.d.ts +2 -38
  11. package/dist/components/Form/index.js +27 -27
  12. package/dist/components/Icon/Icon.vue.d.ts +15 -1
  13. package/dist/components/Icon/index.d.ts +22 -4
  14. package/dist/components/Icon/index.js +24 -15
  15. package/dist/components/Icon/index.js.map +1 -1
  16. package/dist/components/LovTable/LovPagetable.vue.d.ts +2 -154
  17. package/dist/components/LovTable/LovQuerytable.vue.d.ts +2 -98
  18. package/dist/components/LovTable/index.d.ts +4 -139
  19. package/dist/components/Pagetable/hooks/useColumns.js +33 -29
  20. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  21. package/dist/components/Pagetable/index.js +347 -314
  22. package/dist/components/Pagetable/index.js.map +1 -1
  23. package/dist/components/Querytable/hooks/useColumns.js +12 -8
  24. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  25. package/dist/components/Querytable/index.js +276 -243
  26. package/dist/components/Querytable/index.js.map +1 -1
  27. package/dist/components/TableSelectPagetable/TableSelectPagetable.vue.d.ts +2 -154
  28. package/dist/components/TableSelectPagetable/index.d.ts +2 -82
  29. package/dist/components/TableSelectPagetable/index.js +7 -7
  30. package/dist/components/Tabs/index.js +2 -2
  31. package/dist/components/Tooltip/index.d.ts +8993 -0
  32. package/dist/components/Tooltip/index.js +12 -0
  33. package/dist/components/Tooltip/index.js.map +1 -0
  34. package/dist/components/Tree/Tree.vue.d.ts +2 -160
  35. package/dist/components/Tree/index.d.ts +2 -84
  36. package/dist/components/_util/dom/element.js +1 -1
  37. package/dist/components/_util/dom/style.js +1 -1
  38. package/dist/components/_util/error.js +1 -1
  39. package/dist/components/_util/functions.js +1 -1
  40. package/dist/components/_util/index.js +1 -1
  41. package/dist/components/_util/objects.js +1 -1
  42. package/dist/components/_util/strings.js +2 -2
  43. package/dist/components/_util/types.js +2 -2
  44. package/dist/components/_util/vue/icon.js +10 -10
  45. package/dist/components/_util/vue/install.js +1 -1
  46. package/dist/components/_util/vue/props/runtime.js +1 -1
  47. package/dist/components/_util/vue/refs.js +1 -1
  48. package/dist/components/_util/vue/vnode.js +1 -1
  49. package/dist/components/components.d.ts +1 -0
  50. package/dist/components/components.js +31 -29
  51. package/dist/components/components.js.map +1 -1
  52. package/dist/components/index.js +41 -39
  53. package/dist/components/index.js.map +1 -1
  54. package/dist/components-DqItbXAG.js +56 -0
  55. package/dist/components-DqItbXAG.js.map +1 -0
  56. package/dist/{functions-DzLqXvGt.js → functions-LOH6x_02.js} +2 -2
  57. package/dist/functions-LOH6x_02.js.map +1 -0
  58. package/dist/icon/index.d.ts +1 -0
  59. package/dist/icon/index.js +297 -0
  60. package/dist/icon/index.js.map +1 -0
  61. package/dist/index-CIR6wX_E.js +4885 -0
  62. package/dist/{index-Bm0F5NQQ.js.map → index-CIR6wX_E.js.map} +1 -1
  63. package/dist/index.js +46 -44
  64. package/dist/index.js.map +1 -1
  65. package/dist/utils/functions.js +1 -1
  66. package/dist/version/version.d.ts +1 -1
  67. package/dist/version/version.js +1 -1
  68. package/dist/version/version.js.map +1 -1
  69. package/package.json +1 -1
  70. package/dist/components-BZKLgLQx.js +0 -54
  71. package/dist/components-BZKLgLQx.js.map +0 -1
  72. package/dist/functions-DzLqXvGt.js.map +0 -1
  73. package/dist/index-Bm0F5NQQ.js +0 -224
@@ -1,17 +1,17 @@
1
1
  import "lodash-es";
2
- import { defineComponent as y, ref as ie, computed as j, createVNode as r, createTextVNode as ue, isVNode as E } from "vue";
2
+ import { defineComponent as C, ref as ie, computed as j, createVNode as i, createTextVNode as ue, isVNode as E } from "vue";
3
3
  import { withInstall as se } from "../_util/vue/install.js";
4
- import { ElTable as ge, ElTableColumn as S, ElPagination as ce, ElButton as pe } from "element-plus";
5
- import de from "../_antd_util/classNames.js";
6
- import { number2string as me, formatDate as $, getSingleCodeContent as fe, getMultiCodeContent as he } from "./utils/index.js";
4
+ import { ElTable as de, ElTableColumn as y, ElPagination as ge, ElButton as ce } from "element-plus";
5
+ import pe from "../_antd_util/classNames.js";
6
+ import { number2string as he, formatDate as $, getSingleCodeContent as fe, getMultiCodeContent as me } from "./utils/index.js";
7
7
  import be from "dayjs";
8
8
  import { S as we } from "../../index-CvcZkdiG.js";
9
9
  import F from "../../error/OrionError.js";
10
10
  import Se from "./hooks/useColumns.js";
11
11
  import V from "./hooks/useCode.js";
12
- import { default as pt } from "./hooks/usePagetable.js";
13
- function ye(l) {
14
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !E(l);
12
+ import { default as ct } from "./hooks/usePagetable.js";
13
+ function ye(o) {
14
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !E(o);
15
15
  }
16
16
  const Ce = () => ({
17
17
  data: Array,
@@ -51,354 +51,387 @@ const Ce = () => ({
51
51
  rowStyle: [Object, Function],
52
52
  cellClassName: [String, Function],
53
53
  cellStyle: [Object, Function]
54
- }), xe = /* @__PURE__ */ y({
54
+ }), xe = /* @__PURE__ */ C({
55
55
  name: "OPagetable",
56
56
  inheritAttrs: !1,
57
57
  props: Ce(),
58
58
  emits: ["selectionChange", "currentRowChange", "update:pagination", "paginationChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick", "select", "select-all"],
59
- setup(l, {
60
- slots: u,
61
- attrs: b,
62
- emit: a,
63
- expose: w
59
+ setup(o, {
60
+ slots: g,
61
+ attrs: w,
62
+ emit: s,
63
+ expose: S
64
64
  }) {
65
- const A = ie(), B = j(() => ({})), O = Se(u), R = j(() => {
66
- let p = [];
67
- l.showRowNumber && p.push({
65
+ const P = ie(), B = j(() => ({})), v = Se(g), R = j(() => {
66
+ let f = [];
67
+ o.showRowNumber && f.push({
68
68
  type: "__showRowNumber__"
69
- }), l.selectionMode && p.push({
69
+ }), o.selectionMode && f.push({
70
70
  type: "__selectionMode__"
71
71
  });
72
- function P(g) {
73
- if (g)
74
- for (let C = 0; C < g.length; C++) {
75
- const N = g[C];
76
- N.type === "OPagetableColumngroup" ? P(N.children) : p.push({
72
+ function O(p) {
73
+ if (p)
74
+ for (let x = 0; x < p.length; x++) {
75
+ const N = p[x];
76
+ N.type === "OPagetableColumngroup" ? O(N.children) : f.push({
77
77
  ...N
78
78
  });
79
79
  }
80
80
  }
81
- return P(O.value), p;
81
+ return O(v.value), f;
82
82
  }), L = j(() => {
83
- function p(P) {
84
- if (!P)
83
+ function f(O) {
84
+ if (!O)
85
85
  return !1;
86
- for (let g = 0; g < P.length; g++) {
87
- const C = P[g];
88
- if (C.type === "OPagetableColumngroup") {
89
- if (p(C.children))
86
+ for (let p = 0; p < O.length; p++) {
87
+ const x = O[p];
88
+ if (x.type === "OPagetableColumngroup") {
89
+ if (f(x.children))
90
90
  return !0;
91
- } else if (C.tail === "" || C.tail === !0 || C.tail)
91
+ } else if (x.tail === "" || x.tail === !0 || x.tail)
92
92
  return !0;
93
93
  }
94
94
  return !1;
95
95
  }
96
- return p(O.value);
96
+ return f(v.value);
97
97
  });
98
- return w({
98
+ return S({
99
99
  clearSelection: () => {
100
- A.value.clearSelection();
100
+ P.value.clearSelection();
101
101
  },
102
- getSelectionRows: () => A.value.getSelectionRows(),
103
- toggleRowSelection: (...p) => A.value.toggleRowSelection(...p),
104
- toggleAllSelection: () => A.value.toggleAllSelection(),
105
- setCurrentRow: (...p) => A.value.setCurrentRow(...p),
106
- scrollTo: (...p) => A.value.scrollTo(...p)
102
+ getSelectionRows: () => P.value.getSelectionRows(),
103
+ toggleRowSelection: (...f) => P.value.toggleRowSelection(...f),
104
+ toggleAllSelection: () => P.value.toggleAllSelection(),
105
+ setCurrentRow: (...f) => P.value.setCurrentRow(...f),
106
+ scrollTo: (...f) => P.value.scrollTo(...f)
107
107
  }), () => {
108
108
  const {
109
- data: p
110
- } = l, {
111
- selectionMode: P = !1
112
- } = l, {
113
- pagination: g,
114
- paginationTeleported: C,
109
+ data: f
110
+ } = o, {
111
+ selectionMode: O = !1
112
+ } = o, {
113
+ pagination: p,
114
+ paginationTeleported: x,
115
115
  paginationPagerCount: N,
116
116
  paginationShowTotal: Y,
117
117
  paginationShowSizes: H,
118
118
  paginationShowJumber: J
119
- } = l, {
119
+ } = o, {
120
120
  showRowNumber: U = !0
121
- } = l, {
121
+ } = o, {
122
122
  currentRowMode: q = !1
123
- } = l, {
123
+ } = o, {
124
124
  size: z = "default"
125
- } = l, {
125
+ } = o, {
126
126
  rowClassName: k,
127
127
  rowStyle: _,
128
128
  cellClassName: I,
129
129
  cellStyle: T
130
- } = l, G = (e) => {
131
- const t = j(() => l.tailData);
132
- return R.value.map((n) => {
133
- if (n.type === "__showRowNumber__")
130
+ } = o, G = (e) => {
131
+ const t = j(() => o.tailData);
132
+ return R.value.map((r) => {
133
+ if (r.type === "__showRowNumber__")
134
134
  return "Σ";
135
- if (n.type === "__selectionMode__" || !t.value)
135
+ if (r.type === "__selectionMode__" || !t.value)
136
136
  return;
137
- const o = n.name, i = n.tail;
138
- if (i != null && i !== !1)
139
- if (i === "" || i === !0) {
140
- if (t.value[o] != null)
141
- return t.value[o];
137
+ const u = r.name, d = r.tail;
138
+ if (d != null && d !== !1)
139
+ if (d === "" || d === !0) {
140
+ if (t.value[u] != null)
141
+ return t.value[u];
142
142
  } else {
143
- if (typeof i == "string")
144
- return i.replace("{}", t.value[o]);
145
- throw new F(`列[${o}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof i}]类型。`);
143
+ if (typeof d == "string")
144
+ return d.replace("{}", t.value[u]);
145
+ throw new F(`列[${u}]的tail属性配置错误,只能是 Boolean、String 类型,当前是[${typeof d}]类型。`);
146
146
  }
147
147
  });
148
- }, K = de("orion-pagetbale"), Q = () => r(S, {
148
+ }, K = pe("orion-pagetbale"), Q = () => i(y, {
149
149
  type: "index",
150
150
  label: "No",
151
151
  headerAlign: "center",
152
152
  align: "center",
153
153
  width: 56,
154
- fixed: u.expandedRowRender ? !1 : "left",
154
+ fixed: g.expandedRowRender ? !1 : "left",
155
155
  showOverflowTooltip: !0,
156
- index: (t) => (g.currentPage - 1) * g.pageSize + t + 1
157
- }, null), W = () => r(S, {
156
+ index: (t) => (p.currentPage - 1) * p.pageSize + t + 1
157
+ }, null), W = () => i(y, {
158
158
  type: "selection",
159
159
  headerAlign: "center",
160
160
  align: "center",
161
161
  width: 40,
162
- fixed: u.expandedRowRender ? !1 : "left"
162
+ fixed: g.expandedRowRender ? !1 : "left"
163
163
  }, null), X = (e) => {
164
164
  const {
165
165
  name: t,
166
- head: n,
167
- headAlign: o = "center",
168
- bodyAlign: i,
166
+ head: r,
167
+ headAlign: u = "center",
168
+ bodyAlign: d,
169
169
  width: m,
170
- fixed: d
170
+ fixed: c
171
171
  } = e;
172
- return r(S, {
173
- label: n,
174
- headerAlign: o,
175
- align: i,
172
+ return i(y, {
173
+ label: r,
174
+ headerAlign: u,
175
+ align: d,
176
176
  prop: t,
177
177
  width: m,
178
- fixed: d,
178
+ fixed: c,
179
179
  showOverflowTooltip: !0
180
- }, null);
180
+ }, {
181
+ header: () => {
182
+ var l, n;
183
+ return (n = (l = e.children) == null ? void 0 : l.head) == null ? void 0 : n.call(l);
184
+ }
185
+ });
181
186
  }, Z = (e) => {
182
187
  const {
183
188
  name: t,
184
- head: n,
185
- headAlign: o = "center",
186
- bodyAlign: i,
189
+ head: r,
190
+ headAlign: u = "center",
191
+ bodyAlign: d,
187
192
  width: m,
188
- fixed: d
193
+ fixed: c
189
194
  } = e;
190
- return r(S, {
191
- label: n,
192
- headerAlign: o,
193
- align: i,
195
+ return i(y, {
196
+ label: r,
197
+ headerAlign: u,
198
+ align: d,
194
199
  prop: t,
195
200
  width: m,
196
- fixed: d,
201
+ fixed: c,
197
202
  showOverflowTooltip: !0
198
203
  }, {
199
- default: (f) => {
204
+ default: (l) => {
200
205
  const {
201
- row: s,
202
- column: c
203
- } = f;
204
- return r("span", {
206
+ row: n,
207
+ column: a
208
+ } = l;
209
+ return i("span", {
205
210
  class: "cell-linkcolumn"
206
- }, [s[c.property]]);
211
+ }, [n[a.property]]);
212
+ },
213
+ header: () => {
214
+ var l, n;
215
+ return (n = (l = e.children) == null ? void 0 : l.head) == null ? void 0 : n.call(l);
207
216
  }
208
217
  });
209
218
  }, ee = (e) => {
210
219
  const {
211
220
  name: t,
212
- head: n,
213
- headAlign: o = "center",
214
- bodyAlign: i = "right",
221
+ head: r,
222
+ headAlign: u = "center",
223
+ bodyAlign: d = "right",
215
224
  width: m,
216
- fixed: d
225
+ fixed: c
217
226
  } = e, {
218
- thousandsSeparator: f = !0,
219
- precision: s = -1,
220
- percentage: c = !1
227
+ thousandsSeparator: l = !0,
228
+ precision: n = -1,
229
+ percentage: a = !1
221
230
  } = e;
222
- return r(S, {
223
- label: n,
224
- headerAlign: o,
225
- align: i,
231
+ return i(y, {
232
+ label: r,
233
+ headerAlign: u,
234
+ align: d,
226
235
  prop: t,
227
236
  width: m,
228
- fixed: d,
237
+ fixed: c,
229
238
  showOverflowTooltip: !0
230
239
  }, {
231
- default: (x) => {
240
+ default: (h) => {
232
241
  const {
233
- row: v,
234
- column: h
235
- } = x;
236
- return r("span", {
242
+ row: A,
243
+ column: b
244
+ } = h;
245
+ return i("span", {
237
246
  class: "cell-numbercolumn"
238
- }, [me(v[h.property], f, s, c === !0 || c === "")]);
247
+ }, [he(A[b.property], l, n, a === !0 || a === "")]);
248
+ },
249
+ header: () => {
250
+ var h, A;
251
+ return (A = (h = e.children) == null ? void 0 : h.head) == null ? void 0 : A.call(h);
239
252
  }
240
253
  });
241
254
  }, te = (e) => {
242
255
  const {
243
256
  name: t,
244
- head: n,
245
- headAlign: o = "center",
246
- bodyAlign: i = "center",
257
+ head: r,
258
+ headAlign: u = "center",
259
+ bodyAlign: d = "center",
247
260
  width: m,
248
- fixed: d,
249
- sourceFormat: f,
250
- format: s = "YYYYMMDDHHmmss"
261
+ fixed: c,
262
+ sourceFormat: l,
263
+ format: n = "YYYYMMDDHHmmss"
251
264
  } = e;
252
- return r(S, {
253
- label: n,
254
- headerAlign: o,
255
- align: i,
265
+ return i(y, {
266
+ label: r,
267
+ headerAlign: u,
268
+ align: d,
256
269
  prop: t,
257
270
  width: m,
258
- fixed: d,
271
+ fixed: c,
259
272
  showOverflowTooltip: !0
260
273
  }, {
261
- default: (c) => {
274
+ default: (a) => {
262
275
  const {
263
- row: x,
264
- column: v
265
- } = c, h = x[v.property];
266
- return h instanceof Date || be.isDayjs(h) ? r("div", null, [$(h, s)]) : f && s ? r("div", null, [$(h, f, s)]) : r("div", null, [h]);
276
+ row: h,
277
+ column: A
278
+ } = a, b = h[A.property];
279
+ return b instanceof Date || be.isDayjs(b) ? i("div", null, [$(b, n)]) : l && n ? i("div", null, [$(b, l, n)]) : i("div", null, [b]);
280
+ },
281
+ header: () => {
282
+ var a, h;
283
+ return (h = (a = e.children) == null ? void 0 : a.head) == null ? void 0 : h.call(a);
267
284
  }
268
285
  });
269
286
  }, ne = (e) => {
270
287
  const {
271
288
  name: t,
272
- head: n,
273
- headAlign: o = "center",
274
- bodyAlign: i,
289
+ head: r,
290
+ headAlign: u = "center",
291
+ bodyAlign: d,
275
292
  width: m,
276
- fixed: d
293
+ fixed: c
277
294
  } = e, {
278
- code: f
295
+ code: l
279
296
  } = e;
280
- return r(S, {
281
- label: n,
282
- headerAlign: o,
283
- align: i,
297
+ return i(y, {
298
+ label: r,
299
+ headerAlign: u,
300
+ align: d,
284
301
  prop: t,
285
302
  width: m,
286
- fixed: d,
303
+ fixed: c,
287
304
  showOverflowTooltip: !0
288
305
  }, {
289
- default: (s) => {
306
+ default: (n) => {
290
307
  const {
291
- row: c,
292
- column: x
293
- } = s, v = c[x.property];
294
- let h;
295
- const D = V(f);
296
- return D.value ? h = fe(D.value, v) : h = null, r("span", {
308
+ row: a,
309
+ column: h
310
+ } = n, A = a[h.property];
311
+ let b;
312
+ const D = V(l);
313
+ return D.value ? b = fe(D.value, A) : b = null, i("span", {
297
314
  class: "cell-singleselect"
298
- }, [h]);
315
+ }, [b]);
316
+ },
317
+ header: () => {
318
+ var n, a;
319
+ return (a = (n = e.children) == null ? void 0 : n.head) == null ? void 0 : a.call(n);
299
320
  }
300
321
  });
301
- }, le = (e) => {
322
+ }, re = (e) => {
302
323
  const {
303
324
  name: t,
304
- head: n,
305
- headAlign: o = "center",
306
- bodyAlign: i,
325
+ head: r,
326
+ headAlign: u = "center",
327
+ bodyAlign: d,
307
328
  width: m,
308
- fixed: d
329
+ fixed: c
309
330
  } = e, {
310
- code: f
331
+ code: l
311
332
  } = e;
312
- return r(S, {
313
- label: n,
314
- headerAlign: o,
315
- align: i,
333
+ return i(y, {
334
+ label: r,
335
+ headerAlign: u,
336
+ align: d,
316
337
  prop: t,
317
338
  width: m,
318
- fixed: d,
339
+ fixed: c,
319
340
  showOverflowTooltip: !0
320
341
  }, {
321
- default: (s) => {
342
+ default: (n) => {
322
343
  const {
323
- row: c,
324
- column: x
325
- } = s, v = c[x.property];
326
- let h;
327
- const D = V(f);
328
- return D.value ? h = he(D.value, v) : h = null, r("span", {
344
+ row: a,
345
+ column: h
346
+ } = n, A = a[h.property];
347
+ let b;
348
+ const D = V(l);
349
+ return D.value ? b = me(D.value, A) : b = null, i("span", {
329
350
  class: "cell-multiselect"
330
- }, [h]);
351
+ }, [b]);
352
+ },
353
+ header: () => {
354
+ var n, a;
355
+ return (a = (n = e.children) == null ? void 0 : n.head) == null ? void 0 : a.call(n);
331
356
  }
332
357
  });
333
- }, re = (e) => {
358
+ }, le = (e) => {
334
359
  const {
335
360
  name: t,
336
- head: n,
337
- headAlign: o = "center",
338
- bodyAlign: i,
361
+ head: r,
362
+ headAlign: u = "center",
363
+ bodyAlign: d,
339
364
  width: m,
340
- fixed: d
365
+ fixed: c
341
366
  } = e;
342
- return r(S, {
343
- label: n,
344
- headerAlign: o,
345
- align: i,
367
+ return i(y, {
368
+ label: r,
369
+ headerAlign: u,
370
+ align: d,
346
371
  prop: t,
347
372
  width: m,
348
- fixed: d
373
+ fixed: c
349
374
  }, {
350
- default: (f) => {
351
- var c, x;
352
- const s = (x = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : x.call(c, {
353
- rowData: f.row,
375
+ default: (l) => {
376
+ var a, h;
377
+ const n = (h = (a = e.children) == null ? void 0 : a.default) == null ? void 0 : h.call(a, {
378
+ rowData: l.row,
354
379
  column: e,
355
- rowIndex: f.$index
380
+ rowIndex: l.$index
356
381
  });
357
- return r("div", {
382
+ return i("div", {
358
383
  class: "cell-buttongroup"
359
- }, [r(we, null, ye(s) ? s : {
360
- default: () => [s]
384
+ }, [i(we, null, ye(n) ? n : {
385
+ default: () => [n]
361
386
  })]);
387
+ },
388
+ header: () => {
389
+ var l, n;
390
+ return (n = (l = e.children) == null ? void 0 : l.head) == null ? void 0 : n.call(l);
362
391
  }
363
392
  });
364
393
  }, oe = (e) => {
365
394
  const {
366
395
  head: t,
367
- headAlign: n = "center"
396
+ headAlign: r = "center"
368
397
  } = e, {
369
- children: o
398
+ children: u
370
399
  } = e;
371
- return r(S, {
400
+ return i(y, {
372
401
  label: t,
373
- headerAlign: n
402
+ headerAlign: r
374
403
  }, {
375
- default: (i) => M(o)
404
+ default: (d) => M(u)
376
405
  });
377
406
  }, ae = (e) => {
378
407
  const {
379
408
  name: t,
380
- head: n,
381
- headAlign: o = "center",
382
- width: i,
409
+ head: r,
410
+ headAlign: u = "center",
411
+ width: d,
383
412
  fixed: m
384
413
  } = e;
385
- return r(S, {
386
- label: n,
387
- headerAlign: o,
414
+ return i(y, {
415
+ label: r,
416
+ headerAlign: u,
388
417
  prop: t,
389
- width: i,
418
+ width: d,
390
419
  fixed: m
391
420
  }, {
392
- default: (d) => {
393
- var s, c;
394
- const f = (c = (s = e.children) == null ? void 0 : s.default) == null ? void 0 : c.call(s, {
395
- rowData: d.row,
421
+ default: (c) => {
422
+ var n, a;
423
+ const l = (a = (n = e.children) == null ? void 0 : n.default) == null ? void 0 : a.call(n, {
424
+ rowData: c.row,
396
425
  column: e,
397
- rowIndex: d.$index
426
+ rowIndex: c.$index
398
427
  });
399
- return r("div", {
428
+ return i("div", {
400
429
  class: "cell-diy"
401
- }, [f, ue(" ")]);
430
+ }, [l, ue(" ")]);
431
+ },
432
+ header: () => {
433
+ var c, l;
434
+ return (l = (c = e.children) == null ? void 0 : c.head) == null ? void 0 : l.call(c);
402
435
  }
403
436
  });
404
437
  }, M = (e) => e == null ? void 0 : e.map((t) => {
@@ -413,51 +446,51 @@ const Ce = () => ({
413
446
  if (t.type === "OPagetableColumnSingleselect")
414
447
  return ne(t);
415
448
  if (t.type === "OPagetableColumnMultiselect")
416
- return le(t);
417
- if (t.type === "OPagetableColumnButtongroup")
418
449
  return re(t);
450
+ if (t.type === "OPagetableColumnButtongroup")
451
+ return le(t);
419
452
  if (t.type === "OPagetableColumngroup")
420
453
  return oe(t);
421
454
  if (t.type === "OPagetableColumnDiy")
422
455
  return ae(t);
423
456
  throw new F(`OPagetable不能正确渲染'${t.type.name}'子组件。`);
424
457
  });
425
- return r("div", {
426
- class: [K, b.class],
427
- style: [B.value, b.style]
428
- }, [r("div", {
458
+ return i("div", {
459
+ class: [K, w.class],
460
+ style: [B.value, w.style]
461
+ }, [i("div", {
429
462
  class: "pagetable-wrapper"
430
- }, [r(ge, {
463
+ }, [i(de, {
431
464
  showSummary: L.value,
432
465
  summaryMethod: G,
433
466
  border: !0,
434
- ref: A,
435
- data: p,
467
+ ref: P,
468
+ data: f,
436
469
  height: "100%",
437
470
  style: {
438
471
  width: "100%"
439
472
  },
440
- "onSelection-change": (e) => a("selectionChange", e),
473
+ "onSelection-change": (e) => s("selectionChange", e),
441
474
  "highlight-current-row": q,
442
- "onCurrent-change": (e, t) => a("currentRowChange", e, t),
443
- "onRow-click": (e, t, n) => a("rowClick", e, {
475
+ "onCurrent-change": (e, t) => s("currentRowChange", e, t),
476
+ "onRow-click": (e, t, r) => s("rowClick", e, {
444
477
  name: t.property,
445
478
  head: t.label
446
- }, n),
447
- "onRow-dblclick": (e, t, n) => a("rowDblclick", e, {
479
+ }, r),
480
+ "onRow-dblclick": (e, t, r) => s("rowDblclick", e, {
448
481
  name: t.property,
449
482
  head: t.label
450
- }, n),
451
- "onCell-click": (e, t, n, o) => a("cellClick", e, {
483
+ }, r),
484
+ "onCell-click": (e, t, r, u) => s("cellClick", e, {
452
485
  name: t.property,
453
486
  head: t.label
454
- }, n, o),
455
- "onCell-dblclick": (e, t, n, o) => a("cellDblclick", e, {
487
+ }, r, u),
488
+ "onCell-dblclick": (e, t, r, u) => s("cellDblclick", e, {
456
489
  name: t.property,
457
490
  head: t.label
458
- }, n, o),
459
- onSelect: (e, t) => a("select", e, t),
460
- "onSelect-all": (e) => a("select-all", e),
491
+ }, r, u),
492
+ onSelect: (e, t) => s("select", e, t),
493
+ "onSelect-all": (e) => s("select-all", e),
461
494
  size: z,
462
495
  rowClassName: (e) => typeof k == "string" ? k : typeof k == "function" ? k({
463
496
  rowData: e.row,
@@ -486,57 +519,57 @@ const Ce = () => ({
486
519
  columnIndex: e.columnIndex
487
520
  }) : typeof T == "object" ? T : {}
488
521
  }, {
489
- default: () => [u.expandedRowRender && r(S, {
522
+ default: () => [g.expandedRowRender && i(y, {
490
523
  type: "expand",
491
524
  fixed: !1
492
525
  }, {
493
526
  default: (e) => {
494
- var n;
495
- const t = (n = u.expandedRowRender) == null ? void 0 : n.call(u, {
527
+ var r;
528
+ const t = (r = g.expandedRowRender) == null ? void 0 : r.call(g, {
496
529
  rowData: e.row,
497
530
  rowIndex: e.$index
498
531
  });
499
- return r("div", {
532
+ return i("div", {
500
533
  class: "row-expand"
501
534
  }, [t]);
502
535
  }
503
- }), U && Q(), P && W(), M(O.value)]
504
- })]), r("div", {
536
+ }), U && Q(), O && W(), M(v.value)]
537
+ })]), i("div", {
505
538
  class: "pagination-wrapper"
506
- }, [r(ce, {
507
- currentPage: g.currentPage,
539
+ }, [i(ge, {
540
+ currentPage: p.currentPage,
508
541
  "onUpdate:current-page": (e) => {
509
- a("update:pagination", {
510
- ...g,
542
+ s("update:pagination", {
543
+ ...p,
511
544
  currentPage: e
512
- }), a("paginationChange", e, g.pageSize);
545
+ }), s("paginationChange", e, p.pageSize);
513
546
  },
514
- pageSize: g.pageSize,
515
- pageSizes: g.pageSizes,
547
+ pageSize: p.pageSize,
548
+ pageSizes: p.pageSizes,
516
549
  "onUpdate:page-size": (e) => {
517
- a("update:pagination", {
518
- ...g,
550
+ s("update:pagination", {
551
+ ...p,
519
552
  pageSize: e
520
- }), a("paginationChange", g.currentPage, e);
553
+ }), s("paginationChange", p.currentPage, e);
521
554
  },
522
- total: g.total || 0,
555
+ total: p.total || 0,
523
556
  pagerCount: N,
524
557
  layout: `${Y ? "total," : ""} ->, ${H ? "sizes," : ""} prev, pager, next ${J ? ", jumper" : ""}`,
525
558
  background: !0,
526
559
  size: z,
527
- teleported: C
560
+ teleported: x
528
561
  }, null)])]);
529
562
  };
530
563
  }
531
- }), Ae = () => ({}), Pe = /* @__PURE__ */ y({
564
+ }), Ae = () => ({}), Pe = /* @__PURE__ */ C({
532
565
  name: "OPagetableColumnIndex",
533
566
  inheritAttrs: !1,
534
567
  props: Ae(),
535
- setup(l, {
536
- slots: u,
537
- attrs: b,
538
- emit: a,
539
- expose: w
568
+ setup(o, {
569
+ slots: g,
570
+ attrs: w,
571
+ emit: s,
572
+ expose: S
540
573
  }) {
541
574
  return () => null;
542
575
  }
@@ -548,15 +581,15 @@ const Ce = () => ({
548
581
  width: [String, Number],
549
582
  fixed: [Boolean, String],
550
583
  tail: [Boolean, String]
551
- }), ve = /* @__PURE__ */ y({
584
+ }), ve = /* @__PURE__ */ C({
552
585
  name: "OPagetableColumnString",
553
586
  inheritAttrs: !1,
554
587
  props: Oe(),
555
- setup(l, {
556
- slots: u,
557
- attrs: b,
558
- emit: a,
559
- expose: w
588
+ setup(o, {
589
+ slots: g,
590
+ attrs: w,
591
+ emit: s,
592
+ expose: S
560
593
  }) {
561
594
  return () => null;
562
595
  }
@@ -568,15 +601,15 @@ const Ce = () => ({
568
601
  width: [String, Number],
569
602
  fixed: [Boolean, String],
570
603
  tail: [Boolean, String]
571
- }), Ne = /* @__PURE__ */ y({
604
+ }), Ne = /* @__PURE__ */ C({
572
605
  name: "OPagetableColumnLink",
573
606
  inheritAttrs: !1,
574
607
  props: Be(),
575
- setup(l, {
576
- slots: u,
577
- attrs: b,
578
- emit: a,
579
- expose: w
608
+ setup(o, {
609
+ slots: g,
610
+ attrs: w,
611
+ emit: s,
612
+ expose: S
580
613
  }) {
581
614
  return () => null;
582
615
  }
@@ -600,15 +633,15 @@ const Ce = () => ({
600
633
  type: Boolean,
601
634
  default: !1
602
635
  }
603
- }), Re = /* @__PURE__ */ y({
636
+ }), Re = /* @__PURE__ */ C({
604
637
  name: "OPagetableColumnNumber",
605
638
  inheritAttrs: !1,
606
639
  props: De(),
607
- setup(l, {
608
- slots: u,
609
- attrs: b,
610
- emit: a,
611
- expose: w
640
+ setup(o, {
641
+ slots: g,
642
+ attrs: w,
643
+ emit: s,
644
+ expose: S
612
645
  }) {
613
646
  return () => null;
614
647
  }
@@ -623,15 +656,15 @@ const Ce = () => ({
623
656
  // Date
624
657
  format: String,
625
658
  sourceFormat: String
626
- }), _e = /* @__PURE__ */ y({
659
+ }), _e = /* @__PURE__ */ C({
627
660
  name: "OPagetableColumnDate",
628
661
  inheritAttrs: !1,
629
662
  props: ke(),
630
- setup(l, {
631
- slots: u,
632
- attrs: b,
633
- emit: a,
634
- expose: w
663
+ setup(o, {
664
+ slots: g,
665
+ attrs: w,
666
+ emit: s,
667
+ expose: S
635
668
  }) {
636
669
  return () => null;
637
670
  }
@@ -644,15 +677,15 @@ const Ce = () => ({
644
677
  fixed: [Boolean, String],
645
678
  tail: [Boolean, String],
646
679
  code: [String, Array]
647
- }), Te = /* @__PURE__ */ y({
680
+ }), Te = /* @__PURE__ */ C({
648
681
  name: "OPagetableColumnSingleselect",
649
682
  inheritAttrs: !1,
650
683
  props: Ie(),
651
- setup(l, {
652
- slots: u,
653
- attrs: b,
654
- emit: a,
655
- expose: w
684
+ setup(o, {
685
+ slots: g,
686
+ attrs: w,
687
+ emit: s,
688
+ expose: S
656
689
  }) {
657
690
  return () => null;
658
691
  }
@@ -665,15 +698,15 @@ const Ce = () => ({
665
698
  fixed: [Boolean, String],
666
699
  tail: [Boolean, String],
667
700
  code: [String, Array]
668
- }), ze = /* @__PURE__ */ y({
701
+ }), ze = /* @__PURE__ */ C({
669
702
  name: "OPagetableColumnMultiselect",
670
703
  inheritAttrs: !1,
671
704
  props: je(),
672
- setup(l, {
673
- slots: u,
674
- attrs: b,
675
- emit: a,
676
- expose: w
705
+ setup(o, {
706
+ slots: g,
707
+ attrs: w,
708
+ emit: s,
709
+ expose: S
677
710
  }) {
678
711
  return () => null;
679
712
  }
@@ -685,66 +718,66 @@ const Ce = () => ({
685
718
  width: [String, Number],
686
719
  fixed: [Boolean, String],
687
720
  tail: [Boolean, String]
688
- }), $e = /* @__PURE__ */ y({
721
+ }), $e = /* @__PURE__ */ C({
689
722
  name: "OPagetableColumnButtongroup",
690
723
  inheritAttrs: !1,
691
724
  props: Me(),
692
725
  slots: Object,
693
- setup(l, {
694
- slots: u,
695
- attrs: b,
696
- emit: a,
697
- expose: w
726
+ setup(o, {
727
+ slots: g,
728
+ attrs: w,
729
+ emit: s,
730
+ expose: S
698
731
  }) {
699
732
  return () => null;
700
733
  }
701
734
  });
702
- function Fe(l) {
703
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !E(l);
735
+ function Fe(o) {
736
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !E(o);
704
737
  }
705
738
  const Ve = () => ({
706
739
  type: String
707
- }), Ee = /* @__PURE__ */ y({
740
+ }), Ee = /* @__PURE__ */ C({
708
741
  name: "OPagetableCellButton",
709
742
  inheritAttrs: !1,
710
743
  props: Ve(),
711
744
  emits: ["click"],
712
- setup(l, {
713
- slots: u,
714
- attrs: b,
715
- emit: a,
716
- expose: w
745
+ setup(o, {
746
+ slots: g,
747
+ attrs: w,
748
+ emit: s,
749
+ expose: S
717
750
  }) {
718
- const A = (B) => {
719
- a("click", B);
751
+ const P = (B) => {
752
+ s("click", B);
720
753
  };
721
754
  return () => {
722
755
  var R;
723
756
  const {
724
757
  type: B
725
- } = l, O = (R = u.default) == null ? void 0 : R.call(u);
726
- return r(pe, {
758
+ } = o, v = (R = g.default) == null ? void 0 : R.call(g);
759
+ return i(ce, {
727
760
  link: !0,
728
761
  type: B,
729
762
  size: "small",
730
- onClick: A
731
- }, Fe(O) ? O : {
732
- default: () => [O]
763
+ onClick: P
764
+ }, Fe(v) ? v : {
765
+ default: () => [v]
733
766
  });
734
767
  };
735
768
  }
736
769
  }), Le = () => ({
737
770
  head: String,
738
771
  headAlign: String
739
- }), Ye = /* @__PURE__ */ y({
772
+ }), Ye = /* @__PURE__ */ C({
740
773
  name: "OPagetableColumngroup",
741
774
  inheritAttrs: !1,
742
775
  props: Le(),
743
- setup(l, {
744
- slots: u,
745
- attrs: b,
746
- emit: a,
747
- expose: w
776
+ setup(o, {
777
+ slots: g,
778
+ attrs: w,
779
+ emit: s,
780
+ expose: S
748
781
  }) {
749
782
  return () => null;
750
783
  }
@@ -755,16 +788,16 @@ const Ve = () => ({
755
788
  width: [String, Number],
756
789
  fixed: [Boolean, String],
757
790
  tail: [Boolean, String]
758
- }), Je = /* @__PURE__ */ y({
791
+ }), Je = /* @__PURE__ */ C({
759
792
  name: "OPagetableColumnDiy",
760
793
  inheritAttrs: !1,
761
794
  props: He(),
762
795
  slots: Object,
763
- setup(l, {
764
- slots: u,
765
- attrs: b,
766
- emit: a,
767
- expose: w
796
+ setup(o, {
797
+ slots: g,
798
+ attrs: w,
799
+ emit: s,
800
+ expose: S
768
801
  }) {
769
802
  return () => null;
770
803
  }
@@ -784,6 +817,6 @@ const Ve = () => ({
784
817
  export {
785
818
  st as default,
786
819
  Ce as pagetableProps,
787
- pt as usePagetable
820
+ ct as usePagetable
788
821
  };
789
822
  //# sourceMappingURL=index.js.map