@done-coding/admin-core 0.8.3-alpha.0 → 0.9.1-alpha.0

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.
Files changed (127) hide show
  1. package/docs/nested-config-paradigm.md +80 -0
  2. package/es/bridge/config-hook.mjs +37 -0
  3. package/es/bridge/index.mjs +157 -62
  4. package/es/bridge/plugin.mjs +29 -0
  5. package/es/bridge/theme.mjs +65 -0
  6. package/es/components/app-layout/AppBody.vue.mjs +1 -1
  7. package/es/components/app-layout/AppBody.vue2.mjs +47 -49
  8. package/es/components/app-layout/AppBreadcrumb.vue.mjs +1 -1
  9. package/es/components/app-layout/AppBreadcrumb.vue2.mjs +35 -41
  10. package/es/components/app-layout/AppFooter.vue.mjs +2 -2
  11. package/es/components/app-layout/AppFooter.vue2.mjs +8 -8
  12. package/es/components/app-layout/AppHeader.vue.mjs +1 -1
  13. package/es/components/app-layout/AppHeader.vue2.mjs +60 -69
  14. package/es/components/app-layout/AppLayout.vue.mjs +2 -2
  15. package/es/components/app-layout/AppLayout.vue2.mjs +95 -93
  16. package/es/components/app-layout/AppSidebar.vue.mjs +2 -2
  17. package/es/components/app-layout/AppSidebar.vue2.mjs +79 -82
  18. package/es/components/app-layout/AppTheme.vue.mjs +7 -0
  19. package/es/components/app-layout/AppTheme.vue2.mjs +38 -0
  20. package/es/components/data-view/DataListView.vue.mjs +2 -2
  21. package/es/components/data-view/DataListView.vue2.mjs +36 -36
  22. package/es/components/display/ActionConfirm.vue2.mjs +16 -16
  23. package/es/components/display/HeightProvider.vue.mjs +10 -10
  24. package/es/components/display/TabsHeader.vue.mjs +4 -4
  25. package/es/components/display/TabsHeader.vue2.mjs +34 -34
  26. package/es/components/display/TabsMain.vue.mjs +40 -39
  27. package/es/components/display/TabsRefineFlow.vue.mjs +30 -28
  28. package/es/components/form/FormItem.vue.mjs +1 -1
  29. package/es/components/form/FormItem.vue2.mjs +75 -81
  30. package/es/components/form/FormItemNestForm.vue.mjs +7 -0
  31. package/es/components/form/FormItemNestForm.vue2.mjs +49 -0
  32. package/es/components/form/FormItemNestFormList.vue.mjs +7 -0
  33. package/es/components/form/FormItemNestFormList.vue2.mjs +137 -0
  34. package/es/components/form/FormMain.vue.mjs +5 -147
  35. package/es/components/form/FormMain.vue2.mjs +160 -2
  36. package/es/components/form/FormRadioGroup.vue.mjs +42 -49
  37. package/es/components/form/FormSearch.vue.mjs +2 -2
  38. package/es/components/form/FormSearch.vue2.mjs +122 -128
  39. package/es/components/form/FormSelect.vue.mjs +34 -40
  40. package/es/components/form/FormSubmitBtn.vue.mjs +23 -28
  41. package/es/components/form/FormSubmitPanel.vue.mjs +2 -2
  42. package/es/components/form/FormSubmitPanel.vue2.mjs +29 -28
  43. package/es/components/form/FormTree.vue.mjs +16 -21
  44. package/es/components/form/FormVerifyCode.vue.mjs +37 -43
  45. package/es/components/form/FormVerifyImage.vue.mjs +2 -2
  46. package/es/components/form/FormVerifyImage.vue2.mjs +36 -41
  47. package/es/components/form/nest-form-item-list.mjs +71 -0
  48. package/es/components/form/nest-form-item.mjs +42 -0
  49. package/es/components/form/nest-registry.mjs +7 -0
  50. package/es/components/form/use-nest-form-list.mjs +22 -0
  51. package/es/components/form/use-nest-form.mjs +34 -0
  52. package/es/components/form/use-nest-layout-scale.mjs +14 -0
  53. package/es/components/form/utils.mjs +77 -61
  54. package/es/components/list-page/ListPage.vue.mjs +2 -2
  55. package/es/components/list-page/ListPage.vue2.mjs +134 -139
  56. package/es/components/menu/MenuItemSub.vue.mjs +41 -48
  57. package/es/components/menu/MenuTree.vue.mjs +58 -65
  58. package/es/components/misc/AutoRefresh.vue.mjs +2 -2
  59. package/es/components/misc/AutoRefresh.vue2.mjs +44 -51
  60. package/es/components/misc/AutoRefreshGroup.vue.mjs +2 -2
  61. package/es/components/misc/AutoRefreshGroup.vue2.mjs +37 -43
  62. package/es/components/modal/ConfirmModal.vue.mjs +3 -4
  63. package/es/components/modal/ConfirmModal.vue2.mjs +83 -111
  64. package/es/components/modal/DetailModal.vue.mjs +38 -41
  65. package/es/components/panel/PanelEditSwitch.vue.mjs +1 -1
  66. package/es/components/panel/PanelEditSwitch.vue2.mjs +50 -55
  67. package/es/components/panel/PanelItemNestForm.vue.mjs +7 -0
  68. package/es/components/panel/PanelItemNestForm.vue2.mjs +69 -0
  69. package/es/components/panel/PanelItemNestPanel.vue.mjs +34 -0
  70. package/es/components/panel/PanelItemNestPanel.vue2.mjs +4 -0
  71. package/es/components/panel/PanelMain.vue.mjs +1 -1
  72. package/es/components/panel/PanelMain.vue2.mjs +72 -72
  73. package/es/components/panel/nest-panel-form.mjs +53 -0
  74. package/es/components/panel/nest-panel-item.mjs +25 -0
  75. package/es/components/table/TableMain.vue.mjs +2 -2
  76. package/es/components/table/TableMain.vue2.mjs +221 -229
  77. package/es/components/table/TableToolbar.vue.mjs +2 -2
  78. package/es/components/table/TableToolbar.vue2.mjs +115 -126
  79. package/es/hooks/use-admin-theme-apply.mjs +84 -0
  80. package/es/hooks/use-admin-viewport-apply.mjs +27 -0
  81. package/es/index.mjs +190 -153
  82. package/es/inject/key.mjs +15 -6
  83. package/es/store/app.mjs +75 -84
  84. package/es/style.css +1 -1
  85. package/es/utils/theme-scale.mjs +37 -0
  86. package/package.json +2 -4
  87. package/types/bridge/config-hook.d.ts +91 -0
  88. package/types/bridge/index.d.ts +108 -8
  89. package/types/bridge/plugin.d.ts +39 -0
  90. package/types/bridge/theme.d.ts +85 -0
  91. package/types/components/app-layout/AppTheme.vue.d.ts +2 -0
  92. package/types/components/app-layout/types.d.ts +1 -1
  93. package/types/components/form/FormItem.vue.d.ts +12 -12
  94. package/types/components/form/FormItemNestForm.vue.d.ts +36 -0
  95. package/types/components/form/FormItemNestFormList.vue.d.ts +63 -0
  96. package/types/components/form/FormMain.vue.d.ts +2 -2
  97. package/types/components/form/FormSearch.vue.d.ts +2 -2
  98. package/types/components/form/FormTree.vue.d.ts +50 -50
  99. package/types/components/form/index.d.ts +9 -1
  100. package/types/components/form/nest-form-item-list.d.ts +63 -0
  101. package/types/components/form/nest-form-item.d.ts +36 -0
  102. package/types/components/form/nest-registry.d.ts +22 -0
  103. package/types/components/form/types.d.ts +2 -0
  104. package/types/components/form/use-nest-form-list.d.ts +20 -0
  105. package/types/components/form/use-nest-form.d.ts +26 -0
  106. package/types/components/form/use-nest-layout-scale.d.ts +17 -0
  107. package/types/components/form/utils.d.ts +26 -1
  108. package/types/components/menu/MenuTree.vue.d.ts +10 -10
  109. package/types/components/modal/ModalShelf.vue.d.ts +1 -1
  110. package/types/components/panel/PanelItemNestForm.vue.d.ts +35 -0
  111. package/types/components/panel/PanelItemNestPanel.vue.d.ts +22 -0
  112. package/types/components/panel/index.d.ts +5 -1
  113. package/types/components/panel/nest-panel-form.d.ts +38 -0
  114. package/types/components/panel/nest-panel-item.d.ts +28 -0
  115. package/types/components/panel/types.d.ts +2 -0
  116. package/types/components/table/TableMain.vue.d.ts +3 -3
  117. package/types/hooks/activated.d.ts +2 -2
  118. package/types/hooks/feel-size.d.ts +1 -1
  119. package/types/hooks/index.d.ts +2 -0
  120. package/types/hooks/menus-dispatch.d.ts +5 -5
  121. package/types/hooks/use-admin-theme-apply.d.ts +17 -0
  122. package/types/hooks/use-admin-viewport-apply.d.ts +15 -0
  123. package/types/hooks/use-breakpoint.d.ts +1 -1
  124. package/types/inject/key.d.ts +46 -1
  125. package/types/store/app.d.ts +138 -59
  126. package/types/utils/index.d.ts +1 -0
  127. package/types/utils/theme-scale.d.ts +35 -0
@@ -1,60 +1,53 @@
1
- import { ElSubMenu as p, ElMenuItem as M, ElIcon as S } from "element-plus/es";
2
- import "element-plus/es/components/base/style/css";
3
- import "element-plus/es/components/sub-menu/style/css";
4
- import "element-plus/es/components/menu-item/style/css";
5
- import "element-plus/es/components/icon/style/css";
6
- import { defineComponent as b, openBlock as e, createBlock as u, withCtx as m, createElementBlock as l, Fragment as c, renderList as h, unref as k, resolveDynamicComponent as r, createCommentVNode as a, createElementVNode as i, toDisplayString as d } from "vue";
7
- const D = /* @__PURE__ */ b({
1
+ import { defineComponent as f, openBlock as e, createBlock as t, unref as l, withCtx as m, createElementBlock as a, Fragment as r, renderList as h, resolveDynamicComponent as c, createCommentVNode as o, createElementVNode as d, toDisplayString as i } from "vue";
2
+ import { ElSubMenu as k, ElMenuItem as M, ElIcon as I } from "element-plus";
3
+ const E = /* @__PURE__ */ f({
8
4
  __name: "MenuItemSub",
9
5
  props: {
10
6
  menu: {},
11
7
  MenuItemSub: {}
12
8
  },
13
9
  setup(n) {
14
- return (E, s) => {
15
- const o = S, I = M, f = p;
16
- return e(), u(f, {
17
- index: n.menu.path
18
- }, {
19
- title: m(() => [
20
- n.menu.menuIcon ? (e(), u(o, { key: 0 }, {
10
+ return (S, b) => (e(), t(l(k), {
11
+ index: n.menu.path
12
+ }, {
13
+ title: m(() => [
14
+ n.menu.menuIcon ? (e(), t(l(I), { key: 0 }, {
15
+ default: m(() => [
16
+ (e(), t(c(n.menu.menuIcon)))
17
+ ]),
18
+ _: 1
19
+ })) : o("", !0),
20
+ d("span", null, i(n.menu.title), 1)
21
+ ]),
22
+ default: m(() => [
23
+ (e(!0), a(r, null, h(n.menu.children, (u) => (e(), a(r, {
24
+ key: u.path
25
+ }, [
26
+ u.children.length ? (e(), t(l(n.MenuItemSub), {
27
+ key: 0,
28
+ menu: u,
29
+ MenuItemSub: n.MenuItemSub
30
+ }, null, 8, ["menu", "MenuItemSub"])) : (e(), t(l(M), {
31
+ key: 1,
32
+ index: u.path
33
+ }, {
21
34
  default: m(() => [
22
- (e(), u(r(n.menu.menuIcon)))
35
+ u.menuIcon ? (e(), t(l(I), { key: 0 }, {
36
+ default: m(() => [
37
+ (e(), t(c(u.menuIcon)))
38
+ ]),
39
+ _: 2
40
+ }, 1024)) : o("", !0),
41
+ d("span", null, i(u.title), 1)
23
42
  ]),
24
- _: 1
25
- })) : a("", !0),
26
- i("span", null, d(n.menu.title), 1)
27
- ]),
28
- default: m(() => [
29
- (e(!0), l(c, null, h(n.menu.children, (t) => (e(), l(c, {
30
- key: t.path
31
- }, [
32
- t.children.length ? (e(), u(k(n.MenuItemSub), {
33
- key: 0,
34
- menu: t,
35
- MenuItemSub: n.MenuItemSub
36
- }, null, 8, ["menu", "MenuItemSub"])) : (e(), u(I, {
37
- key: 1,
38
- index: t.path
39
- }, {
40
- default: m(() => [
41
- t.menuIcon ? (e(), u(o, { key: 0 }, {
42
- default: m(() => [
43
- (e(), u(r(t.menuIcon)))
44
- ]),
45
- _: 2
46
- }, 1024)) : a("", !0),
47
- i("span", null, d(t.title), 1)
48
- ]),
49
- _: 2
50
- }, 1032, ["index"]))
51
- ], 64))), 128))
52
- ]),
53
- _: 1
54
- }, 8, ["index"]);
55
- };
43
+ _: 2
44
+ }, 1032, ["index"]))
45
+ ], 64))), 128))
46
+ ]),
47
+ _: 1
48
+ }, 8, ["index"]));
56
49
  }
57
50
  });
58
51
  export {
59
- D as default
52
+ E as default
60
53
  };
@@ -1,12 +1,8 @@
1
- import { ElMenu as I, ElMenuItem as B, ElIcon as C } from "element-plus/es";
2
- import "element-plus/es/components/base/style/css";
3
- import "element-plus/es/components/menu/style/css";
4
- import "element-plus/es/components/menu-item/style/css";
5
- import "element-plus/es/components/icon/style/css";
6
- import { defineComponent as P, ref as v, useAttrs as x, computed as g, openBlock as l, createBlock as c, mergeProps as L, unref as S, withCtx as m, createElementBlock as d, Fragment as h, renderList as w, resolveDynamicComponent as A, createCommentVNode as D, createElementVNode as F, toDisplayString as N } from "vue";
7
- import _ from "./MenuItemSub.vue.mjs";
8
- import { useRoute as R } from "vue-router";
9
- const H = /* @__PURE__ */ P({
1
+ import { defineComponent as E, ref as P, useAttrs as _, computed as x, openBlock as r, createBlock as a, unref as p, mergeProps as I, withCtx as f, createElementBlock as h, Fragment as y, renderList as g, resolveDynamicComponent as L, createCommentVNode as S, createElementVNode as w, toDisplayString as A } from "vue";
2
+ import M from "./MenuItemSub.vue.mjs";
3
+ import { useRoute as D } from "vue-router";
4
+ import { ElMenu as F, ElMenuItem as N, ElIcon as R } from "element-plus";
5
+ const j = /* @__PURE__ */ E({
10
6
  __name: "MenuTree",
11
7
  props: {
12
8
  menus: {},
@@ -15,73 +11,70 @@ const H = /* @__PURE__ */ P({
15
11
  collapse: { type: Boolean },
16
12
  autoClose: { type: Boolean }
17
13
  },
18
- setup(s, { expose: M }) {
19
- const p = s, u = v(), y = R(), i = x(), E = g(() => p.routerMode ? {
14
+ setup(l, { expose: k }) {
15
+ const c = l, u = P(), v = D(), i = _(), B = x(() => c.routerMode ? {
20
16
  ...i,
21
- defaultActive: y.path
17
+ defaultActive: v.path
22
18
  } : i);
23
- M({
19
+ k({
24
20
  open: (o) => {
25
- var e;
26
- return (e = u.value) == null ? void 0 : e.open(o);
21
+ var t;
22
+ return (t = u.value) == null ? void 0 : t.open(o);
27
23
  },
28
24
  close: (o) => {
29
- var e;
30
- return (e = u.value) == null ? void 0 : e.close(o);
25
+ var t;
26
+ return (t = u.value) == null ? void 0 : t.close(o);
31
27
  }
32
28
  });
33
- const f = (o, e, r) => {
34
- const n = e.find((a) => a.path === o);
35
- return n != null && n.parentPath ? (r.unshift(n.parentPath), f(n.parentPath, e, r)) : r;
36
- }, k = (o) => {
37
- const { autoClose: e } = p;
38
- if (e) {
39
- const { menuFlatList: r } = p, n = f(o, r, [o]);
40
- r.forEach((a) => {
41
- var t;
42
- n.includes(a.path) || (t = u.value) == null || t.close(a.path);
29
+ const m = (o, t, e) => {
30
+ const n = t.find((s) => s.path === o);
31
+ return n != null && n.parentPath ? (e.unshift(n.parentPath), m(n.parentPath, t, e)) : e;
32
+ }, C = (o) => {
33
+ const { autoClose: t } = c;
34
+ if (t) {
35
+ const { menuFlatList: e } = c, n = m(o, e, [o]);
36
+ e.forEach((s) => {
37
+ var d;
38
+ n.includes(s.path) || (d = u.value) == null || d.close(s.path);
43
39
  });
44
40
  }
45
41
  };
46
- return (o, e) => {
47
- const r = C, n = B, a = I;
48
- return l(), c(a, L(S(E), {
49
- ref_key: "elMenu",
50
- ref: u,
51
- collapse: s.collapse,
52
- router: s.routerMode,
53
- onSelect: k
54
- }), {
55
- default: m(() => [
56
- (l(!0), d(h, null, w(s.menus, (t) => (l(), d(h, {
57
- key: t.path
58
- }, [
59
- t.children.length ? (l(), c(_, {
60
- key: 0,
61
- menu: t,
62
- MenuItemSub: _
63
- }, null, 8, ["menu"])) : (l(), c(n, {
64
- key: 1,
65
- index: t.path
66
- }, {
67
- default: m(() => [
68
- t.menuIcon ? (l(), c(r, { key: 0 }, {
69
- default: m(() => [
70
- (l(), c(A(t.menuIcon)))
71
- ]),
72
- _: 2
73
- }, 1024)) : D("", !0),
74
- F("span", null, N(t.title), 1)
75
- ]),
76
- _: 2
77
- }, 1032, ["index"]))
78
- ], 64))), 128))
79
- ]),
80
- _: 1
81
- }, 16, ["collapse", "router"]);
82
- };
42
+ return (o, t) => (r(), a(p(F), I(B.value, {
43
+ ref_key: "elMenu",
44
+ ref: u,
45
+ collapse: l.collapse,
46
+ router: l.routerMode,
47
+ onSelect: C
48
+ }), {
49
+ default: f(() => [
50
+ (r(!0), h(y, null, g(l.menus, (e) => (r(), h(y, {
51
+ key: e.path
52
+ }, [
53
+ e.children.length ? (r(), a(M, {
54
+ key: 0,
55
+ menu: e,
56
+ MenuItemSub: M
57
+ }, null, 8, ["menu"])) : (r(), a(p(N), {
58
+ key: 1,
59
+ index: e.path
60
+ }, {
61
+ default: f(() => [
62
+ e.menuIcon ? (r(), a(p(R), { key: 0 }, {
63
+ default: f(() => [
64
+ (r(), a(L(e.menuIcon)))
65
+ ]),
66
+ _: 2
67
+ }, 1024)) : S("", !0),
68
+ w("span", null, A(e.title), 1)
69
+ ]),
70
+ _: 2
71
+ }, 1032, ["index"]))
72
+ ], 64))), 128))
73
+ ]),
74
+ _: 1
75
+ }, 16, ["collapse", "router"]));
83
76
  }
84
77
  });
85
78
  export {
86
- H as default
79
+ j as default
87
80
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AutoRefresh.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f8a1089"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-64f355fe"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,15 +1,11 @@
1
- import { ElPopover as M, ElInputNumber as R, ElSwitch as y } from "element-plus/es";
2
- import "element-plus/es/components/base/style/css";
3
- import "element-plus/es/components/popover/style/css";
4
- import "element-plus/es/components/input-number/style/css";
5
- import "element-plus/es/components/switch/style/css";
6
- import { defineComponent as B, useModel as d, computed as N, watch as g, openBlock as x, createBlock as P, withCtx as f, createElementVNode as p, createVNode as v, unref as h, mergeModels as T } from "vue";
1
+ import { defineComponent as M, useModel as f, computed as R, watch as w, openBlock as y, createBlock as B, unref as t, withCtx as v, createElementVNode as p, createVNode as h, mergeModels as E } from "vue";
2
+ import { ElPopover as g, ElInputNumber as x, ElSwitch as N } from "element-plus";
7
3
  import { Refresh as V } from "@element-plus/icons-vue";
8
- import { useTimeout as k } from "../../hooks/timeout.mjs";
9
- import { useActivated as A } from "../../hooks/activated.mjs";
10
- const C = { class: "auto-refresh" }, H = /* @__PURE__ */ B({
4
+ import { useTimeout as T } from "../../hooks/timeout.mjs";
5
+ import { useActivated as k } from "../../hooks/activated.mjs";
6
+ const A = { class: "auto-refresh" }, I = /* @__PURE__ */ M({
11
7
  __name: "AutoRefresh",
12
- props: /* @__PURE__ */ T({
8
+ props: /* @__PURE__ */ E({
13
9
  refreshFn: {},
14
10
  disabled: { type: Boolean }
15
11
  }, {
@@ -20,52 +16,49 @@ const C = { class: "auto-refresh" }, H = /* @__PURE__ */ B({
20
16
  }),
21
17
  emits: ["update:modelValue", "update:interval"],
22
18
  setup(r) {
23
- const u = r, a = d(r, "modelValue"), t = d(r, "interval"), n = N(() => a.value && !u.disabled), [E, m] = k();
19
+ const d = r, i = f(r, "modelValue"), l = f(r, "interval"), n = R(() => i.value && !d.disabled), [b, m] = T();
24
20
  let o = null;
25
- const c = () => (o || (o = u.refreshFn().catch(() => {
21
+ const c = () => (o || (o = d.refreshFn().catch(() => {
26
22
  }).finally(() => {
27
23
  o = null;
28
- })), o), i = () => {
29
- E(async () => {
30
- await c(), n.value && i();
31
- }, t.value * 1e3);
32
- };
33
- return g([n, t], ([l]) => {
34
- l ? i() : m();
35
- }), A(({ isActivated: l, triggerType: e }) => {
36
- l && n.value && (e === "activated" && (m(), c()), i());
37
- }), (l, e) => {
38
- const b = y, _ = R, w = M;
39
- return x(), P(w, {
40
- trigger: "hover",
41
- placement: "bottom-start"
42
- }, {
43
- reference: f(() => [
44
- v(b, {
45
- modelValue: a.value,
46
- "onUpdate:modelValue": e[0] || (e[0] = (s) => a.value = s),
47
- "active-action-icon": h(V),
48
- "inactive-action-icon": h(V)
49
- }, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"])
50
- ]),
51
- default: f(() => [
52
- p("div", C, [
53
- e[2] || (e[2] = p("div", { class: "auto-refresh-label" }, "自动刷新间隔(秒)", -1)),
54
- v(_, {
55
- modelValue: t.value,
56
- "onUpdate:modelValue": e[1] || (e[1] = (s) => t.value = s),
57
- min: 1,
58
- step: 1,
59
- size: "small",
60
- class: "auto-refresh-interval"
61
- }, null, 8, ["modelValue"])
62
- ])
63
- ]),
64
- _: 1
65
- });
24
+ })), o), s = () => {
25
+ b(async () => {
26
+ await c(), n.value && s();
27
+ }, l.value * 1e3);
66
28
  };
29
+ return w([n, l], ([a]) => {
30
+ a ? s() : m();
31
+ }), k(({ isActivated: a, triggerType: e }) => {
32
+ a && n.value && (e === "activated" && (m(), c()), s());
33
+ }), (a, e) => (y(), B(t(g), {
34
+ trigger: "hover",
35
+ placement: "bottom-start"
36
+ }, {
37
+ reference: v(() => [
38
+ h(t(N), {
39
+ modelValue: i.value,
40
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => i.value = u),
41
+ "active-action-icon": t(V),
42
+ "inactive-action-icon": t(V)
43
+ }, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"])
44
+ ]),
45
+ default: v(() => [
46
+ p("div", A, [
47
+ e[2] || (e[2] = p("div", { class: "auto-refresh-label" }, "自动刷新间隔(秒)", -1)),
48
+ h(t(x), {
49
+ modelValue: l.value,
50
+ "onUpdate:modelValue": e[1] || (e[1] = (u) => l.value = u),
51
+ min: 1,
52
+ step: 1,
53
+ size: "small",
54
+ class: "auto-refresh-interval"
55
+ }, null, 8, ["modelValue"])
56
+ ])
57
+ ]),
58
+ _: 1
59
+ }));
67
60
  }
68
61
  });
69
62
  export {
70
- H as default
63
+ I as default
71
64
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AutoRefreshGroup.vue2.mjs";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9cac8b09"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e608ff06"]]);
5
5
  export {
6
- c as default
6
+ p as default
7
7
  };
@@ -1,13 +1,10 @@
1
- import { ElButton as h, ElIcon as c } from "element-plus/es";
2
- import "element-plus/es/components/base/style/css";
3
- import "element-plus/es/components/button/style/css";
4
- import "element-plus/es/components/icon/style/css";
5
- import { defineComponent as v, useModel as s, openBlock as r, createElementBlock as R, Fragment as p, createBlock as a, createCommentVNode as u, withCtx as i, createVNode as f, normalizeClass as A, unref as B, mergeModels as g } from "vue";
6
- import k from "./AutoRefresh.vue.mjs";
7
- import { Refresh as y } from "@element-plus/icons-vue";
8
- const b = /* @__PURE__ */ v({
1
+ import { defineComponent as m, useModel as s, openBlock as o, createElementBlock as h, Fragment as v, createBlock as u, createCommentVNode as i, unref as l, withCtx as f, createVNode as d, normalizeClass as R, mergeModels as c } from "vue";
2
+ import A from "./AutoRefresh.vue.mjs";
3
+ import { ElButton as B, ElIcon as g } from "element-plus";
4
+ import { Refresh as k } from "@element-plus/icons-vue";
5
+ const V = /* @__PURE__ */ m({
9
6
  __name: "AutoRefreshGroup",
10
- props: /* @__PURE__ */ g({
7
+ props: /* @__PURE__ */ c({
11
8
  showAutoRefresh: { type: Boolean, default: !0 },
12
9
  showRefresh: { type: Boolean, default: !0 },
13
10
  loading: { type: Boolean },
@@ -20,41 +17,38 @@ const b = /* @__PURE__ */ v({
20
17
  }),
21
18
  emits: ["update:isAutoRefresh", "update:interval"],
22
19
  setup(e) {
23
- const l = s(e, "isAutoRefresh"), n = s(e, "interval");
24
- return (F, t) => {
25
- const d = c, m = h;
26
- return r(), R(p, null, [
27
- e.showAutoRefresh ? (r(), a(k, {
28
- key: 0,
29
- modelValue: l.value,
30
- "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
31
- interval: n.value,
32
- "onUpdate:interval": t[1] || (t[1] = (o) => n.value = o),
33
- refreshFn: e.refreshFn,
34
- disabled: e.loading
35
- }, null, 8, ["modelValue", "interval", "refreshFn", "disabled"])) : u("", !0),
36
- e.showRefresh ? (r(), a(m, {
37
- key: 1,
38
- size: "small",
39
- circle: "",
40
- onClick: t[2] || (t[2] = (o) => e.refreshFn())
41
- }, {
42
- default: i(() => [
43
- f(d, {
44
- class: A({ "auto-refresh-group-icon--rotating": e.loading })
45
- }, {
46
- default: i(() => [
47
- f(B(y))
48
- ]),
49
- _: 1
50
- }, 8, ["class"])
51
- ]),
52
- _: 1
53
- })) : u("", !0)
54
- ], 64);
55
- };
20
+ const n = s(e, "isAutoRefresh"), a = s(e, "interval");
21
+ return (p, t) => (o(), h(v, null, [
22
+ e.showAutoRefresh ? (o(), u(A, {
23
+ key: 0,
24
+ modelValue: n.value,
25
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => n.value = r),
26
+ interval: a.value,
27
+ "onUpdate:interval": t[1] || (t[1] = (r) => a.value = r),
28
+ refreshFn: e.refreshFn,
29
+ disabled: e.loading
30
+ }, null, 8, ["modelValue", "interval", "refreshFn", "disabled"])) : i("", !0),
31
+ e.showRefresh ? (o(), u(l(B), {
32
+ key: 1,
33
+ size: "small",
34
+ circle: "",
35
+ onClick: t[2] || (t[2] = (r) => e.refreshFn())
36
+ }, {
37
+ default: f(() => [
38
+ d(l(g), {
39
+ class: R({ "auto-refresh-group-icon--rotating": e.loading })
40
+ }, {
41
+ default: f(() => [
42
+ d(l(k))
43
+ ]),
44
+ _: 1
45
+ }, 8, ["class"])
46
+ ]),
47
+ _: 1
48
+ })) : i("", !0)
49
+ ], 64));
56
50
  }
57
51
  });
58
52
  export {
59
- b as default
53
+ V as default
60
54
  };
@@ -1,8 +1,7 @@
1
1
  import o from "./ConfirmModal.vue2.mjs";
2
2
  /* empty css */
3
- /* empty css */
4
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a29e4c8"]]);
3
+ import r from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-26598cb2"]]);
6
5
  export {
7
- a as default
6
+ f as default
8
7
  };