@dt-frames/ui 2.0.5 → 2.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/es/assets/locales/en.d.ts +2 -0
- package/es/assets/locales/en.ts +2 -0
- package/es/assets/locales/zh.d.ts +1 -0
- package/es/assets/locales/zh.ts +6 -5
- package/es/components/curd/index.js +81 -56
- package/es/components/curd/src/components/Curd.d.ts +2 -8
- package/es/components/curd/src/hooks/useCurd.d.ts +3 -3
- package/es/components/curd/src/props.d.ts +1 -4
- package/es/components/curd/src/types/curd.type.d.ts +3 -9
- package/es/components/form/index.d.ts +30 -54
- package/es/components/form/index.js +76 -42
- package/es/components/form/index.less +1 -0
- package/es/components/form/src/components/FormButtons.d.ts +3 -3
- package/es/components/form/src/components/FormItem.d.ts +5 -8
- package/es/components/form/src/components/formIcon.d.ts +4 -4
- package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
- package/es/components/form/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form/src/index.d.ts +24 -42
- package/es/components/form/src/props.d.ts +5 -8
- package/es/components/modal/index.js +3 -6
- package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
- package/es/components/modal/src/index.d.ts +9 -9
- package/es/components/source/hooks/useSource.d.ts +14 -13
- package/es/components/source/index.js +62 -36
- package/es/components/table/index.js +151 -158
- package/es/components/table/src/index.d.ts +18 -54
- package/es/components/table/src/props.d.ts +6 -18
- package/es/components/table/src/types/table.type.d.ts +1 -4
- package/es/theme/index.d.ts +2 -2
- package/es/theme/index.js +486 -344
- package/es/theme/index.less +1 -0
- package/es/theme/src/components/content/index.d.ts +6 -4
- package/es/theme/src/components/header/index.d.ts +43 -20
- package/es/theme/src/components/header/multiple-header.d.ts +86 -40
- package/es/theme/src/components/sider/index.d.ts +2 -1
- package/es/theme/src/components/sider/mix-sider.d.ts +2 -1
- package/es/theme/src/components/tabs/components/TabContent.d.ts +33 -3
- package/es/theme/src/components/tabs/components/TabRedo.d.ts +6 -4
- package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -4
- package/es/theme/src/components/tabs/hooks/useTabs.d.ts +10 -0
- package/es/theme/src/components/tabs/index.d.ts +43 -20
- package/es/theme/src/index.d.ts +138 -65
- package/es/theme/src/stores/routeReuse.store.d.ts +6 -4
- package/es/theme/src/stores/theme.store.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +0 -101
- package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
- package/es/packages/ui/src/assets/locales/zh.d.ts +0 -103
- package/es/packages/ui/src/components/container/index.d.ts +0 -94
- package/es/packages/ui/src/components/container/src/components/bar.d.ts +0 -14
- package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +0 -70
- package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +0 -10
- package/es/packages/ui/src/components/container/src/scroll-container.d.ts +0 -76
- package/es/packages/ui/src/components/container/src/slot-container.d.ts +0 -20
- package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +0 -22
- package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +0 -5
- package/es/packages/ui/src/global.d.ts +0 -7
- package/es/packages/ui/src/theme/index.d.ts +0 -10
- package/es/packages/ui/src/theme/src/components/content/index.d.ts +0 -27
- package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +0 -5
- package/es/packages/ui/src/theme/src/components/feature/index.d.ts +0 -7
- package/es/packages/ui/src/theme/src/components/footer/index.d.ts +0 -31
- package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +0 -6
- package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +0 -5
- package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +0 -11
- package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +0 -23
- package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +0 -56
- package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +0 -22
- package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +0 -24
- package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +0 -223
- package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +0 -282
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +0 -138
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +0 -16
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +0 -58
- package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +0 -49
- package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +0 -10
- package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +0 -37
- package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +0 -13
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
- package/es/packages/ui/src/theme/src/components/header/index.d.ts +0 -720
- package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +0 -806
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +0 -62
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +0 -207
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +0 -127
- package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +0 -26
- package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +0 -14
- package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +0 -22
- package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +0 -69
- package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +0 -17
- package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +0 -12
- package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +0 -10
- package/es/packages/ui/src/theme/src/components/sider/index.d.ts +0 -235
- package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +0 -167
- package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +0 -6
- package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +0 -21
- package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +0 -7
- package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +0 -6
- package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +0 -63
- package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +0 -7
- package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
- package/es/packages/ui/src/theme/src/index.d.ts +0 -1851
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
- package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -23
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -18
- package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
- package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
package/es/theme/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BackTop, MenuItem, MenuDivider, Menu, Dropdown, TabPane, Tabs, Breadcrumb, Empty, InputSearch, Popover, Avatar, Tooltip, Select, Switch, Divider, Button, Drawer, SubMenu, LayoutHeader, LayoutSider, LayoutContent, Layout, ConfigProvider } from "ant-design-vue/es";
|
|
2
2
|
import "ant-design-vue/es/config-provider/style";
|
|
3
3
|
import "ant-design-vue/es/layout/style";
|
|
4
|
-
import { toRaw, unref, computed, onMounted, nextTick, defineComponent, openBlock, createBlock, createCommentVNode, createElementBlock, createElementVNode, reactive, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, ref, watch, createSlots, getCurrentInstance, inject, onUnmounted, h, provide, onBeforeUnmount, normalizeStyle, resolveDynamicComponent, renderSlot, mergeProps, withDirectives, vShow, watchEffect, resolveDirective, createTextVNode, normalizeProps, guardReactiveProps, resolveComponent, toRef, withModifiers, Transition, KeepAlive } from "vue";
|
|
4
|
+
import { toRaw, unref as unref$1, computed, onMounted, nextTick, defineComponent, openBlock, createBlock, createCommentVNode, createElementBlock, createElementVNode, reactive, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, ref, watch, createSlots, getCurrentInstance, inject, onUnmounted, h, provide, onBeforeUnmount, normalizeStyle, resolveDynamicComponent, renderSlot, mergeProps, withDirectives, vShow, watchEffect, resolveDirective, createTextVNode, normalizeProps, guardReactiveProps, resolveComponent, toRef, withModifiers, Transition, KeepAlive } from "vue";
|
|
5
5
|
import { useRouter, RouterView } from "vue-router";
|
|
6
|
-
import { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, isObject, useTimeoutFn, useI18n,
|
|
6
|
+
import { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, isObject, useTimeoutFn, useI18n, menuList2Map, isNullAndUnDef, off, on, getParentSlots, isBoolean, localeList, changeLocale, isFunction, copyText, isUrl, openWindow, useApp, withInstall as withInstall$1 } from "@dt-frames/core";
|
|
7
7
|
import { defineStore } from "pinia";
|
|
8
|
-
import { trim } from "lodash-es";
|
|
8
|
+
import { cloneDeep, trim } from "lodash-es";
|
|
9
9
|
import { useDebounceFn, useFullscreen, useThrottleFn } from "@vueuse/core";
|
|
10
10
|
import "ant-design-vue/es/back-top/style";
|
|
11
11
|
import "ant-design-vue/es/tabs/style";
|
|
@@ -106,7 +106,7 @@ const defaultThemeConf = {
|
|
|
106
106
|
},
|
|
107
107
|
routeReuse: {
|
|
108
108
|
show: true,
|
|
109
|
-
cache:
|
|
109
|
+
cache: false,
|
|
110
110
|
canDrag: true,
|
|
111
111
|
showQuick: true,
|
|
112
112
|
showRedo: true,
|
|
@@ -116,7 +116,7 @@ const defaultThemeConf = {
|
|
|
116
116
|
const useThemeStore = defineStore({
|
|
117
117
|
id: "dt-theme",
|
|
118
118
|
state: () => ({
|
|
119
|
-
themeConf: DtCache.getLocal(CacheKey.THEME) ?? defaultThemeConf,
|
|
119
|
+
themeConf: DtCache.getLocal(CacheKey.THEME) ?? cloneDeep(defaultThemeConf),
|
|
120
120
|
pageLoading: false,
|
|
121
121
|
mixSiderHasSubMenu: false
|
|
122
122
|
}),
|
|
@@ -151,14 +151,22 @@ const useThemeStore = defineStore({
|
|
|
151
151
|
},
|
|
152
152
|
setMixSiderIsHasMenu(val) {
|
|
153
153
|
this.mixSiderHasSubMenu = val;
|
|
154
|
+
},
|
|
155
|
+
resetState() {
|
|
156
|
+
DtCache.removeLocal(CacheKey.THEME);
|
|
157
|
+
this.themeConf = cloneDeep(defaultThemeConf);
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
});
|
|
161
|
+
function handleGotoPage(router) {
|
|
162
|
+
const go = useGo(router);
|
|
163
|
+
go(unref$1(router.currentRoute).path, true);
|
|
164
|
+
}
|
|
157
165
|
const useRouteReuseStore = defineStore({
|
|
158
166
|
id: "route-reuse",
|
|
159
167
|
state: () => ({
|
|
160
168
|
cacheTabList: /* @__PURE__ */ new Set(),
|
|
161
|
-
tabList: DtCache.getLocal(CacheKey.
|
|
169
|
+
tabList: DtCache.getLocal(CacheKey.ROUTE_REUSE) || [],
|
|
162
170
|
lastDragEndIndex: 0
|
|
163
171
|
}),
|
|
164
172
|
getters: {
|
|
@@ -194,9 +202,9 @@ const useRouteReuseStore = defineStore({
|
|
|
194
202
|
}
|
|
195
203
|
this.updateCacheTab();
|
|
196
204
|
},
|
|
197
|
-
closeTab(
|
|
205
|
+
closeTab(route, router) {
|
|
198
206
|
const go = useGo(router);
|
|
199
|
-
const index = this.tabList.findIndex((item) => item.path === path);
|
|
207
|
+
const index = this.tabList.findIndex((item) => item.path === route.path);
|
|
200
208
|
let page;
|
|
201
209
|
if (index === 0) {
|
|
202
210
|
if (this.tabList.length !== 1) {
|
|
@@ -205,20 +213,20 @@ const useRouteReuseStore = defineStore({
|
|
|
205
213
|
} else {
|
|
206
214
|
page = this.tabList[index - 1];
|
|
207
215
|
}
|
|
208
|
-
this.bulkCloseTabs([path]);
|
|
216
|
+
this.bulkCloseTabs([route.path]);
|
|
209
217
|
this.updateCacheTab();
|
|
210
|
-
path === router.currentRoute.value.path && go(page.path);
|
|
218
|
+
route.path === router.currentRoute.value.path && go(page.path);
|
|
211
219
|
},
|
|
212
220
|
closeAllTab(currentRoute, router) {
|
|
213
221
|
const go = useGo(router);
|
|
214
222
|
let filterTabList = this.tabList.filter((item) => item?.meta?.affix ?? false);
|
|
215
|
-
const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref(currentRoute);
|
|
223
|
+
const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref$1(currentRoute);
|
|
216
224
|
this.tabList = [route];
|
|
217
225
|
this.updateCacheTab();
|
|
218
226
|
go(route.path);
|
|
219
227
|
},
|
|
220
|
-
closeLeftTabs(
|
|
221
|
-
const index = this.tabList.findIndex((item) => item.path === path);
|
|
228
|
+
closeLeftTabs(route, router) {
|
|
229
|
+
const index = this.tabList.findIndex((item) => item.path === route.path);
|
|
222
230
|
if (index > 0) {
|
|
223
231
|
const leftTabs = this.tabList.slice(0, index);
|
|
224
232
|
const pathList = [];
|
|
@@ -231,9 +239,10 @@ const useRouteReuseStore = defineStore({
|
|
|
231
239
|
this.bulkCloseTabs(pathList);
|
|
232
240
|
}
|
|
233
241
|
this.updateCacheTab();
|
|
242
|
+
handleGotoPage(router);
|
|
234
243
|
},
|
|
235
|
-
closeRightTabs(
|
|
236
|
-
const index = this.tabList.findIndex((item) => item.path === path);
|
|
244
|
+
closeRightTabs(route, router) {
|
|
245
|
+
const index = this.tabList.findIndex((item) => item.path === route.path);
|
|
237
246
|
if (index >= 0 && index < this.tabList.length - 1) {
|
|
238
247
|
const rightTabs = this.tabList.slice(index + 1, this.tabList.length);
|
|
239
248
|
const pathList = [];
|
|
@@ -246,24 +255,40 @@ const useRouteReuseStore = defineStore({
|
|
|
246
255
|
this.bulkCloseTabs(pathList);
|
|
247
256
|
}
|
|
248
257
|
this.updateCacheTab();
|
|
258
|
+
handleGotoPage(router);
|
|
249
259
|
},
|
|
250
|
-
closeOtherTabs(
|
|
260
|
+
closeOtherTabs(route, router) {
|
|
251
261
|
const pathList = [];
|
|
252
262
|
for (let item of this.tabList) {
|
|
253
263
|
const affix = item?.meta?.affix ?? false;
|
|
254
|
-
if (item.path !== path && !affix) {
|
|
264
|
+
if (item.path !== route.path && !affix) {
|
|
255
265
|
pathList.push(item.path);
|
|
256
266
|
}
|
|
257
267
|
}
|
|
258
268
|
this.bulkCloseTabs(pathList);
|
|
259
269
|
this.updateCacheTab();
|
|
270
|
+
handleGotoPage(router);
|
|
271
|
+
},
|
|
272
|
+
closeTabByKey(path, router) {
|
|
273
|
+
const go = useGo(router);
|
|
274
|
+
const index = this.tabList.findIndex((item) => item.path === path);
|
|
275
|
+
let page;
|
|
276
|
+
if (index === 0) {
|
|
277
|
+
if (this.tabList.length !== 1) {
|
|
278
|
+
page = this.tabList[index + 1];
|
|
279
|
+
}
|
|
280
|
+
} else {
|
|
281
|
+
page = this.tabList[index - 1];
|
|
282
|
+
}
|
|
283
|
+
this.bulkCloseTabs([path]);
|
|
284
|
+
this.updateCacheTab();
|
|
285
|
+
path === router.currentRoute.value.path && go(page.path);
|
|
260
286
|
},
|
|
261
287
|
bulkCloseTabs(pathList) {
|
|
262
288
|
this.tabList = this.tabList.filter((item) => !pathList.includes(item.fullPath));
|
|
263
289
|
},
|
|
264
290
|
updateCacheTab() {
|
|
265
|
-
|
|
266
|
-
cacheTab && DtCache.setLocal(CacheKey.ROUTE_REUSE, this.tabList);
|
|
291
|
+
DtCache.setLocal(CacheKey.ROUTE_REUSE, this.tabList);
|
|
267
292
|
const cacheMap = /* @__PURE__ */ new Set();
|
|
268
293
|
for (const tab of this.tabList) {
|
|
269
294
|
if (tab.meta?.hideTab) {
|
|
@@ -275,7 +300,7 @@ const useRouteReuseStore = defineStore({
|
|
|
275
300
|
this.cacheTabList = cacheMap;
|
|
276
301
|
},
|
|
277
302
|
async refreshPage(router) {
|
|
278
|
-
const findTab = this.getCachedTabList.find((item) => item === unref(router.currentRoute).name);
|
|
303
|
+
const findTab = this.getCachedTabList.find((item) => item === unref$1(router.currentRoute).name);
|
|
279
304
|
if (findTab) {
|
|
280
305
|
this.cacheTabList.delete(findTab.toString());
|
|
281
306
|
}
|
|
@@ -287,56 +312,60 @@ const useRouteReuseStore = defineStore({
|
|
|
287
312
|
this.tabList.splice(oldIndex, 1);
|
|
288
313
|
this.tabList.splice(newIndex, 0, currentTab);
|
|
289
314
|
this.lastDragEndIndex = this.lastDragEndIndex + 1;
|
|
315
|
+
},
|
|
316
|
+
resetState() {
|
|
317
|
+
this.tabList = [];
|
|
318
|
+
this.updateCacheTab();
|
|
290
319
|
}
|
|
291
320
|
}
|
|
292
321
|
});
|
|
293
322
|
function useMenu() {
|
|
294
|
-
const {
|
|
295
|
-
const getCollapsedShowTitle = computed(() => getMenuConf.collapsedShowTitle);
|
|
296
|
-
const getIsSidebarType = computed(() => getMenuConf.type === MenuType.SIDE);
|
|
297
|
-
const getMenuFixed = computed(() => getMenuConf.fixed);
|
|
298
|
-
const getShowMenu = computed(() => getMenuConf.show);
|
|
323
|
+
const { setThemeConf } = useThemeStore();
|
|
324
|
+
const getCollapsedShowTitle = computed(() => useThemeStore().getMenuConf.collapsedShowTitle);
|
|
325
|
+
const getIsSidebarType = computed(() => useThemeStore().getMenuConf.type === MenuType.SIDE);
|
|
326
|
+
const getMenuFixed = computed(() => useThemeStore().getMenuConf.fixed);
|
|
327
|
+
const getShowMenu = computed(() => useThemeStore().getMenuConf.show);
|
|
299
328
|
const getShowSidebar = computed(() => {
|
|
300
|
-
return unref(getSplit) || unref(getShowMenu) && unref(getMenuMode) !== MenuMode.HORIZONTAL;
|
|
329
|
+
return unref$1(getSplit) || unref$1(getShowMenu) && unref$1(getMenuMode) !== MenuMode.HORIZONTAL;
|
|
301
330
|
});
|
|
302
|
-
const getMenuHidden = computed(() => getMenuConf.hidden);
|
|
303
|
-
const getMenuTheme = computed(() => getMenuConf.theme);
|
|
304
|
-
const getTrigger = computed(() => getMenuConf.trigger);
|
|
305
|
-
const getCanDrag = computed(() => getMenuConf.canDrag);
|
|
331
|
+
const getMenuHidden = computed(() => useThemeStore().getMenuConf.hidden);
|
|
332
|
+
const getMenuTheme = computed(() => useThemeStore().getMenuConf.theme);
|
|
333
|
+
const getTrigger = computed(() => useThemeStore().getMenuConf.trigger);
|
|
334
|
+
const getCanDrag = computed(() => useThemeStore().getMenuConf.canDrag);
|
|
306
335
|
const getIsMixMode = computed(() => {
|
|
307
|
-
return unref(getMenuMode) === MenuMode.INLINE && unref(getMenuType) === MenuType.MIX;
|
|
336
|
+
return unref$1(getMenuMode) === MenuMode.INLINE && unref$1(getMenuType) === MenuType.MIX;
|
|
308
337
|
});
|
|
309
|
-
const getIsMixSidebar = computed(() => unref(getMenuType) === MenuType.MIX_SIDEBAR);
|
|
338
|
+
const getIsMixSidebar = computed(() => unref$1(getMenuType) === MenuType.MIX_SIDEBAR);
|
|
310
339
|
const getMenuWidth = computed(() => {
|
|
311
|
-
if (unref(getIsMixMode)) {
|
|
312
|
-
return Number(getMenuConf.menuWidth) - 40;
|
|
313
|
-
} else if (unref(getIsMixSidebar)) {
|
|
314
|
-
return Number(getMenuConf.menuWidth) - 10;
|
|
340
|
+
if (unref$1(getIsMixMode)) {
|
|
341
|
+
return Number(useThemeStore().getMenuConf.menuWidth) - 40;
|
|
342
|
+
} else if (unref$1(getIsMixSidebar)) {
|
|
343
|
+
return Number(useThemeStore().getMenuConf.menuWidth) - 10;
|
|
315
344
|
} else {
|
|
316
|
-
return Number(getMenuConf.menuWidth);
|
|
345
|
+
return Number(useThemeStore().getMenuConf.menuWidth);
|
|
317
346
|
}
|
|
318
347
|
});
|
|
319
|
-
const getMixSideTrigger = computed(() => getMenuConf.mixSideTrigger);
|
|
320
|
-
const getLogoWidth = computed(() => unref(getIsMixSidebar) ? "80px" : getMenuConf.menuWidth);
|
|
321
|
-
const getMenuType = computed(() => getMenuConf.type);
|
|
322
|
-
const getIsTopMenu = computed(() => unref(getMenuType) === MenuType.TOP_MENU);
|
|
323
|
-
const getMenuMode = computed(() => getMenuConf.mode);
|
|
324
|
-
const getSplit = computed(() => getMenuConf.split);
|
|
325
|
-
const getCollapsed = computed(() => getMenuConf.collapsed);
|
|
326
|
-
const getIsHorizontal = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL);
|
|
348
|
+
const getMixSideTrigger = computed(() => useThemeStore().getMenuConf.mixSideTrigger);
|
|
349
|
+
const getLogoWidth = computed(() => unref$1(getIsMixSidebar) ? "80px" : useThemeStore().getMenuConf.menuWidth);
|
|
350
|
+
const getMenuType = computed(() => useThemeStore().getMenuConf.type);
|
|
351
|
+
const getIsTopMenu = computed(() => unref$1(getMenuType) === MenuType.TOP_MENU);
|
|
352
|
+
const getMenuMode = computed(() => useThemeStore().getMenuConf.mode);
|
|
353
|
+
const getSplit = computed(() => useThemeStore().getMenuConf.split);
|
|
354
|
+
const getCollapsed = computed(() => useThemeStore().getMenuConf.collapsed);
|
|
355
|
+
const getIsHorizontal = computed(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL);
|
|
327
356
|
const setThemeStore = (conf = {}) => setThemeConf(conf);
|
|
328
357
|
const toggleCollapsed = () => setThemeStore({
|
|
329
358
|
menuOptions: {
|
|
330
|
-
collapsed: !unref(getCollapsed)
|
|
359
|
+
collapsed: !unref$1(getCollapsed)
|
|
331
360
|
}
|
|
332
361
|
});
|
|
333
|
-
const getMiniWidthNumber = computed(() => getMenuConf.collapsedShowTitle ? 80 : 48);
|
|
362
|
+
const getMiniWidthNumber = computed(() => useThemeStore().getMenuConf.collapsedShowTitle ? 80 : 48);
|
|
334
363
|
const getRealWidth = computed(() => {
|
|
335
|
-
return unref(getCollapsed) ? unref(getMiniWidthNumber) : unref(getMenuWidth);
|
|
364
|
+
return unref$1(getCollapsed) ? unref$1(getMiniWidthNumber) : unref$1(getMenuWidth);
|
|
336
365
|
});
|
|
337
366
|
const getCalcContentWidth = computed(() => {
|
|
338
|
-
const width = unref(getIsTopMenu) || !unref(getShowMenu) || unref(getSplit) && unref(getMenuHidden) ? 0 : unref(getRealWidth);
|
|
339
|
-
return `calc(100% - ${unref(width)}px)`;
|
|
367
|
+
const width = unref$1(getIsTopMenu) || !unref$1(getShowMenu) || unref$1(getSplit) && unref$1(getMenuHidden) ? 0 : unref$1(getRealWidth);
|
|
368
|
+
return `calc(100% - ${unref$1(width)}px)`;
|
|
340
369
|
});
|
|
341
370
|
return {
|
|
342
371
|
getCollapsedShowTitle,
|
|
@@ -401,37 +430,37 @@ function useHeader() {
|
|
|
401
430
|
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
402
431
|
const getHeaderTheme = computed(() => getHeaderConf.theme);
|
|
403
432
|
const getFixed = computed(() => getHeaderConf.fixed);
|
|
404
|
-
const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType) && !unref(getIsMixSidebar));
|
|
433
|
+
const getShowHeaderLogo = computed(() => unref$1(getShowLogo) && !unref$1(getIsSidebarType) && !unref$1(getIsMixSidebar));
|
|
405
434
|
const getShowSearch = computed(() => getHeaderConf.showSearch);
|
|
406
435
|
const getShowHeaderTrigger = computed(() => {
|
|
407
|
-
if (unref(getMenuType) === MenuType.TOP_MENU || !unref(getShowMenu) || unref(getMenuHidden)) {
|
|
436
|
+
if (unref$1(getMenuType) === MenuType.TOP_MENU || !unref$1(getShowMenu) || unref$1(getMenuHidden)) {
|
|
408
437
|
return false;
|
|
409
438
|
}
|
|
410
|
-
return unref(getTrigger);
|
|
439
|
+
return unref$1(getTrigger);
|
|
411
440
|
});
|
|
412
441
|
const getShowBreadCrumb = computed(() => getHeaderConf.showBreadCrumb);
|
|
413
442
|
const getShowBread = computed(
|
|
414
|
-
() => unref(getMenuMode) !== MenuMode.HORIZONTAL && !unref(getSplit) && unref(getShowBreadCrumb)
|
|
443
|
+
() => unref$1(getMenuMode) !== MenuMode.HORIZONTAL && !unref$1(getSplit) && unref$1(getShowBreadCrumb)
|
|
415
444
|
);
|
|
416
|
-
const getShowTopMenu = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL || unref(getSplit));
|
|
445
|
+
const getShowTopMenu = computed(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL || unref$1(getSplit));
|
|
417
446
|
const getShowNotice = computed(() => getHeaderConf.showNotice);
|
|
418
447
|
const getShowFullScreen = computed(() => getHeaderConf.showFullScreen);
|
|
419
448
|
const getShowLocale = computed(() => getHeaderConf.showLocaleSwitch);
|
|
420
449
|
const getShowSettingTheme = computed(() => getHeaderConf.showSettingTheme);
|
|
421
450
|
const getShowFullHeaderRef = computed(() => {
|
|
422
|
-
return !unref(getIsSidebarType) && !unref(getIsMixSidebar) && !unref(getIsTopMenu);
|
|
451
|
+
return !unref$1(getIsSidebarType) && !unref$1(getIsMixSidebar) && !unref$1(getIsTopMenu);
|
|
423
452
|
});
|
|
424
453
|
const getHeaderHeight = computed(() => {
|
|
425
454
|
let height = 0;
|
|
426
455
|
height += HEADER_HEIGHT;
|
|
427
|
-
if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
|
|
456
|
+
if (unref$1(getShowMultipleTab) && !unref$1(getSplit) && !unref$1(getMultipleTabPosIsTop)) {
|
|
428
457
|
height += TABS_HEIGHT;
|
|
429
458
|
}
|
|
430
459
|
return height;
|
|
431
460
|
});
|
|
432
461
|
const getTabsHeight = computed(() => TABS_HEIGHT);
|
|
433
462
|
const getShowInsetHeaderRef = computed(() => {
|
|
434
|
-
return unref(getIsSidebarType) || unref(getIsTopMenu) || unref(getIsMixSidebar);
|
|
463
|
+
return unref$1(getIsSidebarType) || unref$1(getIsTopMenu) || unref$1(getIsMixSidebar);
|
|
435
464
|
});
|
|
436
465
|
const getShowBackToTop = computed(() => getHeaderConf.showBackToTop);
|
|
437
466
|
const getIsZH = computed(() => {
|
|
@@ -588,20 +617,20 @@ function useDragLine(siderRef, dragBarRef) {
|
|
|
588
617
|
});
|
|
589
618
|
});
|
|
590
619
|
function getEl(elRef) {
|
|
591
|
-
const el = unref(elRef);
|
|
620
|
+
const el = unref$1(elRef);
|
|
592
621
|
if (!el)
|
|
593
622
|
return null;
|
|
594
623
|
if (Reflect.has(el, "$el")) {
|
|
595
|
-
return unref(elRef)?.$el;
|
|
624
|
+
return unref$1(elRef)?.$el;
|
|
596
625
|
}
|
|
597
|
-
return unref(elRef);
|
|
626
|
+
return unref$1(elRef);
|
|
598
627
|
}
|
|
599
628
|
function handleMouseMove(ele, wrap, clientX) {
|
|
600
629
|
document.onmousemove = function(innerE) {
|
|
601
630
|
innerE = innerE || window.event;
|
|
602
631
|
let iT = ele.left + (innerE.clientX - clientX);
|
|
603
632
|
const maxT = 800;
|
|
604
|
-
const minT = unref(getMiniWidthNumber);
|
|
633
|
+
const minT = unref$1(getMiniWidthNumber);
|
|
605
634
|
iT < 0 && (iT = 0);
|
|
606
635
|
iT > maxT && (iT = maxT);
|
|
607
636
|
iT < minT && (iT = minT);
|
|
@@ -649,7 +678,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
649
678
|
const { getShowBackToTop } = useHeader();
|
|
650
679
|
return (_ctx, _cache) => {
|
|
651
680
|
const _component_ABackTop = BackTop;
|
|
652
|
-
return unref(getShowBackToTop) ? (openBlock(), createBlock(_component_ABackTop, {
|
|
681
|
+
return unref$1(getShowBackToTop) ? (openBlock(), createBlock(_component_ABackTop, {
|
|
653
682
|
key: 0,
|
|
654
683
|
target: getTarget,
|
|
655
684
|
visibilityHeight: 300
|
|
@@ -685,73 +714,129 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
685
714
|
};
|
|
686
715
|
}
|
|
687
716
|
});
|
|
688
|
-
function
|
|
717
|
+
function useTabs(_router) {
|
|
718
|
+
const tabStore = useRouteReuseStore();
|
|
719
|
+
const router = _router || useRouter();
|
|
720
|
+
const { currentRoute } = router;
|
|
721
|
+
const getCurrentTab = () => {
|
|
722
|
+
const route = unref$1(currentRoute);
|
|
723
|
+
return tabStore.getTabList.find((item) => item.fullPath === route.fullPath);
|
|
724
|
+
};
|
|
725
|
+
function handleTabAction(action, tab) {
|
|
726
|
+
const currentTab = getCurrentTab();
|
|
727
|
+
switch (action) {
|
|
728
|
+
case 0:
|
|
729
|
+
tabStore.refreshPage(router);
|
|
730
|
+
break;
|
|
731
|
+
case 1:
|
|
732
|
+
tabStore.closeAllTab(currentRoute, router);
|
|
733
|
+
break;
|
|
734
|
+
case 2:
|
|
735
|
+
tabStore.closeLeftTabs(currentTab, router);
|
|
736
|
+
break;
|
|
737
|
+
case 3:
|
|
738
|
+
tabStore.closeRightTabs(currentTab, router);
|
|
739
|
+
break;
|
|
740
|
+
case 4:
|
|
741
|
+
tabStore.closeOtherTabs(currentTab, router);
|
|
742
|
+
break;
|
|
743
|
+
case 5:
|
|
744
|
+
case 6:
|
|
745
|
+
tabStore.closeTab(tab || currentTab, router);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
return {
|
|
749
|
+
refreshPage: () => handleTabAction(0),
|
|
750
|
+
closeAll: () => handleTabAction(1),
|
|
751
|
+
closeLeft: () => handleTabAction(2),
|
|
752
|
+
closeRight: () => handleTabAction(3),
|
|
753
|
+
closeOther: () => handleTabAction(4),
|
|
754
|
+
closeCurrent: () => handleTabAction(5),
|
|
755
|
+
close: (tab) => handleTabAction(6, tab)
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
function useTabDropdown(tabItem, getIsTabs) {
|
|
689
759
|
const router = useRouter();
|
|
690
760
|
const { currentRoute } = router;
|
|
691
761
|
const tabStore = useRouteReuseStore();
|
|
762
|
+
const { refreshPage, closeAll, close, closeLeft, closeOther, closeRight } = useTabs();
|
|
763
|
+
const getTargetTab = computed(() => {
|
|
764
|
+
return unref$1(getIsTabs) ? tabItem : unref$1(currentRoute);
|
|
765
|
+
});
|
|
692
766
|
const state = reactive({
|
|
693
767
|
current: null,
|
|
694
768
|
currentIndex: 0
|
|
695
769
|
});
|
|
696
770
|
const getDropMenuList = computed(() => {
|
|
697
771
|
const { t } = useI18n("UI");
|
|
698
|
-
const {
|
|
772
|
+
const { meta } = unref$1(getTargetTab);
|
|
773
|
+
const { path } = unref$1(currentRoute);
|
|
699
774
|
const curItem = state.current;
|
|
700
775
|
const isCurItem = curItem ? curItem.path === path : false;
|
|
701
776
|
const index = state.currentIndex;
|
|
777
|
+
const refreshDisabled = !isCurItem;
|
|
702
778
|
const closeLeftDisabled = index === 0 || !isCurItem;
|
|
703
|
-
const disabled = tabStore.getTabList.length === 1;
|
|
704
779
|
const closeRightDisabled = !isCurItem || index === tabStore.getTabList.length - 1 && tabStore.getLastDragEndIndex >= 0;
|
|
780
|
+
const disabled = tabStore.getTabList.length === 1;
|
|
705
781
|
const dropMenuList = [
|
|
782
|
+
{
|
|
783
|
+
icon: "ic:baseline-autorenew",
|
|
784
|
+
text: t("REFRESH"),
|
|
785
|
+
onClick: refreshPage,
|
|
786
|
+
disabled: refreshDisabled
|
|
787
|
+
},
|
|
706
788
|
{
|
|
707
789
|
icon: "ic:baseline-close",
|
|
708
790
|
text: t("CLOSE_CURRENT_TAG"),
|
|
709
|
-
onClick: () =>
|
|
791
|
+
onClick: () => close(tabItem),
|
|
710
792
|
disabled: !!meta?.affix || disabled,
|
|
711
793
|
divider: true
|
|
712
794
|
},
|
|
713
795
|
{
|
|
714
796
|
icon: "mdi:arrow-collapse-left",
|
|
715
797
|
text: t("CLOSE_LEFT_TAGS"),
|
|
716
|
-
onClick:
|
|
798
|
+
onClick: closeLeft,
|
|
717
799
|
disabled: closeLeftDisabled,
|
|
718
800
|
divider: false
|
|
719
801
|
},
|
|
720
802
|
{
|
|
721
803
|
icon: "mdi:arrow-collapse-right",
|
|
722
804
|
text: t("CLOSE_RIGHT_TAGS"),
|
|
723
|
-
onClick:
|
|
805
|
+
onClick: closeRight,
|
|
724
806
|
disabled: closeRightDisabled,
|
|
725
807
|
divider: true
|
|
726
808
|
},
|
|
727
809
|
{
|
|
728
810
|
icon: "ic:baseline-sync-alt",
|
|
729
811
|
text: t("CLOSE_OTHER_TAGS"),
|
|
730
|
-
onClick:
|
|
812
|
+
onClick: closeOther,
|
|
731
813
|
disabled: disabled || !isCurItem
|
|
732
814
|
},
|
|
733
815
|
{
|
|
734
816
|
icon: "ic:baseline-horizontal-rule",
|
|
735
817
|
text: t("CLOSE_ALL_TAGE"),
|
|
736
|
-
onClick:
|
|
818
|
+
onClick: closeAll,
|
|
737
819
|
disabled
|
|
738
820
|
}
|
|
739
821
|
];
|
|
740
822
|
return dropMenuList;
|
|
741
823
|
});
|
|
742
|
-
function
|
|
743
|
-
e
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
824
|
+
function handleContextMenu(tabItem2) {
|
|
825
|
+
return (e) => {
|
|
826
|
+
if (!tabItem2)
|
|
827
|
+
return;
|
|
828
|
+
e?.preventDefault();
|
|
829
|
+
const index = tabStore.getTabList.findIndex((tab) => tab.path === tabItem2.path);
|
|
830
|
+
state.current = tabItem2;
|
|
831
|
+
state.currentIndex = index;
|
|
832
|
+
};
|
|
748
833
|
}
|
|
749
834
|
function handleMenuEvent(item) {
|
|
750
835
|
item.onClick?.();
|
|
751
836
|
}
|
|
752
837
|
return {
|
|
753
838
|
getDropMenuList,
|
|
754
|
-
|
|
839
|
+
handleContextMenu,
|
|
755
840
|
handleMenuEvent
|
|
756
841
|
};
|
|
757
842
|
}
|
|
@@ -762,8 +847,25 @@ const _hoisted_2$8 = [
|
|
|
762
847
|
const _hoisted_3$6 = { class: "text-13" };
|
|
763
848
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
764
849
|
__name: "TabContent",
|
|
850
|
+
props: {
|
|
851
|
+
tabItem: {
|
|
852
|
+
type: Object,
|
|
853
|
+
default: null
|
|
854
|
+
},
|
|
855
|
+
isExtra: Boolean
|
|
856
|
+
},
|
|
765
857
|
setup(__props) {
|
|
766
|
-
const
|
|
858
|
+
const props = __props;
|
|
859
|
+
const { t } = useI18n("UI");
|
|
860
|
+
const menuLabelMap = menuList2Map();
|
|
861
|
+
const getIsTabs = computed(() => !props.isExtra);
|
|
862
|
+
const getTrigger = computed(
|
|
863
|
+
() => unref$1(getIsTabs) ? ["contextmenu"] : ["click"]
|
|
864
|
+
);
|
|
865
|
+
const { getDropMenuList, handleContextMenu, handleMenuEvent } = useTabDropdown(props?.tabItem, getIsTabs);
|
|
866
|
+
function handleContext(e) {
|
|
867
|
+
props.tabItem && handleContextMenu(props.tabItem)(e);
|
|
868
|
+
}
|
|
767
869
|
return (_ctx, _cache) => {
|
|
768
870
|
const _component_AMenuItem = MenuItem;
|
|
769
871
|
const _component_AMenuDivider = MenuDivider;
|
|
@@ -771,16 +873,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
771
873
|
const _component_ADropdown = Dropdown;
|
|
772
874
|
return openBlock(), createBlock(_component_ADropdown, {
|
|
773
875
|
placement: "bottomRight",
|
|
774
|
-
trigger:
|
|
876
|
+
trigger: unref$1(getTrigger),
|
|
775
877
|
overlayClassName: "dt-reuse-tabs__dropdown"
|
|
776
878
|
}, {
|
|
777
879
|
overlay: withCtx(() => [
|
|
778
880
|
createVNode(_component_AMenu, null, {
|
|
779
881
|
default: withCtx(() => [
|
|
780
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getDropMenuList), (item, index) => {
|
|
781
|
-
return openBlock(), createElementBlock(Fragment,
|
|
882
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getDropMenuList), (item, index) => {
|
|
883
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
782
884
|
createVNode(_component_AMenuItem, {
|
|
783
|
-
onClick: ($event) => unref(handleMenuEvent)(item),
|
|
885
|
+
onClick: ($event) => unref$1(handleMenuEvent)(item),
|
|
784
886
|
disabled: item.disabled
|
|
785
887
|
}, {
|
|
786
888
|
default: withCtx(() => [
|
|
@@ -795,19 +897,25 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
795
897
|
key: `d-${index}`
|
|
796
898
|
})) : createCommentVNode("", true)
|
|
797
899
|
], 64);
|
|
798
|
-
}),
|
|
900
|
+
}), 256))
|
|
799
901
|
]),
|
|
800
902
|
_: 1
|
|
801
903
|
})
|
|
802
904
|
]),
|
|
803
905
|
default: withCtx(() => [
|
|
804
|
-
|
|
805
|
-
|
|
906
|
+
unref$1(getIsTabs) ? (openBlock(), createElementBlock("div", {
|
|
907
|
+
key: 0,
|
|
908
|
+
onContextmenu: handleContext
|
|
909
|
+
}, [
|
|
910
|
+
createElementVNode("span", null, toDisplayString(unref$1(menuLabelMap).get(__props.tabItem.path) || __props.tabItem?.meta?.title || unref$1(t)("UNKNOWN_ROUTE")), 1)
|
|
911
|
+
], 32)) : (openBlock(), createElementBlock("span", {
|
|
912
|
+
key: 1,
|
|
913
|
+
onClick: handleContext,
|
|
806
914
|
class: "inline-block w-9 h-9 leading-9 -mt-0.5 text-zinc-600 text-center cursor-pointer border-l border-zinc-300 hover:text-zinc-900"
|
|
807
|
-
}, _hoisted_2$8)
|
|
915
|
+
}, _hoisted_2$8))
|
|
808
916
|
]),
|
|
809
917
|
_: 1
|
|
810
|
-
});
|
|
918
|
+
}, 8, ["trigger"]);
|
|
811
919
|
};
|
|
812
920
|
}
|
|
813
921
|
});
|
|
@@ -847,7 +955,7 @@ function useSortable(el, options) {
|
|
|
847
955
|
if (!el)
|
|
848
956
|
return;
|
|
849
957
|
const Sortable = (await import("sortablejs")).default;
|
|
850
|
-
Sortable.create(unref(el), {
|
|
958
|
+
Sortable.create(unref$1(el), {
|
|
851
959
|
animation: 500,
|
|
852
960
|
delay: 400,
|
|
853
961
|
delayOnTouchOnly: true,
|
|
@@ -861,7 +969,7 @@ function useTabsDrag(affixList) {
|
|
|
861
969
|
const tabStore = useRouteReuseStore();
|
|
862
970
|
const { getCanDrag } = useMultipleTab();
|
|
863
971
|
nextTick(() => {
|
|
864
|
-
if (!unref(getCanDrag))
|
|
972
|
+
if (!unref$1(getCanDrag))
|
|
865
973
|
return;
|
|
866
974
|
const el = document.querySelectorAll(`.dt-reuse-tabs .ant-tabs-nav-list`)?.[0];
|
|
867
975
|
const { initSortable } = useSortable(el, {
|
|
@@ -885,25 +993,23 @@ const _hoisted_1$g = { class: "dt-reuse-tabs leading-8 border-b border-solid bor
|
|
|
885
993
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
886
994
|
__name: "index",
|
|
887
995
|
setup(__props) {
|
|
888
|
-
const { t } = useI18n("UI");
|
|
889
996
|
const router = useRouter();
|
|
890
997
|
const go = useGo(router);
|
|
891
998
|
const tabStore = useRouteReuseStore();
|
|
892
999
|
const { getShowQuick, getShowRedo } = useMultipleTab();
|
|
893
|
-
const menuLabelMap = menuList2Map();
|
|
894
1000
|
const activeKeyRef = ref(null);
|
|
895
1001
|
const getTabsState = computed(() => {
|
|
896
1002
|
return tabStore.getTabList.filter((item) => !item.meta?.hideTab);
|
|
897
1003
|
});
|
|
898
|
-
const unClose = computed(() => unref(getTabsState).length === 1);
|
|
1004
|
+
const unClose = computed(() => unref$1(getTabsState).length === 1);
|
|
899
1005
|
function handleChange(activeKey) {
|
|
900
1006
|
activeKeyRef.value = activeKey;
|
|
901
1007
|
go(activeKey);
|
|
902
1008
|
}
|
|
903
1009
|
function handleEdit(targetKey) {
|
|
904
|
-
if (unref(unClose))
|
|
1010
|
+
if (unref$1(unClose))
|
|
905
1011
|
return;
|
|
906
|
-
tabStore.
|
|
1012
|
+
tabStore.closeTabByKey(targetKey, router);
|
|
907
1013
|
}
|
|
908
1014
|
const affixTextList = initAffixTabs();
|
|
909
1015
|
useTabsDrag(affixTextList);
|
|
@@ -912,13 +1018,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
912
1018
|
(v) => {
|
|
913
1019
|
if (v === "/" || v === "/login")
|
|
914
1020
|
return;
|
|
915
|
-
const { meta = {} } = unref(router.currentRoute);
|
|
1021
|
+
const { meta = {} } = unref$1(router.currentRoute);
|
|
916
1022
|
const { hideTab = false } = meta;
|
|
917
1023
|
if (activeKeyRef.value !== v) {
|
|
918
1024
|
activeKeyRef.value = v;
|
|
919
1025
|
}
|
|
920
1026
|
if (!hideTab) {
|
|
921
|
-
tabStore.addTab(unref(router.currentRoute));
|
|
1027
|
+
tabStore.addTab(unref$1(router.currentRoute));
|
|
922
1028
|
}
|
|
923
1029
|
},
|
|
924
1030
|
{
|
|
@@ -941,13 +1047,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
941
1047
|
class: "h-8"
|
|
942
1048
|
}, createSlots({
|
|
943
1049
|
default: withCtx(() => [
|
|
944
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getTabsState), (item) => {
|
|
1050
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getTabsState), (item) => {
|
|
945
1051
|
return openBlock(), createBlock(_component_ATabPane, {
|
|
946
1052
|
key: item.query ? item.fullPath : item.path,
|
|
947
1053
|
closable: !(item && item.meta && item.meta.affix)
|
|
948
1054
|
}, {
|
|
949
1055
|
tab: withCtx(() => [
|
|
950
|
-
|
|
1056
|
+
unref$1(getShowQuick) ? (openBlock(), createBlock(unref$1(_sfc_main$w), {
|
|
1057
|
+
key: 0,
|
|
1058
|
+
tabItem: item
|
|
1059
|
+
}, null, 8, ["tabItem"])) : createCommentVNode("", true)
|
|
951
1060
|
]),
|
|
952
1061
|
_: 2
|
|
953
1062
|
}, 1032, ["closable"]);
|
|
@@ -955,11 +1064,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
955
1064
|
]),
|
|
956
1065
|
_: 2
|
|
957
1066
|
}, [
|
|
958
|
-
unref(getShowRedo) || unref(getShowQuick) ? {
|
|
1067
|
+
unref$1(getShowRedo) || unref$1(getShowQuick) ? {
|
|
959
1068
|
name: "rightExtra",
|
|
960
1069
|
fn: withCtx(() => [
|
|
961
|
-
unref(getShowRedo) ? (openBlock(), createBlock(unref(_sfc_main$x), { key: 0 })) : createCommentVNode("", true),
|
|
962
|
-
unref(getShowQuick) ? (openBlock(), createBlock(unref(_sfc_main$w), {
|
|
1070
|
+
unref$1(getShowRedo) ? (openBlock(), createBlock(unref$1(_sfc_main$x), { key: 0 })) : createCommentVNode("", true),
|
|
1071
|
+
unref$1(getShowQuick) ? (openBlock(), createBlock(unref$1(_sfc_main$w), {
|
|
1072
|
+
key: 1,
|
|
1073
|
+
isExtra: "",
|
|
1074
|
+
tabItem: _ctx.$route
|
|
1075
|
+
}, null, 8, ["tabItem"])) : createCommentVNode("", true)
|
|
963
1076
|
]),
|
|
964
1077
|
key: "0"
|
|
965
1078
|
} : void 0
|
|
@@ -975,10 +1088,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
975
1088
|
return (_ctx, _cache) => {
|
|
976
1089
|
return openBlock(), createElementBlock("span", {
|
|
977
1090
|
class: "dt_header_icon text-lg text-gray-800 cursor-pointer px-3 hover:bg-gray-500 hover:bg-opacity-50 transition-all duration-300",
|
|
978
|
-
onClick: _cache[0] || (_cache[0] = (...args) => unref(toggle) && unref(toggle)(...args))
|
|
1091
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref$1(toggle) && unref$1(toggle)(...args))
|
|
979
1092
|
}, [
|
|
980
1093
|
createElementVNode("i", {
|
|
981
|
-
class: normalizeClass(["i block", !unref(isFullscreen) ? "ic:baseline-fullscreen" : "ic:baseline-fullscreen-exit"])
|
|
1094
|
+
class: normalizeClass(["i block", !unref$1(isFullscreen) ? "ic:baseline-fullscreen" : "ic:baseline-fullscreen-exit"])
|
|
982
1095
|
}, null, 2)
|
|
983
1096
|
]);
|
|
984
1097
|
};
|
|
@@ -1165,29 +1278,29 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1165
1278
|
return rsStyle;
|
|
1166
1279
|
});
|
|
1167
1280
|
const handleScroll = () => {
|
|
1168
|
-
moveY.value = unref(wrap).scrollTop * 100 / unref(wrap).clientHeight;
|
|
1169
|
-
moveX.value = unref(wrap).scrollLeft * 100 / unref(wrap).clientWidth;
|
|
1281
|
+
moveY.value = unref$1(wrap).scrollTop * 100 / unref$1(wrap).clientHeight;
|
|
1282
|
+
moveX.value = unref$1(wrap).scrollLeft * 100 / unref$1(wrap).clientWidth;
|
|
1170
1283
|
};
|
|
1171
1284
|
const update = () => {
|
|
1172
|
-
if (!unref(wrap))
|
|
1285
|
+
if (!unref$1(wrap))
|
|
1173
1286
|
return;
|
|
1174
|
-
const heightPercentage = unref(wrap).clientHeight * 100 / unref(wrap).scrollHeight;
|
|
1175
|
-
const widthPercentage = unref(wrap).clientWidth * 100 / unref(wrap).scrollWidth;
|
|
1287
|
+
const heightPercentage = unref$1(wrap).clientHeight * 100 / unref$1(wrap).scrollHeight;
|
|
1288
|
+
const widthPercentage = unref$1(wrap).clientWidth * 100 / unref$1(wrap).scrollWidth;
|
|
1176
1289
|
sizeHeight.value = heightPercentage < 100 ? heightPercentage + "%" : "";
|
|
1177
1290
|
sizeWidth.value = widthPercentage < 100 ? widthPercentage + "%" : "";
|
|
1178
1291
|
};
|
|
1179
1292
|
onMounted(() => {
|
|
1180
1293
|
nextTick(update);
|
|
1181
1294
|
if (!props.noresize) {
|
|
1182
|
-
addResizeListener(unref(resize), update);
|
|
1183
|
-
addResizeListener(unref(wrap), update);
|
|
1295
|
+
addResizeListener(unref$1(resize), update);
|
|
1296
|
+
addResizeListener(unref$1(wrap), update);
|
|
1184
1297
|
addEventListener("resize", update);
|
|
1185
1298
|
}
|
|
1186
1299
|
});
|
|
1187
1300
|
onBeforeUnmount(() => {
|
|
1188
1301
|
if (!props.noresize) {
|
|
1189
|
-
removeResizeListener(unref(resize), update);
|
|
1190
|
-
removeResizeListener(unref(wrap), update);
|
|
1302
|
+
removeResizeListener(unref$1(resize), update);
|
|
1303
|
+
removeResizeListener(unref$1(wrap), update);
|
|
1191
1304
|
removeEventListener("resize", update);
|
|
1192
1305
|
}
|
|
1193
1306
|
});
|
|
@@ -1197,7 +1310,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1197
1310
|
ref_key: "wrap",
|
|
1198
1311
|
ref: wrap,
|
|
1199
1312
|
class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
|
|
1200
|
-
style: normalizeStyle(unref(style)),
|
|
1313
|
+
style: normalizeStyle(unref$1(style)),
|
|
1201
1314
|
onScroll: handleScroll
|
|
1202
1315
|
}, [
|
|
1203
1316
|
(openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
|
|
@@ -1212,11 +1325,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1212
1325
|
_: 3
|
|
1213
1326
|
}, 8, ["class", "style"]))
|
|
1214
1327
|
], 38),
|
|
1215
|
-
createVNode(unref(Bar), {
|
|
1328
|
+
createVNode(unref$1(Bar), {
|
|
1216
1329
|
move: moveX.value,
|
|
1217
1330
|
size: sizeWidth.value
|
|
1218
1331
|
}, null, 8, ["move", "size"]),
|
|
1219
|
-
createVNode(unref(Bar), {
|
|
1332
|
+
createVNode(unref$1(Bar), {
|
|
1220
1333
|
vertical: "",
|
|
1221
1334
|
move: moveY.value,
|
|
1222
1335
|
size: sizeHeight.value
|
|
@@ -1256,7 +1369,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1256
1369
|
const props = __props;
|
|
1257
1370
|
const Container = h("div", [props.template(props.data)]);
|
|
1258
1371
|
return (_ctx, _cache) => {
|
|
1259
|
-
return openBlock(), createBlock(unref(Container));
|
|
1372
|
+
return openBlock(), createBlock(unref$1(Container));
|
|
1260
1373
|
};
|
|
1261
1374
|
}
|
|
1262
1375
|
});
|
|
@@ -1287,17 +1400,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1287
1400
|
});
|
|
1288
1401
|
return (_ctx, _cache) => {
|
|
1289
1402
|
return openBlock(), createElementBlock("div", {
|
|
1290
|
-
class: normalizeClass(unref(getLogoClass)),
|
|
1403
|
+
class: normalizeClass(unref$1(getLogoClass)),
|
|
1291
1404
|
style: normalizeStyle({
|
|
1292
|
-
minWidth: `${unref(getLogoWidth)}px`
|
|
1405
|
+
minWidth: `${unref$1(getLogoWidth)}px`
|
|
1293
1406
|
})
|
|
1294
1407
|
}, [
|
|
1295
|
-
unref(slots).logo ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1408
|
+
unref$1(slots).logo ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1296
1409
|
key: 0,
|
|
1297
|
-
template: unref(slots).logo
|
|
1410
|
+
template: unref$1(slots).logo
|
|
1298
1411
|
}, null, 8, ["template"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1299
|
-
createElementVNode("img", { src: unref(logoUrl) }, null, 8, _hoisted_1$e),
|
|
1300
|
-
withDirectives(createElementVNode("div", { class: "dt-logo__title text-base font-bold transition-all duration-500 pl-3" }, toDisplayString(unref(title)), 513), [
|
|
1412
|
+
createElementVNode("img", { src: unref$1(logoUrl) }, null, 8, _hoisted_1$e),
|
|
1413
|
+
withDirectives(createElementVNode("div", { class: "dt-logo__title text-base font-bold transition-all duration-500 pl-3" }, toDisplayString(unref$1(title)), 513), [
|
|
1301
1414
|
[vShow, __props.showTitle]
|
|
1302
1415
|
])
|
|
1303
1416
|
], 64))
|
|
@@ -1314,10 +1427,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1314
1427
|
return (_ctx, _cache) => {
|
|
1315
1428
|
return openBlock(), createElementBlock("div", {
|
|
1316
1429
|
class: normalizeClass(["flex w-12 h-full cursor-pointer items-center justify-center", props.theme]),
|
|
1317
|
-
onClick: _cache[0] || (_cache[0] = (...args) => unref(toggleCollapsed) && unref(toggleCollapsed)(...args))
|
|
1430
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref$1(toggleCollapsed) && unref$1(toggleCollapsed)(...args))
|
|
1318
1431
|
}, [
|
|
1319
1432
|
createElementVNode("i", {
|
|
1320
|
-
class: normalizeClass(["i leading-none", unref(getCollapsed) ? "ic:baseline-format-indent-increase" : "ic:baseline-format-indent-decrease"])
|
|
1433
|
+
class: normalizeClass(["i leading-none", unref$1(getCollapsed) ? "ic:baseline-format-indent-increase" : "ic:baseline-format-indent-decrease"])
|
|
1321
1434
|
}, null, 2)
|
|
1322
1435
|
], 2);
|
|
1323
1436
|
};
|
|
@@ -1333,14 +1446,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1333
1446
|
watchEffect(() => {
|
|
1334
1447
|
if (!currentRoute || currentRoute.value.path === "/")
|
|
1335
1448
|
return;
|
|
1336
|
-
|
|
1449
|
+
const { meta, path } = unref(currentRoute);
|
|
1450
|
+
let activePath = meta?.currentActiveMenu || path;
|
|
1451
|
+
routes.value = getBreadCrumb(activePath);
|
|
1337
1452
|
});
|
|
1338
1453
|
return (_ctx, _cache) => {
|
|
1339
1454
|
const _component_ABreadcrumb = Breadcrumb;
|
|
1340
1455
|
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
1341
|
-
createVNode(_component_ABreadcrumb, { routes: unref(routes) }, {
|
|
1456
|
+
createVNode(_component_ABreadcrumb, { routes: unref$1(routes) }, {
|
|
1342
1457
|
itemRender: withCtx(({ route }) => [
|
|
1343
|
-
createElementVNode("span", null, toDisplayString((unref(getIsZH) ? route.label : route.enLabel) || route.meta?.title), 1)
|
|
1458
|
+
createElementVNode("span", null, toDisplayString((unref$1(getIsZH) ? route.label : route.enLabel) || route.meta?.title), 1)
|
|
1344
1459
|
]),
|
|
1345
1460
|
_: 1
|
|
1346
1461
|
}, 8, ["routes"])
|
|
@@ -1389,7 +1504,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1389
1504
|
const _component_AEmpty = Empty;
|
|
1390
1505
|
const _component_AInputSearch = InputSearch;
|
|
1391
1506
|
const _component_APopover = Popover;
|
|
1392
|
-
return unref(isUseDef) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
1507
|
+
return unref$1(isUseDef) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
1393
1508
|
createVNode(_component_APopover, {
|
|
1394
1509
|
placement: "bottom",
|
|
1395
1510
|
overlayClassName: "dt-menu-filter__popover",
|
|
@@ -1401,7 +1516,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1401
1516
|
return openBlock(), createElementBlock("p", {
|
|
1402
1517
|
onClick: ($event) => navigation(menu.url),
|
|
1403
1518
|
class: "px-5 leading-9 border-gray-200 border-dashed border-b m-0 cursor-pointer transition-all duration-300 text-13"
|
|
1404
|
-
}, toDisplayString(unref(getIsZH) ? menu.label : menu.enLabel), 9, _hoisted_2$7);
|
|
1519
|
+
}, toDisplayString(unref$1(getIsZH) ? menu.label : menu.enLabel), 9, _hoisted_2$7);
|
|
1405
1520
|
}), 256)),
|
|
1406
1521
|
!menuList.value.length ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
1407
1522
|
createVNode(_component_AEmpty, {
|
|
@@ -1414,9 +1529,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1414
1529
|
createVNode(_component_AInputSearch, {
|
|
1415
1530
|
value: filter.value,
|
|
1416
1531
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => filter.value = $event),
|
|
1417
|
-
placeholder: unref(t)("FILTER_MORE"),
|
|
1532
|
+
placeholder: unref$1(t)("FILTER_MORE"),
|
|
1418
1533
|
onInput: filterMenu,
|
|
1419
|
-
size: unref(UiSize).SMALL
|
|
1534
|
+
size: unref$1(UiSize).SMALL
|
|
1420
1535
|
}, null, 8, ["value", "placeholder", "size"])
|
|
1421
1536
|
]),
|
|
1422
1537
|
_: 1
|
|
@@ -1463,10 +1578,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1463
1578
|
}, {
|
|
1464
1579
|
content: withCtx(() => [
|
|
1465
1580
|
createElementVNode("ul", _hoisted_1$b, [
|
|
1466
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(localeList), (it) => {
|
|
1581
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(localeList), (it) => {
|
|
1467
1582
|
return openBlock(), createElementBlock("li", {
|
|
1468
1583
|
onClick: ($event) => toggleLang(it.event),
|
|
1469
|
-
class: normalizeClass(["px-4 my-1 leading-9 flex border-gray-200 cursor-pointer hover:bg-gray-100 transition-all duration-300 text-13", it.event === unref(currentLang) ? "active bg-gray-100" : ""])
|
|
1584
|
+
class: normalizeClass(["px-4 my-1 leading-9 flex border-gray-200 cursor-pointer hover:bg-gray-100 transition-all duration-300 text-13", it.event === unref$1(currentLang) ? "active bg-gray-100" : ""])
|
|
1470
1585
|
}, [
|
|
1471
1586
|
withDirectives(createElementVNode("span", _hoisted_3$4, null, 512), [
|
|
1472
1587
|
[_directive_icon, it.icon]
|
|
@@ -1497,9 +1612,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1497
1612
|
overlayClassName: "dt-notify__popover"
|
|
1498
1613
|
}, {
|
|
1499
1614
|
content: withCtx(() => [
|
|
1500
|
-
unref(slots).notify ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1615
|
+
unref$1(slots).notify ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1501
1616
|
key: 0,
|
|
1502
|
-
template: unref(slots).notify
|
|
1617
|
+
template: unref$1(slots).notify
|
|
1503
1618
|
}, null, 8, ["template"])) : createCommentVNode("", true)
|
|
1504
1619
|
]),
|
|
1505
1620
|
default: withCtx(() => [
|
|
@@ -1507,9 +1622,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1507
1622
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
1508
1623
|
[_directive_icon, "ant-design:bell-outlined"]
|
|
1509
1624
|
]),
|
|
1510
|
-
unref(slots).notifyBadge ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1625
|
+
unref$1(slots).notifyBadge ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1511
1626
|
key: 0,
|
|
1512
|
-
template: unref(slots).notifyBadge
|
|
1627
|
+
template: unref$1(slots).notifyBadge
|
|
1513
1628
|
}, null, 8, ["template"])) : createCommentVNode("", true)
|
|
1514
1629
|
])
|
|
1515
1630
|
]),
|
|
@@ -1553,7 +1668,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1553
1668
|
});
|
|
1554
1669
|
}
|
|
1555
1670
|
return (_ctx, _cache) => {
|
|
1556
|
-
return openBlock(), createBlock(unref(Popover$1), {
|
|
1671
|
+
return openBlock(), createBlock(unref$1(Popover$1), {
|
|
1557
1672
|
placement: "bottom",
|
|
1558
1673
|
visible: visible.value,
|
|
1559
1674
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
@@ -1565,7 +1680,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1565
1680
|
(openBlock(), createElementBlock(Fragment, null, renderList(sizeList, (it) => {
|
|
1566
1681
|
return createElementVNode("li", {
|
|
1567
1682
|
onClick: ($event) => toggleLang(it.event),
|
|
1568
|
-
class: normalizeClass(["px-4 my-1 leading-9 flex border-gray-200 cursor-pointer hover:bg-gray-100 transition-all duration-300 text-13", it.event === unref(getUiSize) ? "active bg-gray-100" : ""])
|
|
1683
|
+
class: normalizeClass(["px-4 my-1 leading-9 flex border-gray-200 cursor-pointer hover:bg-gray-100 transition-all duration-300 text-13", it.event === unref$1(getUiSize) ? "active bg-gray-100" : ""])
|
|
1569
1684
|
}, [
|
|
1570
1685
|
createElementVNode("span", null, toDisplayString(it.text), 1)
|
|
1571
1686
|
], 10, _hoisted_2$5);
|
|
@@ -1614,11 +1729,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1614
1729
|
}, {
|
|
1615
1730
|
content: withCtx(() => [
|
|
1616
1731
|
createElementVNode("div", _hoisted_1$8, [
|
|
1617
|
-
unref(slots).userInfo ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1732
|
+
unref$1(slots).userInfo ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1618
1733
|
key: 0,
|
|
1619
|
-
template: unref(slots).userInfo
|
|
1734
|
+
template: unref$1(slots).userInfo
|
|
1620
1735
|
}, null, 8, ["template"])) : createCommentVNode("", true),
|
|
1621
|
-
unref(getShowLoginOut) ? (openBlock(), createElementBlock("div", {
|
|
1736
|
+
unref$1(getShowLoginOut) ? (openBlock(), createElementBlock("div", {
|
|
1622
1737
|
key: 1,
|
|
1623
1738
|
onClick: _cache[0] || (_cache[0] = ($event) => signOut()),
|
|
1624
1739
|
class: "px-4 my-1 leading-9 flex border-gray-200 cursor-pointer hover:bg-gray-100 transition-all duration-300 text-13"
|
|
@@ -1626,7 +1741,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1626
1741
|
withDirectives(createElementVNode("span", _hoisted_2$4, null, 512), [
|
|
1627
1742
|
[_directive_icon, "ant-design:logout-outlined"]
|
|
1628
1743
|
]),
|
|
1629
|
-
createElementVNode("span", null, toDisplayString(unref(t)("LOGIN_OUT")), 1)
|
|
1744
|
+
createElementVNode("span", null, toDisplayString(unref$1(t)("LOGIN_OUT")), 1)
|
|
1630
1745
|
])) : createCommentVNode("", true)
|
|
1631
1746
|
])
|
|
1632
1747
|
]),
|
|
@@ -1638,7 +1753,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1638
1753
|
]),
|
|
1639
1754
|
_: 1
|
|
1640
1755
|
}),
|
|
1641
|
-
createElementVNode("span", _hoisted_5$1, toDisplayString(unref(getUserInfo)?.userNo), 1)
|
|
1756
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(unref$1(getUserInfo)?.userNo), 1)
|
|
1642
1757
|
])
|
|
1643
1758
|
]),
|
|
1644
1759
|
_: 1
|
|
@@ -1807,7 +1922,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1807
1922
|
shadow-gray-200`,
|
|
1808
1923
|
`dt-menu-type__item--${item.type}`,
|
|
1809
1924
|
{
|
|
1810
|
-
[`dt-menu-type__item--active`]: unref(getMenuType) === item.type && unref(getMenuMode) === item.mode
|
|
1925
|
+
[`dt-menu-type__item--active`]: unref$1(getMenuType) === item.type && unref$1(getMenuMode) === item.mode
|
|
1811
1926
|
}
|
|
1812
1927
|
])
|
|
1813
1928
|
}, _hoisted_4$1, 10, _hoisted_2$3)
|
|
@@ -1845,7 +1960,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1845
1960
|
const _component_ASelect = Select;
|
|
1846
1961
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1847
1962
|
createElementVNode("span", null, toDisplayString(__props.title), 1),
|
|
1848
|
-
createVNode(_component_ASelect, mergeProps(unref(getBindValue), {
|
|
1963
|
+
createVNode(_component_ASelect, mergeProps(unref$1(getBindValue), {
|
|
1849
1964
|
disabled: __props.disabled,
|
|
1850
1965
|
size: "small",
|
|
1851
1966
|
class: "w-32",
|
|
@@ -1882,10 +1997,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1882
1997
|
const _component_ASwitch = Switch;
|
|
1883
1998
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
1884
1999
|
createElementVNode("span", null, toDisplayString(__props.title), 1),
|
|
1885
|
-
createVNode(_component_ASwitch, mergeProps(unref(getBindValue), {
|
|
2000
|
+
createVNode(_component_ASwitch, mergeProps(unref$1(getBindValue), {
|
|
1886
2001
|
disabled: __props.disabled,
|
|
1887
|
-
checkedChildren: unref(t)("ON"),
|
|
1888
|
-
unCheckedChildren: unref(t)("OFF"),
|
|
2002
|
+
checkedChildren: unref$1(t)("ON"),
|
|
2003
|
+
unCheckedChildren: unref$1(t)("OFF"),
|
|
1889
2004
|
onChange: handleChange
|
|
1890
2005
|
}), null, 16, ["disabled", "checkedChildren", "unCheckedChildren"])
|
|
1891
2006
|
]);
|
|
@@ -1972,7 +2087,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1972
2087
|
key: item.title,
|
|
1973
2088
|
title: item.title,
|
|
1974
2089
|
event: item.event,
|
|
1975
|
-
def: unref(item.def)
|
|
2090
|
+
def: unref$1(item.def)
|
|
1976
2091
|
}, null, 8, ["title", "event", "def"]);
|
|
1977
2092
|
}), 64)),
|
|
1978
2093
|
(openBlock(), createElementBlock(Fragment, null, renderList(selectItems, (item) => {
|
|
@@ -1980,7 +2095,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1980
2095
|
key: item.title,
|
|
1981
2096
|
title: item.title,
|
|
1982
2097
|
event: item.event,
|
|
1983
|
-
def: unref(item.def),
|
|
2098
|
+
def: unref$1(item.def),
|
|
1984
2099
|
options: item.options
|
|
1985
2100
|
}, null, 8, ["title", "event", "def", "options"]);
|
|
1986
2101
|
}), 64))
|
|
@@ -2009,24 +2124,24 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2009
2124
|
const defaultConf = getConfig();
|
|
2010
2125
|
function getConfig() {
|
|
2011
2126
|
return {
|
|
2012
|
-
contentMode: unref(getContentMode),
|
|
2127
|
+
contentMode: unref$1(getContentMode),
|
|
2013
2128
|
menuOptions: {
|
|
2014
|
-
mode: unref(getMenuMode),
|
|
2015
|
-
type: unref(getMenuType),
|
|
2016
|
-
split: unref(getMenuType) === MenuType.MIX ? true : false
|
|
2129
|
+
mode: unref$1(getMenuMode),
|
|
2130
|
+
type: unref$1(getMenuType),
|
|
2131
|
+
split: unref$1(getMenuType) === MenuType.MIX ? true : false
|
|
2017
2132
|
},
|
|
2018
2133
|
headOptions: {
|
|
2019
|
-
showBreadCrumb: unref(getShowBread),
|
|
2020
|
-
showSearch: unref(getShowSearch),
|
|
2021
|
-
notice: unref(getShowNotice),
|
|
2022
|
-
showFullScreen: unref(getShowFullScreen),
|
|
2023
|
-
showLocaleSwitch: unref(getShowLocale)
|
|
2134
|
+
showBreadCrumb: unref$1(getShowBread),
|
|
2135
|
+
showSearch: unref$1(getShowSearch),
|
|
2136
|
+
notice: unref$1(getShowNotice),
|
|
2137
|
+
showFullScreen: unref$1(getShowFullScreen),
|
|
2138
|
+
showLocaleSwitch: unref$1(getShowLocale)
|
|
2024
2139
|
},
|
|
2025
2140
|
mulTabsOptions: {
|
|
2026
|
-
show: unref(getShowMultipleTab)
|
|
2141
|
+
show: unref$1(getShowMultipleTab)
|
|
2027
2142
|
},
|
|
2028
2143
|
footerOptions: {
|
|
2029
|
-
show: unref(getShowFooter)
|
|
2144
|
+
show: unref$1(getShowFooter)
|
|
2030
2145
|
}
|
|
2031
2146
|
};
|
|
2032
2147
|
}
|
|
@@ -2087,25 +2202,25 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2087
2202
|
createVNode(_component_ADrawer, {
|
|
2088
2203
|
visible: visible.value,
|
|
2089
2204
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
2090
|
-
title: unref(t)("PROJECT_SETTING"),
|
|
2205
|
+
title: unref$1(t)("PROJECT_SETTING"),
|
|
2091
2206
|
placement: "right",
|
|
2092
2207
|
width: "320"
|
|
2093
2208
|
}, {
|
|
2094
2209
|
default: withCtx(() => [
|
|
2095
2210
|
createVNode(_component_ADivider, null, {
|
|
2096
2211
|
default: withCtx(() => [
|
|
2097
|
-
createTextVNode(toDisplayString(unref(t)("NAV_MODE")), 1)
|
|
2212
|
+
createTextVNode(toDisplayString(unref$1(t)("NAV_MODE")), 1)
|
|
2098
2213
|
]),
|
|
2099
2214
|
_: 1
|
|
2100
2215
|
}),
|
|
2101
|
-
createVNode(unref(_sfc_main$i)),
|
|
2216
|
+
createVNode(unref$1(_sfc_main$i)),
|
|
2102
2217
|
createVNode(_component_ADivider, null, {
|
|
2103
2218
|
default: withCtx(() => [
|
|
2104
|
-
createTextVNode(toDisplayString(unref(t)("PAGE_SHOW")), 1)
|
|
2219
|
+
createTextVNode(toDisplayString(unref$1(t)("PAGE_SHOW")), 1)
|
|
2105
2220
|
]),
|
|
2106
2221
|
_: 1
|
|
2107
2222
|
}),
|
|
2108
|
-
createVNode(unref(_sfc_main$f)),
|
|
2223
|
+
createVNode(unref$1(_sfc_main$f)),
|
|
2109
2224
|
createVNode(_component_ADivider),
|
|
2110
2225
|
createElementVNode("div", _hoisted_1$4, [
|
|
2111
2226
|
createVNode(_component_AButton, {
|
|
@@ -2115,7 +2230,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2115
2230
|
block: ""
|
|
2116
2231
|
}, {
|
|
2117
2232
|
default: withCtx(() => [
|
|
2118
|
-
createTextVNode(toDisplayString(unref(t)("COPY")), 1)
|
|
2233
|
+
createTextVNode(toDisplayString(unref$1(t)("COPY")), 1)
|
|
2119
2234
|
]),
|
|
2120
2235
|
_: 1
|
|
2121
2236
|
}),
|
|
@@ -2125,12 +2240,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2125
2240
|
block: ""
|
|
2126
2241
|
}, {
|
|
2127
2242
|
default: withCtx(() => [
|
|
2128
|
-
createTextVNode(toDisplayString(unref(t)("RESET")), 1)
|
|
2243
|
+
createTextVNode(toDisplayString(unref$1(t)("RESET")), 1)
|
|
2129
2244
|
]),
|
|
2130
2245
|
_: 1
|
|
2131
2246
|
})
|
|
2132
2247
|
]),
|
|
2133
|
-
createElementVNode("div", _hoisted_2$2, toDisplayString(unref(t)("DRAWER_TIPS")), 1)
|
|
2248
|
+
createElementVNode("div", _hoisted_2$2, toDisplayString(unref$1(t)("DRAWER_TIPS")), 1)
|
|
2134
2249
|
]),
|
|
2135
2250
|
_: 1
|
|
2136
2251
|
}, 8, ["visible", "title"])
|
|
@@ -2145,21 +2260,21 @@ function useSplitMenu(splitType) {
|
|
|
2145
2260
|
const { getIsHorizontal, getSplit } = useMenu();
|
|
2146
2261
|
const throttleHandleSplitLeftMenu = useThrottleFn(handleSplitLeftMenu, 50);
|
|
2147
2262
|
const splitNotLeft = computed(
|
|
2148
|
-
() => unref(splitType) !== MenuSplitTye.LEFT && !unref(getIsHorizontal)
|
|
2263
|
+
() => unref$1(splitType) !== MenuSplitTye.LEFT && !unref$1(getIsHorizontal)
|
|
2149
2264
|
);
|
|
2150
2265
|
const getSplitLeft = computed(
|
|
2151
|
-
() => !unref(getSplit) || unref(splitType) !== MenuSplitTye.LEFT
|
|
2266
|
+
() => !unref$1(getSplit) || unref$1(splitType) !== MenuSplitTye.LEFT
|
|
2152
2267
|
);
|
|
2153
2268
|
const getSplitTop = computed(
|
|
2154
|
-
() => unref(splitType) === MenuSplitTye.TOP
|
|
2269
|
+
() => unref$1(splitType) === MenuSplitTye.TOP
|
|
2155
2270
|
);
|
|
2156
2271
|
const normalType = computed(
|
|
2157
|
-
() => !unref(getSplit) || unref(splitType) === MenuSplitTye.NONE
|
|
2272
|
+
() => !unref$1(getSplit) || unref$1(splitType) === MenuSplitTye.NONE
|
|
2158
2273
|
);
|
|
2159
2274
|
watch(
|
|
2160
|
-
[() => unref(currentRoute)?.path, () => unref(splitType)],
|
|
2275
|
+
[() => unref$1(currentRoute)?.path, () => unref$1(splitType)],
|
|
2161
2276
|
([path]) => {
|
|
2162
|
-
if (unref(splitNotLeft))
|
|
2277
|
+
if (unref$1(splitNotLeft))
|
|
2163
2278
|
return;
|
|
2164
2279
|
throttleHandleSplitLeftMenu(path);
|
|
2165
2280
|
},
|
|
@@ -2170,22 +2285,22 @@ function useSplitMenu(splitType) {
|
|
|
2170
2285
|
watch(
|
|
2171
2286
|
() => getSplit.value,
|
|
2172
2287
|
() => {
|
|
2173
|
-
if (unref(splitNotLeft))
|
|
2288
|
+
if (unref$1(splitNotLeft))
|
|
2174
2289
|
return;
|
|
2175
2290
|
getMenus2();
|
|
2176
2291
|
}
|
|
2177
2292
|
);
|
|
2178
2293
|
function handleSplitLeftMenu(path) {
|
|
2179
|
-
if (unref(getSplitLeft))
|
|
2294
|
+
if (unref$1(getSplitLeft))
|
|
2180
2295
|
return;
|
|
2181
2296
|
menusRef.value = menusMap.filter((it) => it.includesPath.includes(path))[0]?.children;
|
|
2182
2297
|
}
|
|
2183
2298
|
async function getMenus2() {
|
|
2184
|
-
if (unref(normalType)) {
|
|
2299
|
+
if (unref$1(normalType)) {
|
|
2185
2300
|
menusRef.value = DtCache.getLocal(CacheKey.MENUS)?.children;
|
|
2186
2301
|
return;
|
|
2187
2302
|
}
|
|
2188
|
-
if (unref(getSplitTop)) {
|
|
2303
|
+
if (unref$1(getSplitTop)) {
|
|
2189
2304
|
menusRef.value = await getShallowMenus();
|
|
2190
2305
|
}
|
|
2191
2306
|
}
|
|
@@ -2312,12 +2427,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2312
2427
|
const { getIsZH, getUiSize } = useHeader();
|
|
2313
2428
|
return (_ctx, _cache) => {
|
|
2314
2429
|
return openBlock(), createElementBlock("span", {
|
|
2315
|
-
class: normalizeClass(["dt-basic-menu-item-content-flex items-center dt-menu-item h-full", unref(getUiSize)])
|
|
2430
|
+
class: normalizeClass(["dt-basic-menu-item-content-flex items-center dt-menu-item h-full", unref$1(getUiSize)])
|
|
2316
2431
|
}, [
|
|
2317
2432
|
createElementVNode("i", {
|
|
2318
2433
|
class: normalizeClass(["menu-icon i", _ctx.item.icon])
|
|
2319
2434
|
}, null, 2),
|
|
2320
|
-
createElementVNode("span", null, toDisplayString(unref(getIsZH) ? _ctx.item.label : _ctx.item.enLabel), 1)
|
|
2435
|
+
createElementVNode("span", null, toDisplayString(unref$1(getIsZH) ? _ctx.item.label : _ctx.item.enLabel), 1)
|
|
2321
2436
|
], 2);
|
|
2322
2437
|
};
|
|
2323
2438
|
}
|
|
@@ -2357,17 +2472,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2357
2472
|
const _component_BasicSubMenuItem = resolveComponent("BasicSubMenuItem", true);
|
|
2358
2473
|
const _component_ASubMenu = SubMenu;
|
|
2359
2474
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2360
|
-
!menuHasChildren(unref(item)) && unref(getShowMenu) ? (openBlock(), createBlock(_sfc_main$c, normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : createCommentVNode("", true),
|
|
2361
|
-
menuHasChildren(unref(item)) && unref(getShowMenu) ? (openBlock(), createBlock(_component_ASubMenu, {
|
|
2362
|
-
class: normalizeClass([unref(theme)]),
|
|
2363
|
-
key: unref(item).id,
|
|
2475
|
+
!menuHasChildren(unref$1(item)) && unref$1(getShowMenu) ? (openBlock(), createBlock(_sfc_main$c, normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : createCommentVNode("", true),
|
|
2476
|
+
menuHasChildren(unref$1(item)) && unref$1(getShowMenu) ? (openBlock(), createBlock(_component_ASubMenu, {
|
|
2477
|
+
class: normalizeClass([unref$1(theme)]),
|
|
2478
|
+
key: unref$1(item).id,
|
|
2364
2479
|
popupClassName: "app-top-menu-popup"
|
|
2365
2480
|
}, {
|
|
2366
2481
|
title: withCtx(() => [
|
|
2367
|
-
createVNode(_sfc_main$d, mergeProps(props, { item: unref(item) }), null, 16, ["item"])
|
|
2482
|
+
createVNode(_sfc_main$d, mergeProps(props, { item: unref$1(item) }), null, 16, ["item"])
|
|
2368
2483
|
]),
|
|
2369
2484
|
default: withCtx(() => [
|
|
2370
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(item).children, (childrenItem) => {
|
|
2485
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(item).children, (childrenItem) => {
|
|
2371
2486
|
return openBlock(), createBlock(_component_BasicSubMenuItem, mergeProps({
|
|
2372
2487
|
key: childrenItem.id
|
|
2373
2488
|
}, props, { item: childrenItem }), null, 16, ["item"]);
|
|
@@ -2412,7 +2527,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2412
2527
|
(val) => {
|
|
2413
2528
|
if (val === "/")
|
|
2414
2529
|
return;
|
|
2415
|
-
|
|
2530
|
+
const { meta, path } = unref$1(currentRoute);
|
|
2531
|
+
let activePath = meta?.currentActiveMenu || path;
|
|
2532
|
+
handleMenuChange(activePath);
|
|
2416
2533
|
},
|
|
2417
2534
|
{
|
|
2418
2535
|
immediate: true
|
|
@@ -2420,7 +2537,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2420
2537
|
);
|
|
2421
2538
|
async function handleMenuChange(path) {
|
|
2422
2539
|
setOpenKeys(path);
|
|
2423
|
-
if (isHorizontal && unref(getSplit)) {
|
|
2540
|
+
if (isHorizontal && unref$1(getSplit)) {
|
|
2424
2541
|
const parentPath = getBreadCrumb(path, items);
|
|
2425
2542
|
menuState.selectedKeys = [parentPath?.[0]?.url];
|
|
2426
2543
|
} else {
|
|
@@ -2433,9 +2550,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2433
2550
|
}
|
|
2434
2551
|
const { getCollapsed } = useMenu();
|
|
2435
2552
|
const getInlineCollapsed = computed(() => {
|
|
2436
|
-
const isInline = unref(mode) === MenuMode.INLINE;
|
|
2553
|
+
const isInline = unref$1(mode) === MenuMode.INLINE;
|
|
2437
2554
|
if (isInline) {
|
|
2438
|
-
return mixSider ? false : unref(getCollapsed);
|
|
2555
|
+
return mixSider ? false : unref$1(getCollapsed);
|
|
2439
2556
|
}
|
|
2440
2557
|
return false;
|
|
2441
2558
|
});
|
|
@@ -2460,9 +2577,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2460
2577
|
mode: _ctx.mode,
|
|
2461
2578
|
collapsible: "",
|
|
2462
2579
|
onClick: handleMenuClick,
|
|
2463
|
-
onOpenChange: unref(handleOpenChange),
|
|
2464
|
-
collapsed: unref(getInlineCollapsed),
|
|
2465
|
-
class: normalizeClass(unref(getSplit) ? "dt-split-menu" : "")
|
|
2580
|
+
onOpenChange: unref$1(handleOpenChange),
|
|
2581
|
+
collapsed: unref$1(getInlineCollapsed),
|
|
2582
|
+
class: normalizeClass(unref$1(getSplit) ? "dt-split-menu" : "")
|
|
2466
2583
|
}, {
|
|
2467
2584
|
default: withCtx(() => [
|
|
2468
2585
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item) => {
|
|
@@ -2508,22 +2625,22 @@ const _sfc_main$9 = defineComponent({
|
|
|
2508
2625
|
menusRef
|
|
2509
2626
|
} = useSplitMenu(toRef(props, "splitType"));
|
|
2510
2627
|
const slots = getParentSlots(null, "dt-theme");
|
|
2511
|
-
const getComputedTheme = computed(() => props.theme || unref(getMenuTheme));
|
|
2512
|
-
const getComputedMenuMode = computed(() => props.menuMode || unref(getMenuMode));
|
|
2513
|
-
const getIsShowLogo = computed(() => unref(getShowLogo) && unref(getIsSidebarType));
|
|
2628
|
+
const getComputedTheme = computed(() => props.theme || unref$1(getMenuTheme));
|
|
2629
|
+
const getComputedMenuMode = computed(() => props.menuMode || unref$1(getMenuMode));
|
|
2630
|
+
const getIsShowLogo = computed(() => unref$1(getShowLogo) && unref$1(getIsSidebarType));
|
|
2514
2631
|
const getUseScroll = computed(() => {
|
|
2515
|
-
return !unref(getIsHorizontal) && (unref(getIsSidebarType) || props.splitType === MenuSplitTye.LEFT || props.splitType === MenuSplitTye.NONE);
|
|
2632
|
+
return !unref$1(getIsHorizontal) && (unref$1(getIsSidebarType) || props.splitType === MenuSplitTye.LEFT || props.splitType === MenuSplitTye.NONE);
|
|
2516
2633
|
});
|
|
2517
|
-
const getLogoClass = computed(() => [`dt-menu-logo`, unref(getComputedTheme)]);
|
|
2634
|
+
const getLogoClass = computed(() => [`dt-menu-logo`, unref$1(getComputedTheme)]);
|
|
2518
2635
|
const getMenuProps = computed(() => {
|
|
2519
|
-
const menus = unref(menusRef);
|
|
2636
|
+
const menus = unref$1(menusRef);
|
|
2520
2637
|
return {
|
|
2521
2638
|
menus,
|
|
2522
2639
|
beforeClickFn: beforeMenuClickFn,
|
|
2523
2640
|
items: menus,
|
|
2524
|
-
theme: unref(getComputedTheme),
|
|
2525
|
-
collapse: unref(getCollapsed),
|
|
2526
|
-
collapsedShowTitle: unref(getCollapsedShowTitle),
|
|
2641
|
+
theme: unref$1(getComputedTheme),
|
|
2642
|
+
collapse: unref$1(getCollapsed),
|
|
2643
|
+
collapsedShowTitle: unref$1(getCollapsedShowTitle),
|
|
2527
2644
|
onMenuClick: handleMenuClick
|
|
2528
2645
|
};
|
|
2529
2646
|
});
|
|
@@ -2539,30 +2656,30 @@ const _sfc_main$9 = defineComponent({
|
|
|
2539
2656
|
go(path);
|
|
2540
2657
|
}
|
|
2541
2658
|
function renderHeader() {
|
|
2542
|
-
if (!unref(getIsShowLogo))
|
|
2659
|
+
if (!unref$1(getIsShowLogo))
|
|
2543
2660
|
return null;
|
|
2544
2661
|
if (slots.logo) {
|
|
2545
2662
|
return createVNode(DtSlotContainer, {
|
|
2546
2663
|
"template": slots.logo,
|
|
2547
2664
|
"data": {
|
|
2548
|
-
theme: unref(getComputedTheme),
|
|
2549
|
-
collapsed: unref(getCollapsed)
|
|
2665
|
+
theme: unref$1(getComputedTheme),
|
|
2666
|
+
collapsed: unref$1(getCollapsed)
|
|
2550
2667
|
}
|
|
2551
2668
|
}, null);
|
|
2552
2669
|
}
|
|
2553
2670
|
return createVNode(_sfc_main$q, {
|
|
2554
|
-
"showTitle": !unref(getCollapsed),
|
|
2555
|
-
"class": unref(getLogoClass),
|
|
2556
|
-
"theme": unref(getComputedTheme)
|
|
2671
|
+
"showTitle": !unref$1(getCollapsed),
|
|
2672
|
+
"class": unref$1(getLogoClass),
|
|
2673
|
+
"theme": unref$1(getComputedTheme)
|
|
2557
2674
|
}, null);
|
|
2558
2675
|
}
|
|
2559
2676
|
function renderFooter() {
|
|
2560
|
-
if (unref(getMenuType) === MenuType.SIDE || unref(getMenuType) === MenuType.MIX && props.splitType === 2) {
|
|
2677
|
+
if (unref$1(getMenuType) === MenuType.SIDE || unref$1(getMenuType) === MenuType.MIX && props.splitType === 2) {
|
|
2561
2678
|
return slots.menuFooter ? createVNode(DtSlotContainer, {
|
|
2562
2679
|
"template": slots.menuFooter,
|
|
2563
2680
|
"data": {
|
|
2564
|
-
theme: unref(getComputedTheme),
|
|
2565
|
-
collapsed: unref(getCollapsed)
|
|
2681
|
+
theme: unref$1(getComputedTheme),
|
|
2682
|
+
collapsed: unref$1(getCollapsed)
|
|
2566
2683
|
}
|
|
2567
2684
|
}, null) : null;
|
|
2568
2685
|
}
|
|
@@ -2572,19 +2689,19 @@ const _sfc_main$9 = defineComponent({
|
|
|
2572
2689
|
const {
|
|
2573
2690
|
menus,
|
|
2574
2691
|
...menuProps
|
|
2575
|
-
} = unref(getMenuProps);
|
|
2692
|
+
} = unref$1(getMenuProps);
|
|
2576
2693
|
if (!menus || !menus.length)
|
|
2577
2694
|
return null;
|
|
2578
2695
|
return createVNode(_sfc_main$a, mergeProps(menuProps, {
|
|
2579
2696
|
"isHorizontal": props.isHorizontal,
|
|
2580
|
-
"type": unref(getMenuType),
|
|
2581
|
-
"showLogo": unref(getIsShowLogo),
|
|
2582
|
-
"mode": unref(getComputedMenuMode),
|
|
2697
|
+
"type": unref$1(getMenuType),
|
|
2698
|
+
"showLogo": unref$1(getIsShowLogo),
|
|
2699
|
+
"mode": unref$1(getComputedMenuMode),
|
|
2583
2700
|
"items": menus
|
|
2584
2701
|
}), null);
|
|
2585
2702
|
}
|
|
2586
2703
|
return () => {
|
|
2587
|
-
return createVNode(Fragment, null, [renderHeader(), unref(getUseScroll) ? createVNode(DtScrollContainer, null, {
|
|
2704
|
+
return createVNode(Fragment, null, [renderHeader(), unref$1(getUseScroll) ? createVNode(DtScrollContainer, null, {
|
|
2588
2705
|
default: () => renderMenu()
|
|
2589
2706
|
}) : renderMenu(), renderFooter()]);
|
|
2590
2707
|
};
|
|
@@ -2621,14 +2738,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2621
2738
|
} = useHeader();
|
|
2622
2739
|
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
2623
2740
|
const getSplitType = computed(() => {
|
|
2624
|
-
return unref(getSplit) ? MenuSplitTye.TOP : MenuSplitTye.NONE;
|
|
2741
|
+
return unref$1(getSplit) ? MenuSplitTye.TOP : MenuSplitTye.NONE;
|
|
2625
2742
|
});
|
|
2626
2743
|
const getMenuMode = computed(() => {
|
|
2627
|
-
return unref(getSplit) ? MenuMode.HORIZONTAL : null;
|
|
2744
|
+
return unref$1(getSplit) ? MenuMode.HORIZONTAL : null;
|
|
2628
2745
|
});
|
|
2629
|
-
const getShowTab = computed(() => unref(getShowMultipleTab) && unref(getMultipleTabPosIsTop));
|
|
2746
|
+
const getShowTab = computed(() => unref$1(getShowMultipleTab) && unref$1(getMultipleTabPosIsTop));
|
|
2630
2747
|
const getHeaderCls = computed(() => {
|
|
2631
|
-
let theme = unref(getHeaderTheme);
|
|
2748
|
+
let theme = unref$1(getHeaderTheme);
|
|
2632
2749
|
let cls = "dt-header flex p-0 items-center justify-between ";
|
|
2633
2750
|
if (props.fixed) {
|
|
2634
2751
|
cls += "fixed top-0 left-0 w-full z-10 ";
|
|
@@ -2639,52 +2756,52 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2639
2756
|
return (_ctx, _cache) => {
|
|
2640
2757
|
const _component_ALayoutHeader = LayoutHeader;
|
|
2641
2758
|
return openBlock(), createBlock(_component_ALayoutHeader, {
|
|
2642
|
-
class: normalizeClass([unref(getHeaderCls), "flex items-center justify-between"])
|
|
2759
|
+
class: normalizeClass([unref$1(getHeaderCls), "flex items-center justify-between"])
|
|
2643
2760
|
}, {
|
|
2644
2761
|
default: withCtx(() => [
|
|
2645
2762
|
createElementVNode("div", {
|
|
2646
2763
|
class: normalizeClass(["dt-header-left flex h-full items-center", {
|
|
2647
|
-
"w-0 flex-1": unref(getShowTab)
|
|
2764
|
+
"w-0 flex-1": unref$1(getShowTab)
|
|
2648
2765
|
}])
|
|
2649
2766
|
}, [
|
|
2650
|
-
unref(getShowHeaderLogo) ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
2767
|
+
unref$1(getShowHeaderLogo) ? (openBlock(), createBlock(unref$1(_sfc_main$q), {
|
|
2651
2768
|
key: 0,
|
|
2652
|
-
theme: unref(getHeaderTheme),
|
|
2769
|
+
theme: unref$1(getHeaderTheme),
|
|
2653
2770
|
class: "dt-header-logo"
|
|
2654
2771
|
}, null, 8, ["theme"])) : createCommentVNode("", true),
|
|
2655
|
-
unref(getShowHeaderTrigger) && !unref(getSplit) && !unref(getShowTab) ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
2772
|
+
unref$1(getShowHeaderTrigger) && !unref$1(getSplit) && !unref$1(getShowTab) ? (openBlock(), createBlock(unref$1(_sfc_main$p), {
|
|
2656
2773
|
key: 1,
|
|
2657
|
-
theme: unref(getHeaderTheme)
|
|
2774
|
+
theme: unref$1(getHeaderTheme)
|
|
2658
2775
|
}, null, 8, ["theme"])) : createCommentVNode("", true),
|
|
2659
|
-
unref(getShowBread) && !unref(getShowTab) ? (openBlock(), createBlock(unref(_sfc_main$o), { key: 2 })) : createCommentVNode("", true),
|
|
2660
|
-
unref(getShowTab) ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2776
|
+
unref$1(getShowBread) && !unref$1(getShowTab) ? (openBlock(), createBlock(unref$1(_sfc_main$o), { key: 2 })) : createCommentVNode("", true),
|
|
2777
|
+
unref$1(getShowTab) ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2661
2778
|
createVNode(_sfc_main$v)
|
|
2662
2779
|
])) : createCommentVNode("", true)
|
|
2663
2780
|
], 2),
|
|
2664
|
-
unref(getShowTopMenu) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2781
|
+
unref$1(getShowTopMenu) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2665
2782
|
createVNode(_sfc_main$9, {
|
|
2666
2783
|
isHorizontal: true,
|
|
2667
|
-
theme: unref(getHeaderTheme),
|
|
2668
|
-
splitType: unref(getSplitType),
|
|
2669
|
-
menuMode: unref(getMenuMode)
|
|
2784
|
+
theme: unref$1(getHeaderTheme),
|
|
2785
|
+
splitType: unref$1(getSplitType),
|
|
2786
|
+
menuMode: unref$1(getMenuMode)
|
|
2670
2787
|
}, null, 8, ["theme", "splitType", "menuMode"])
|
|
2671
2788
|
])) : createCommentVNode("", true),
|
|
2672
2789
|
createElementVNode("div", {
|
|
2673
2790
|
class: "dt-header-action flex items-center",
|
|
2674
2791
|
style: normalizeStyle({
|
|
2675
|
-
"padding-right": unref(getShowSettingTheme) ? "" : "20px"
|
|
2792
|
+
"padding-right": unref$1(getShowSettingTheme) ? "" : "20px"
|
|
2676
2793
|
})
|
|
2677
2794
|
}, [
|
|
2678
|
-
unref(getShowSearch) ? (openBlock(), createBlock(unref(_sfc_main$n), { key: 0 })) : createCommentVNode("", true),
|
|
2679
|
-
unref(getShowNotice) ? (openBlock(), createBlock(unref(_sfc_main$l), { key: 1 })) : createCommentVNode("", true),
|
|
2680
|
-
unref(getShowUiSize) ? (openBlock(), createBlock(unref(_sfc_main$k), { key: 2 })) : createCommentVNode("", true),
|
|
2681
|
-
unref(getShowFullScreen) ? (openBlock(), createBlock(unref(_sfc_main$u), { key: 3 })) : createCommentVNode("", true),
|
|
2682
|
-
unref(getShowLocale) ? (openBlock(), createBlock(unref(_sfc_main$m), {
|
|
2795
|
+
unref$1(getShowSearch) ? (openBlock(), createBlock(unref$1(_sfc_main$n), { key: 0 })) : createCommentVNode("", true),
|
|
2796
|
+
unref$1(getShowNotice) ? (openBlock(), createBlock(unref$1(_sfc_main$l), { key: 1 })) : createCommentVNode("", true),
|
|
2797
|
+
unref$1(getShowUiSize) ? (openBlock(), createBlock(unref$1(_sfc_main$k), { key: 2 })) : createCommentVNode("", true),
|
|
2798
|
+
unref$1(getShowFullScreen) ? (openBlock(), createBlock(unref$1(_sfc_main$u), { key: 3 })) : createCommentVNode("", true),
|
|
2799
|
+
unref$1(getShowLocale) ? (openBlock(), createBlock(unref$1(_sfc_main$m), {
|
|
2683
2800
|
key: 4,
|
|
2684
2801
|
reload: true
|
|
2685
2802
|
})) : createCommentVNode("", true),
|
|
2686
|
-
createVNode(unref(_sfc_main$j)),
|
|
2687
|
-
unref(getShowSettingTheme) ? (openBlock(), createBlock(unref(_sfc_main$e), { key: 5 })) : createCommentVNode("", true)
|
|
2803
|
+
createVNode(unref$1(_sfc_main$j)),
|
|
2804
|
+
unref$1(getShowSettingTheme) ? (openBlock(), createBlock(unref$1(_sfc_main$e), { key: 5 })) : createCommentVNode("", true)
|
|
2688
2805
|
], 4)
|
|
2689
2806
|
]),
|
|
2690
2807
|
_: 1
|
|
@@ -2696,7 +2813,7 @@ function useMenuSwitch() {
|
|
|
2696
2813
|
const brokenRef = ref(false);
|
|
2697
2814
|
const { getMiniWidthNumber } = useMenu();
|
|
2698
2815
|
const getCollapsedWidth = computed(() => {
|
|
2699
|
-
return unref(brokenRef) ? 0 : unref(getMiniWidthNumber);
|
|
2816
|
+
return unref$1(brokenRef) ? 0 : unref$1(getMiniWidthNumber);
|
|
2700
2817
|
});
|
|
2701
2818
|
function onBreakPointChange(broken) {
|
|
2702
2819
|
brokenRef.value = broken;
|
|
@@ -2706,11 +2823,11 @@ function useMenuSwitch() {
|
|
|
2706
2823
|
function useTrigger() {
|
|
2707
2824
|
const { getTrigger, getSplit } = useMenu();
|
|
2708
2825
|
const getShowTrigger = computed(() => {
|
|
2709
|
-
const trigger = unref(getTrigger);
|
|
2710
|
-
return trigger && unref(getSplit);
|
|
2826
|
+
const trigger = unref$1(getTrigger);
|
|
2827
|
+
return trigger && unref$1(getSplit);
|
|
2711
2828
|
});
|
|
2712
2829
|
const getTriggerAttr = computed(() => {
|
|
2713
|
-
if (unref(getShowTrigger)) {
|
|
2830
|
+
if (unref$1(getShowTrigger)) {
|
|
2714
2831
|
return {};
|
|
2715
2832
|
}
|
|
2716
2833
|
return {
|
|
@@ -2732,12 +2849,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2732
2849
|
return (_ctx, _cache) => {
|
|
2733
2850
|
return openBlock(), createElementBlock("div", {
|
|
2734
2851
|
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
2735
|
-
(...args) => unref(toggleCollapsed) && unref(toggleCollapsed)(...args),
|
|
2852
|
+
(...args) => unref$1(toggleCollapsed) && unref$1(toggleCollapsed)(...args),
|
|
2736
2853
|
["stop"]
|
|
2737
2854
|
))
|
|
2738
2855
|
}, [
|
|
2739
2856
|
createElementVNode("i", {
|
|
2740
|
-
class: normalizeClass(["i", unref(getCollapsed) ? "ant-design:double-right-outlined" : "ant-design:double-left-outlined"])
|
|
2857
|
+
class: normalizeClass(["i", unref$1(getCollapsed) ? "ant-design:double-right-outlined" : "ant-design:double-left-outlined"])
|
|
2741
2858
|
}, null, 2)
|
|
2742
2859
|
]);
|
|
2743
2860
|
};
|
|
@@ -2748,8 +2865,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2748
2865
|
setup(__props) {
|
|
2749
2866
|
const { getCollapsed, getCanDrag, getMenuWidth } = useMenu();
|
|
2750
2867
|
const getDragBarStyle = computed(() => {
|
|
2751
|
-
if (!unref(getCollapsed)) {
|
|
2752
|
-
return { left: `${unref(getMenuWidth)}px` };
|
|
2868
|
+
if (!unref$1(getCollapsed)) {
|
|
2869
|
+
return { left: `${unref$1(getMenuWidth)}px` };
|
|
2753
2870
|
}
|
|
2754
2871
|
return {};
|
|
2755
2872
|
});
|
|
@@ -2757,14 +2874,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2757
2874
|
return [
|
|
2758
2875
|
"dt-darg-bar",
|
|
2759
2876
|
{
|
|
2760
|
-
"dt-darg-bar--hide": !unref(getCanDrag)
|
|
2877
|
+
"dt-darg-bar--hide": !unref$1(getCanDrag)
|
|
2761
2878
|
}
|
|
2762
2879
|
];
|
|
2763
2880
|
});
|
|
2764
2881
|
return (_ctx, _cache) => {
|
|
2765
2882
|
return openBlock(), createElementBlock("div", {
|
|
2766
|
-
class: normalizeClass(unref(getClass)),
|
|
2767
|
-
style: normalizeStyle(unref(getDragBarStyle))
|
|
2883
|
+
class: normalizeClass(unref$1(getClass)),
|
|
2884
|
+
style: normalizeStyle(unref$1(getDragBarStyle))
|
|
2768
2885
|
}, null, 6);
|
|
2769
2886
|
};
|
|
2770
2887
|
}
|
|
@@ -2786,13 +2903,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2786
2903
|
const { getMenuWidth, getMenuTheme, getMixSideTrigger } = useMenu();
|
|
2787
2904
|
const { setMixSiderIsHasMenu } = useThemeStore();
|
|
2788
2905
|
const menuModules = getShallowMenus();
|
|
2789
|
-
const activeId = ref(
|
|
2906
|
+
const activeId = ref(null);
|
|
2907
|
+
const activePath = ref(null);
|
|
2790
2908
|
const subMenus = ref([]);
|
|
2791
|
-
const getDomStyle = computed(() => setDomWidth(`${unref(subMenus)?.length ? unref(getMenuWidth) : MENU_WIDTH}px`));
|
|
2909
|
+
const getDomStyle = computed(() => setDomWidth(`${unref$1(subMenus)?.length ? unref$1(getMenuWidth) : MENU_WIDTH}px`));
|
|
2792
2910
|
const getWrapStyle = computed(() => setDomWidth(`${MENU_WIDTH}px`));
|
|
2793
2911
|
const getSubMenuStyle = computed(() => {
|
|
2794
2912
|
return {
|
|
2795
|
-
width: `${unref(getMenuWidth) - MENU_WIDTH}px`,
|
|
2913
|
+
width: `${unref$1(getMenuWidth) - MENU_WIDTH}px`,
|
|
2796
2914
|
left: `${MENU_WIDTH}px`
|
|
2797
2915
|
};
|
|
2798
2916
|
});
|
|
@@ -2807,11 +2925,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2807
2925
|
}
|
|
2808
2926
|
const getMenuEvents = {
|
|
2809
2927
|
onMouseleave: () => {
|
|
2810
|
-
setActive(
|
|
2928
|
+
setActive(unref$1(activePath));
|
|
2811
2929
|
}
|
|
2812
2930
|
};
|
|
2813
2931
|
const getItemEvents = (item) => {
|
|
2814
|
-
if (unref(getMixSideTrigger) === "hover") {
|
|
2932
|
+
if (unref$1(getMixSideTrigger) === "hover") {
|
|
2815
2933
|
return {
|
|
2816
2934
|
onMouseenter: () => handleModuleClick(item.url, true),
|
|
2817
2935
|
onClick: () => handleModuleClick(item.url)
|
|
@@ -2837,26 +2955,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2837
2955
|
watchEffect(() => {
|
|
2838
2956
|
if (!currentRoute || currentRoute.value.path === "/")
|
|
2839
2957
|
return;
|
|
2840
|
-
|
|
2958
|
+
const { meta, path } = unref$1(currentRoute);
|
|
2959
|
+
activePath.value = meta?.currentActiveMenu || path;
|
|
2960
|
+
setActive(unref$1(activePath));
|
|
2841
2961
|
});
|
|
2842
2962
|
return (_ctx, _cache) => {
|
|
2843
2963
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2844
2964
|
createElementVNode("div", {
|
|
2845
2965
|
class: "h-full overflow-hidden",
|
|
2846
|
-
style: normalizeStyle(unref(getDomStyle))
|
|
2966
|
+
style: normalizeStyle(unref$1(getDomStyle))
|
|
2847
2967
|
}, null, 4),
|
|
2848
2968
|
createElementVNode("div", mergeProps({
|
|
2849
|
-
style: unref(getWrapStyle),
|
|
2850
|
-
class: ["dt-mix-sider fixed top-0 left-0 h-full overflow-hidden", unref(getMenuTheme)]
|
|
2969
|
+
style: unref$1(getWrapStyle),
|
|
2970
|
+
class: ["dt-mix-sider fixed top-0 left-0 h-full overflow-hidden", unref$1(getMenuTheme)]
|
|
2851
2971
|
}, getMenuEvents), [
|
|
2852
2972
|
createVNode(_sfc_main$q, {
|
|
2853
2973
|
showTitle: false,
|
|
2854
2974
|
class: normalizeClass("justify-center z-10")
|
|
2855
2975
|
}),
|
|
2856
|
-
createVNode(unref(DtScrollContainer), { class: "z-10" }, {
|
|
2976
|
+
createVNode(unref$1(DtScrollContainer), { class: "z-10" }, {
|
|
2857
2977
|
default: withCtx(() => [
|
|
2858
2978
|
createElementVNode("ul", _hoisted_1$2, [
|
|
2859
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuModules), (item) => {
|
|
2979
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(menuModules), (item) => {
|
|
2860
2980
|
return openBlock(), createElementBlock("li", mergeProps({
|
|
2861
2981
|
key: item.id,
|
|
2862
2982
|
class: ["py-3 cursor-pointer relative text-center", {
|
|
@@ -2878,9 +2998,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2878
2998
|
subMenus.value?.length ? (openBlock(), createElementBlock("div", {
|
|
2879
2999
|
key: 0,
|
|
2880
3000
|
class: "fixed top-0 h-full sub-menu bg-white",
|
|
2881
|
-
style: normalizeStyle(unref(getSubMenuStyle))
|
|
3001
|
+
style: normalizeStyle(unref$1(getSubMenuStyle))
|
|
2882
3002
|
}, [
|
|
2883
|
-
createVNode(unref(DtScrollContainer), null, {
|
|
3003
|
+
createVNode(unref$1(DtScrollContainer), null, {
|
|
2884
3004
|
default: withCtx(() => [
|
|
2885
3005
|
createElementVNode("ul", _hoisted_3, [
|
|
2886
3006
|
(openBlock(true), createElementBlock(Fragment, null, renderList(subMenus.value, (menu) => {
|
|
@@ -2894,9 +3014,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2894
3014
|
return openBlock(), createElementBlock("li", {
|
|
2895
3015
|
key: subMenu.id,
|
|
2896
3016
|
class: normalizeClass(["flex cursor-pointer", {
|
|
2897
|
-
"active-menu": subMenu.url ===
|
|
3017
|
+
"active-menu": subMenu.url === activePath.value
|
|
2898
3018
|
}]),
|
|
2899
|
-
onClick: ($event) => unref(go)(subMenu.url)
|
|
3019
|
+
onClick: ($event) => unref$1(go)(subMenu.url)
|
|
2900
3020
|
}, [
|
|
2901
3021
|
createElementVNode("i", {
|
|
2902
3022
|
class: normalizeClass(["i opacity-50 pr-2", subMenu.icon])
|
|
@@ -2908,9 +3028,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2908
3028
|
])) : (openBlock(), createElementBlock("div", {
|
|
2909
3029
|
key: 1,
|
|
2910
3030
|
class: normalizeClass(["sub-menu flex cursor-pointer", {
|
|
2911
|
-
"active-menu": menu.url ===
|
|
3031
|
+
"active-menu": menu.url === activePath.value
|
|
2912
3032
|
}]),
|
|
2913
|
-
onClick: ($event) => unref(go)(menu.url)
|
|
3033
|
+
onClick: ($event) => unref$1(go)(menu.url)
|
|
2914
3034
|
}, [
|
|
2915
3035
|
createElementVNode("i", {
|
|
2916
3036
|
class: normalizeClass(["i opacity-50 pr-2", menu.icon])
|
|
@@ -2957,7 +3077,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2957
3077
|
const dragBarRef = ref(null);
|
|
2958
3078
|
const sideRef = ref(null);
|
|
2959
3079
|
const hiddenDomStyle = computed(() => {
|
|
2960
|
-
const width = `${unref(getRealWidth)}px`;
|
|
3080
|
+
const width = `${unref$1(getRealWidth)}px`;
|
|
2961
3081
|
return {
|
|
2962
3082
|
width,
|
|
2963
3083
|
overflow: "hidden",
|
|
@@ -2971,60 +3091,60 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2971
3091
|
const {
|
|
2972
3092
|
menusRef
|
|
2973
3093
|
} = useSplitMenu(getSplitType);
|
|
2974
|
-
if (!unref(menusRef)?.length)
|
|
3094
|
+
if (!unref$1(menusRef)?.length)
|
|
2975
3095
|
return false;
|
|
2976
|
-
return unref(getSplit) ? !unref(getMenuHidden) : true;
|
|
3096
|
+
return unref$1(getSplit) ? !unref$1(getMenuHidden) : true;
|
|
2977
3097
|
});
|
|
2978
3098
|
useDragLine(sideRef, dragBarRef);
|
|
2979
3099
|
const getSiderClass = computed(() => {
|
|
2980
3100
|
let cls = `dt-sideBar overflow-hidden z-10 `;
|
|
2981
|
-
if (unref(getMenuFixed)) {
|
|
3101
|
+
if (unref$1(getMenuFixed)) {
|
|
2982
3102
|
cls += `dt-sideBar--fixed t-0 l-0 h-full `;
|
|
2983
3103
|
}
|
|
2984
|
-
if (unref(getIsMixMode)) {
|
|
3104
|
+
if (unref$1(getIsMixMode)) {
|
|
2985
3105
|
cls += "dt-sideBar--mix ";
|
|
2986
3106
|
}
|
|
2987
3107
|
return cls;
|
|
2988
3108
|
});
|
|
2989
3109
|
const getSplitType = computed(() => {
|
|
2990
|
-
return unref(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3110
|
+
return unref$1(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
2991
3111
|
});
|
|
2992
3112
|
const getMode = computed(() => {
|
|
2993
|
-
return unref(getSplit) ? MenuMode.INLINE : null;
|
|
3113
|
+
return unref$1(getSplit) ? MenuMode.INLINE : null;
|
|
2994
3114
|
});
|
|
2995
3115
|
const renderTrigger = h(_sfc_main$7);
|
|
2996
3116
|
return (_ctx, _cache) => {
|
|
2997
3117
|
const _component_ALayoutSider = LayoutSider;
|
|
2998
|
-
return unref(getIsMixSidebar) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
3118
|
+
return unref$1(getIsMixSidebar) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
2999
3119
|
key: 0
|
|
3000
3120
|
})) : (openBlock(), createElementBlock(Fragment, {
|
|
3001
3121
|
key: 1
|
|
3002
|
-
}, [unref(getMenuFixed) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
3122
|
+
}, [unref$1(getMenuFixed) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
3003
3123
|
key: 0,
|
|
3004
|
-
style: normalizeStyle(unref(hiddenDomStyle))
|
|
3005
|
-
}, null, 4)), [[vShow, unref(showClassSideBarRef)]]) : createCommentVNode("", true), withDirectives(createVNode(_component_ALayoutSider, mergeProps({
|
|
3124
|
+
style: normalizeStyle(unref$1(hiddenDomStyle))
|
|
3125
|
+
}, null, 4)), [[vShow, unref$1(showClassSideBarRef)]]) : createCommentVNode("", true), withDirectives(createVNode(_component_ALayoutSider, mergeProps({
|
|
3006
3126
|
ref_key: "sideRef",
|
|
3007
3127
|
ref: sideRef,
|
|
3008
3128
|
collapsible: "",
|
|
3009
3129
|
breakpoint: "lg",
|
|
3010
|
-
class: unref(getSiderClass),
|
|
3011
|
-
width: unref(getMenuWidth),
|
|
3012
|
-
collapsed: unref(getCollapsed),
|
|
3013
|
-
collapsedWidth: unref(getCollapsedWidth),
|
|
3014
|
-
onBreakpoint: unref(onBreakPointChange),
|
|
3015
|
-
theme: unref(getMenuTheme),
|
|
3016
|
-
trigger: unref(renderTrigger)
|
|
3017
|
-
}, unref(getTriggerAttr)), {
|
|
3130
|
+
class: unref$1(getSiderClass),
|
|
3131
|
+
width: unref$1(getMenuWidth),
|
|
3132
|
+
collapsed: unref$1(getCollapsed),
|
|
3133
|
+
collapsedWidth: unref$1(getCollapsedWidth),
|
|
3134
|
+
onBreakpoint: unref$1(onBreakPointChange),
|
|
3135
|
+
theme: unref$1(getMenuTheme),
|
|
3136
|
+
trigger: unref$1(renderTrigger)
|
|
3137
|
+
}, unref$1(getTriggerAttr)), {
|
|
3018
3138
|
default: withCtx(() => [createVNode(_sfc_main$9, {
|
|
3019
|
-
theme: unref(getMenuTheme),
|
|
3020
|
-
menuMode: unref(getMode),
|
|
3021
|
-
splitType: unref(getSplitType)
|
|
3139
|
+
theme: unref$1(getMenuTheme),
|
|
3140
|
+
menuMode: unref$1(getMode),
|
|
3141
|
+
splitType: unref$1(getSplitType)
|
|
3022
3142
|
}, null, 8, ["theme", "menuMode", "splitType"]), createVNode(_sfc_main$6, {
|
|
3023
3143
|
ref_key: "dragBarRef",
|
|
3024
3144
|
ref: dragBarRef
|
|
3025
3145
|
}, null, 512)]),
|
|
3026
3146
|
_: 1
|
|
3027
|
-
}, 16, ["class", "width", "collapsed", "collapsedWidth", "onBreakpoint", "theme", "trigger"]), [[vShow, unref(showClassSideBarRef)]])], 64));
|
|
3147
|
+
}, 16, ["class", "width", "collapsed", "collapsedWidth", "onBreakpoint", "theme", "trigger"]), [[vShow, unref$1(showClassSideBarRef)]])], 64));
|
|
3028
3148
|
};
|
|
3029
3149
|
}
|
|
3030
3150
|
});
|
|
@@ -3041,50 +3161,50 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3041
3161
|
const { getCalcContentWidth, getIsMixMode, getSplit, getIsMixSidebar } = useMenu();
|
|
3042
3162
|
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
3043
3163
|
const getPlaceholderDomStyle = computed(() => {
|
|
3044
|
-
let height = unref(getHeaderHeight);
|
|
3045
|
-
if (unref(getIsMixMode)) {
|
|
3046
|
-
height = unref(getShowMultipleTab) ? unref(getTabsHeight) : 0;
|
|
3164
|
+
let height = unref$1(getHeaderHeight);
|
|
3165
|
+
if (unref$1(getIsMixMode)) {
|
|
3166
|
+
height = unref$1(getShowMultipleTab) ? unref$1(getTabsHeight) : 0;
|
|
3047
3167
|
}
|
|
3048
3168
|
return {
|
|
3049
3169
|
height: `${height}px`
|
|
3050
3170
|
};
|
|
3051
3171
|
});
|
|
3052
3172
|
const getSplitType = computed(() => {
|
|
3053
|
-
return unref(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3173
|
+
return unref$1(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3054
3174
|
});
|
|
3055
3175
|
const { menusRef } = useSplitMenu(getSplitType);
|
|
3056
3176
|
const getWrapStyle = computed(() => {
|
|
3057
3177
|
const style = {};
|
|
3058
|
-
if (unref(getIsMixSidebar)) {
|
|
3059
|
-
style.width = useThemeStore().getMixSiderIsHasMenu ? unref(getCalcContentWidth) : "calc(100% - 80px)";
|
|
3060
|
-
} else if (unref(getSplit) && !unref(menusRef)?.length) {
|
|
3178
|
+
if (unref$1(getIsMixSidebar)) {
|
|
3179
|
+
style.width = useThemeStore().getMixSiderIsHasMenu ? unref$1(getCalcContentWidth) : "calc(100% - 80px)";
|
|
3180
|
+
} else if (unref$1(getSplit) && !unref$1(menusRef)?.length) {
|
|
3061
3181
|
style.width = "100%";
|
|
3062
|
-
} else if (unref(getFixed)) {
|
|
3063
|
-
style.width = unref(getCalcContentWidth);
|
|
3182
|
+
} else if (unref$1(getFixed)) {
|
|
3183
|
+
style.width = unref$1(getCalcContentWidth);
|
|
3064
3184
|
}
|
|
3065
|
-
if (unref(getShowFullHeaderRef))
|
|
3185
|
+
if (unref$1(getShowFullHeaderRef))
|
|
3066
3186
|
style.top = "48px";
|
|
3067
3187
|
return style;
|
|
3068
3188
|
});
|
|
3069
3189
|
const getClass = computed(() => {
|
|
3070
3190
|
let cls = "transition-width duration-200 flex-auto";
|
|
3071
|
-
if (unref(getFixed)) {
|
|
3191
|
+
if (unref$1(getFixed)) {
|
|
3072
3192
|
cls += " fixed top-0 right-0 w-full";
|
|
3073
3193
|
}
|
|
3074
3194
|
return cls;
|
|
3075
3195
|
});
|
|
3076
3196
|
return (_ctx, _cache) => {
|
|
3077
3197
|
return openBlock(), createElementBlock("div", null, [
|
|
3078
|
-
unref(getFixed) ? (openBlock(), createElementBlock("div", {
|
|
3198
|
+
unref$1(getFixed) ? (openBlock(), createElementBlock("div", {
|
|
3079
3199
|
key: 0,
|
|
3080
|
-
style: normalizeStyle(unref(getPlaceholderDomStyle))
|
|
3200
|
+
style: normalizeStyle(unref$1(getPlaceholderDomStyle))
|
|
3081
3201
|
}, null, 4)) : createCommentVNode("", true),
|
|
3082
3202
|
createElementVNode("div", {
|
|
3083
|
-
style: normalizeStyle(unref(getWrapStyle)),
|
|
3084
|
-
class: normalizeClass(unref(getClass))
|
|
3203
|
+
style: normalizeStyle(unref$1(getWrapStyle)),
|
|
3204
|
+
class: normalizeClass(unref$1(getClass))
|
|
3085
3205
|
}, [
|
|
3086
|
-
unref(getShowInsetHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, { key: 0 })) : createCommentVNode("", true),
|
|
3087
|
-
unref(getShowMultipleTab) && !unref(getMultipleTabPosIsTop) ? (openBlock(), createBlock(_sfc_main$v, { key: 1 })) : createCommentVNode("", true)
|
|
3206
|
+
unref$1(getShowInsetHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, { key: 0 })) : createCommentVNode("", true),
|
|
3207
|
+
unref$1(getShowMultipleTab) && !unref$1(getMultipleTabPosIsTop) ? (openBlock(), createBlock(_sfc_main$v, { key: 1 })) : createCommentVNode("", true)
|
|
3088
3208
|
], 6)
|
|
3089
3209
|
]);
|
|
3090
3210
|
};
|
|
@@ -3095,7 +3215,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3095
3215
|
__name: "index",
|
|
3096
3216
|
setup(__props) {
|
|
3097
3217
|
const { getFooter } = useTheme();
|
|
3098
|
-
const { title, subTitle, height } = unref(getFooter);
|
|
3218
|
+
const { title, subTitle, height } = unref$1(getFooter);
|
|
3099
3219
|
const footerOptions = computed(() => {
|
|
3100
3220
|
return {
|
|
3101
3221
|
lineHeight: `${height - 1}px`,
|
|
@@ -3106,13 +3226,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3106
3226
|
};
|
|
3107
3227
|
});
|
|
3108
3228
|
return (_ctx, _cache) => {
|
|
3109
|
-
return openBlock(), createBlock(unref(LayoutFooter), {
|
|
3229
|
+
return openBlock(), createBlock(unref$1(LayoutFooter), {
|
|
3110
3230
|
class: "text-center p-0 w-full block border-t border-gray-200",
|
|
3111
|
-
style: normalizeStyle(unref(footerOptions))
|
|
3231
|
+
style: normalizeStyle(unref$1(footerOptions))
|
|
3112
3232
|
}, {
|
|
3113
3233
|
default: withCtx(() => [
|
|
3114
|
-
createElementVNode("span", _hoisted_1$1, toDisplayString(unref(title)), 1),
|
|
3115
|
-
createElementVNode("span", null, toDisplayString(unref(subTitle)), 1)
|
|
3234
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(unref$1(title)), 1),
|
|
3235
|
+
createElementVNode("span", null, toDisplayString(unref$1(subTitle)), 1)
|
|
3116
3236
|
]),
|
|
3117
3237
|
_: 1
|
|
3118
3238
|
}, 8, ["style"]);
|
|
@@ -3128,7 +3248,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3128
3248
|
const { getCanCache } = useMultipleTab();
|
|
3129
3249
|
const tabStore = useRouteReuseStore();
|
|
3130
3250
|
function getTransitionName(route) {
|
|
3131
|
-
return route.meta.transitionName || unref(getTransitionMode);
|
|
3251
|
+
return route.meta.transitionName || unref$1(getTransitionMode);
|
|
3132
3252
|
}
|
|
3133
3253
|
const getCaches = computed(() => {
|
|
3134
3254
|
return tabStore.getCachedTabList;
|
|
@@ -3138,8 +3258,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3138
3258
|
const _component_ALayoutContent = LayoutContent;
|
|
3139
3259
|
return openBlock(), createElementBlock("div", {
|
|
3140
3260
|
id: "dt-layout-content",
|
|
3141
|
-
class: normalizeClass([["dt-layout-content", unref(getLayoutContentMode)], "relative flex-auto overflow-x-hidden min-h-0 flex"]),
|
|
3142
|
-
loading: unref(getPageLoading) && unref(getOpenPageLoading)
|
|
3261
|
+
class: normalizeClass([["dt-layout-content", unref$1(getLayoutContentMode)], "relative flex-auto overflow-x-hidden min-h-0 flex"]),
|
|
3262
|
+
loading: unref$1(getPageLoading) && unref$1(getOpenPageLoading)
|
|
3143
3263
|
}, [
|
|
3144
3264
|
createVNode(_component_ALayoutContent, null, {
|
|
3145
3265
|
default: withCtx(() => [
|
|
@@ -3149,9 +3269,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3149
3269
|
name: getTransitionName(route)
|
|
3150
3270
|
}, {
|
|
3151
3271
|
default: withCtx(() => [
|
|
3152
|
-
!route.meta.hideTab && unref(getCanCache) ? (openBlock(), createBlock(KeepAlive, {
|
|
3272
|
+
!route.meta.hideTab && unref$1(getCanCache) ? (openBlock(), createBlock(KeepAlive, {
|
|
3153
3273
|
key: 0,
|
|
3154
|
-
include: unref(getCaches)
|
|
3274
|
+
include: unref$1(getCaches)
|
|
3155
3275
|
}, [
|
|
3156
3276
|
(openBlock(), createBlock(resolveDynamicComponent(Component), {
|
|
3157
3277
|
key: route.path
|
|
@@ -3177,66 +3297,83 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3177
3297
|
const { getShowFullHeaderRef, getIsZH, getHeaderHeight, getUiSize } = useHeader();
|
|
3178
3298
|
const { getSplit, getShowMenu, getShowSidebar, getIsMixSidebar } = useMenu();
|
|
3179
3299
|
const { getFooter, getShowFooter } = useTheme();
|
|
3180
|
-
const { height } = unref(getFooter);
|
|
3181
|
-
dayjs.locale(unref(getIsZH) ? "zh-cn" : "en");
|
|
3300
|
+
const { height } = unref$1(getFooter);
|
|
3301
|
+
dayjs.locale(unref$1(getIsZH) ? "zh-cn" : "en");
|
|
3182
3302
|
const layoutClass = computed(() => {
|
|
3183
3303
|
let cls = "ant-layout";
|
|
3184
|
-
if (unref(getIsMixSidebar)) {
|
|
3304
|
+
if (unref$1(getIsMixSidebar)) {
|
|
3185
3305
|
cls += " ant-layout-has-sider";
|
|
3186
3306
|
}
|
|
3187
|
-
if (unref(getShowMenu)) {
|
|
3307
|
+
if (unref$1(getShowMenu)) {
|
|
3188
3308
|
cls += " flex flex-auto min-h-0 flex-row";
|
|
3189
3309
|
}
|
|
3190
3310
|
return cls;
|
|
3191
3311
|
});
|
|
3192
3312
|
const layoutOption = computed(() => {
|
|
3193
|
-
if (unref(getSplit)) {
|
|
3313
|
+
if (unref$1(getSplit)) {
|
|
3194
3314
|
return {
|
|
3195
|
-
paddingTop: unref(getHeaderHeight) + "px",
|
|
3315
|
+
paddingTop: unref$1(getHeaderHeight) + "px",
|
|
3196
3316
|
background: "#f0f2f5"
|
|
3197
3317
|
};
|
|
3198
3318
|
}
|
|
3199
3319
|
});
|
|
3200
3320
|
const getContentStyle = computed(() => {
|
|
3201
3321
|
return {
|
|
3202
|
-
flex: unref(getSplit) ? `0 0 calc(100% - ${unref(getShowFooter) || 0}px)` : `0 0 calc(100% - ${unref(getShowFooter) ? height : 0}px - ${unref(getHeaderHeight)}px)`,
|
|
3322
|
+
flex: unref$1(getSplit) ? `0 0 calc(100% - ${unref$1(getShowFooter) || 0}px)` : `0 0 calc(100% - ${unref$1(getShowFooter) ? height : 0}px - ${unref$1(getHeaderHeight)}px)`,
|
|
3203
3323
|
overflowY: "auto"
|
|
3204
3324
|
};
|
|
3205
3325
|
});
|
|
3326
|
+
const router = useRouter();
|
|
3327
|
+
watch(
|
|
3328
|
+
() => router.currentRoute.value.path,
|
|
3329
|
+
(v) => {
|
|
3330
|
+
if (v === Pages.LOGIN) {
|
|
3331
|
+
DtCache.clearAll();
|
|
3332
|
+
const cacheTab = DtCache.getLocal(CacheKey.THEME)?.routeReuse?.cache;
|
|
3333
|
+
if (!cacheTab) {
|
|
3334
|
+
const tabStore = useRouteReuseStore();
|
|
3335
|
+
tabStore.resetState();
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
immediate: true
|
|
3341
|
+
}
|
|
3342
|
+
);
|
|
3206
3343
|
return (_ctx, _cache) => {
|
|
3207
3344
|
const _component_ALayout = Layout;
|
|
3208
3345
|
const _component_AConfigProvider = ConfigProvider;
|
|
3209
3346
|
return openBlock(), createElementBlock("div", {
|
|
3210
|
-
class: normalizeClass(["dt-theme w-full h-full", `dt-theme-${unref(getUiSize)}`])
|
|
3347
|
+
class: normalizeClass(["dt-theme w-full h-full", `dt-theme-${unref$1(getUiSize)}`])
|
|
3211
3348
|
}, [
|
|
3212
3349
|
createVNode(_component_AConfigProvider, {
|
|
3213
|
-
locale: unref(getIsZH) ? unref(zhCN) : unref(en),
|
|
3214
|
-
"component-size": unref(getUiSize)
|
|
3350
|
+
locale: unref$1(getIsZH) ? unref$1(zhCN) : unref$1(en),
|
|
3351
|
+
"component-size": unref$1(getUiSize)
|
|
3215
3352
|
}, {
|
|
3216
3353
|
default: withCtx(() => [
|
|
3217
|
-
unref(currentRoute)?.name && unref(currentRoute).meta?.requiresAuth !== false ? (openBlock(), createBlock(_component_ALayout, {
|
|
3354
|
+
unref$1(currentRoute)?.name && unref$1(currentRoute).meta?.requiresAuth !== false ? (openBlock(), createBlock(_component_ALayout, {
|
|
3218
3355
|
key: 0,
|
|
3219
3356
|
class: "w-full h-full flex"
|
|
3220
3357
|
}, {
|
|
3221
3358
|
default: withCtx(() => [
|
|
3222
3359
|
createVNode(_sfc_main$y),
|
|
3223
|
-
unref(getShowFullHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
3360
|
+
unref$1(getShowFullHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
3224
3361
|
key: 0,
|
|
3225
3362
|
fixed: ""
|
|
3226
3363
|
})) : createCommentVNode("", true),
|
|
3227
3364
|
createVNode(_component_ALayout, {
|
|
3228
|
-
class: normalizeClass(unref(layoutClass)),
|
|
3229
|
-
style: normalizeStyle(unref(layoutOption))
|
|
3365
|
+
class: normalizeClass(unref$1(layoutClass)),
|
|
3366
|
+
style: normalizeStyle(unref$1(layoutOption))
|
|
3230
3367
|
}, {
|
|
3231
3368
|
default: withCtx(() => [
|
|
3232
|
-
unref(getShowSidebar) ? (openBlock(), createBlock(_sfc_main$4, { key: 0 })) : createCommentVNode("", true),
|
|
3369
|
+
unref$1(getShowSidebar) ? (openBlock(), createBlock(_sfc_main$4, { key: 0 })) : createCommentVNode("", true),
|
|
3233
3370
|
createVNode(_component_ALayout, { class: "dt-theme-main flex w-full h-ful transition-width duration-200" }, {
|
|
3234
3371
|
default: withCtx(() => [
|
|
3235
3372
|
createVNode(_sfc_main$3),
|
|
3236
3373
|
createVNode(_sfc_main$1, {
|
|
3237
|
-
style: normalizeStyle(unref(getContentStyle))
|
|
3374
|
+
style: normalizeStyle(unref$1(getContentStyle))
|
|
3238
3375
|
}, null, 8, ["style"]),
|
|
3239
|
-
unref(getFooter) && unref(getFooter)["show"] ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : createCommentVNode("", true)
|
|
3376
|
+
unref$1(getFooter) && unref$1(getFooter)["show"] ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : createCommentVNode("", true)
|
|
3240
3377
|
]),
|
|
3241
3378
|
_: 1
|
|
3242
3379
|
})
|
|
@@ -3245,7 +3382,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3245
3382
|
}, 8, ["class", "style"])
|
|
3246
3383
|
]),
|
|
3247
3384
|
_: 1
|
|
3248
|
-
})) : (openBlock(), createBlock(unref(RouterView), { key: 1 }))
|
|
3385
|
+
})) : (openBlock(), createBlock(unref$1(RouterView), { key: 1 }))
|
|
3249
3386
|
]),
|
|
3250
3387
|
_: 1
|
|
3251
3388
|
}, 8, ["locale", "component-size"])
|
|
@@ -3290,6 +3427,7 @@ const EN = {
|
|
|
3290
3427
|
"FIXED_TO_LEFT": "Fixed to the left",
|
|
3291
3428
|
"FIXED_TO_RIGHT": "Fixed to the right",
|
|
3292
3429
|
"EXPORT": "Export",
|
|
3430
|
+
"DOWNLOAD_TEMPLATE": "Download Template",
|
|
3293
3431
|
"EXPORT_CURRENT_PAGE": "Export the current page",
|
|
3294
3432
|
"EXPORT_SELECT_COLUMN": "Export Selected columns",
|
|
3295
3433
|
"EXPORT_ALL": "Export all columns",
|
|
@@ -3326,6 +3464,7 @@ const EN = {
|
|
|
3326
3464
|
"SMALL_SIZE": "Small Size",
|
|
3327
3465
|
"MODIFY_PASSWORD": "Modify Password",
|
|
3328
3466
|
"LOGIN_OUT": "Log out",
|
|
3467
|
+
"REFRESH": "Refresh",
|
|
3329
3468
|
"CLOSE_CURRENT_TAG": "Close the current tab",
|
|
3330
3469
|
"CLOSE_LEFT_TAGS": "Close the left tab",
|
|
3331
3470
|
"CLOSE_RIGHT_TAGS": "Close the right tab",
|
|
@@ -3428,11 +3567,12 @@ const ZH = {
|
|
|
3428
3567
|
"SMALL_SIZE": "\u5C0F\u5C3A\u5BF8",
|
|
3429
3568
|
"MODIFY_PASSWORD": "\u4FEE\u6539\u5BC6\u7801",
|
|
3430
3569
|
"LOGIN_OUT": "\u9000\u51FA\u7CFB\u7EDF",
|
|
3431
|
-
"
|
|
3432
|
-
"
|
|
3433
|
-
"
|
|
3434
|
-
"
|
|
3435
|
-
"
|
|
3570
|
+
"REFRESH": "\u91CD\u65B0\u52A0\u8F7D",
|
|
3571
|
+
"CLOSE_CURRENT_TAG": "\u5173\u95ED\u5F53\u524D",
|
|
3572
|
+
"CLOSE_LEFT_TAGS": "\u5173\u95ED\u5DE6\u4FA7",
|
|
3573
|
+
"CLOSE_RIGHT_TAGS": "\u5173\u95ED\u53F3\u4FA7",
|
|
3574
|
+
"CLOSE_OTHER_TAGS": "\u5173\u95ED\u5176\u4ED6",
|
|
3575
|
+
"CLOSE_ALL_TAGE": "\u5173\u95ED\u5168\u90E8",
|
|
3436
3576
|
"SETTING_THEME": "\u98CE\u683C\u8BBE\u7F6E",
|
|
3437
3577
|
"PROJECT_SETTING": "\u9879\u76EE\u914D\u7F6E",
|
|
3438
3578
|
"NAV_MODE": "\u5BFC\u822A\u680F\u6A21\u5F0F",
|
|
@@ -3462,6 +3602,8 @@ const DtTheme = withInstall$1(_sfc_main);
|
|
|
3462
3602
|
export {
|
|
3463
3603
|
ContentMode,
|
|
3464
3604
|
DtTheme,
|
|
3605
|
+
MenuMode,
|
|
3606
|
+
MenuType,
|
|
3465
3607
|
UiSize,
|
|
3466
3608
|
defaultThemeConf,
|
|
3467
3609
|
uiLang,
|