@skyfox2000/webui 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/webui.es.js CHANGED
@@ -4,20 +4,20 @@ import { _ as Y } from "./assets/modules/index-BEWJ_qAH.js";
4
4
  import { a as qa } from "./assets/modules/index-BEWJ_qAH.js";
5
5
  import { _ as j } from "./assets/modules/menuTabs-BXdbFZor.js";
6
6
  import { a as Va, c as ja, d as Ha, e as Wa, I as Ja, f as Ga, g as Xa, b as Za } from "./assets/modules/menuTabs-BXdbFZor.js";
7
- import { defineComponent as C, createBlock as g, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as _, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ne, toDisplayString as D, createCommentVNode as k, ref as h, provide as ge, watch as $, onMounted as K, createTextVNode as P, inject as ue, resolveDirective as Q, withDirectives as V, computed as re, createElementBlock as w, normalizeClass as N, createSlots as he, useSlots as ze, Fragment as M, renderList as L, resolveDynamicComponent as Ke, onUnmounted as xe, onActivated as Oe, withKeys as fe } from "vue";
7
+ import { defineComponent as C, createBlock as _, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as g, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ne, toDisplayString as D, createCommentVNode as k, ref as h, provide as _e, watch as $, onMounted as K, createTextVNode as P, inject as ue, resolveDirective as Q, withDirectives as V, computed as re, createElementBlock as w, normalizeClass as N, createSlots as he, useSlots as ze, Fragment as M, renderList as L, resolveDynamicComponent as Ke, onUnmounted as xe, onActivated as Oe, withKeys as fe } from "vue";
8
8
  import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as ke, getToolGroup as Ce, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as q, useToolFactory as Ue, getToolByKey as Z, filterColumns as we, onColumnVisibleChanged as qe, AppRouter as Qe, openNewForm as Ve, useInputFactory as O, loadOption as $e, unloadOption as Se, formValidate as U, gridQueryFind as ve, gridQueryList as je, gridStatusUpdate as He, OPTIONS as Te, queryTree as De, OptionCommProps as We, circleLoading as Je, doQuery as Ie } from "@skyfox2000/webbase";
9
9
  import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, message as Ze, FormItem as Pe, ConfigProvider as me, Popconfirm as et, Button as Me, DropdownButton as tt, Menu as ie, MenuItem as de, Dropdown as oe, Checkbox as at, Switch as lt, Table as Ne, Tree as rt, Cascader as ot, DatePicker as st, Input as se, InputPassword as nt, InputNumber as ut, RangePicker as it, Textarea as dt, Transfer as ct, TreeSelect as pt, LayoutContent as ft } from "ant-design-vue";
10
10
  import { SERVER_HOST as vt, fieldMapping as ee } from "@skyfox2000/fapi";
11
11
  import { VueDraggableNext as mt } from "vue-draggable-next";
12
- import _t from "vue-m-message";
13
- import { _ as gt, a as ht, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
14
- import _e from "dayjs";
12
+ import gt from "vue-m-message";
13
+ import { _ as _t, a as ht, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
14
+ import ge from "dayjs";
15
15
  import { _ as tl } from "./assets/modules/uploadList-Dzlg47V0.js";
16
- const _a = /* @__PURE__ */ C({
16
+ const ga = /* @__PURE__ */ C({
17
17
  __name: "fullscreen",
18
18
  setup(v) {
19
19
  const r = ye();
20
- return (a, t) => (f(), g(Y, {
20
+ return (a, t) => (f(), _(Y, {
21
21
  onClick: J(e(Ae), ["stop"]),
22
22
  icon: e(r).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
23
23
  class: "w-[17px] h-[17px]"
@@ -32,8 +32,8 @@ const _a = /* @__PURE__ */ C({
32
32
  },
33
33
  setup(v) {
34
34
  const r = W();
35
- return (a, t) => (f(), g(e(Ge), { placement: "topRight" }, {
36
- content: _(() => [
35
+ return (a, t) => (f(), _(e(Ge), { placement: "topRight" }, {
36
+ content: g(() => [
37
37
  I(a.$slots, "default", {}, () => [
38
38
  T("div", {
39
39
  class: "text-[14px]",
@@ -41,7 +41,7 @@ const _a = /* @__PURE__ */ C({
41
41
  }, D(a.text), 5)
42
42
  ])
43
43
  ]),
44
- default: _(() => [
44
+ default: g(() => [
45
45
  T("span", bt, [
46
46
  b(Y, B({
47
47
  icon: "icon-question-circle",
@@ -52,7 +52,7 @@ const _a = /* @__PURE__ */ C({
52
52
  _: 3
53
53
  }));
54
54
  }
55
- }), ga = /* @__PURE__ */ C({
55
+ }), _a = /* @__PURE__ */ C({
56
56
  __name: "layoutIcon",
57
57
  props: {
58
58
  icon: {
@@ -69,7 +69,7 @@ const _a = /* @__PURE__ */ C({
69
69
  icon: r.icon,
70
70
  icons: r.icons
71
71
  });
72
- return (o, n) => v.icon || v.icons ? (f(), g(e(t), B({
72
+ return (o, n) => v.icon || v.icons ? (f(), _(e(t), B({
73
73
  key: 0,
74
74
  icon: v.icon,
75
75
  icons: v.icons,
@@ -86,7 +86,7 @@ const _a = /* @__PURE__ */ C({
86
86
  },
87
87
  setup(v) {
88
88
  const { useToken: r } = Be, { token: a } = r(), t = h(!1), n = v.editorCtrl;
89
- ge(X.EditorControl, n), $(
89
+ _e(X.EditorControl, n), $(
90
90
  () => n.visible.value,
91
91
  (d) => {
92
92
  t.value = d ?? !1;
@@ -97,7 +97,7 @@ const _a = /* @__PURE__ */ C({
97
97
  const p = () => {
98
98
  ae(n);
99
99
  };
100
- return (d, c) => (f(), g(e(Xe), {
100
+ return (d, c) => (f(), _(e(Xe), {
101
101
  open: t.value,
102
102
  "onUpdate:open": c[4] || (c[4] = (s) => t.value = s),
103
103
  "get-container": !1,
@@ -120,7 +120,7 @@ const _a = /* @__PURE__ */ C({
120
120
  width: "420px",
121
121
  onClose: p
122
122
  }, {
123
- extra: _(() => [
123
+ extra: g(() => [
124
124
  T("div", Ct, [
125
125
  b(e(Y), {
126
126
  class: "top-[-2px] left-[2px] w-6 h-6",
@@ -134,39 +134,39 @@ const _a = /* @__PURE__ */ C({
134
134
  })
135
135
  ])
136
136
  ]),
137
- default: _(() => [
137
+ default: g(() => [
138
138
  I(d.$slots, "default")
139
139
  ]),
140
- footer: _(() => [
140
+ footer: g(() => [
141
141
  b(e(G), null, {
142
- default: _(() => [
143
- d.cancelText !== "" ? (f(), g(e(z), {
142
+ default: g(() => [
143
+ d.cancelText !== "" ? (f(), _(e(z), {
144
144
  key: 0,
145
145
  onClick: c[1] || (c[1] = () => e(ae)(e(n)))
146
146
  }, {
147
- default: _(() => [
147
+ default: g(() => [
148
148
  P(D(d.cancelText ?? "取消"), 1)
149
149
  ]),
150
150
  _: 1
151
151
  })) : k("", !0),
152
- d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), g(e(z), {
152
+ d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), _(e(z), {
153
153
  key: 1,
154
154
  onClick: c[2] || (c[2] = () => e(Ye)(e(n))),
155
155
  type: "primary",
156
156
  loading: e(n).isFormSaving.value
157
157
  }, {
158
- default: _(() => [
158
+ default: g(() => [
159
159
  P(D(d.saveAsText ?? "另存为"), 1)
160
160
  ]),
161
161
  _: 1
162
162
  }, 8, ["loading"])) : k("", !0),
163
- d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), g(e(z), {
163
+ d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), _(e(z), {
164
164
  key: 2,
165
165
  onClick: c[3] || (c[3] = () => e(be)(e(n))),
166
166
  type: "primary",
167
167
  loading: e(n).isFormSaving.value
168
168
  }, {
169
- default: _(() => [
169
+ default: g(() => [
170
170
  P(D(d.saveText ?? "保存"), 1)
171
171
  ]),
172
172
  _: 1
@@ -189,7 +189,7 @@ const _a = /* @__PURE__ */ C({
189
189
  const r = v, a = r.editorCtrl ?? ue(X.EditorControl, void 0);
190
190
  return (t, o) => {
191
191
  const n = Q("submit");
192
- return V((f(), g(e(Fe), {
192
+ return V((f(), _(e(Fe), {
193
193
  "label-col": { flex: r.labelWidth ?? "85px" },
194
194
  "wrapper-col": {
195
195
  flex: r.wrapperWidth ?? "1"
@@ -199,7 +199,7 @@ const _a = /* @__PURE__ */ C({
199
199
  flexWrap: "wrap"
200
200
  }
201
201
  }, {
202
- default: _(() => [
202
+ default: g(() => [
203
203
  I(t.$slots, "default")
204
204
  ]),
205
205
  _: 3
@@ -245,26 +245,26 @@ const _a = /* @__PURE__ */ C({
245
245
  return (c, s) => (f(), w("div", {
246
246
  class: N(["w-full relative mb-1", c.width])
247
247
  }, [
248
- n.value ? (f(), g(e(Pe), B({
248
+ n.value ? (f(), _(e(Pe), B({
249
249
  key: 0,
250
250
  required: d.value,
251
251
  class: "!w-[95%] relative"
252
252
  }, e(a), {
253
253
  class: [c.rule ? "" : "mb-3"]
254
254
  }), {
255
- label: _(() => [
255
+ label: g(() => [
256
256
  T("span", {
257
257
  class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
258
258
  }, D(c.label), 3)
259
259
  ]),
260
- default: _(() => [
260
+ default: g(() => [
261
261
  T("div", wt, [
262
262
  T("div", $t, [
263
263
  I(c.$slots, "default")
264
264
  ]),
265
265
  T("div", St, [
266
266
  I(c.$slots, "helper", {}, () => [
267
- c.helper ? (f(), g(e(kt), {
267
+ c.helper ? (f(), _(e(kt), {
268
268
  key: 0,
269
269
  text: c.helper
270
270
  }, null, 8, ["text"])) : k("", !0)
@@ -298,7 +298,7 @@ const _a = /* @__PURE__ */ C({
298
298
  class: [n.rule ? "" : "mb-3", n.width],
299
299
  labelCol: { span: 6 }
300
300
  }), he({
301
- default: _(() => [
301
+ default: g(() => [
302
302
  T("div", It, [
303
303
  T("div", Bt, [
304
304
  I(n.$slots, "default")
@@ -309,7 +309,7 @@ const _a = /* @__PURE__ */ C({
309
309
  }, [
310
310
  n.label ? {
311
311
  name: "label",
312
- fn: _(() => [
312
+ fn: g(() => [
313
313
  T("span", {
314
314
  class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
315
315
  }, D(n.label), 3)
@@ -377,7 +377,7 @@ const _a = /* @__PURE__ */ C({
377
377
  };
378
378
  return (m, x) => {
379
379
  const S = Q("submit");
380
- return n.value + p.value > 0 ? V((f(), g(e(Fe), {
380
+ return n.value + p.value > 0 ? V((f(), _(e(Fe), {
381
381
  key: 0,
382
382
  "label-col": { flex: "60px" },
383
383
  style: {
@@ -386,31 +386,31 @@ const _a = /* @__PURE__ */ C({
386
386
  },
387
387
  class: "flex mb-[10px]"
388
388
  }, {
389
- default: _(() => [
389
+ default: g(() => [
390
390
  I(m.$slots, "default"),
391
391
  m.gridCtrl.searchBar ? I(m.$slots, "control", { key: 0 }) : k("", !0),
392
- o.value >= 1 ? (f(), g(le, {
392
+ o.value >= 1 ? (f(), _(le, {
393
393
  key: 1,
394
394
  class: "w-1/3"
395
395
  })) : k("", !0),
396
- o.value >= 2 ? (f(), g(le, {
396
+ o.value >= 2 ? (f(), _(le, {
397
397
  key: 2,
398
398
  class: "w-1/3"
399
399
  })) : k("", !0),
400
- n.value || m.gridCtrl.searchBar ? (f(), g(le, {
400
+ n.value || m.gridCtrl.searchBar ? (f(), _(le, {
401
401
  key: 3,
402
402
  class: "w-1/3 flex justify-end text-right pr-5",
403
403
  "wrapper-col": { flex: "auto" }
404
404
  }, {
405
- default: _(() => [
405
+ default: g(() => [
406
406
  b(e(G), null, {
407
- default: _(() => [
407
+ default: g(() => [
408
408
  b(e(z), {
409
409
  type: "primary",
410
410
  onClick: l,
411
411
  icon: "icon-search"
412
412
  }, {
413
- default: _(() => x[0] || (x[0] = [
413
+ default: g(() => x[0] || (x[0] = [
414
414
  P("搜索")
415
415
  ])),
416
416
  _: 1,
@@ -420,7 +420,7 @@ const _a = /* @__PURE__ */ C({
420
420
  onClick: i,
421
421
  icon: "icon-reset"
422
422
  }, {
423
- default: _(() => x[1] || (x[1] = [
423
+ default: g(() => x[1] || (x[1] = [
424
424
  P("重置")
425
425
  ])),
426
426
  _: 1,
@@ -482,18 +482,18 @@ const _a = /* @__PURE__ */ C({
482
482
  };
483
483
  return (d, c) => {
484
484
  const s = Q("role"), u = Q("permit");
485
- return f(), g(e(me), { theme: {
485
+ return f(), _(e(me), { theme: {
486
486
  token: {
487
487
  fontSize: 13
488
488
  }
489
489
  } }, {
490
- default: _(() => [
490
+ default: g(() => [
491
491
  b(e(G), null, {
492
- default: _(() => [
492
+ default: g(() => [
493
493
  (f(!0), w(M, null, L(e(o), (l) => (f(), w(M, {
494
494
  key: l.key
495
495
  }, [
496
- e(H)(l, r.record) ? (f(), g(e(et), {
496
+ e(H)(l, r.record) ? (f(), _(e(et), {
497
497
  key: 0,
498
498
  disabled: p(l) || !l.confirm,
499
499
  cancelText: "否",
@@ -503,8 +503,8 @@ const _a = /* @__PURE__ */ C({
503
503
  cancelButtonProps: { size: "small" },
504
504
  onConfirm: (i) => e(R)(l, e(a).page, e(a), r.record, !0)
505
505
  }, {
506
- default: _(() => [
507
- e(H)(l, r.record) ? V((f(), g(e(Me), {
506
+ default: g(() => [
507
+ e(H)(l, r.record) ? V((f(), _(e(Me), {
508
508
  key: l.key,
509
509
  type: l.type ?? "text",
510
510
  danger: l.danger,
@@ -515,7 +515,7 @@ const _a = /* @__PURE__ */ C({
515
515
  padding: l.type ?? "0px 4px"
516
516
  })
517
517
  }, {
518
- default: _(() => [
518
+ default: g(() => [
519
519
  P(D(l.label), 1)
520
520
  ]),
521
521
  _: 2
@@ -527,27 +527,27 @@ const _a = /* @__PURE__ */ C({
527
527
  _: 2
528
528
  }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
529
529
  ], 64))), 128)),
530
- d.record.Enabled == 1 ? (f(), g(e(me), {
530
+ d.record.Enabled == 1 ? (f(), _(e(me), {
531
531
  key: 0,
532
532
  autoInsertSpaceInButton: !1
533
533
  }, {
534
- default: _(() => [
535
- e(n).length > 0 ? (f(), g(e(tt), {
534
+ default: g(() => [
535
+ e(n).length > 0 ? (f(), _(e(tt), {
536
536
  key: 0,
537
537
  size: "small"
538
538
  }, {
539
- overlay: _(() => [
539
+ overlay: g(() => [
540
540
  b(e(ie), null, {
541
- default: _(() => [
541
+ default: g(() => [
542
542
  (f(!0), w(M, null, L(e(n), (l) => (f(), w(M, {
543
543
  key: l.key
544
544
  }, [
545
- e(H)(l, r.record) ? V((f(), g(e(de), {
545
+ e(H)(l, r.record) ? V((f(), _(e(de), {
546
546
  key: 0,
547
547
  disabled: p(l),
548
548
  onClick: (i) => e(R)(l, e(a).page, e(a), r.record)
549
549
  }, {
550
- default: _(() => [
550
+ default: g(() => [
551
551
  P(D(l.label), 1)
552
552
  ]),
553
553
  _: 2
@@ -560,7 +560,7 @@ const _a = /* @__PURE__ */ C({
560
560
  _: 1
561
561
  })
562
562
  ]),
563
- default: _(() => [
563
+ default: g(() => [
564
564
  c[0] || (c[0] = P(" 更多 "))
565
565
  ]),
566
566
  _: 1,
@@ -605,16 +605,16 @@ const _a = /* @__PURE__ */ C({
605
605
  (f(!0), w(M, null, L(e(t), (s, u) => (f(), w(M, {
606
606
  key: s.key
607
607
  }, [
608
- e(H)(s) && s.dropdown ? (f(), g(e(oe), {
608
+ e(H)(s) && s.dropdown ? (f(), _(e(oe), {
609
609
  key: 0,
610
610
  placement: "bottomRight",
611
611
  class: "p-0 rounded-none"
612
612
  }, {
613
- overlay: _(() => [
613
+ overlay: g(() => [
614
614
  T("div", {
615
615
  class: N(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
616
616
  }, [
617
- s.dropdown === "headset" ? (f(), g(e(mt), {
617
+ s.dropdown === "headset" ? (f(), _(e(mt), {
618
618
  key: 0,
619
619
  modelValue: n.value,
620
620
  "onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
@@ -622,7 +622,7 @@ const _a = /* @__PURE__ */ C({
622
622
  onEnd: p,
623
623
  handle: ".drag-handle"
624
624
  }, {
625
- default: _(() => [
625
+ default: g(() => [
626
626
  (f(!0), w(M, null, L(n.value, (l) => (f(), w("div", {
627
627
  key: l.name,
628
628
  onClick: c[0] || (c[0] = J(() => {
@@ -640,7 +640,7 @@ const _a = /* @__PURE__ */ C({
640
640
  ),
641
641
  class: "text-gray-700 hover:text-gray-900 select-none"
642
642
  }, {
643
- default: _(() => [
643
+ default: g(() => [
644
644
  P(D(l.title), 1)
645
645
  ]),
646
646
  _: 2
@@ -651,7 +651,7 @@ const _a = /* @__PURE__ */ C({
651
651
  }, 8, ["modelValue"])) : k("", !0)
652
652
  ], 2)
653
653
  ]),
654
- default: _(() => [
654
+ default: g(() => [
655
655
  b(e(z), {
656
656
  class: N([
657
657
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
@@ -662,7 +662,7 @@ const _a = /* @__PURE__ */ C({
662
662
  tiptext: s.label,
663
663
  onClick: (l) => e(R)(s, e(a).page, e(a))
664
664
  }, {
665
- default: _(() => [
665
+ default: g(() => [
666
666
  b(e(Y), {
667
667
  icon: s.icon,
668
668
  class: "w-[18px] h-[18.5px]",
@@ -673,7 +673,7 @@ const _a = /* @__PURE__ */ C({
673
673
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
674
674
  ]),
675
675
  _: 2
676
- }, 1024)) : !s.children && e(H)(s) ? (f(), g(e(z), {
676
+ }, 1024)) : !s.children && e(H)(s) ? (f(), _(e(z), {
677
677
  key: 1,
678
678
  class: N([
679
679
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
@@ -684,7 +684,7 @@ const _a = /* @__PURE__ */ C({
684
684
  tiptext: s.label,
685
685
  onClick: (l) => e(R)(s, e(a).page, e(a))
686
686
  }, {
687
- default: _(() => [
687
+ default: g(() => [
688
688
  b(e(Y), {
689
689
  icon: s.icon,
690
690
  class: "w-[18px] h-[18.5px]",
@@ -692,19 +692,19 @@ const _a = /* @__PURE__ */ C({
692
692
  }, null, 8, ["icon"])
693
693
  ]),
694
694
  _: 2
695
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(), g(e(oe), {
695
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(), _(e(oe), {
696
696
  key: 2,
697
697
  placement: "bottomRight",
698
698
  class: "p-0 rounded-none"
699
699
  }, {
700
- overlay: _(() => [
700
+ overlay: g(() => [
701
701
  b(e(ie), null, {
702
- default: _(() => [
703
- (f(!0), w(M, null, L(s.children, (l) => (f(), g(e(de), {
702
+ default: g(() => [
703
+ (f(!0), w(M, null, L(s.children, (l) => (f(), _(e(de), {
704
704
  key: l.key,
705
705
  disabled: e(q)(l)
706
706
  }, {
707
- default: _(() => [
707
+ default: g(() => [
708
708
  P(D(l.label), 1)
709
709
  ]),
710
710
  _: 2
@@ -713,7 +713,7 @@ const _a = /* @__PURE__ */ C({
713
713
  _: 2
714
714
  }, 1024)
715
715
  ]),
716
- default: _(() => [
716
+ default: g(() => [
717
717
  b(e(z), {
718
718
  class: N([
719
719
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
@@ -725,7 +725,7 @@ const _a = /* @__PURE__ */ C({
725
725
  iconProps: { class: "w-[19px] h-[19px]" },
726
726
  onClick: (l) => e(R)(s, e(a).page, e(a))
727
727
  }, {
728
- default: _(() => [
728
+ default: g(() => [
729
729
  b(e(Y), {
730
730
  icon: "icon-down-arrow",
731
731
  class: "w-[12px] h-[12px]"
@@ -780,8 +780,8 @@ const _a = /* @__PURE__ */ C({
780
780
  const u = Q("role"), l = Q("permit");
781
781
  return f(), w("div", zt, [
782
782
  b(e(G), null, {
783
- default: _(() => [
784
- (f(!0), w(M, null, L(p.value, (i) => V((f(), g(e(z), {
783
+ default: g(() => [
784
+ (f(!0), w(M, null, L(p.value, (i) => V((f(), _(e(z), {
785
785
  key: i.key,
786
786
  type: i.type,
787
787
  danger: i.danger,
@@ -789,7 +789,7 @@ const _a = /* @__PURE__ */ C({
789
789
  icon: i.icon,
790
790
  onClick: (m) => e(R)(i, e(t), e(a))
791
791
  }, {
792
- default: _(() => [
792
+ default: g(() => [
793
793
  P(D(i.label), 1)
794
794
  ]),
795
795
  _: 2
@@ -797,16 +797,16 @@ const _a = /* @__PURE__ */ C({
797
797
  [u, i.role],
798
798
  [l, i.permit]
799
799
  ])), 128)),
800
- d.value.length > 0 ? (f(), g(e(oe), { key: 0 }, {
801
- overlay: _(() => [
800
+ d.value.length > 0 ? (f(), _(e(oe), { key: 0 }, {
801
+ overlay: g(() => [
802
802
  b(e(ie), null, {
803
- default: _(() => [
804
- (f(!0), w(M, null, L(d.value, (i) => V((f(), g(e(de), {
803
+ default: g(() => [
804
+ (f(!0), w(M, null, L(d.value, (i) => V((f(), _(e(de), {
805
805
  key: i.key,
806
806
  disabled: e(q)(i),
807
807
  onClick: (m) => e(R)(i, e(t), e(a))
808
808
  }, {
809
- default: _(() => [
809
+ default: g(() => [
810
810
  P(D(i.label), 1)
811
811
  ]),
812
812
  _: 2
@@ -818,9 +818,9 @@ const _a = /* @__PURE__ */ C({
818
818
  _: 1
819
819
  })
820
820
  ]),
821
- default: _(() => [
821
+ default: g(() => [
822
822
  b(e(z), null, {
823
- default: _(() => s[0] || (s[0] = [
823
+ default: g(() => s[0] || (s[0] = [
824
824
  P(" 更多操作 ")
825
825
  ])),
826
826
  _: 1,
@@ -834,8 +834,8 @@ const _a = /* @__PURE__ */ C({
834
834
  _: 1
835
835
  }),
836
836
  b(e(G), { class: "mr-1" }, {
837
- default: _(() => [
838
- (f(), g(Ke(Nt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
837
+ default: g(() => [
838
+ (f(), _(Ke(Nt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
839
839
  ]),
840
840
  _: 1
841
841
  })
@@ -860,7 +860,7 @@ const _a = /* @__PURE__ */ C({
860
860
  };
861
861
  return K(() => {
862
862
  if (!a.data || a.data.length != 2) {
863
- console.error("Switch组件: ", a.data), _t.error("Switch组件必须有且只有两个选项");
863
+ console.error("Switch组件: ", a.data), gt.error("Switch组件必须有且只有两个选项");
864
864
  return;
865
865
  }
866
866
  $e(!1, a, t);
@@ -868,7 +868,7 @@ const _a = /* @__PURE__ */ C({
868
868
  Se(a);
869
869
  }), (c, s) => {
870
870
  var u;
871
- return t.value.length === 2 ? (f(), g(e(lt), B({
871
+ return t.value.length === 2 ? (f(), _(e(lt), B({
872
872
  key: 0,
873
873
  class: [((u = e(p)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "", "bg-blue-300", "w-[58px]"],
874
874
  checkedChildren: t.value[0].label,
@@ -907,13 +907,13 @@ const _a = /* @__PURE__ */ C({
907
907
  $(
908
908
  () => t.tableData.value,
909
909
  (i) => {
910
- i && (p.value = i, d.value.total = t.total.value ?? 0);
910
+ i && (p.value = i, d.value.total = t.total.value ?? 0, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10);
911
911
  },
912
912
  { immediate: !0 }
913
913
  ), $(
914
914
  () => r.tableData,
915
915
  (i) => {
916
- i && (p.value = i, d.value.total = i.length);
916
+ i && (p.value = i, d.value.total = i.length, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10);
917
917
  },
918
918
  { immediate: !0 }
919
919
  );
@@ -944,19 +944,19 @@ const _a = /* @__PURE__ */ C({
944
944
  return Oe(() => {
945
945
  l.value && t && (t.reload.value = !0);
946
946
  }), K(async () => {
947
- ge(X.GridControl, t), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? p.value = (await ve(t)).rows : p.value = await je(t)), setTimeout(() => {
947
+ _e(X.GridControl, t), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? p.value = (await ve(t)).rows : p.value = await je(t)), setTimeout(() => {
948
948
  l.value = !0;
949
949
  }, 50);
950
950
  }), (i, m) => {
951
951
  var S, F;
952
952
  const x = Q("permit");
953
953
  return f(), w(M, null, [
954
- (S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (f(), g(At, {
954
+ (S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (f(), _(At, {
955
955
  key: 0,
956
956
  "grid-ctrl": e(t),
957
957
  "editor-ctrl": e(t).editor
958
958
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
959
- l.value ? (f(), g(e(Ne), B({
959
+ l.value ? (f(), _(e(Ne), B({
960
960
  key: 1,
961
961
  class: "w-full",
962
962
  "row-key": r.primaryKey ?? e(t).primaryKey ?? "Id",
@@ -969,14 +969,14 @@ const _a = /* @__PURE__ */ C({
969
969
  size: e(t).tableSize.value,
970
970
  bordered: ""
971
971
  }, e(a)), {
972
- bodyCell: _((y) => {
972
+ bodyCell: g((y) => {
973
973
  var A, E;
974
974
  return [
975
975
  I(i.$slots, "bodyCell", {
976
976
  column: y == null ? void 0 : y.column,
977
977
  record: y == null ? void 0 : y.record
978
978
  }),
979
- e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? V((f(), g(Et, {
979
+ e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? V((f(), _(Et, {
980
980
  key: 0,
981
981
  checked: y.record.Enabled,
982
982
  "onUpdate:checked": (pe) => y.record.Enabled = pe,
@@ -1049,7 +1049,7 @@ const _a = /* @__PURE__ */ C({
1049
1049
  value: "Id",
1050
1050
  icon: "Icon"
1051
1051
  }), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && De(o);
1052
- }), (u, l) => (f(), g(e(rt), B({
1052
+ }), (u, l) => (f(), _(e(rt), B({
1053
1053
  class: "w-full",
1054
1054
  "show-line": !0,
1055
1055
  "tree-data": n.value,
@@ -1059,7 +1059,7 @@ const _a = /* @__PURE__ */ C({
1059
1059
  loading: e(o).isTreeLoading,
1060
1060
  onSelect: s
1061
1061
  }, e(t)), {
1062
- title: _(({ key: i, label: m, icon: x }) => [
1062
+ title: g(({ key: i, label: m, icon: x }) => [
1063
1063
  I(u.$slots, "title", {
1064
1064
  label: m,
1065
1065
  key: i,
@@ -1074,7 +1074,7 @@ const _a = /* @__PURE__ */ C({
1074
1074
  _: 3
1075
1075
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1076
1076
  }
1077
- }), wa = /* @__PURE__ */ j(gt, [["__scopeId", "data-v-1e39ad49"]]), Rt = {
1077
+ }), wa = /* @__PURE__ */ j(_t, [["__scopeId", "data-v-1e39ad49"]]), Rt = {
1078
1078
  key: 0,
1079
1079
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1080
1080
  }, Ut = /* @__PURE__ */ C({
@@ -1204,7 +1204,7 @@ const Ta = /* @__PURE__ */ C({
1204
1204
  }, p = h(r.valueFormat ?? "YYYY-MM-DD");
1205
1205
  return (d, c) => {
1206
1206
  var s;
1207
- return f(), g(e(st), {
1207
+ return f(), _(e(st), {
1208
1208
  class: N([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
1209
1209
  placeholder: "请选择" + e(t),
1210
1210
  locale: e(ce),
@@ -1245,7 +1245,7 @@ const Ta = /* @__PURE__ */ C({
1245
1245
  };
1246
1246
  return (u, l) => {
1247
1247
  var i, m;
1248
- return f(), g(e(se), B({
1248
+ return f(), _(e(se), B({
1249
1249
  class: [
1250
1250
  (i = e(o)) == null ? void 0 : i.errClass,
1251
1251
  ((m = e(o)) == null ? void 0 : m.errClass) === "error" && !u.$slots.addonBefore && !u.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
@@ -1260,14 +1260,14 @@ const Ta = /* @__PURE__ */ C({
1260
1260
  }, u.$attrs), he({ _: 2 }, [
1261
1261
  u.$slots.addonBefore ? {
1262
1262
  name: "addonBefore",
1263
- fn: _(() => [
1263
+ fn: g(() => [
1264
1264
  I(u.$slots, "addonBefore")
1265
1265
  ]),
1266
1266
  key: "0"
1267
1267
  } : void 0,
1268
1268
  u.$slots.addonAfter ? {
1269
1269
  name: "addonAfter",
1270
- fn: _(() => [
1270
+ fn: g(() => [
1271
1271
  I(u.$slots, "addonAfter")
1272
1272
  ]),
1273
1273
  key: "1"
@@ -1294,12 +1294,12 @@ const Ta = /* @__PURE__ */ C({
1294
1294
  (n) => {
1295
1295
  t("update:value", n);
1296
1296
  }
1297
- ), (n, p) => (f(), g(Vt, B({
1297
+ ), (n, p) => (f(), _(Vt, B({
1298
1298
  class: ["w-[80%]"],
1299
1299
  value: o.value,
1300
1300
  "onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
1301
1301
  }, n.$attrs), {
1302
- addonBefore: _(() => [
1302
+ addonBefore: g(() => [
1303
1303
  b(e(Y), {
1304
1304
  class: "!w-4 !h-4",
1305
1305
  icon: o.value
@@ -1316,7 +1316,7 @@ const Ta = /* @__PURE__ */ C({
1316
1316
  };
1317
1317
  return (n, p) => {
1318
1318
  var d;
1319
- return f(), g(e(nt), B({
1319
+ return f(), _(e(nt), B({
1320
1320
  class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1321
1321
  "allow-clear": !0,
1322
1322
  autocomplete: "new-password",
@@ -1333,7 +1333,7 @@ const Ta = /* @__PURE__ */ C({
1333
1333
  };
1334
1334
  return (n, p) => {
1335
1335
  var d;
1336
- return f(), g(e(ut), B({
1336
+ return f(), _(e(ut), B({
1337
1337
  class: [[((d = e(t)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1338
1338
  onBlur: o,
1339
1339
  "allow-clear": !1,
@@ -1405,7 +1405,7 @@ const Ta = /* @__PURE__ */ C({
1405
1405
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1406
1406
  size: "small"
1407
1407
  }, {
1408
- default: _(() => l[1] || (l[1] = [
1408
+ default: g(() => l[1] || (l[1] = [
1409
1409
  P(" 新增配置行 ")
1410
1410
  ])),
1411
1411
  _: 1,
@@ -1445,7 +1445,7 @@ const Ta = /* @__PURE__ */ C({
1445
1445
  return r.all === !0 && a.value.unshift({
1446
1446
  label: "全部",
1447
1447
  value: r.allValue || [0, 1]
1448
- }), (t, o) => (f(), g(Gt, { data: a.value }, null, 8, ["data"]));
1448
+ }), (t, o) => (f(), _(Gt, { data: a.value }, null, 8, ["data"]));
1449
1449
  }
1450
1450
  }), Ma = /* @__PURE__ */ C({
1451
1451
  __name: "index",
@@ -1460,7 +1460,7 @@ const Ta = /* @__PURE__ */ C({
1460
1460
  const s = a.startDate, u = a.endDate;
1461
1461
  if (!(!s || !u))
1462
1462
  try {
1463
- const l = _e(s), i = _e(u);
1463
+ const l = ge(s), i = ge(u);
1464
1464
  return !l.isValid() || !i.isValid() ? void 0 : [l, i];
1465
1465
  } catch {
1466
1466
  return;
@@ -1474,7 +1474,7 @@ const Ta = /* @__PURE__ */ C({
1474
1474
  };
1475
1475
  return (s, u) => {
1476
1476
  var l;
1477
- return f(), g(e(it), {
1477
+ return f(), _(e(it), {
1478
1478
  class: N([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1479
1479
  locale: e(ce),
1480
1480
  "value-format": p.value,
@@ -1491,7 +1491,7 @@ const Ta = /* @__PURE__ */ C({
1491
1491
  };
1492
1492
  return (n, p) => {
1493
1493
  var d;
1494
- return f(), g(e(dt), B({
1494
+ return f(), _(e(dt), B({
1495
1495
  class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1496
1496
  "allow-clear": !0,
1497
1497
  placeholder: "请输入" + e(a),
@@ -1540,13 +1540,13 @@ const Ta = /* @__PURE__ */ C({
1540
1540
  }
1541
1541
  }), (l, i) => {
1542
1542
  var m;
1543
- return f(), g(e(ct), B({
1543
+ return f(), _(e(ct), B({
1544
1544
  class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1545
1545
  placeholder: "请输入" + e(n),
1546
1546
  targetKeys: s.value,
1547
1547
  onChange: u
1548
1548
  }, l.$attrs), {
1549
- children: _(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
1549
+ children: g(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
1550
1550
  I(l.$slots, "children", {
1551
1551
  direction: x,
1552
1552
  disabled: S,
@@ -1623,7 +1623,7 @@ const Ta = /* @__PURE__ */ C({
1623
1623
  });
1624
1624
  c.value = (s == null ? void 0 : s.data) ?? [];
1625
1625
  }
1626
- }), (s, u) => (f(), g(Xt, B({
1626
+ }), (s, u) => (f(), _(Xt, B({
1627
1627
  "data-source": c.value,
1628
1628
  "row-key": (l) => l[p.value],
1629
1629
  value: n.value,
@@ -1641,7 +1641,7 @@ const Ta = /* @__PURE__ */ C({
1641
1641
  return !1;
1642
1642
  }
1643
1643
  }, s.$attrs), {
1644
- children: _(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
1644
+ children: g(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
1645
1645
  b(e(Ne), {
1646
1646
  columns: v.gridCtrl.columns.value,
1647
1647
  "row-key": p.value,
@@ -1711,7 +1711,7 @@ const Ta = /* @__PURE__ */ C({
1711
1711
  }), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && De(a.treeCtrl);
1712
1712
  }), (l, i) => {
1713
1713
  var m;
1714
- return f(), g(e(pt), B({
1714
+ return f(), _(e(pt), B({
1715
1715
  class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
1716
1716
  "tree-line": "",
1717
1717
  multiple: v.multiple,
@@ -1742,7 +1742,7 @@ const Ta = /* @__PURE__ */ C({
1742
1742
  backgroundColor: e(a).colorBgContainer
1743
1743
  })
1744
1744
  }, {
1745
- default: _(() => [
1745
+ default: g(() => [
1746
1746
  T("div", ta, [
1747
1747
  t.left ? (f(), w("div", aa, [
1748
1748
  I(t.$slots, "left")
@@ -1782,7 +1782,7 @@ export {
1782
1782
  ha as Drawer,
1783
1783
  xa as Form,
1784
1784
  ya as FormItem,
1785
- _a as Fullscreen,
1785
+ ga as Fullscreen,
1786
1786
  Ha as Header,
1787
1787
  Wa as HeaderExits,
1788
1788
  kt as Helper,
@@ -1792,7 +1792,7 @@ export {
1792
1792
  Da as InputIcon,
1793
1793
  Ba as InputNumber,
1794
1794
  Ia as InputPassword,
1795
- ga as LayoutIcon,
1795
+ _a as LayoutIcon,
1796
1796
  Ga as Menu,
1797
1797
  Xa as MenuTabs,
1798
1798
  Za as ProjectIcon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -92,6 +92,8 @@ watch(
92
92
  if (newVal) {
93
93
  dataList.value = newVal;
94
94
  pagination.value.total = gridCtrl.total.value ?? 0;
95
+ pagination.value.current = gridCtrl.pageNo.value ?? 1;
96
+ pagination.value.pageSize = gridCtrl.pageSize.value ?? 10;
95
97
  }
96
98
  },
97
99
  { immediate: true },
@@ -103,6 +105,8 @@ watch(
103
105
  if (newVal) {
104
106
  dataList.value = newVal;
105
107
  pagination.value.total = newVal.length;
108
+ pagination.value.current = gridCtrl.pageNo.value ?? 1;
109
+ pagination.value.pageSize = gridCtrl.pageSize.value ?? 10;
106
110
  }
107
111
  },
108
112
  { immediate: true },