orion-design 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/components/Form/index.js +230 -220
  2. package/dist/components/Form/index.js.map +1 -1
  3. package/dist/components/LovTable/LovPagetable.d.ts +2 -0
  4. package/dist/components/LovTable/LovQuerytable.d.ts +2 -0
  5. package/dist/components/LovTable/index.d.ts +5 -0
  6. package/dist/components/LovTable/index.js +54 -0
  7. package/dist/components/LovTable/index.js.map +1 -0
  8. package/dist/components/Pagetable/Pagetable.d.ts +2 -1
  9. package/dist/components/Pagetable/hooks/useColumns.js +36 -35
  10. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  11. package/dist/components/Pagetable/index.d.ts +2 -1
  12. package/dist/components/Pagetable/index.js +130 -128
  13. package/dist/components/Pagetable/index.js.map +1 -1
  14. package/dist/components/Querytable/Querytable.d.ts +2 -1
  15. package/dist/components/Querytable/hooks/useColumns.js +16 -15
  16. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  17. package/dist/components/Querytable/index.d.ts +2 -1
  18. package/dist/components/Querytable/index.js +90 -88
  19. package/dist/components/Querytable/index.js.map +1 -1
  20. package/dist/components/components.d.ts +2 -0
  21. package/dist/components/components.js +18 -10
  22. package/dist/components/components.js.map +1 -1
  23. package/dist/components/index.js +21 -13
  24. package/dist/components/index.js.map +1 -1
  25. package/dist/components-1bMIJYPN.js +78 -0
  26. package/dist/{components-OIbu7HLW.js.map → components-1bMIJYPN.js.map} +1 -1
  27. package/dist/index.js +24 -16
  28. package/dist/index.js.map +1 -1
  29. package/dist/request/disivion/index.d.ts +11 -12
  30. package/dist/request/disivion/index.js +137 -134
  31. package/dist/request/disivion/index.js.map +1 -1
  32. package/dist/request/index.d.ts +1 -1
  33. package/dist/request/index.js +11 -8
  34. package/dist/version/version.d.ts +1 -1
  35. package/dist/version/version.js +1 -1
  36. package/dist/version/version.js.map +1 -1
  37. package/package.json +4 -2
  38. package/dist/components-OIbu7HLW.js +0 -70
@@ -3,7 +3,7 @@ import { defineComponent as C, ref as U, computed as W, createVNode as o, create
3
3
  import { withInstall as Z } from "../_util/vue/install.js";
4
4
  import { ElTable as ee, ElTableColumn as w, ElButton as te } from "element-plus";
5
5
  import re from "../_util/classNames.js";
6
- import { arrayType as ne, booleanType as D, stringType as r, someType as s, numberType as oe } from "../_util/type.js";
6
+ import { arrayType as ne, booleanType as D, stringType as r, someType as u, numberType as oe } from "../_util/type.js";
7
7
  import { number2string as le, formatDate as N, getSingleCodeContent as q, getMultiCodeContent as M } from "./utils/index.js";
8
8
  import ae from "dayjs";
9
9
  import { S as se } from "../../index-BbsXWo7C.js";
@@ -13,23 +13,23 @@ import P from "../../Throne/index.js";
13
13
  function de(n) {
14
14
  return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !j(n);
15
15
  }
16
- const pe = () => ({
16
+ const ce = () => ({
17
17
  data: ne(),
18
18
  showRowNumber: D(!0),
19
19
  selectionMode: D(!1),
20
20
  currentRowMode: D(!1)
21
- }), ce = /* @__PURE__ */ C({
21
+ }), pe = /* @__PURE__ */ C({
22
22
  name: "OQuerytable",
23
23
  inheritAttrs: !1,
24
- props: pe(),
25
- emits: ["selectionChange", "currentRowChange"],
24
+ props: ce(),
25
+ emits: ["selectionChange", "currentRowChange", "rowClick"],
26
26
  setup(n, {
27
- slots: p,
27
+ slots: c,
28
28
  attrs: y,
29
- emit: m,
29
+ emit: p,
30
30
  expose: b
31
31
  }) {
32
- const O = U(), B = W(() => ({})), v = ie(p);
32
+ const O = U(), B = W(() => ({})), v = ie(c);
33
33
  return b({
34
34
  clearSelection: () => {
35
35
  O.value.clearSelection();
@@ -42,44 +42,44 @@ const pe = () => ({
42
42
  const {
43
43
  data: Q
44
44
  } = n, {
45
- selectionMode: I = !1
45
+ selectionMode: k = !1
46
46
  } = n, {
47
- showRowNumber: V = !0
47
+ showRowNumber: I = !0
48
48
  } = n, {
49
- currentRowMode: k = !1
50
- } = n, E = re("orion-querytable"), Y = () => o(w, {
49
+ currentRowMode: V = !1
50
+ } = n, $ = re("orion-querytable"), E = () => o(w, {
51
51
  type: "index",
52
52
  label: "No",
53
53
  width: 56,
54
54
  fixed: "left",
55
55
  showOverflowTooltip: !0,
56
56
  index: (t) => t + 1
57
- }, null), $ = () => o(w, {
57
+ }, null), Y = () => o(w, {
58
58
  type: "selection",
59
59
  width: 40,
60
60
  fixed: "left"
61
61
  }, null), F = (t) => {
62
62
  const {
63
63
  name: e,
64
- head: u,
64
+ head: s,
65
65
  headAlign: i,
66
- width: c,
66
+ width: m,
67
67
  fixed: h
68
68
  } = t;
69
69
  return o(w, {
70
- label: u,
70
+ label: s,
71
71
  headerAlign: i,
72
72
  prop: e,
73
- width: c,
73
+ width: m,
74
74
  fixed: h,
75
75
  showOverflowTooltip: !0
76
76
  }, null);
77
77
  }, H = (t) => {
78
78
  const {
79
79
  name: e,
80
- head: u,
80
+ head: s,
81
81
  headAlign: i,
82
- width: c,
82
+ width: m,
83
83
  fixed: h
84
84
  } = t, {
85
85
  thousandsSeparator: l = !0,
@@ -87,11 +87,11 @@ const pe = () => ({
87
87
  percentage: a = !1
88
88
  } = t;
89
89
  return o(w, {
90
- label: u,
90
+ label: s,
91
91
  headerAlign: i,
92
92
  align: "right",
93
93
  prop: e,
94
- width: c,
94
+ width: m,
95
95
  fixed: h,
96
96
  showOverflowTooltip: !0
97
97
  }, {
@@ -108,18 +108,18 @@ const pe = () => ({
108
108
  }, _ = (t) => {
109
109
  const {
110
110
  name: e,
111
- head: u,
111
+ head: s,
112
112
  headAlign: i,
113
- width: c,
113
+ width: m,
114
114
  fixed: h,
115
115
  sourceFormat: l,
116
116
  format: d = "YYYYMMDDHHmmss"
117
117
  } = t;
118
118
  return o(w, {
119
- label: u,
119
+ label: s,
120
120
  headerAlign: i,
121
121
  prop: e,
122
- width: c,
122
+ width: m,
123
123
  fixed: h,
124
124
  showOverflowTooltip: !0
125
125
  }, {
@@ -134,18 +134,18 @@ const pe = () => ({
134
134
  }, z = (t) => {
135
135
  const {
136
136
  name: e,
137
- head: u,
137
+ head: s,
138
138
  headAlign: i,
139
- width: c,
139
+ width: m,
140
140
  fixed: h
141
141
  } = t, {
142
142
  code: l
143
143
  } = t;
144
144
  return o(w, {
145
- label: u,
145
+ label: s,
146
146
  headerAlign: i,
147
147
  prop: e,
148
- width: c,
148
+ width: m,
149
149
  fixed: h,
150
150
  showOverflowTooltip: !0
151
151
  }, {
@@ -163,18 +163,18 @@ const pe = () => ({
163
163
  }, G = (t) => {
164
164
  const {
165
165
  name: e,
166
- head: u,
166
+ head: s,
167
167
  headAlign: i,
168
- width: c,
168
+ width: m,
169
169
  fixed: h
170
170
  } = t, {
171
171
  code: l
172
172
  } = t;
173
173
  return o(w, {
174
- label: u,
174
+ label: s,
175
175
  headerAlign: i,
176
176
  prop: e,
177
- width: c,
177
+ width: m,
178
178
  fixed: h,
179
179
  showOverflowTooltip: !0
180
180
  }, {
@@ -192,16 +192,16 @@ const pe = () => ({
192
192
  }, J = (t) => {
193
193
  const {
194
194
  name: e,
195
- head: u,
195
+ head: s,
196
196
  headAlign: i,
197
- width: c,
197
+ width: m,
198
198
  fixed: h
199
199
  } = t;
200
200
  return o(w, {
201
- label: u,
201
+ label: s,
202
202
  headerAlign: i,
203
203
  prop: e,
204
- width: c,
204
+ width: m,
205
205
  fixed: h
206
206
  }, {
207
207
  default: (l) => {
@@ -221,29 +221,29 @@ const pe = () => ({
221
221
  }, K = (t) => {
222
222
  const {
223
223
  head: e,
224
- headAlign: u
224
+ headAlign: s
225
225
  } = t, {
226
226
  children: i
227
227
  } = t;
228
228
  return o(w, {
229
229
  label: e,
230
- headerAlign: u
230
+ headerAlign: s
231
231
  }, {
232
- default: (c) => T(i)
232
+ default: (m) => T(i)
233
233
  });
234
234
  }, L = (t) => {
235
235
  const {
236
236
  name: e,
237
- head: u,
237
+ head: s,
238
238
  headAlign: i,
239
- width: c,
239
+ width: m,
240
240
  fixed: h
241
241
  } = t;
242
242
  return o(w, {
243
- label: u,
243
+ label: s,
244
244
  headerAlign: i,
245
245
  prop: e,
246
- width: c,
246
+ width: m,
247
247
  fixed: h
248
248
  }, {
249
249
  default: (l) => {
@@ -278,20 +278,22 @@ const pe = () => ({
278
278
  throw new ue(`OQuerytable不能正确渲染'${e.type.name}'子组件。`);
279
279
  });
280
280
  return o("div", {
281
- class: [E, y.class],
281
+ class: [$, y.class],
282
282
  style: [B.value, y.style]
283
283
  }, [o(ee, {
284
284
  ref: O,
285
+ border: !0,
285
286
  data: Q,
286
287
  height: "100%",
287
288
  style: {
288
289
  width: "100%"
289
290
  },
290
- "onSelection-change": (t) => m("selectionChange", t),
291
- "highlight-current-row": k,
292
- "onCurrent-change": (t, e) => m("currentRowChange", t, e)
291
+ "onSelection-change": (t) => p("selectionChange", t),
292
+ "highlight-current-row": V,
293
+ "onCurrent-change": (t, e) => p("currentRowChange", t, e),
294
+ "onRow-click": (t, e, s) => p("rowClick", t, e, s)
293
295
  }, {
294
- default: () => [V && Y(), I && $(), T(v.value)]
296
+ default: () => [I && E(), k && Y(), T(v.value)]
295
297
  })]);
296
298
  };
297
299
  }
@@ -300,9 +302,9 @@ const pe = () => ({
300
302
  inheritAttrs: !1,
301
303
  props: me(),
302
304
  setup(n, {
303
- slots: p,
305
+ slots: c,
304
306
  attrs: y,
305
- emit: m,
307
+ emit: p,
306
308
  expose: b
307
309
  }) {
308
310
  return () => null;
@@ -311,16 +313,16 @@ const pe = () => ({
311
313
  head: r(),
312
314
  headAlign: r(),
313
315
  name: r(),
314
- width: s([Boolean, String]),
315
- fixed: s([Boolean, String])
316
+ width: u([Boolean, String]),
317
+ fixed: u([Boolean, String])
316
318
  }), ge = /* @__PURE__ */ C({
317
319
  name: "OQuerytableColumnString",
318
320
  inheritAttrs: !1,
319
321
  props: fe(),
320
322
  setup(n, {
321
- slots: p,
323
+ slots: c,
322
324
  attrs: y,
323
- emit: m,
325
+ emit: p,
324
326
  expose: b
325
327
  }) {
326
328
  return () => null;
@@ -329,8 +331,8 @@ const pe = () => ({
329
331
  head: r(),
330
332
  headAlign: r(),
331
333
  name: r(),
332
- width: s([Boolean, String]),
333
- fixed: s([Boolean, String]),
334
+ width: u([Boolean, String]),
335
+ fixed: u([Boolean, String]),
334
336
  thousandsSeparator: D(!0),
335
337
  precision: oe(-1),
336
338
  percentage: D(!1)
@@ -339,9 +341,9 @@ const pe = () => ({
339
341
  inheritAttrs: !1,
340
342
  props: ye(),
341
343
  setup(n, {
342
- slots: p,
344
+ slots: c,
343
345
  attrs: y,
344
- emit: m,
346
+ emit: p,
345
347
  expose: b
346
348
  }) {
347
349
  return () => null;
@@ -350,8 +352,8 @@ const pe = () => ({
350
352
  head: r(),
351
353
  headAlign: r(),
352
354
  name: r(),
353
- width: s([Boolean, String]),
354
- fixed: s([Boolean, String]),
355
+ width: u([Boolean, String]),
356
+ fixed: u([Boolean, String]),
355
357
  // Date
356
358
  format: r(),
357
359
  sourceFormat: r()
@@ -360,9 +362,9 @@ const pe = () => ({
360
362
  inheritAttrs: !1,
361
363
  props: Ce(),
362
364
  setup(n, {
363
- slots: p,
365
+ slots: c,
364
366
  attrs: y,
365
- emit: m,
367
+ emit: p,
366
368
  expose: b
367
369
  }) {
368
370
  return () => null;
@@ -371,17 +373,17 @@ const pe = () => ({
371
373
  head: r(),
372
374
  headAlign: r(),
373
375
  name: r(),
374
- width: s([Boolean, String]),
375
- fixed: s([Boolean, String]),
376
- code: s([String, Array])
376
+ width: u([Boolean, String]),
377
+ fixed: u([Boolean, String]),
378
+ code: u([String, Array])
377
379
  }), xe = /* @__PURE__ */ C({
378
380
  name: "OQuerytableColumnSingleselect",
379
381
  inheritAttrs: !1,
380
382
  props: Se(),
381
383
  setup(n, {
382
- slots: p,
384
+ slots: c,
383
385
  attrs: y,
384
- emit: m,
386
+ emit: p,
385
387
  expose: b
386
388
  }) {
387
389
  return () => null;
@@ -390,17 +392,17 @@ const pe = () => ({
390
392
  head: r(),
391
393
  headAlign: r(),
392
394
  name: r(),
393
- width: s([Boolean, String]),
394
- fixed: s([Boolean, String]),
395
- code: s([String, Array])
395
+ width: u([Boolean, String]),
396
+ fixed: u([Boolean, String]),
397
+ code: u([String, Array])
396
398
  }), Oe = /* @__PURE__ */ C({
397
399
  name: "OQuerytableColumnMultiselect",
398
400
  inheritAttrs: !1,
399
401
  props: Ae(),
400
402
  setup(n, {
401
- slots: p,
403
+ slots: c,
402
404
  attrs: y,
403
- emit: m,
405
+ emit: p,
404
406
  expose: b
405
407
  }) {
406
408
  return () => null;
@@ -409,17 +411,17 @@ const pe = () => ({
409
411
  head: r(),
410
412
  headAlign: r(),
411
413
  name: r(),
412
- width: s([Boolean, String]),
413
- fixed: s([Boolean, String])
414
+ width: u([Boolean, String]),
415
+ fixed: u([Boolean, String])
414
416
  }), Be = /* @__PURE__ */ C({
415
417
  name: "OQuerytableColumnButtongroup",
416
418
  inheritAttrs: !1,
417
419
  props: Qe(),
418
420
  slots: Object,
419
421
  setup(n, {
420
- slots: p,
422
+ slots: c,
421
423
  attrs: y,
422
- emit: m,
424
+ emit: p,
423
425
  expose: b
424
426
  }) {
425
427
  return () => null;
@@ -436,19 +438,19 @@ const De = () => ({
436
438
  props: De(),
437
439
  emits: ["click"],
438
440
  setup(n, {
439
- slots: p,
441
+ slots: c,
440
442
  attrs: y,
441
- emit: m,
443
+ emit: p,
442
444
  expose: b
443
445
  }) {
444
446
  const O = (B) => {
445
- m("click", B);
447
+ p("click", B);
446
448
  };
447
449
  return () => {
448
450
  var R;
449
451
  const {
450
452
  type: B
451
- } = n, v = (R = p.default) == null ? void 0 : R.call(p);
453
+ } = n, v = (R = c.default) == null ? void 0 : R.call(c);
452
454
  return o(te, {
453
455
  link: !0,
454
456
  type: B,
@@ -467,9 +469,9 @@ const De = () => ({
467
469
  inheritAttrs: !1,
468
470
  props: Te(),
469
471
  setup(n, {
470
- slots: p,
472
+ slots: c,
471
473
  attrs: y,
472
- emit: m,
474
+ emit: p,
473
475
  expose: b
474
476
  }) {
475
477
  return () => null;
@@ -478,22 +480,22 @@ const De = () => ({
478
480
  head: r(),
479
481
  headAlign: r(),
480
482
  name: r(),
481
- width: s([Boolean, String]),
482
- fixed: s([Boolean, String])
483
+ width: u([Boolean, String]),
484
+ fixed: u([Boolean, String])
483
485
  }), Me = /* @__PURE__ */ C({
484
486
  name: "OQuerytableColumnDiy",
485
487
  inheritAttrs: !1,
486
488
  props: qe(),
487
489
  slots: Object,
488
490
  setup(n, {
489
- slots: p,
491
+ slots: c,
490
492
  attrs: y,
491
- emit: m,
493
+ emit: p,
492
494
  expose: b
493
495
  }) {
494
496
  return () => null;
495
497
  }
496
- }), Ue = Z(ce, {
498
+ }), Ue = Z(pe, {
497
499
  QuerytableColumnIndex: he,
498
500
  QuerytableColumnString: ge,
499
501
  QuerytableColumnNumber: be,