@fmdeui/fmui 1.0.28 → 1.0.30
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/es/component.mjs +3 -1
- package/es/components/fm-layout/index.d.ts +32 -0
- package/es/components/fm-layout/src/component/aside.vue.d.ts +5 -0
- package/es/components/fm-layout/src/component/columnsAside.vue.d.ts +5 -0
- package/es/components/fm-layout/src/component/header.vue.d.ts +16 -0
- package/es/components/fm-layout/src/component/main.vue.d.ts +7 -0
- package/es/components/fm-layout/src/footer/index.vue.d.ts +3 -0
- package/es/components/fm-layout/src/index.vue.d.ts +22 -0
- package/es/components/fm-layout/src/logo/index.vue.d.ts +3 -0
- package/es/components/fm-layout/src/main/classic.vue.d.ts +18 -0
- package/es/components/fm-layout/src/main/columns.vue.d.ts +19 -0
- package/es/components/fm-layout/src/main/defaults.vue.d.ts +48 -0
- package/es/components/fm-layout/src/main/transverse.vue.d.ts +18 -0
- package/es/components/fm-layout/src/navBars/index.vue.d.ts +16 -0
- package/es/components/fm-layout/src/navBars/tagsView/contextmenu.vue.d.ts +28 -0
- package/es/components/fm-layout/src/navBars/tagsView/tagsView.vue.d.ts +45 -0
- package/es/components/fm-layout/src/navBars/topBar/breadcrumb.vue.d.ts +3 -0
- package/es/components/fm-layout/src/navBars/topBar/index.vue.d.ts +16 -0
- package/es/components/fm-layout/src/navBars/topBar/search.vue.d.ts +7 -0
- package/es/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.d.ts +5 -0
- package/es/components/fm-layout/src/navBars/topBar/user.vue.d.ts +75 -0
- package/es/components/fm-layout/src/navBars/topBar/userNews.vue.d.ts +9 -0
- package/es/components/fm-layout/src/navMenu/horizontal.vue.d.ts +42 -0
- package/es/components/fm-layout/src/navMenu/subItem.vue.d.ts +42 -0
- package/es/components/fm-layout/src/navMenu/vertical.vue.d.ts +42 -0
- package/es/components/fm-layout/src/routerView/iframes.vue.d.ts +35 -0
- package/es/components/fm-layout/src/routerView/parent.vue.d.ts +3 -0
- package/es/components/fm-layout/src/type.d.ts +2 -0
- package/es/components/fm-layout/style/css.d.ts +0 -0
- package/es/components/fm-layout/style/index.d.ts +0 -0
- package/es/components/index.d.ts +1 -0
- package/es/packages/components/fm-layout/index.mjs +7 -0
- package/es/packages/components/fm-layout/src/component/aside.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/component/aside.vue2.mjs +175 -0
- package/es/packages/components/fm-layout/src/component/columnsAside.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/component/columnsAside.vue2.mjs +273 -0
- package/es/packages/components/fm-layout/src/component/header.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/component/header.vue2.mjs +50 -0
- package/es/packages/components/fm-layout/src/component/main.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/component/main.vue2.mjs +81 -0
- package/es/packages/components/fm-layout/src/footer/index.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/footer/index.vue2.mjs +29 -0
- package/es/packages/components/fm-layout/src/index.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/index.vue2.mjs +91 -0
- package/es/packages/components/fm-layout/src/logo/index.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/logo/index.vue2.mjs +57 -0
- package/es/packages/components/fm-layout/src/main/classic.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/main/classic.vue2.mjs +87 -0
- package/es/packages/components/fm-layout/src/main/columns.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/main/columns.vue2.mjs +100 -0
- package/es/packages/components/fm-layout/src/main/defaults.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/main/defaults.vue2.mjs +153 -0
- package/es/packages/components/fm-layout/src/main/transverse.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/main/transverse.vue2.mjs +70 -0
- package/es/packages/components/fm-layout/src/navBars/index.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/index.vue2.mjs +44 -0
- package/es/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue2.mjs +156 -0
- package/es/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue2.mjs +576 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue2.mjs +169 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/index.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/index.vue2.mjs +113 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/search.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/search.vue2.mjs +120 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue2.mjs +72 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/user.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/user.vue2.mjs +699 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/userNews.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navBars/topBar/userNews.vue2.mjs +255 -0
- package/es/packages/components/fm-layout/src/navMenu/horizontal.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navMenu/horizontal.vue2.mjs +182 -0
- package/es/packages/components/fm-layout/src/navMenu/subItem.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navMenu/subItem.vue2.mjs +113 -0
- package/es/packages/components/fm-layout/src/navMenu/vertical.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/navMenu/vertical.vue2.mjs +159 -0
- package/es/packages/components/fm-layout/src/routerView/iframes.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/routerView/iframes.vue2.mjs +128 -0
- package/es/packages/components/fm-layout/src/routerView/parent.vue.mjs +5 -0
- package/es/packages/components/fm-layout/src/routerView/parent.vue2.mjs +141 -0
- package/es/packages/components/fm-layout/src/type.mjs +1 -0
- package/es/packages/components/index.mjs +1 -0
- package/index.js +4071 -73
- package/index.min.js +5 -5
- package/index.min.mjs +5 -5
- package/index.mjs +4082 -81
- package/lib/{index.css → component.css} +2 -2
- package/lib/component.js +3 -1
- package/lib/components/fm-layout/index.d.ts +32 -0
- package/lib/components/fm-layout/src/component/aside.vue.d.ts +5 -0
- package/lib/components/fm-layout/src/component/columnsAside.vue.d.ts +5 -0
- package/lib/components/fm-layout/src/component/header.vue.d.ts +16 -0
- package/lib/components/fm-layout/src/component/main.vue.d.ts +7 -0
- package/lib/components/fm-layout/src/footer/index.vue.d.ts +3 -0
- package/lib/components/fm-layout/src/index.vue.d.ts +22 -0
- package/lib/components/fm-layout/src/logo/index.vue.d.ts +3 -0
- package/lib/components/fm-layout/src/main/classic.vue.d.ts +18 -0
- package/lib/components/fm-layout/src/main/columns.vue.d.ts +19 -0
- package/lib/components/fm-layout/src/main/defaults.vue.d.ts +48 -0
- package/lib/components/fm-layout/src/main/transverse.vue.d.ts +18 -0
- package/lib/components/fm-layout/src/navBars/index.vue.d.ts +16 -0
- package/lib/components/fm-layout/src/navBars/tagsView/contextmenu.vue.d.ts +28 -0
- package/lib/components/fm-layout/src/navBars/tagsView/tagsView.vue.d.ts +45 -0
- package/lib/components/fm-layout/src/navBars/topBar/breadcrumb.vue.d.ts +3 -0
- package/lib/components/fm-layout/src/navBars/topBar/index.vue.d.ts +16 -0
- package/lib/components/fm-layout/src/navBars/topBar/search.vue.d.ts +7 -0
- package/lib/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.d.ts +5 -0
- package/lib/components/fm-layout/src/navBars/topBar/user.vue.d.ts +75 -0
- package/lib/components/fm-layout/src/navBars/topBar/userNews.vue.d.ts +9 -0
- package/lib/components/fm-layout/src/navMenu/horizontal.vue.d.ts +42 -0
- package/lib/components/fm-layout/src/navMenu/subItem.vue.d.ts +42 -0
- package/lib/components/fm-layout/src/navMenu/vertical.vue.d.ts +42 -0
- package/lib/components/fm-layout/src/routerView/iframes.vue.d.ts +35 -0
- package/lib/components/fm-layout/src/routerView/parent.vue.d.ts +3 -0
- package/lib/components/fm-layout/src/type.d.ts +2 -0
- package/lib/components/fm-layout/style/css.d.ts +0 -0
- package/lib/components/fm-layout/style/index.d.ts +0 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/packages/components/fm-layout/index.js +9 -0
- package/lib/packages/components/fm-layout/src/component/aside.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/component/aside.vue2.js +179 -0
- package/lib/packages/components/fm-layout/src/component/columnsAside.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/component/columnsAside.vue2.js +277 -0
- package/lib/packages/components/fm-layout/src/component/header.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/component/header.vue2.js +54 -0
- package/lib/packages/components/fm-layout/src/component/main.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/component/main.vue2.js +85 -0
- package/lib/packages/components/fm-layout/src/footer/index.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/footer/index.vue2.js +33 -0
- package/lib/packages/components/fm-layout/src/index.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/index.vue2.js +95 -0
- package/lib/packages/components/fm-layout/src/logo/index.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/logo/index.vue2.js +61 -0
- package/lib/packages/components/fm-layout/src/main/classic.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/main/classic.vue2.js +91 -0
- package/lib/packages/components/fm-layout/src/main/columns.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/main/columns.vue2.js +104 -0
- package/lib/packages/components/fm-layout/src/main/defaults.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/main/defaults.vue2.js +157 -0
- package/lib/packages/components/fm-layout/src/main/transverse.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/main/transverse.vue2.js +74 -0
- package/lib/packages/components/fm-layout/src/navBars/index.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/index.vue2.js +48 -0
- package/lib/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue2.js +160 -0
- package/lib/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue2.js +580 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue2.js +173 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/index.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/index.vue2.js +117 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/search.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/search.vue2.js +124 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue2.js +76 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue2.js +703 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/userNews.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navBars/topBar/userNews.vue2.js +259 -0
- package/lib/packages/components/fm-layout/src/navMenu/horizontal.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navMenu/horizontal.vue2.js +186 -0
- package/lib/packages/components/fm-layout/src/navMenu/subItem.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navMenu/subItem.vue2.js +117 -0
- package/lib/packages/components/fm-layout/src/navMenu/vertical.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/navMenu/vertical.vue2.js +163 -0
- package/lib/packages/components/fm-layout/src/routerView/iframes.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/routerView/iframes.vue2.js +132 -0
- package/lib/packages/components/fm-layout/src/routerView/parent.vue.js +9 -0
- package/lib/packages/components/fm-layout/src/routerView/parent.vue2.js +145 -0
- package/lib/packages/components/fm-layout/src/type.js +2 -0
- package/lib/packages/components/index.js +14 -12
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/f-layout.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/layout.scss +657 -0
- /package/es/{version.css → defaults.css} +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var vueRouter = require('vue-router');
|
|
7
|
+
var pinia = require('pinia');
|
|
8
|
+
require('../../../../stores/index.js');
|
|
9
|
+
require('../../../../utils/index.js');
|
|
10
|
+
var themeConfig = require('../../../../stores/themeConfig.js');
|
|
11
|
+
var loading = require('../../../../utils/loading.js');
|
|
12
|
+
|
|
13
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
__name: "defaults",
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const LayoutAside = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('../component/aside.vue.js'); }));
|
|
17
|
+
const LayoutHeader = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('../component/header.vue.js'); }));
|
|
18
|
+
const LayoutMain = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('../component/main.vue.js'); }));
|
|
19
|
+
const layoutScrollbarRef = vue.ref("");
|
|
20
|
+
const layoutMainRef = vue.ref();
|
|
21
|
+
const route = vueRouter.useRoute();
|
|
22
|
+
const storesThemeConfig = themeConfig.useThemeConfig();
|
|
23
|
+
const { themeConfig: themeConfig$1 } = pinia.storeToRefs(storesThemeConfig);
|
|
24
|
+
const updateScrollbar = () => {
|
|
25
|
+
layoutScrollbarRef.value.update();
|
|
26
|
+
layoutMainRef.value.layoutMainScrollbarRef.update();
|
|
27
|
+
};
|
|
28
|
+
const initScrollBarHeight = () => {
|
|
29
|
+
vue.nextTick(() => {
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
updateScrollbar();
|
|
32
|
+
layoutScrollbarRef.value.wrapRef.scrollTop = 0;
|
|
33
|
+
if (layoutMainRef.value != void 0) layoutMainRef.value.layoutMainScrollbarRef.wrapRef.scrollTop = 0;
|
|
34
|
+
}, 500);
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
vue.onMounted(() => {
|
|
38
|
+
initScrollBarHeight();
|
|
39
|
+
loading.NextLoading.done(600);
|
|
40
|
+
});
|
|
41
|
+
vue.watch(
|
|
42
|
+
() => route.path,
|
|
43
|
+
() => {
|
|
44
|
+
initScrollBarHeight();
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
vue.watch(
|
|
48
|
+
() => [themeConfig$1.value.isTagsview, themeConfig$1.value.isFixedHeader],
|
|
49
|
+
() => {
|
|
50
|
+
vue.nextTick(() => {
|
|
51
|
+
updateScrollbar();
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
deep: true
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
return (_ctx, _cache) => {
|
|
59
|
+
const _component_el_scrollbar = vue.resolveComponent("el-scrollbar");
|
|
60
|
+
const _component_el_container = vue.resolveComponent("el-container");
|
|
61
|
+
return vue.openBlock(), vue.createBlock(_component_el_container, { class: "layout-container" }, {
|
|
62
|
+
default: vue.withCtx(() => [
|
|
63
|
+
!_ctx.$slots.aside ? (vue.openBlock(), vue.createBlock(vue.unref(LayoutAside), { key: 0 }, {
|
|
64
|
+
default: vue.withCtx(() => [
|
|
65
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
66
|
+
vue.Fragment,
|
|
67
|
+
null,
|
|
68
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
69
|
+
return vue.renderSlot(_ctx.$slots, name, vue.mergeProps({
|
|
70
|
+
key: name,
|
|
71
|
+
ref_for: true
|
|
72
|
+
}, _ctx.$slots[name].props || {}));
|
|
73
|
+
}),
|
|
74
|
+
128
|
|
75
|
+
/* KEYED_FRAGMENT */
|
|
76
|
+
))
|
|
77
|
+
]),
|
|
78
|
+
_: 3
|
|
79
|
+
/* FORWARDED */
|
|
80
|
+
})) : vue.renderSlot(_ctx.$slots, "aside", { key: 1 }),
|
|
81
|
+
vue.createVNode(_component_el_container, { class: "layout-container-view h100" }, {
|
|
82
|
+
default: vue.withCtx(() => [
|
|
83
|
+
vue.createVNode(
|
|
84
|
+
_component_el_scrollbar,
|
|
85
|
+
{
|
|
86
|
+
ref_key: "layoutScrollbarRef",
|
|
87
|
+
ref: layoutScrollbarRef,
|
|
88
|
+
class: "layout-backtop"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
default: vue.withCtx(() => [
|
|
92
|
+
!_ctx.$slots.header ? (vue.openBlock(), vue.createBlock(vue.unref(LayoutHeader), { key: 0 }, {
|
|
93
|
+
default: vue.withCtx(() => [
|
|
94
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
95
|
+
vue.Fragment,
|
|
96
|
+
null,
|
|
97
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
98
|
+
return vue.renderSlot(_ctx.$slots, name, vue.mergeProps({
|
|
99
|
+
key: name,
|
|
100
|
+
ref_for: true
|
|
101
|
+
}, _ctx.$slots[name].props || {}));
|
|
102
|
+
}),
|
|
103
|
+
128
|
|
104
|
+
/* KEYED_FRAGMENT */
|
|
105
|
+
))
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
/* FORWARDED */
|
|
109
|
+
})) : vue.renderSlot(_ctx.$slots, "header", { key: 1 }),
|
|
110
|
+
!_ctx.$slots.main ? (vue.openBlock(), vue.createBlock(
|
|
111
|
+
vue.unref(LayoutMain),
|
|
112
|
+
{
|
|
113
|
+
key: 2,
|
|
114
|
+
ref_key: "layoutMainRef",
|
|
115
|
+
ref: layoutMainRef
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
default: vue.withCtx(() => [
|
|
119
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
120
|
+
vue.Fragment,
|
|
121
|
+
null,
|
|
122
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
123
|
+
return vue.renderSlot(_ctx.$slots, name, vue.mergeProps({
|
|
124
|
+
key: name,
|
|
125
|
+
ref_for: true
|
|
126
|
+
}, _ctx.$slots[name].props || {}));
|
|
127
|
+
}),
|
|
128
|
+
128
|
|
129
|
+
/* KEYED_FRAGMENT */
|
|
130
|
+
))
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
/* FORWARDED */
|
|
134
|
+
},
|
|
135
|
+
512
|
|
136
|
+
/* NEED_PATCH */
|
|
137
|
+
)) : vue.renderSlot(_ctx.$slots, "main", { key: 3 })
|
|
138
|
+
]),
|
|
139
|
+
_: 3
|
|
140
|
+
/* FORWARDED */
|
|
141
|
+
},
|
|
142
|
+
512
|
|
143
|
+
/* NEED_PATCH */
|
|
144
|
+
)
|
|
145
|
+
]),
|
|
146
|
+
_: 3
|
|
147
|
+
/* FORWARDED */
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
_: 3
|
|
151
|
+
/* FORWARDED */
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var transverse_vue_vue_type_script_setup_true_name_layoutTransverse_lang = require('./transverse.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = transverse_vue_vue_type_script_setup_true_name_layoutTransverse_lang.default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var vueRouter = require('vue-router');
|
|
7
|
+
var pinia = require('pinia');
|
|
8
|
+
require('../../../../stores/index.js');
|
|
9
|
+
var themeConfig = require('../../../../stores/themeConfig.js');
|
|
10
|
+
|
|
11
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
__name: "transverse",
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const LayoutHeader = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('../component/header.vue.js'); }));
|
|
15
|
+
const LayoutMain = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('../component/main.vue.js'); }));
|
|
16
|
+
const layoutMainRef = vue.ref();
|
|
17
|
+
const storesThemeConfig = themeConfig.useThemeConfig();
|
|
18
|
+
const { themeConfig: themeConfig$1 } = pinia.storeToRefs(storesThemeConfig);
|
|
19
|
+
const route = vueRouter.useRoute();
|
|
20
|
+
const updateScrollbar = () => {
|
|
21
|
+
layoutMainRef.value.layoutMainScrollbarRef.update();
|
|
22
|
+
};
|
|
23
|
+
const initScrollBarHeight = () => {
|
|
24
|
+
vue.nextTick(() => {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
updateScrollbar();
|
|
27
|
+
layoutMainRef.value.layoutMainScrollbarRef.wrapRef.scrollTop = 0;
|
|
28
|
+
}, 500);
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
vue.onMounted(() => {
|
|
32
|
+
initScrollBarHeight();
|
|
33
|
+
});
|
|
34
|
+
vue.watch(
|
|
35
|
+
() => route.path,
|
|
36
|
+
() => {
|
|
37
|
+
initScrollBarHeight();
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
vue.watch(
|
|
41
|
+
() => themeConfig$1.value.isTagsview,
|
|
42
|
+
() => {
|
|
43
|
+
vue.nextTick(() => {
|
|
44
|
+
updateScrollbar();
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
deep: true
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
const _component_el_container = vue.resolveComponent("el-container");
|
|
53
|
+
return vue.openBlock(), vue.createBlock(_component_el_container, { class: "layout-container flex-center layout-backtop" }, {
|
|
54
|
+
default: vue.withCtx(() => [
|
|
55
|
+
vue.createVNode(vue.unref(LayoutHeader)),
|
|
56
|
+
vue.createVNode(
|
|
57
|
+
vue.unref(LayoutMain),
|
|
58
|
+
{
|
|
59
|
+
ref_key: "layoutMainRef",
|
|
60
|
+
ref: layoutMainRef
|
|
61
|
+
},
|
|
62
|
+
null,
|
|
63
|
+
512
|
|
64
|
+
/* NEED_PATCH */
|
|
65
|
+
)
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
/* STABLE */
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var index_vue_vue_type_script_setup_true_name_layoutNavBars_lang = require('./index.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = index_vue_vue_type_script_setup_true_name_layoutNavBars_lang.default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var pinia = require('pinia');
|
|
7
|
+
require('../../../../stores/index.js');
|
|
8
|
+
var themeConfig = require('../../../../stores/themeConfig.js');
|
|
9
|
+
|
|
10
|
+
const _hoisted_1 = { class: "layout-navbars-container" };
|
|
11
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
__name: "index",
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const BreadcrumbIndex = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('./topBar/index.vue.js'); }));
|
|
15
|
+
const TagsView = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return require('./tagsView/tagsView.vue.js'); }));
|
|
16
|
+
const storesThemeConfig = themeConfig.useThemeConfig();
|
|
17
|
+
const { themeConfig: themeConfig$1 } = pinia.storeToRefs(storesThemeConfig);
|
|
18
|
+
const setShowTagsView = vue.computed(() => {
|
|
19
|
+
let { layout, isTagsview } = themeConfig$1.value;
|
|
20
|
+
return layout !== "classic" && isTagsview;
|
|
21
|
+
});
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
24
|
+
!_ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createBlock(vue.unref(BreadcrumbIndex), { key: 0 }, {
|
|
25
|
+
default: vue.withCtx(() => [
|
|
26
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
27
|
+
vue.Fragment,
|
|
28
|
+
null,
|
|
29
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
30
|
+
return vue.renderSlot(_ctx.$slots, name, vue.mergeProps({
|
|
31
|
+
key: name,
|
|
32
|
+
ref_for: true
|
|
33
|
+
}, _ctx.$slots[name].props || {}));
|
|
34
|
+
}),
|
|
35
|
+
128
|
|
36
|
+
/* KEYED_FRAGMENT */
|
|
37
|
+
))
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
/* FORWARDED */
|
|
41
|
+
})) : vue.renderSlot(_ctx.$slots, "breadcrumb", { key: 1 }),
|
|
42
|
+
setShowTagsView.value ? (vue.openBlock(), vue.createBlock(vue.unref(TagsView), { key: 2 })) : vue.createCommentVNode("v-if", true)
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var contextmenu_vue_vue_type_script_setup_true_name_layoutTagsViewContextmenu_lang = require('./contextmenu.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = contextmenu_vue_vue_type_script_setup_true_name_layoutTagsViewContextmenu_lang.default;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = ["aria-hidden"];
|
|
8
|
+
const _hoisted_2 = { class: "el-dropdown-menu" };
|
|
9
|
+
const _hoisted_3 = ["onClick"];
|
|
10
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "contextmenu",
|
|
12
|
+
props: {
|
|
13
|
+
dropdown: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
return {
|
|
17
|
+
x: 0,
|
|
18
|
+
y: 0
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
emits: ["currentContextmenuClick"],
|
|
24
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const state = vue.reactive({
|
|
28
|
+
isShow: false,
|
|
29
|
+
dropdownList: [
|
|
30
|
+
{ contextMenuClickId: 0, txt: "message.tagsView.refresh", affix: false, icon: "ele-RefreshRight" },
|
|
31
|
+
{ contextMenuClickId: 1, txt: "message.tagsView.close", affix: false, icon: "ele-Close" },
|
|
32
|
+
{ contextMenuClickId: 2, txt: "message.tagsView.closeOther", affix: false, icon: "ele-CircleClose" },
|
|
33
|
+
{ contextMenuClickId: 3, txt: "message.tagsView.closeAll", affix: false, icon: "ele-FolderDelete" },
|
|
34
|
+
{
|
|
35
|
+
contextMenuClickId: 4,
|
|
36
|
+
txt: "message.tagsView.fullscreen",
|
|
37
|
+
affix: false,
|
|
38
|
+
icon: "iconfont icon-fullscreen"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
item: {},
|
|
42
|
+
arrowLeft: 10
|
|
43
|
+
});
|
|
44
|
+
const dropdowns = vue.computed(() => {
|
|
45
|
+
if (props.dropdown.x + 117 > document.documentElement.clientWidth) {
|
|
46
|
+
return {
|
|
47
|
+
x: document.documentElement.clientWidth - 117 - 5,
|
|
48
|
+
y: props.dropdown.y
|
|
49
|
+
};
|
|
50
|
+
} else {
|
|
51
|
+
return props.dropdown;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const onCurrentContextmenuClick = (contextMenuClickId) => {
|
|
55
|
+
emit("currentContextmenuClick", Object.assign({}, { contextMenuClickId }, state.item));
|
|
56
|
+
};
|
|
57
|
+
const openContextmenu = (item) => {
|
|
58
|
+
var _a;
|
|
59
|
+
state.item = item;
|
|
60
|
+
((_a = item.meta) == null ? void 0 : _a.isAffix) ? state.dropdownList[1].affix = true : state.dropdownList[1].affix = false;
|
|
61
|
+
closeContextmenu();
|
|
62
|
+
setTimeout(() => {
|
|
63
|
+
state.isShow = true;
|
|
64
|
+
}, 10);
|
|
65
|
+
};
|
|
66
|
+
const closeContextmenu = () => {
|
|
67
|
+
state.isShow = false;
|
|
68
|
+
};
|
|
69
|
+
vue.onMounted(() => {
|
|
70
|
+
document.body.addEventListener("click", closeContextmenu);
|
|
71
|
+
});
|
|
72
|
+
vue.onUnmounted(() => {
|
|
73
|
+
document.body.removeEventListener("click", closeContextmenu);
|
|
74
|
+
});
|
|
75
|
+
vue.watch(
|
|
76
|
+
() => props.dropdown,
|
|
77
|
+
({ x }) => {
|
|
78
|
+
if (x + 117 > document.documentElement.clientWidth) state.arrowLeft = 117 - (document.documentElement.clientWidth - x);
|
|
79
|
+
else state.arrowLeft = 10;
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
deep: true
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
__expose({
|
|
86
|
+
openContextmenu
|
|
87
|
+
});
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
const _component_SvgIcon = vue.resolveComponent("SvgIcon");
|
|
90
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
91
|
+
name: "el-collapse-transition",
|
|
92
|
+
persisted: ""
|
|
93
|
+
}, {
|
|
94
|
+
default: vue.withCtx(() => [
|
|
95
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
96
|
+
"aria-hidden": state.isShow ? false : true,
|
|
97
|
+
class: "el-dropdown__popper el-popper is-light is-pure custom-contextmenu",
|
|
98
|
+
role: "tooltip",
|
|
99
|
+
"data-popper-placement": "bottom",
|
|
100
|
+
style: vue.normalizeStyle(`top: ${dropdowns.value.y + 5}px;left: ${dropdowns.value.x}px;`),
|
|
101
|
+
key: Math.random()
|
|
102
|
+
}, [
|
|
103
|
+
vue.createElementVNode("ul", _hoisted_2, [
|
|
104
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
105
|
+
vue.Fragment,
|
|
106
|
+
null,
|
|
107
|
+
vue.renderList(state.dropdownList, (v, k) => {
|
|
108
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
109
|
+
vue.Fragment,
|
|
110
|
+
null,
|
|
111
|
+
[
|
|
112
|
+
!v.affix ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
113
|
+
class: "el-dropdown-menu__item",
|
|
114
|
+
"aria-disabled": "false",
|
|
115
|
+
tabindex: "-1",
|
|
116
|
+
key: k,
|
|
117
|
+
onClick: ($event) => onCurrentContextmenuClick(v.contextMenuClickId)
|
|
118
|
+
}, [
|
|
119
|
+
vue.createVNode(_component_SvgIcon, {
|
|
120
|
+
name: v.icon
|
|
121
|
+
}, null, 8, ["name"]),
|
|
122
|
+
vue.createElementVNode(
|
|
123
|
+
"span",
|
|
124
|
+
null,
|
|
125
|
+
vue.toDisplayString(_ctx.$t(v.txt)),
|
|
126
|
+
1
|
|
127
|
+
/* TEXT */
|
|
128
|
+
)
|
|
129
|
+
], 8, _hoisted_3)) : vue.createCommentVNode("v-if", true)
|
|
130
|
+
],
|
|
131
|
+
64
|
|
132
|
+
/* STABLE_FRAGMENT */
|
|
133
|
+
);
|
|
134
|
+
}),
|
|
135
|
+
256
|
|
136
|
+
/* UNKEYED_FRAGMENT */
|
|
137
|
+
))
|
|
138
|
+
]),
|
|
139
|
+
vue.createElementVNode(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
class: "el-popper__arrow",
|
|
143
|
+
style: vue.normalizeStyle({ left: `${state.arrowLeft}px` })
|
|
144
|
+
},
|
|
145
|
+
null,
|
|
146
|
+
4
|
|
147
|
+
/* STYLE */
|
|
148
|
+
)
|
|
149
|
+
], 12, _hoisted_1)), [
|
|
150
|
+
[vue.vShow, state.isShow]
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
/* STABLE */
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tagsView_vue_vue_type_script_setup_true_name_layoutTagsView_lang = require('./tagsView.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = tagsView_vue_vue_type_script_setup_true_name_layoutTagsView_lang.default;
|