@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.
- package/docs/nested-config-paradigm.md +80 -0
- package/es/bridge/config-hook.mjs +37 -0
- package/es/bridge/index.mjs +157 -62
- package/es/bridge/plugin.mjs +29 -0
- package/es/bridge/theme.mjs +65 -0
- package/es/components/app-layout/AppBody.vue.mjs +1 -1
- package/es/components/app-layout/AppBody.vue2.mjs +47 -49
- package/es/components/app-layout/AppBreadcrumb.vue.mjs +1 -1
- package/es/components/app-layout/AppBreadcrumb.vue2.mjs +35 -41
- package/es/components/app-layout/AppFooter.vue.mjs +2 -2
- package/es/components/app-layout/AppFooter.vue2.mjs +8 -8
- package/es/components/app-layout/AppHeader.vue.mjs +1 -1
- package/es/components/app-layout/AppHeader.vue2.mjs +60 -69
- package/es/components/app-layout/AppLayout.vue.mjs +2 -2
- package/es/components/app-layout/AppLayout.vue2.mjs +95 -93
- package/es/components/app-layout/AppSidebar.vue.mjs +2 -2
- package/es/components/app-layout/AppSidebar.vue2.mjs +79 -82
- package/es/components/app-layout/AppTheme.vue.mjs +7 -0
- package/es/components/app-layout/AppTheme.vue2.mjs +38 -0
- package/es/components/data-view/DataListView.vue.mjs +2 -2
- package/es/components/data-view/DataListView.vue2.mjs +36 -36
- package/es/components/display/ActionConfirm.vue2.mjs +16 -16
- package/es/components/display/HeightProvider.vue.mjs +10 -10
- package/es/components/display/TabsHeader.vue.mjs +4 -4
- package/es/components/display/TabsHeader.vue2.mjs +34 -34
- package/es/components/display/TabsMain.vue.mjs +40 -39
- package/es/components/display/TabsRefineFlow.vue.mjs +30 -28
- package/es/components/form/FormItem.vue.mjs +1 -1
- package/es/components/form/FormItem.vue2.mjs +75 -81
- package/es/components/form/FormItemNestForm.vue.mjs +7 -0
- package/es/components/form/FormItemNestForm.vue2.mjs +49 -0
- package/es/components/form/FormItemNestFormList.vue.mjs +7 -0
- package/es/components/form/FormItemNestFormList.vue2.mjs +137 -0
- package/es/components/form/FormMain.vue.mjs +5 -147
- package/es/components/form/FormMain.vue2.mjs +160 -2
- package/es/components/form/FormRadioGroup.vue.mjs +42 -49
- package/es/components/form/FormSearch.vue.mjs +2 -2
- package/es/components/form/FormSearch.vue2.mjs +122 -128
- package/es/components/form/FormSelect.vue.mjs +34 -40
- package/es/components/form/FormSubmitBtn.vue.mjs +23 -28
- package/es/components/form/FormSubmitPanel.vue.mjs +2 -2
- package/es/components/form/FormSubmitPanel.vue2.mjs +29 -28
- package/es/components/form/FormTree.vue.mjs +16 -21
- package/es/components/form/FormVerifyCode.vue.mjs +37 -43
- package/es/components/form/FormVerifyImage.vue.mjs +2 -2
- package/es/components/form/FormVerifyImage.vue2.mjs +36 -41
- package/es/components/form/nest-form-item-list.mjs +71 -0
- package/es/components/form/nest-form-item.mjs +42 -0
- package/es/components/form/nest-registry.mjs +7 -0
- package/es/components/form/use-nest-form-list.mjs +22 -0
- package/es/components/form/use-nest-form.mjs +34 -0
- package/es/components/form/use-nest-layout-scale.mjs +14 -0
- package/es/components/form/utils.mjs +77 -61
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +134 -139
- package/es/components/menu/MenuItemSub.vue.mjs +41 -48
- package/es/components/menu/MenuTree.vue.mjs +58 -65
- package/es/components/misc/AutoRefresh.vue.mjs +2 -2
- package/es/components/misc/AutoRefresh.vue2.mjs +44 -51
- package/es/components/misc/AutoRefreshGroup.vue.mjs +2 -2
- package/es/components/misc/AutoRefreshGroup.vue2.mjs +37 -43
- package/es/components/modal/ConfirmModal.vue.mjs +3 -4
- package/es/components/modal/ConfirmModal.vue2.mjs +83 -111
- package/es/components/modal/DetailModal.vue.mjs +38 -41
- package/es/components/panel/PanelEditSwitch.vue.mjs +1 -1
- package/es/components/panel/PanelEditSwitch.vue2.mjs +50 -55
- package/es/components/panel/PanelItemNestForm.vue.mjs +7 -0
- package/es/components/panel/PanelItemNestForm.vue2.mjs +69 -0
- package/es/components/panel/PanelItemNestPanel.vue.mjs +34 -0
- package/es/components/panel/PanelItemNestPanel.vue2.mjs +4 -0
- package/es/components/panel/PanelMain.vue.mjs +1 -1
- package/es/components/panel/PanelMain.vue2.mjs +72 -72
- package/es/components/panel/nest-panel-form.mjs +53 -0
- package/es/components/panel/nest-panel-item.mjs +25 -0
- package/es/components/table/TableMain.vue.mjs +2 -2
- package/es/components/table/TableMain.vue2.mjs +221 -229
- package/es/components/table/TableToolbar.vue.mjs +2 -2
- package/es/components/table/TableToolbar.vue2.mjs +115 -126
- package/es/hooks/use-admin-theme-apply.mjs +84 -0
- package/es/hooks/use-admin-viewport-apply.mjs +27 -0
- package/es/index.mjs +190 -153
- package/es/inject/key.mjs +15 -6
- package/es/store/app.mjs +75 -84
- package/es/style.css +1 -1
- package/es/utils/theme-scale.mjs +37 -0
- package/package.json +2 -4
- package/types/bridge/config-hook.d.ts +91 -0
- package/types/bridge/index.d.ts +108 -8
- package/types/bridge/plugin.d.ts +39 -0
- package/types/bridge/theme.d.ts +85 -0
- package/types/components/app-layout/AppTheme.vue.d.ts +2 -0
- package/types/components/app-layout/types.d.ts +1 -1
- package/types/components/form/FormItem.vue.d.ts +12 -12
- package/types/components/form/FormItemNestForm.vue.d.ts +36 -0
- package/types/components/form/FormItemNestFormList.vue.d.ts +63 -0
- package/types/components/form/FormMain.vue.d.ts +2 -2
- package/types/components/form/FormSearch.vue.d.ts +2 -2
- package/types/components/form/FormTree.vue.d.ts +50 -50
- package/types/components/form/index.d.ts +9 -1
- package/types/components/form/nest-form-item-list.d.ts +63 -0
- package/types/components/form/nest-form-item.d.ts +36 -0
- package/types/components/form/nest-registry.d.ts +22 -0
- package/types/components/form/types.d.ts +2 -0
- package/types/components/form/use-nest-form-list.d.ts +20 -0
- package/types/components/form/use-nest-form.d.ts +26 -0
- package/types/components/form/use-nest-layout-scale.d.ts +17 -0
- package/types/components/form/utils.d.ts +26 -1
- package/types/components/menu/MenuTree.vue.d.ts +10 -10
- package/types/components/modal/ModalShelf.vue.d.ts +1 -1
- package/types/components/panel/PanelItemNestForm.vue.d.ts +35 -0
- package/types/components/panel/PanelItemNestPanel.vue.d.ts +22 -0
- package/types/components/panel/index.d.ts +5 -1
- package/types/components/panel/nest-panel-form.d.ts +38 -0
- package/types/components/panel/nest-panel-item.d.ts +28 -0
- package/types/components/panel/types.d.ts +2 -0
- package/types/components/table/TableMain.vue.d.ts +3 -3
- package/types/hooks/activated.d.ts +2 -2
- package/types/hooks/feel-size.d.ts +1 -1
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/menus-dispatch.d.ts +5 -5
- package/types/hooks/use-admin-theme-apply.d.ts +17 -0
- package/types/hooks/use-admin-viewport-apply.d.ts +15 -0
- package/types/hooks/use-breakpoint.d.ts +1 -1
- package/types/inject/key.d.ts +46 -1
- package/types/store/app.d.ts +138 -59
- package/types/utils/index.d.ts +1 -0
- package/types/utils/theme-scale.d.ts +35 -0
|
@@ -1,60 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "element-plus
|
|
3
|
-
|
|
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 (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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(),
|
|
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
|
-
_:
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
52
|
+
E as default
|
|
60
53
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "element-plus
|
|
5
|
-
|
|
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(
|
|
19
|
-
const
|
|
14
|
+
setup(l, { expose: k }) {
|
|
15
|
+
const c = l, u = P(), v = D(), i = _(), B = x(() => c.routerMode ? {
|
|
20
16
|
...i,
|
|
21
|
-
defaultActive:
|
|
17
|
+
defaultActive: v.path
|
|
22
18
|
} : i);
|
|
23
|
-
|
|
19
|
+
k({
|
|
24
20
|
open: (o) => {
|
|
25
|
-
var
|
|
26
|
-
return (
|
|
21
|
+
var t;
|
|
22
|
+
return (t = u.value) == null ? void 0 : t.open(o);
|
|
27
23
|
},
|
|
28
24
|
close: (o) => {
|
|
29
|
-
var
|
|
30
|
-
return (
|
|
25
|
+
var t;
|
|
26
|
+
return (t = u.value) == null ? void 0 : t.close(o);
|
|
31
27
|
}
|
|
32
28
|
});
|
|
33
|
-
const
|
|
34
|
-
const n =
|
|
35
|
-
return n != null && n.parentPath ? (
|
|
36
|
-
},
|
|
37
|
-
const { autoClose:
|
|
38
|
-
if (
|
|
39
|
-
const { menuFlatList:
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
n.includes(
|
|
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,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-64f355fe"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "element-plus
|
|
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
|
|
9
|
-
import { useActivated as
|
|
10
|
-
const
|
|
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__ */
|
|
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
|
|
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 =
|
|
21
|
+
const c = () => (o || (o = d.refreshFn().catch(() => {
|
|
26
22
|
}).finally(() => {
|
|
27
23
|
o = null;
|
|
28
|
-
})), o),
|
|
29
|
-
|
|
30
|
-
await c(), n.value &&
|
|
31
|
-
},
|
|
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
|
-
|
|
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
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e608ff06"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "element-plus
|
|
4
|
-
import "element-plus/
|
|
5
|
-
|
|
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__ */
|
|
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
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
53
|
+
V as default
|
|
60
54
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import o from "./ConfirmModal.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
6
|
+
f as default
|
|
8
7
|
};
|