@dt-frames/ui 2.0.6 → 2.0.8
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/components/curd/index.js +42 -67
- 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 +74 -41
- 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 +299 -294
- 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/hooks/useMenu.d.ts +1 -1
- package/es/theme/src/index.d.ts +2 -1
- package/es/theme/src/types/theme.type.d.ts +0 -1
- package/index.js +3 -1
- package/package.json +1 -1
package/es/theme/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
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";
|
|
@@ -64,7 +64,6 @@ var UiSize = /* @__PURE__ */ ((UiSize2) => {
|
|
|
64
64
|
return UiSize2;
|
|
65
65
|
})(UiSize || {});
|
|
66
66
|
const defaultThemeConf = {
|
|
67
|
-
cache: false,
|
|
68
67
|
content: {
|
|
69
68
|
contentMode: ContentMode.FULL
|
|
70
69
|
},
|
|
@@ -146,7 +145,8 @@ const useThemeStore = defineStore({
|
|
|
146
145
|
},
|
|
147
146
|
actions: {
|
|
148
147
|
setThemeConf(options = {}) {
|
|
149
|
-
|
|
148
|
+
let newThemeConf = deepMerge(this.themeConf, options);
|
|
149
|
+
this.themeConf = deepMerge(defaultThemeConf, newThemeConf);
|
|
150
150
|
DtCache.setLocal(CacheKey.THEME, this.themeConf);
|
|
151
151
|
},
|
|
152
152
|
setMixSiderIsHasMenu(val) {
|
|
@@ -160,7 +160,7 @@ const useThemeStore = defineStore({
|
|
|
160
160
|
});
|
|
161
161
|
function handleGotoPage(router) {
|
|
162
162
|
const go = useGo(router);
|
|
163
|
-
go(unref(router.currentRoute).path, true);
|
|
163
|
+
go(unref$1(router.currentRoute).path, true);
|
|
164
164
|
}
|
|
165
165
|
const useRouteReuseStore = defineStore({
|
|
166
166
|
id: "route-reuse",
|
|
@@ -220,7 +220,7 @@ const useRouteReuseStore = defineStore({
|
|
|
220
220
|
closeAllTab(currentRoute, router) {
|
|
221
221
|
const go = useGo(router);
|
|
222
222
|
let filterTabList = this.tabList.filter((item) => item?.meta?.affix ?? false);
|
|
223
|
-
const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref(currentRoute);
|
|
223
|
+
const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref$1(currentRoute);
|
|
224
224
|
this.tabList = [route];
|
|
225
225
|
this.updateCacheTab();
|
|
226
226
|
go(route.path);
|
|
@@ -300,7 +300,7 @@ const useRouteReuseStore = defineStore({
|
|
|
300
300
|
this.cacheTabList = cacheMap;
|
|
301
301
|
},
|
|
302
302
|
async refreshPage(router) {
|
|
303
|
-
const findTab = this.getCachedTabList.find((item) => item === unref(router.currentRoute).name);
|
|
303
|
+
const findTab = this.getCachedTabList.find((item) => item === unref$1(router.currentRoute).name);
|
|
304
304
|
if (findTab) {
|
|
305
305
|
this.cacheTabList.delete(findTab.toString());
|
|
306
306
|
}
|
|
@@ -326,46 +326,46 @@ function useMenu() {
|
|
|
326
326
|
const getMenuFixed = computed(() => useThemeStore().getMenuConf.fixed);
|
|
327
327
|
const getShowMenu = computed(() => useThemeStore().getMenuConf.show);
|
|
328
328
|
const getShowSidebar = computed(() => {
|
|
329
|
-
return unref(getSplit) || unref(getShowMenu) && unref(getMenuMode) !== MenuMode.HORIZONTAL;
|
|
329
|
+
return unref$1(getSplit) || unref$1(getShowMenu) && unref$1(getMenuMode) !== MenuMode.HORIZONTAL;
|
|
330
330
|
});
|
|
331
331
|
const getMenuHidden = computed(() => useThemeStore().getMenuConf.hidden);
|
|
332
332
|
const getMenuTheme = computed(() => useThemeStore().getMenuConf.theme);
|
|
333
333
|
const getTrigger = computed(() => useThemeStore().getMenuConf.trigger);
|
|
334
334
|
const getCanDrag = computed(() => useThemeStore().getMenuConf.canDrag);
|
|
335
335
|
const getIsMixMode = computed(() => {
|
|
336
|
-
return unref(getMenuMode) === MenuMode.INLINE && unref(getMenuType) === MenuType.MIX;
|
|
336
|
+
return unref$1(getMenuMode) === MenuMode.INLINE && unref$1(getMenuType) === MenuType.MIX;
|
|
337
337
|
});
|
|
338
|
-
const getIsMixSidebar = computed(() => unref(getMenuType) === MenuType.MIX_SIDEBAR);
|
|
338
|
+
const getIsMixSidebar = computed(() => unref$1(getMenuType) === MenuType.MIX_SIDEBAR);
|
|
339
339
|
const getMenuWidth = computed(() => {
|
|
340
|
-
if (unref(getIsMixMode)) {
|
|
340
|
+
if (unref$1(getIsMixMode)) {
|
|
341
341
|
return Number(useThemeStore().getMenuConf.menuWidth) - 40;
|
|
342
|
-
} else if (unref(getIsMixSidebar)) {
|
|
342
|
+
} else if (unref$1(getIsMixSidebar)) {
|
|
343
343
|
return Number(useThemeStore().getMenuConf.menuWidth) - 10;
|
|
344
344
|
} else {
|
|
345
345
|
return Number(useThemeStore().getMenuConf.menuWidth);
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
348
|
const getMixSideTrigger = computed(() => useThemeStore().getMenuConf.mixSideTrigger);
|
|
349
|
-
const getLogoWidth = computed(() => unref(getIsMixSidebar) ? "80px" : useThemeStore().getMenuConf.menuWidth);
|
|
349
|
+
const getLogoWidth = computed(() => unref$1(getIsMixSidebar) ? "80px" : useThemeStore().getMenuConf.menuWidth);
|
|
350
350
|
const getMenuType = computed(() => useThemeStore().getMenuConf.type);
|
|
351
|
-
const getIsTopMenu = computed(() => unref(getMenuType) === MenuType.TOP_MENU);
|
|
351
|
+
const getIsTopMenu = computed(() => unref$1(getMenuType) === MenuType.TOP_MENU);
|
|
352
352
|
const getMenuMode = computed(() => useThemeStore().getMenuConf.mode);
|
|
353
353
|
const getSplit = computed(() => useThemeStore().getMenuConf.split);
|
|
354
354
|
const getCollapsed = computed(() => useThemeStore().getMenuConf.collapsed);
|
|
355
|
-
const getIsHorizontal = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL);
|
|
355
|
+
const getIsHorizontal = computed(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL);
|
|
356
356
|
const setThemeStore = (conf = {}) => setThemeConf(conf);
|
|
357
357
|
const toggleCollapsed = () => setThemeStore({
|
|
358
358
|
menuOptions: {
|
|
359
|
-
collapsed: !unref(getCollapsed)
|
|
359
|
+
collapsed: !unref$1(getCollapsed)
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
const getMiniWidthNumber = computed(() => useThemeStore().getMenuConf.collapsedShowTitle ? 80 : 48);
|
|
363
363
|
const getRealWidth = computed(() => {
|
|
364
|
-
return unref(getCollapsed) ? unref(getMiniWidthNumber) : unref(getMenuWidth);
|
|
364
|
+
return unref$1(getCollapsed) ? unref$1(getMiniWidthNumber) : unref$1(getMenuWidth);
|
|
365
365
|
});
|
|
366
366
|
const getCalcContentWidth = computed(() => {
|
|
367
|
-
const width = unref(getIsTopMenu) || !unref(getShowMenu) || unref(getSplit) && unref(getMenuHidden) ? 0 : unref(getRealWidth);
|
|
368
|
-
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)`;
|
|
369
369
|
});
|
|
370
370
|
return {
|
|
371
371
|
getCollapsedShowTitle,
|
|
@@ -430,37 +430,37 @@ function useHeader() {
|
|
|
430
430
|
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
431
431
|
const getHeaderTheme = computed(() => getHeaderConf.theme);
|
|
432
432
|
const getFixed = computed(() => getHeaderConf.fixed);
|
|
433
|
-
const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType) && !unref(getIsMixSidebar));
|
|
433
|
+
const getShowHeaderLogo = computed(() => unref$1(getShowLogo) && !unref$1(getIsSidebarType) && !unref$1(getIsMixSidebar));
|
|
434
434
|
const getShowSearch = computed(() => getHeaderConf.showSearch);
|
|
435
435
|
const getShowHeaderTrigger = computed(() => {
|
|
436
|
-
if (unref(getMenuType) === MenuType.TOP_MENU || !unref(getShowMenu) || unref(getMenuHidden)) {
|
|
436
|
+
if (unref$1(getMenuType) === MenuType.TOP_MENU || !unref$1(getShowMenu) || unref$1(getMenuHidden)) {
|
|
437
437
|
return false;
|
|
438
438
|
}
|
|
439
|
-
return unref(getTrigger);
|
|
439
|
+
return unref$1(getTrigger);
|
|
440
440
|
});
|
|
441
441
|
const getShowBreadCrumb = computed(() => getHeaderConf.showBreadCrumb);
|
|
442
442
|
const getShowBread = computed(
|
|
443
|
-
() => unref(getMenuMode) !== MenuMode.HORIZONTAL && !unref(getSplit) && unref(getShowBreadCrumb)
|
|
443
|
+
() => unref$1(getMenuMode) !== MenuMode.HORIZONTAL && !unref$1(getSplit) && unref$1(getShowBreadCrumb)
|
|
444
444
|
);
|
|
445
|
-
const getShowTopMenu = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL || unref(getSplit));
|
|
445
|
+
const getShowTopMenu = computed(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL || unref$1(getSplit));
|
|
446
446
|
const getShowNotice = computed(() => getHeaderConf.showNotice);
|
|
447
447
|
const getShowFullScreen = computed(() => getHeaderConf.showFullScreen);
|
|
448
448
|
const getShowLocale = computed(() => getHeaderConf.showLocaleSwitch);
|
|
449
449
|
const getShowSettingTheme = computed(() => getHeaderConf.showSettingTheme);
|
|
450
450
|
const getShowFullHeaderRef = computed(() => {
|
|
451
|
-
return !unref(getIsSidebarType) && !unref(getIsMixSidebar) && !unref(getIsTopMenu);
|
|
451
|
+
return !unref$1(getIsSidebarType) && !unref$1(getIsMixSidebar) && !unref$1(getIsTopMenu);
|
|
452
452
|
});
|
|
453
453
|
const getHeaderHeight = computed(() => {
|
|
454
454
|
let height = 0;
|
|
455
455
|
height += HEADER_HEIGHT;
|
|
456
|
-
if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
|
|
456
|
+
if (unref$1(getShowMultipleTab) && !unref$1(getSplit) && !unref$1(getMultipleTabPosIsTop)) {
|
|
457
457
|
height += TABS_HEIGHT;
|
|
458
458
|
}
|
|
459
459
|
return height;
|
|
460
460
|
});
|
|
461
461
|
const getTabsHeight = computed(() => TABS_HEIGHT);
|
|
462
462
|
const getShowInsetHeaderRef = computed(() => {
|
|
463
|
-
return unref(getIsSidebarType) || unref(getIsTopMenu) || unref(getIsMixSidebar);
|
|
463
|
+
return unref$1(getIsSidebarType) || unref$1(getIsTopMenu) || unref$1(getIsMixSidebar);
|
|
464
464
|
});
|
|
465
465
|
const getShowBackToTop = computed(() => getHeaderConf.showBackToTop);
|
|
466
466
|
const getIsZH = computed(() => {
|
|
@@ -617,20 +617,20 @@ function useDragLine(siderRef, dragBarRef) {
|
|
|
617
617
|
});
|
|
618
618
|
});
|
|
619
619
|
function getEl(elRef) {
|
|
620
|
-
const el = unref(elRef);
|
|
620
|
+
const el = unref$1(elRef);
|
|
621
621
|
if (!el)
|
|
622
622
|
return null;
|
|
623
623
|
if (Reflect.has(el, "$el")) {
|
|
624
|
-
return unref(elRef)?.$el;
|
|
624
|
+
return unref$1(elRef)?.$el;
|
|
625
625
|
}
|
|
626
|
-
return unref(elRef);
|
|
626
|
+
return unref$1(elRef);
|
|
627
627
|
}
|
|
628
628
|
function handleMouseMove(ele, wrap, clientX) {
|
|
629
629
|
document.onmousemove = function(innerE) {
|
|
630
630
|
innerE = innerE || window.event;
|
|
631
631
|
let iT = ele.left + (innerE.clientX - clientX);
|
|
632
632
|
const maxT = 800;
|
|
633
|
-
const minT = unref(getMiniWidthNumber);
|
|
633
|
+
const minT = unref$1(getMiniWidthNumber);
|
|
634
634
|
iT < 0 && (iT = 0);
|
|
635
635
|
iT > maxT && (iT = maxT);
|
|
636
636
|
iT < minT && (iT = minT);
|
|
@@ -678,7 +678,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
678
678
|
const { getShowBackToTop } = useHeader();
|
|
679
679
|
return (_ctx, _cache) => {
|
|
680
680
|
const _component_ABackTop = BackTop;
|
|
681
|
-
return unref(getShowBackToTop) ? (openBlock(), createBlock(_component_ABackTop, {
|
|
681
|
+
return unref$1(getShowBackToTop) ? (openBlock(), createBlock(_component_ABackTop, {
|
|
682
682
|
key: 0,
|
|
683
683
|
target: getTarget,
|
|
684
684
|
visibilityHeight: 300
|
|
@@ -719,7 +719,7 @@ function useTabs(_router) {
|
|
|
719
719
|
const router = _router || useRouter();
|
|
720
720
|
const { currentRoute } = router;
|
|
721
721
|
const getCurrentTab = () => {
|
|
722
|
-
const route = unref(currentRoute);
|
|
722
|
+
const route = unref$1(currentRoute);
|
|
723
723
|
return tabStore.getTabList.find((item) => item.fullPath === route.fullPath);
|
|
724
724
|
};
|
|
725
725
|
function handleTabAction(action, tab) {
|
|
@@ -761,7 +761,7 @@ function useTabDropdown(tabItem, getIsTabs) {
|
|
|
761
761
|
const tabStore = useRouteReuseStore();
|
|
762
762
|
const { refreshPage, closeAll, close, closeLeft, closeOther, closeRight } = useTabs();
|
|
763
763
|
const getTargetTab = computed(() => {
|
|
764
|
-
return unref(getIsTabs) ? tabItem : unref(currentRoute);
|
|
764
|
+
return unref$1(getIsTabs) ? tabItem : unref$1(currentRoute);
|
|
765
765
|
});
|
|
766
766
|
const state = reactive({
|
|
767
767
|
current: null,
|
|
@@ -769,8 +769,8 @@ function useTabDropdown(tabItem, getIsTabs) {
|
|
|
769
769
|
});
|
|
770
770
|
const getDropMenuList = computed(() => {
|
|
771
771
|
const { t } = useI18n("UI");
|
|
772
|
-
const { meta } = unref(getTargetTab);
|
|
773
|
-
const { path } = unref(currentRoute);
|
|
772
|
+
const { meta } = unref$1(getTargetTab);
|
|
773
|
+
const { path } = unref$1(currentRoute);
|
|
774
774
|
const curItem = state.current;
|
|
775
775
|
const isCurItem = curItem ? curItem.path === path : false;
|
|
776
776
|
const index = state.currentIndex;
|
|
@@ -860,7 +860,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
860
860
|
const menuLabelMap = menuList2Map();
|
|
861
861
|
const getIsTabs = computed(() => !props.isExtra);
|
|
862
862
|
const getTrigger = computed(
|
|
863
|
-
() => unref(getIsTabs) ? ["contextmenu"] : ["click"]
|
|
863
|
+
() => unref$1(getIsTabs) ? ["contextmenu"] : ["click"]
|
|
864
864
|
);
|
|
865
865
|
const { getDropMenuList, handleContextMenu, handleMenuEvent } = useTabDropdown(props?.tabItem, getIsTabs);
|
|
866
866
|
function handleContext(e) {
|
|
@@ -873,16 +873,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
873
873
|
const _component_ADropdown = Dropdown;
|
|
874
874
|
return openBlock(), createBlock(_component_ADropdown, {
|
|
875
875
|
placement: "bottomRight",
|
|
876
|
-
trigger: unref(getTrigger),
|
|
876
|
+
trigger: unref$1(getTrigger),
|
|
877
877
|
overlayClassName: "dt-reuse-tabs__dropdown"
|
|
878
878
|
}, {
|
|
879
879
|
overlay: withCtx(() => [
|
|
880
880
|
createVNode(_component_AMenu, null, {
|
|
881
881
|
default: withCtx(() => [
|
|
882
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getDropMenuList), (item, index) => {
|
|
882
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getDropMenuList), (item, index) => {
|
|
883
883
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
884
884
|
createVNode(_component_AMenuItem, {
|
|
885
|
-
onClick: ($event) => unref(handleMenuEvent)(item),
|
|
885
|
+
onClick: ($event) => unref$1(handleMenuEvent)(item),
|
|
886
886
|
disabled: item.disabled
|
|
887
887
|
}, {
|
|
888
888
|
default: withCtx(() => [
|
|
@@ -903,11 +903,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
903
903
|
})
|
|
904
904
|
]),
|
|
905
905
|
default: withCtx(() => [
|
|
906
|
-
unref(getIsTabs) ? (openBlock(), createElementBlock("div", {
|
|
906
|
+
unref$1(getIsTabs) ? (openBlock(), createElementBlock("div", {
|
|
907
907
|
key: 0,
|
|
908
908
|
onContextmenu: handleContext
|
|
909
909
|
}, [
|
|
910
|
-
createElementVNode("span", null, toDisplayString(unref(menuLabelMap).get(__props.tabItem.path) || __props.tabItem?.meta?.title || unref(t)("UNKNOWN_ROUTE")), 1)
|
|
910
|
+
createElementVNode("span", null, toDisplayString(unref$1(menuLabelMap).get(__props.tabItem.path) || __props.tabItem?.meta?.title || unref$1(t)("UNKNOWN_ROUTE")), 1)
|
|
911
911
|
], 32)) : (openBlock(), createElementBlock("span", {
|
|
912
912
|
key: 1,
|
|
913
913
|
onClick: handleContext,
|
|
@@ -955,7 +955,7 @@ function useSortable(el, options) {
|
|
|
955
955
|
if (!el)
|
|
956
956
|
return;
|
|
957
957
|
const Sortable = (await import("sortablejs")).default;
|
|
958
|
-
Sortable.create(unref(el), {
|
|
958
|
+
Sortable.create(unref$1(el), {
|
|
959
959
|
animation: 500,
|
|
960
960
|
delay: 400,
|
|
961
961
|
delayOnTouchOnly: true,
|
|
@@ -969,7 +969,7 @@ function useTabsDrag(affixList) {
|
|
|
969
969
|
const tabStore = useRouteReuseStore();
|
|
970
970
|
const { getCanDrag } = useMultipleTab();
|
|
971
971
|
nextTick(() => {
|
|
972
|
-
if (!unref(getCanDrag))
|
|
972
|
+
if (!unref$1(getCanDrag))
|
|
973
973
|
return;
|
|
974
974
|
const el = document.querySelectorAll(`.dt-reuse-tabs .ant-tabs-nav-list`)?.[0];
|
|
975
975
|
const { initSortable } = useSortable(el, {
|
|
@@ -1001,13 +1001,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1001
1001
|
const getTabsState = computed(() => {
|
|
1002
1002
|
return tabStore.getTabList.filter((item) => !item.meta?.hideTab);
|
|
1003
1003
|
});
|
|
1004
|
-
const unClose = computed(() => unref(getTabsState).length === 1);
|
|
1004
|
+
const unClose = computed(() => unref$1(getTabsState).length === 1);
|
|
1005
1005
|
function handleChange(activeKey) {
|
|
1006
1006
|
activeKeyRef.value = activeKey;
|
|
1007
1007
|
go(activeKey);
|
|
1008
1008
|
}
|
|
1009
1009
|
function handleEdit(targetKey) {
|
|
1010
|
-
if (unref(unClose))
|
|
1010
|
+
if (unref$1(unClose))
|
|
1011
1011
|
return;
|
|
1012
1012
|
tabStore.closeTabByKey(targetKey, router);
|
|
1013
1013
|
}
|
|
@@ -1018,13 +1018,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1018
1018
|
(v) => {
|
|
1019
1019
|
if (v === "/" || v === "/login")
|
|
1020
1020
|
return;
|
|
1021
|
-
const { meta = {} } = unref(router.currentRoute);
|
|
1021
|
+
const { meta = {} } = unref$1(router.currentRoute);
|
|
1022
1022
|
const { hideTab = false } = meta;
|
|
1023
1023
|
if (activeKeyRef.value !== v) {
|
|
1024
1024
|
activeKeyRef.value = v;
|
|
1025
1025
|
}
|
|
1026
1026
|
if (!hideTab) {
|
|
1027
|
-
tabStore.addTab(unref(router.currentRoute));
|
|
1027
|
+
tabStore.addTab(unref$1(router.currentRoute));
|
|
1028
1028
|
}
|
|
1029
1029
|
},
|
|
1030
1030
|
{
|
|
@@ -1047,13 +1047,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1047
1047
|
class: "h-8"
|
|
1048
1048
|
}, createSlots({
|
|
1049
1049
|
default: withCtx(() => [
|
|
1050
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getTabsState), (item) => {
|
|
1050
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getTabsState), (item) => {
|
|
1051
1051
|
return openBlock(), createBlock(_component_ATabPane, {
|
|
1052
1052
|
key: item.query ? item.fullPath : item.path,
|
|
1053
1053
|
closable: !(item && item.meta && item.meta.affix)
|
|
1054
1054
|
}, {
|
|
1055
1055
|
tab: withCtx(() => [
|
|
1056
|
-
unref(getShowQuick) ? (openBlock(), createBlock(unref(_sfc_main$w), {
|
|
1056
|
+
unref$1(getShowQuick) ? (openBlock(), createBlock(unref$1(_sfc_main$w), {
|
|
1057
1057
|
key: 0,
|
|
1058
1058
|
tabItem: item
|
|
1059
1059
|
}, null, 8, ["tabItem"])) : createCommentVNode("", true)
|
|
@@ -1064,11 +1064,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1064
1064
|
]),
|
|
1065
1065
|
_: 2
|
|
1066
1066
|
}, [
|
|
1067
|
-
unref(getShowRedo) || unref(getShowQuick) ? {
|
|
1067
|
+
unref$1(getShowRedo) || unref$1(getShowQuick) ? {
|
|
1068
1068
|
name: "rightExtra",
|
|
1069
1069
|
fn: withCtx(() => [
|
|
1070
|
-
unref(getShowRedo) ? (openBlock(), createBlock(unref(_sfc_main$x), { key: 0 })) : createCommentVNode("", true),
|
|
1071
|
-
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
1072
|
key: 1,
|
|
1073
1073
|
isExtra: "",
|
|
1074
1074
|
tabItem: _ctx.$route
|
|
@@ -1088,10 +1088,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1088
1088
|
return (_ctx, _cache) => {
|
|
1089
1089
|
return openBlock(), createElementBlock("span", {
|
|
1090
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",
|
|
1091
|
-
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))
|
|
1092
1092
|
}, [
|
|
1093
1093
|
createElementVNode("i", {
|
|
1094
|
-
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"])
|
|
1095
1095
|
}, null, 2)
|
|
1096
1096
|
]);
|
|
1097
1097
|
};
|
|
@@ -1278,29 +1278,29 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1278
1278
|
return rsStyle;
|
|
1279
1279
|
});
|
|
1280
1280
|
const handleScroll = () => {
|
|
1281
|
-
moveY.value = unref(wrap).scrollTop * 100 / unref(wrap).clientHeight;
|
|
1282
|
-
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;
|
|
1283
1283
|
};
|
|
1284
1284
|
const update = () => {
|
|
1285
|
-
if (!unref(wrap))
|
|
1285
|
+
if (!unref$1(wrap))
|
|
1286
1286
|
return;
|
|
1287
|
-
const heightPercentage = unref(wrap).clientHeight * 100 / unref(wrap).scrollHeight;
|
|
1288
|
-
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;
|
|
1289
1289
|
sizeHeight.value = heightPercentage < 100 ? heightPercentage + "%" : "";
|
|
1290
1290
|
sizeWidth.value = widthPercentage < 100 ? widthPercentage + "%" : "";
|
|
1291
1291
|
};
|
|
1292
1292
|
onMounted(() => {
|
|
1293
1293
|
nextTick(update);
|
|
1294
1294
|
if (!props.noresize) {
|
|
1295
|
-
addResizeListener(unref(resize), update);
|
|
1296
|
-
addResizeListener(unref(wrap), update);
|
|
1295
|
+
addResizeListener(unref$1(resize), update);
|
|
1296
|
+
addResizeListener(unref$1(wrap), update);
|
|
1297
1297
|
addEventListener("resize", update);
|
|
1298
1298
|
}
|
|
1299
1299
|
});
|
|
1300
1300
|
onBeforeUnmount(() => {
|
|
1301
1301
|
if (!props.noresize) {
|
|
1302
|
-
removeResizeListener(unref(resize), update);
|
|
1303
|
-
removeResizeListener(unref(wrap), update);
|
|
1302
|
+
removeResizeListener(unref$1(resize), update);
|
|
1303
|
+
removeResizeListener(unref$1(wrap), update);
|
|
1304
1304
|
removeEventListener("resize", update);
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
@@ -1310,7 +1310,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1310
1310
|
ref_key: "wrap",
|
|
1311
1311
|
ref: wrap,
|
|
1312
1312
|
class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
|
|
1313
|
-
style: normalizeStyle(unref(style)),
|
|
1313
|
+
style: normalizeStyle(unref$1(style)),
|
|
1314
1314
|
onScroll: handleScroll
|
|
1315
1315
|
}, [
|
|
1316
1316
|
(openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
|
|
@@ -1325,11 +1325,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1325
1325
|
_: 3
|
|
1326
1326
|
}, 8, ["class", "style"]))
|
|
1327
1327
|
], 38),
|
|
1328
|
-
createVNode(unref(Bar), {
|
|
1328
|
+
createVNode(unref$1(Bar), {
|
|
1329
1329
|
move: moveX.value,
|
|
1330
1330
|
size: sizeWidth.value
|
|
1331
1331
|
}, null, 8, ["move", "size"]),
|
|
1332
|
-
createVNode(unref(Bar), {
|
|
1332
|
+
createVNode(unref$1(Bar), {
|
|
1333
1333
|
vertical: "",
|
|
1334
1334
|
move: moveY.value,
|
|
1335
1335
|
size: sizeHeight.value
|
|
@@ -1369,7 +1369,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1369
1369
|
const props = __props;
|
|
1370
1370
|
const Container = h("div", [props.template(props.data)]);
|
|
1371
1371
|
return (_ctx, _cache) => {
|
|
1372
|
-
return openBlock(), createBlock(unref(Container));
|
|
1372
|
+
return openBlock(), createBlock(unref$1(Container));
|
|
1373
1373
|
};
|
|
1374
1374
|
}
|
|
1375
1375
|
});
|
|
@@ -1400,17 +1400,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1400
1400
|
});
|
|
1401
1401
|
return (_ctx, _cache) => {
|
|
1402
1402
|
return openBlock(), createElementBlock("div", {
|
|
1403
|
-
class: normalizeClass(unref(getLogoClass)),
|
|
1403
|
+
class: normalizeClass(unref$1(getLogoClass)),
|
|
1404
1404
|
style: normalizeStyle({
|
|
1405
|
-
minWidth: `${unref(getLogoWidth)}px`
|
|
1405
|
+
minWidth: `${unref$1(getLogoWidth)}px`
|
|
1406
1406
|
})
|
|
1407
1407
|
}, [
|
|
1408
|
-
unref(slots).logo ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1408
|
+
unref$1(slots).logo ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1409
1409
|
key: 0,
|
|
1410
|
-
template: unref(slots).logo
|
|
1410
|
+
template: unref$1(slots).logo
|
|
1411
1411
|
}, null, 8, ["template"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1412
|
-
createElementVNode("img", { src: unref(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(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), [
|
|
1414
1414
|
[vShow, __props.showTitle]
|
|
1415
1415
|
])
|
|
1416
1416
|
], 64))
|
|
@@ -1427,10 +1427,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1427
1427
|
return (_ctx, _cache) => {
|
|
1428
1428
|
return openBlock(), createElementBlock("div", {
|
|
1429
1429
|
class: normalizeClass(["flex w-12 h-full cursor-pointer items-center justify-center", props.theme]),
|
|
1430
|
-
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))
|
|
1431
1431
|
}, [
|
|
1432
1432
|
createElementVNode("i", {
|
|
1433
|
-
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"])
|
|
1434
1434
|
}, null, 2)
|
|
1435
1435
|
], 2);
|
|
1436
1436
|
};
|
|
@@ -1446,14 +1446,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1446
1446
|
watchEffect(() => {
|
|
1447
1447
|
if (!currentRoute || currentRoute.value.path === "/")
|
|
1448
1448
|
return;
|
|
1449
|
-
|
|
1449
|
+
const { meta, path } = unref(currentRoute);
|
|
1450
|
+
let activePath = meta?.currentActiveMenu || path;
|
|
1451
|
+
routes.value = getBreadCrumb(activePath);
|
|
1450
1452
|
});
|
|
1451
1453
|
return (_ctx, _cache) => {
|
|
1452
1454
|
const _component_ABreadcrumb = Breadcrumb;
|
|
1453
1455
|
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
1454
|
-
createVNode(_component_ABreadcrumb, { routes: unref(routes) }, {
|
|
1456
|
+
createVNode(_component_ABreadcrumb, { routes: unref$1(routes) }, {
|
|
1455
1457
|
itemRender: withCtx(({ route }) => [
|
|
1456
|
-
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)
|
|
1457
1459
|
]),
|
|
1458
1460
|
_: 1
|
|
1459
1461
|
}, 8, ["routes"])
|
|
@@ -1502,7 +1504,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1502
1504
|
const _component_AEmpty = Empty;
|
|
1503
1505
|
const _component_AInputSearch = InputSearch;
|
|
1504
1506
|
const _component_APopover = Popover;
|
|
1505
|
-
return unref(isUseDef) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
1507
|
+
return unref$1(isUseDef) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
1506
1508
|
createVNode(_component_APopover, {
|
|
1507
1509
|
placement: "bottom",
|
|
1508
1510
|
overlayClassName: "dt-menu-filter__popover",
|
|
@@ -1514,7 +1516,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1514
1516
|
return openBlock(), createElementBlock("p", {
|
|
1515
1517
|
onClick: ($event) => navigation(menu.url),
|
|
1516
1518
|
class: "px-5 leading-9 border-gray-200 border-dashed border-b m-0 cursor-pointer transition-all duration-300 text-13"
|
|
1517
|
-
}, toDisplayString(unref(getIsZH) ? menu.label : menu.enLabel), 9, _hoisted_2$7);
|
|
1519
|
+
}, toDisplayString(unref$1(getIsZH) ? menu.label : menu.enLabel), 9, _hoisted_2$7);
|
|
1518
1520
|
}), 256)),
|
|
1519
1521
|
!menuList.value.length ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
1520
1522
|
createVNode(_component_AEmpty, {
|
|
@@ -1527,9 +1529,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1527
1529
|
createVNode(_component_AInputSearch, {
|
|
1528
1530
|
value: filter.value,
|
|
1529
1531
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => filter.value = $event),
|
|
1530
|
-
placeholder: unref(t)("FILTER_MORE"),
|
|
1532
|
+
placeholder: unref$1(t)("FILTER_MORE"),
|
|
1531
1533
|
onInput: filterMenu,
|
|
1532
|
-
size: unref(UiSize).SMALL
|
|
1534
|
+
size: unref$1(UiSize).SMALL
|
|
1533
1535
|
}, null, 8, ["value", "placeholder", "size"])
|
|
1534
1536
|
]),
|
|
1535
1537
|
_: 1
|
|
@@ -1576,10 +1578,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1576
1578
|
}, {
|
|
1577
1579
|
content: withCtx(() => [
|
|
1578
1580
|
createElementVNode("ul", _hoisted_1$b, [
|
|
1579
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(localeList), (it) => {
|
|
1581
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(localeList), (it) => {
|
|
1580
1582
|
return openBlock(), createElementBlock("li", {
|
|
1581
1583
|
onClick: ($event) => toggleLang(it.event),
|
|
1582
|
-
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" : ""])
|
|
1583
1585
|
}, [
|
|
1584
1586
|
withDirectives(createElementVNode("span", _hoisted_3$4, null, 512), [
|
|
1585
1587
|
[_directive_icon, it.icon]
|
|
@@ -1610,9 +1612,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1610
1612
|
overlayClassName: "dt-notify__popover"
|
|
1611
1613
|
}, {
|
|
1612
1614
|
content: withCtx(() => [
|
|
1613
|
-
unref(slots).notify ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1615
|
+
unref$1(slots).notify ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1614
1616
|
key: 0,
|
|
1615
|
-
template: unref(slots).notify
|
|
1617
|
+
template: unref$1(slots).notify
|
|
1616
1618
|
}, null, 8, ["template"])) : createCommentVNode("", true)
|
|
1617
1619
|
]),
|
|
1618
1620
|
default: withCtx(() => [
|
|
@@ -1620,9 +1622,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1620
1622
|
withDirectives(createElementVNode("span", null, null, 512), [
|
|
1621
1623
|
[_directive_icon, "ant-design:bell-outlined"]
|
|
1622
1624
|
]),
|
|
1623
|
-
unref(slots).notifyBadge ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1625
|
+
unref$1(slots).notifyBadge ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1624
1626
|
key: 0,
|
|
1625
|
-
template: unref(slots).notifyBadge
|
|
1627
|
+
template: unref$1(slots).notifyBadge
|
|
1626
1628
|
}, null, 8, ["template"])) : createCommentVNode("", true)
|
|
1627
1629
|
])
|
|
1628
1630
|
]),
|
|
@@ -1666,7 +1668,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1666
1668
|
});
|
|
1667
1669
|
}
|
|
1668
1670
|
return (_ctx, _cache) => {
|
|
1669
|
-
return openBlock(), createBlock(unref(Popover$1), {
|
|
1671
|
+
return openBlock(), createBlock(unref$1(Popover$1), {
|
|
1670
1672
|
placement: "bottom",
|
|
1671
1673
|
visible: visible.value,
|
|
1672
1674
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
@@ -1678,7 +1680,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1678
1680
|
(openBlock(), createElementBlock(Fragment, null, renderList(sizeList, (it) => {
|
|
1679
1681
|
return createElementVNode("li", {
|
|
1680
1682
|
onClick: ($event) => toggleLang(it.event),
|
|
1681
|
-
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" : ""])
|
|
1682
1684
|
}, [
|
|
1683
1685
|
createElementVNode("span", null, toDisplayString(it.text), 1)
|
|
1684
1686
|
], 10, _hoisted_2$5);
|
|
@@ -1727,11 +1729,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1727
1729
|
}, {
|
|
1728
1730
|
content: withCtx(() => [
|
|
1729
1731
|
createElementVNode("div", _hoisted_1$8, [
|
|
1730
|
-
unref(slots).userInfo ? (openBlock(), createBlock(unref(DtSlotContainer), {
|
|
1732
|
+
unref$1(slots).userInfo ? (openBlock(), createBlock(unref$1(DtSlotContainer), {
|
|
1731
1733
|
key: 0,
|
|
1732
|
-
template: unref(slots).userInfo
|
|
1734
|
+
template: unref$1(slots).userInfo
|
|
1733
1735
|
}, null, 8, ["template"])) : createCommentVNode("", true),
|
|
1734
|
-
unref(getShowLoginOut) ? (openBlock(), createElementBlock("div", {
|
|
1736
|
+
unref$1(getShowLoginOut) ? (openBlock(), createElementBlock("div", {
|
|
1735
1737
|
key: 1,
|
|
1736
1738
|
onClick: _cache[0] || (_cache[0] = ($event) => signOut()),
|
|
1737
1739
|
class: "px-4 my-1 leading-9 flex border-gray-200 cursor-pointer hover:bg-gray-100 transition-all duration-300 text-13"
|
|
@@ -1739,7 +1741,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1739
1741
|
withDirectives(createElementVNode("span", _hoisted_2$4, null, 512), [
|
|
1740
1742
|
[_directive_icon, "ant-design:logout-outlined"]
|
|
1741
1743
|
]),
|
|
1742
|
-
createElementVNode("span", null, toDisplayString(unref(t)("LOGIN_OUT")), 1)
|
|
1744
|
+
createElementVNode("span", null, toDisplayString(unref$1(t)("LOGIN_OUT")), 1)
|
|
1743
1745
|
])) : createCommentVNode("", true)
|
|
1744
1746
|
])
|
|
1745
1747
|
]),
|
|
@@ -1751,7 +1753,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1751
1753
|
]),
|
|
1752
1754
|
_: 1
|
|
1753
1755
|
}),
|
|
1754
|
-
createElementVNode("span", _hoisted_5$1, toDisplayString(unref(getUserInfo)?.userNo), 1)
|
|
1756
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(unref$1(getUserInfo)?.userNo), 1)
|
|
1755
1757
|
])
|
|
1756
1758
|
]),
|
|
1757
1759
|
_: 1
|
|
@@ -1920,7 +1922,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1920
1922
|
shadow-gray-200`,
|
|
1921
1923
|
`dt-menu-type__item--${item.type}`,
|
|
1922
1924
|
{
|
|
1923
|
-
[`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
|
|
1924
1926
|
}
|
|
1925
1927
|
])
|
|
1926
1928
|
}, _hoisted_4$1, 10, _hoisted_2$3)
|
|
@@ -1958,7 +1960,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1958
1960
|
const _component_ASelect = Select;
|
|
1959
1961
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1960
1962
|
createElementVNode("span", null, toDisplayString(__props.title), 1),
|
|
1961
|
-
createVNode(_component_ASelect, mergeProps(unref(getBindValue), {
|
|
1963
|
+
createVNode(_component_ASelect, mergeProps(unref$1(getBindValue), {
|
|
1962
1964
|
disabled: __props.disabled,
|
|
1963
1965
|
size: "small",
|
|
1964
1966
|
class: "w-32",
|
|
@@ -1995,10 +1997,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1995
1997
|
const _component_ASwitch = Switch;
|
|
1996
1998
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
1997
1999
|
createElementVNode("span", null, toDisplayString(__props.title), 1),
|
|
1998
|
-
createVNode(_component_ASwitch, mergeProps(unref(getBindValue), {
|
|
2000
|
+
createVNode(_component_ASwitch, mergeProps(unref$1(getBindValue), {
|
|
1999
2001
|
disabled: __props.disabled,
|
|
2000
|
-
checkedChildren: unref(t)("ON"),
|
|
2001
|
-
unCheckedChildren: unref(t)("OFF"),
|
|
2002
|
+
checkedChildren: unref$1(t)("ON"),
|
|
2003
|
+
unCheckedChildren: unref$1(t)("OFF"),
|
|
2002
2004
|
onChange: handleChange
|
|
2003
2005
|
}), null, 16, ["disabled", "checkedChildren", "unCheckedChildren"])
|
|
2004
2006
|
]);
|
|
@@ -2085,7 +2087,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2085
2087
|
key: item.title,
|
|
2086
2088
|
title: item.title,
|
|
2087
2089
|
event: item.event,
|
|
2088
|
-
def: unref(item.def)
|
|
2090
|
+
def: unref$1(item.def)
|
|
2089
2091
|
}, null, 8, ["title", "event", "def"]);
|
|
2090
2092
|
}), 64)),
|
|
2091
2093
|
(openBlock(), createElementBlock(Fragment, null, renderList(selectItems, (item) => {
|
|
@@ -2093,7 +2095,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2093
2095
|
key: item.title,
|
|
2094
2096
|
title: item.title,
|
|
2095
2097
|
event: item.event,
|
|
2096
|
-
def: unref(item.def),
|
|
2098
|
+
def: unref$1(item.def),
|
|
2097
2099
|
options: item.options
|
|
2098
2100
|
}, null, 8, ["title", "event", "def", "options"]);
|
|
2099
2101
|
}), 64))
|
|
@@ -2122,24 +2124,24 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2122
2124
|
const defaultConf = getConfig();
|
|
2123
2125
|
function getConfig() {
|
|
2124
2126
|
return {
|
|
2125
|
-
contentMode: unref(getContentMode),
|
|
2127
|
+
contentMode: unref$1(getContentMode),
|
|
2126
2128
|
menuOptions: {
|
|
2127
|
-
mode: unref(getMenuMode),
|
|
2128
|
-
type: unref(getMenuType),
|
|
2129
|
-
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
|
|
2130
2132
|
},
|
|
2131
2133
|
headOptions: {
|
|
2132
|
-
showBreadCrumb: unref(getShowBread),
|
|
2133
|
-
showSearch: unref(getShowSearch),
|
|
2134
|
-
notice: unref(getShowNotice),
|
|
2135
|
-
showFullScreen: unref(getShowFullScreen),
|
|
2136
|
-
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)
|
|
2137
2139
|
},
|
|
2138
2140
|
mulTabsOptions: {
|
|
2139
|
-
show: unref(getShowMultipleTab)
|
|
2141
|
+
show: unref$1(getShowMultipleTab)
|
|
2140
2142
|
},
|
|
2141
2143
|
footerOptions: {
|
|
2142
|
-
show: unref(getShowFooter)
|
|
2144
|
+
show: unref$1(getShowFooter)
|
|
2143
2145
|
}
|
|
2144
2146
|
};
|
|
2145
2147
|
}
|
|
@@ -2200,25 +2202,25 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2200
2202
|
createVNode(_component_ADrawer, {
|
|
2201
2203
|
visible: visible.value,
|
|
2202
2204
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
2203
|
-
title: unref(t)("PROJECT_SETTING"),
|
|
2205
|
+
title: unref$1(t)("PROJECT_SETTING"),
|
|
2204
2206
|
placement: "right",
|
|
2205
2207
|
width: "320"
|
|
2206
2208
|
}, {
|
|
2207
2209
|
default: withCtx(() => [
|
|
2208
2210
|
createVNode(_component_ADivider, null, {
|
|
2209
2211
|
default: withCtx(() => [
|
|
2210
|
-
createTextVNode(toDisplayString(unref(t)("NAV_MODE")), 1)
|
|
2212
|
+
createTextVNode(toDisplayString(unref$1(t)("NAV_MODE")), 1)
|
|
2211
2213
|
]),
|
|
2212
2214
|
_: 1
|
|
2213
2215
|
}),
|
|
2214
|
-
createVNode(unref(_sfc_main$i)),
|
|
2216
|
+
createVNode(unref$1(_sfc_main$i)),
|
|
2215
2217
|
createVNode(_component_ADivider, null, {
|
|
2216
2218
|
default: withCtx(() => [
|
|
2217
|
-
createTextVNode(toDisplayString(unref(t)("PAGE_SHOW")), 1)
|
|
2219
|
+
createTextVNode(toDisplayString(unref$1(t)("PAGE_SHOW")), 1)
|
|
2218
2220
|
]),
|
|
2219
2221
|
_: 1
|
|
2220
2222
|
}),
|
|
2221
|
-
createVNode(unref(_sfc_main$f)),
|
|
2223
|
+
createVNode(unref$1(_sfc_main$f)),
|
|
2222
2224
|
createVNode(_component_ADivider),
|
|
2223
2225
|
createElementVNode("div", _hoisted_1$4, [
|
|
2224
2226
|
createVNode(_component_AButton, {
|
|
@@ -2228,7 +2230,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2228
2230
|
block: ""
|
|
2229
2231
|
}, {
|
|
2230
2232
|
default: withCtx(() => [
|
|
2231
|
-
createTextVNode(toDisplayString(unref(t)("COPY")), 1)
|
|
2233
|
+
createTextVNode(toDisplayString(unref$1(t)("COPY")), 1)
|
|
2232
2234
|
]),
|
|
2233
2235
|
_: 1
|
|
2234
2236
|
}),
|
|
@@ -2238,12 +2240,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2238
2240
|
block: ""
|
|
2239
2241
|
}, {
|
|
2240
2242
|
default: withCtx(() => [
|
|
2241
|
-
createTextVNode(toDisplayString(unref(t)("RESET")), 1)
|
|
2243
|
+
createTextVNode(toDisplayString(unref$1(t)("RESET")), 1)
|
|
2242
2244
|
]),
|
|
2243
2245
|
_: 1
|
|
2244
2246
|
})
|
|
2245
2247
|
]),
|
|
2246
|
-
createElementVNode("div", _hoisted_2$2, toDisplayString(unref(t)("DRAWER_TIPS")), 1)
|
|
2248
|
+
createElementVNode("div", _hoisted_2$2, toDisplayString(unref$1(t)("DRAWER_TIPS")), 1)
|
|
2247
2249
|
]),
|
|
2248
2250
|
_: 1
|
|
2249
2251
|
}, 8, ["visible", "title"])
|
|
@@ -2258,21 +2260,21 @@ function useSplitMenu(splitType) {
|
|
|
2258
2260
|
const { getIsHorizontal, getSplit } = useMenu();
|
|
2259
2261
|
const throttleHandleSplitLeftMenu = useThrottleFn(handleSplitLeftMenu, 50);
|
|
2260
2262
|
const splitNotLeft = computed(
|
|
2261
|
-
() => unref(splitType) !== MenuSplitTye.LEFT && !unref(getIsHorizontal)
|
|
2263
|
+
() => unref$1(splitType) !== MenuSplitTye.LEFT && !unref$1(getIsHorizontal)
|
|
2262
2264
|
);
|
|
2263
2265
|
const getSplitLeft = computed(
|
|
2264
|
-
() => !unref(getSplit) || unref(splitType) !== MenuSplitTye.LEFT
|
|
2266
|
+
() => !unref$1(getSplit) || unref$1(splitType) !== MenuSplitTye.LEFT
|
|
2265
2267
|
);
|
|
2266
2268
|
const getSplitTop = computed(
|
|
2267
|
-
() => unref(splitType) === MenuSplitTye.TOP
|
|
2269
|
+
() => unref$1(splitType) === MenuSplitTye.TOP
|
|
2268
2270
|
);
|
|
2269
2271
|
const normalType = computed(
|
|
2270
|
-
() => !unref(getSplit) || unref(splitType) === MenuSplitTye.NONE
|
|
2272
|
+
() => !unref$1(getSplit) || unref$1(splitType) === MenuSplitTye.NONE
|
|
2271
2273
|
);
|
|
2272
2274
|
watch(
|
|
2273
|
-
[() => unref(currentRoute)?.path, () => unref(splitType)],
|
|
2275
|
+
[() => unref$1(currentRoute)?.path, () => unref$1(splitType)],
|
|
2274
2276
|
([path]) => {
|
|
2275
|
-
if (unref(splitNotLeft))
|
|
2277
|
+
if (unref$1(splitNotLeft))
|
|
2276
2278
|
return;
|
|
2277
2279
|
throttleHandleSplitLeftMenu(path);
|
|
2278
2280
|
},
|
|
@@ -2283,22 +2285,22 @@ function useSplitMenu(splitType) {
|
|
|
2283
2285
|
watch(
|
|
2284
2286
|
() => getSplit.value,
|
|
2285
2287
|
() => {
|
|
2286
|
-
if (unref(splitNotLeft))
|
|
2288
|
+
if (unref$1(splitNotLeft))
|
|
2287
2289
|
return;
|
|
2288
2290
|
getMenus2();
|
|
2289
2291
|
}
|
|
2290
2292
|
);
|
|
2291
2293
|
function handleSplitLeftMenu(path) {
|
|
2292
|
-
if (unref(getSplitLeft))
|
|
2294
|
+
if (unref$1(getSplitLeft))
|
|
2293
2295
|
return;
|
|
2294
2296
|
menusRef.value = menusMap.filter((it) => it.includesPath.includes(path))[0]?.children;
|
|
2295
2297
|
}
|
|
2296
2298
|
async function getMenus2() {
|
|
2297
|
-
if (unref(normalType)) {
|
|
2299
|
+
if (unref$1(normalType)) {
|
|
2298
2300
|
menusRef.value = DtCache.getLocal(CacheKey.MENUS)?.children;
|
|
2299
2301
|
return;
|
|
2300
2302
|
}
|
|
2301
|
-
if (unref(getSplitTop)) {
|
|
2303
|
+
if (unref$1(getSplitTop)) {
|
|
2302
2304
|
menusRef.value = await getShallowMenus();
|
|
2303
2305
|
}
|
|
2304
2306
|
}
|
|
@@ -2425,12 +2427,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2425
2427
|
const { getIsZH, getUiSize } = useHeader();
|
|
2426
2428
|
return (_ctx, _cache) => {
|
|
2427
2429
|
return openBlock(), createElementBlock("span", {
|
|
2428
|
-
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)])
|
|
2429
2431
|
}, [
|
|
2430
2432
|
createElementVNode("i", {
|
|
2431
2433
|
class: normalizeClass(["menu-icon i", _ctx.item.icon])
|
|
2432
2434
|
}, null, 2),
|
|
2433
|
-
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)
|
|
2434
2436
|
], 2);
|
|
2435
2437
|
};
|
|
2436
2438
|
}
|
|
@@ -2470,17 +2472,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2470
2472
|
const _component_BasicSubMenuItem = resolveComponent("BasicSubMenuItem", true);
|
|
2471
2473
|
const _component_ASubMenu = SubMenu;
|
|
2472
2474
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2473
|
-
!menuHasChildren(unref(item)) && unref(getShowMenu) ? (openBlock(), createBlock(_sfc_main$c, normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : createCommentVNode("", true),
|
|
2474
|
-
menuHasChildren(unref(item)) && unref(getShowMenu) ? (openBlock(), createBlock(_component_ASubMenu, {
|
|
2475
|
-
class: normalizeClass([unref(theme)]),
|
|
2476
|
-
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,
|
|
2477
2479
|
popupClassName: "app-top-menu-popup"
|
|
2478
2480
|
}, {
|
|
2479
2481
|
title: withCtx(() => [
|
|
2480
|
-
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"])
|
|
2481
2483
|
]),
|
|
2482
2484
|
default: withCtx(() => [
|
|
2483
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(item).children, (childrenItem) => {
|
|
2485
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(item).children, (childrenItem) => {
|
|
2484
2486
|
return openBlock(), createBlock(_component_BasicSubMenuItem, mergeProps({
|
|
2485
2487
|
key: childrenItem.id
|
|
2486
2488
|
}, props, { item: childrenItem }), null, 16, ["item"]);
|
|
@@ -2525,7 +2527,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2525
2527
|
(val) => {
|
|
2526
2528
|
if (val === "/")
|
|
2527
2529
|
return;
|
|
2528
|
-
|
|
2530
|
+
const { meta, path } = unref$1(currentRoute);
|
|
2531
|
+
let activePath = meta?.currentActiveMenu || path;
|
|
2532
|
+
handleMenuChange(activePath);
|
|
2529
2533
|
},
|
|
2530
2534
|
{
|
|
2531
2535
|
immediate: true
|
|
@@ -2533,7 +2537,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2533
2537
|
);
|
|
2534
2538
|
async function handleMenuChange(path) {
|
|
2535
2539
|
setOpenKeys(path);
|
|
2536
|
-
if (isHorizontal && unref(getSplit)) {
|
|
2540
|
+
if (isHorizontal && unref$1(getSplit)) {
|
|
2537
2541
|
const parentPath = getBreadCrumb(path, items);
|
|
2538
2542
|
menuState.selectedKeys = [parentPath?.[0]?.url];
|
|
2539
2543
|
} else {
|
|
@@ -2546,9 +2550,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2546
2550
|
}
|
|
2547
2551
|
const { getCollapsed } = useMenu();
|
|
2548
2552
|
const getInlineCollapsed = computed(() => {
|
|
2549
|
-
const isInline = unref(mode) === MenuMode.INLINE;
|
|
2553
|
+
const isInline = unref$1(mode) === MenuMode.INLINE;
|
|
2550
2554
|
if (isInline) {
|
|
2551
|
-
return mixSider ? false : unref(getCollapsed);
|
|
2555
|
+
return mixSider ? false : unref$1(getCollapsed);
|
|
2552
2556
|
}
|
|
2553
2557
|
return false;
|
|
2554
2558
|
});
|
|
@@ -2573,9 +2577,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2573
2577
|
mode: _ctx.mode,
|
|
2574
2578
|
collapsible: "",
|
|
2575
2579
|
onClick: handleMenuClick,
|
|
2576
|
-
onOpenChange: unref(handleOpenChange),
|
|
2577
|
-
collapsed: unref(getInlineCollapsed),
|
|
2578
|
-
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" : "")
|
|
2579
2583
|
}, {
|
|
2580
2584
|
default: withCtx(() => [
|
|
2581
2585
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item) => {
|
|
@@ -2621,22 +2625,22 @@ const _sfc_main$9 = defineComponent({
|
|
|
2621
2625
|
menusRef
|
|
2622
2626
|
} = useSplitMenu(toRef(props, "splitType"));
|
|
2623
2627
|
const slots = getParentSlots(null, "dt-theme");
|
|
2624
|
-
const getComputedTheme = computed(() => props.theme || unref(getMenuTheme));
|
|
2625
|
-
const getComputedMenuMode = computed(() => props.menuMode || unref(getMenuMode));
|
|
2626
|
-
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));
|
|
2627
2631
|
const getUseScroll = computed(() => {
|
|
2628
|
-
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);
|
|
2629
2633
|
});
|
|
2630
|
-
const getLogoClass = computed(() => [`dt-menu-logo`, unref(getComputedTheme)]);
|
|
2634
|
+
const getLogoClass = computed(() => [`dt-menu-logo`, unref$1(getComputedTheme)]);
|
|
2631
2635
|
const getMenuProps = computed(() => {
|
|
2632
|
-
const menus = unref(menusRef);
|
|
2636
|
+
const menus = unref$1(menusRef);
|
|
2633
2637
|
return {
|
|
2634
2638
|
menus,
|
|
2635
2639
|
beforeClickFn: beforeMenuClickFn,
|
|
2636
2640
|
items: menus,
|
|
2637
|
-
theme: unref(getComputedTheme),
|
|
2638
|
-
collapse: unref(getCollapsed),
|
|
2639
|
-
collapsedShowTitle: unref(getCollapsedShowTitle),
|
|
2641
|
+
theme: unref$1(getComputedTheme),
|
|
2642
|
+
collapse: unref$1(getCollapsed),
|
|
2643
|
+
collapsedShowTitle: unref$1(getCollapsedShowTitle),
|
|
2640
2644
|
onMenuClick: handleMenuClick
|
|
2641
2645
|
};
|
|
2642
2646
|
});
|
|
@@ -2652,30 +2656,30 @@ const _sfc_main$9 = defineComponent({
|
|
|
2652
2656
|
go(path);
|
|
2653
2657
|
}
|
|
2654
2658
|
function renderHeader() {
|
|
2655
|
-
if (!unref(getIsShowLogo))
|
|
2659
|
+
if (!unref$1(getIsShowLogo))
|
|
2656
2660
|
return null;
|
|
2657
2661
|
if (slots.logo) {
|
|
2658
2662
|
return createVNode(DtSlotContainer, {
|
|
2659
2663
|
"template": slots.logo,
|
|
2660
2664
|
"data": {
|
|
2661
|
-
theme: unref(getComputedTheme),
|
|
2662
|
-
collapsed: unref(getCollapsed)
|
|
2665
|
+
theme: unref$1(getComputedTheme),
|
|
2666
|
+
collapsed: unref$1(getCollapsed)
|
|
2663
2667
|
}
|
|
2664
2668
|
}, null);
|
|
2665
2669
|
}
|
|
2666
2670
|
return createVNode(_sfc_main$q, {
|
|
2667
|
-
"showTitle": !unref(getCollapsed),
|
|
2668
|
-
"class": unref(getLogoClass),
|
|
2669
|
-
"theme": unref(getComputedTheme)
|
|
2671
|
+
"showTitle": !unref$1(getCollapsed),
|
|
2672
|
+
"class": unref$1(getLogoClass),
|
|
2673
|
+
"theme": unref$1(getComputedTheme)
|
|
2670
2674
|
}, null);
|
|
2671
2675
|
}
|
|
2672
2676
|
function renderFooter() {
|
|
2673
|
-
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) {
|
|
2674
2678
|
return slots.menuFooter ? createVNode(DtSlotContainer, {
|
|
2675
2679
|
"template": slots.menuFooter,
|
|
2676
2680
|
"data": {
|
|
2677
|
-
theme: unref(getComputedTheme),
|
|
2678
|
-
collapsed: unref(getCollapsed)
|
|
2681
|
+
theme: unref$1(getComputedTheme),
|
|
2682
|
+
collapsed: unref$1(getCollapsed)
|
|
2679
2683
|
}
|
|
2680
2684
|
}, null) : null;
|
|
2681
2685
|
}
|
|
@@ -2685,19 +2689,19 @@ const _sfc_main$9 = defineComponent({
|
|
|
2685
2689
|
const {
|
|
2686
2690
|
menus,
|
|
2687
2691
|
...menuProps
|
|
2688
|
-
} = unref(getMenuProps);
|
|
2692
|
+
} = unref$1(getMenuProps);
|
|
2689
2693
|
if (!menus || !menus.length)
|
|
2690
2694
|
return null;
|
|
2691
2695
|
return createVNode(_sfc_main$a, mergeProps(menuProps, {
|
|
2692
2696
|
"isHorizontal": props.isHorizontal,
|
|
2693
|
-
"type": unref(getMenuType),
|
|
2694
|
-
"showLogo": unref(getIsShowLogo),
|
|
2695
|
-
"mode": unref(getComputedMenuMode),
|
|
2697
|
+
"type": unref$1(getMenuType),
|
|
2698
|
+
"showLogo": unref$1(getIsShowLogo),
|
|
2699
|
+
"mode": unref$1(getComputedMenuMode),
|
|
2696
2700
|
"items": menus
|
|
2697
2701
|
}), null);
|
|
2698
2702
|
}
|
|
2699
2703
|
return () => {
|
|
2700
|
-
return createVNode(Fragment, null, [renderHeader(), unref(getUseScroll) ? createVNode(DtScrollContainer, null, {
|
|
2704
|
+
return createVNode(Fragment, null, [renderHeader(), unref$1(getUseScroll) ? createVNode(DtScrollContainer, null, {
|
|
2701
2705
|
default: () => renderMenu()
|
|
2702
2706
|
}) : renderMenu(), renderFooter()]);
|
|
2703
2707
|
};
|
|
@@ -2734,14 +2738,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2734
2738
|
} = useHeader();
|
|
2735
2739
|
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
2736
2740
|
const getSplitType = computed(() => {
|
|
2737
|
-
return unref(getSplit) ? MenuSplitTye.TOP : MenuSplitTye.NONE;
|
|
2741
|
+
return unref$1(getSplit) ? MenuSplitTye.TOP : MenuSplitTye.NONE;
|
|
2738
2742
|
});
|
|
2739
2743
|
const getMenuMode = computed(() => {
|
|
2740
|
-
return unref(getSplit) ? MenuMode.HORIZONTAL : null;
|
|
2744
|
+
return unref$1(getSplit) ? MenuMode.HORIZONTAL : null;
|
|
2741
2745
|
});
|
|
2742
|
-
const getShowTab = computed(() => unref(getShowMultipleTab) && unref(getMultipleTabPosIsTop));
|
|
2746
|
+
const getShowTab = computed(() => unref$1(getShowMultipleTab) && unref$1(getMultipleTabPosIsTop));
|
|
2743
2747
|
const getHeaderCls = computed(() => {
|
|
2744
|
-
let theme = unref(getHeaderTheme);
|
|
2748
|
+
let theme = unref$1(getHeaderTheme);
|
|
2745
2749
|
let cls = "dt-header flex p-0 items-center justify-between ";
|
|
2746
2750
|
if (props.fixed) {
|
|
2747
2751
|
cls += "fixed top-0 left-0 w-full z-10 ";
|
|
@@ -2752,52 +2756,52 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2752
2756
|
return (_ctx, _cache) => {
|
|
2753
2757
|
const _component_ALayoutHeader = LayoutHeader;
|
|
2754
2758
|
return openBlock(), createBlock(_component_ALayoutHeader, {
|
|
2755
|
-
class: normalizeClass([unref(getHeaderCls), "flex items-center justify-between"])
|
|
2759
|
+
class: normalizeClass([unref$1(getHeaderCls), "flex items-center justify-between"])
|
|
2756
2760
|
}, {
|
|
2757
2761
|
default: withCtx(() => [
|
|
2758
2762
|
createElementVNode("div", {
|
|
2759
2763
|
class: normalizeClass(["dt-header-left flex h-full items-center", {
|
|
2760
|
-
"w-0 flex-1": unref(getShowTab)
|
|
2764
|
+
"w-0 flex-1": unref$1(getShowTab)
|
|
2761
2765
|
}])
|
|
2762
2766
|
}, [
|
|
2763
|
-
unref(getShowHeaderLogo) ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
2767
|
+
unref$1(getShowHeaderLogo) ? (openBlock(), createBlock(unref$1(_sfc_main$q), {
|
|
2764
2768
|
key: 0,
|
|
2765
|
-
theme: unref(getHeaderTheme),
|
|
2769
|
+
theme: unref$1(getHeaderTheme),
|
|
2766
2770
|
class: "dt-header-logo"
|
|
2767
2771
|
}, null, 8, ["theme"])) : createCommentVNode("", true),
|
|
2768
|
-
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), {
|
|
2769
2773
|
key: 1,
|
|
2770
|
-
theme: unref(getHeaderTheme)
|
|
2774
|
+
theme: unref$1(getHeaderTheme)
|
|
2771
2775
|
}, null, 8, ["theme"])) : createCommentVNode("", true),
|
|
2772
|
-
unref(getShowBread) && !unref(getShowTab) ? (openBlock(), createBlock(unref(_sfc_main$o), { key: 2 })) : createCommentVNode("", true),
|
|
2773
|
-
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, [
|
|
2774
2778
|
createVNode(_sfc_main$v)
|
|
2775
2779
|
])) : createCommentVNode("", true)
|
|
2776
2780
|
], 2),
|
|
2777
|
-
unref(getShowTopMenu) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2781
|
+
unref$1(getShowTopMenu) ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2778
2782
|
createVNode(_sfc_main$9, {
|
|
2779
2783
|
isHorizontal: true,
|
|
2780
|
-
theme: unref(getHeaderTheme),
|
|
2781
|
-
splitType: unref(getSplitType),
|
|
2782
|
-
menuMode: unref(getMenuMode)
|
|
2784
|
+
theme: unref$1(getHeaderTheme),
|
|
2785
|
+
splitType: unref$1(getSplitType),
|
|
2786
|
+
menuMode: unref$1(getMenuMode)
|
|
2783
2787
|
}, null, 8, ["theme", "splitType", "menuMode"])
|
|
2784
2788
|
])) : createCommentVNode("", true),
|
|
2785
2789
|
createElementVNode("div", {
|
|
2786
2790
|
class: "dt-header-action flex items-center",
|
|
2787
2791
|
style: normalizeStyle({
|
|
2788
|
-
"padding-right": unref(getShowSettingTheme) ? "" : "20px"
|
|
2792
|
+
"padding-right": unref$1(getShowSettingTheme) ? "" : "20px"
|
|
2789
2793
|
})
|
|
2790
2794
|
}, [
|
|
2791
|
-
unref(getShowSearch) ? (openBlock(), createBlock(unref(_sfc_main$n), { key: 0 })) : createCommentVNode("", true),
|
|
2792
|
-
unref(getShowNotice) ? (openBlock(), createBlock(unref(_sfc_main$l), { key: 1 })) : createCommentVNode("", true),
|
|
2793
|
-
unref(getShowUiSize) ? (openBlock(), createBlock(unref(_sfc_main$k), { key: 2 })) : createCommentVNode("", true),
|
|
2794
|
-
unref(getShowFullScreen) ? (openBlock(), createBlock(unref(_sfc_main$u), { key: 3 })) : createCommentVNode("", true),
|
|
2795
|
-
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), {
|
|
2796
2800
|
key: 4,
|
|
2797
2801
|
reload: true
|
|
2798
2802
|
})) : createCommentVNode("", true),
|
|
2799
|
-
createVNode(unref(_sfc_main$j)),
|
|
2800
|
-
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)
|
|
2801
2805
|
], 4)
|
|
2802
2806
|
]),
|
|
2803
2807
|
_: 1
|
|
@@ -2809,7 +2813,7 @@ function useMenuSwitch() {
|
|
|
2809
2813
|
const brokenRef = ref(false);
|
|
2810
2814
|
const { getMiniWidthNumber } = useMenu();
|
|
2811
2815
|
const getCollapsedWidth = computed(() => {
|
|
2812
|
-
return unref(brokenRef) ? 0 : unref(getMiniWidthNumber);
|
|
2816
|
+
return unref$1(brokenRef) ? 0 : unref$1(getMiniWidthNumber);
|
|
2813
2817
|
});
|
|
2814
2818
|
function onBreakPointChange(broken) {
|
|
2815
2819
|
brokenRef.value = broken;
|
|
@@ -2819,11 +2823,11 @@ function useMenuSwitch() {
|
|
|
2819
2823
|
function useTrigger() {
|
|
2820
2824
|
const { getTrigger, getSplit } = useMenu();
|
|
2821
2825
|
const getShowTrigger = computed(() => {
|
|
2822
|
-
const trigger = unref(getTrigger);
|
|
2823
|
-
return trigger && unref(getSplit);
|
|
2826
|
+
const trigger = unref$1(getTrigger);
|
|
2827
|
+
return trigger && unref$1(getSplit);
|
|
2824
2828
|
});
|
|
2825
2829
|
const getTriggerAttr = computed(() => {
|
|
2826
|
-
if (unref(getShowTrigger)) {
|
|
2830
|
+
if (unref$1(getShowTrigger)) {
|
|
2827
2831
|
return {};
|
|
2828
2832
|
}
|
|
2829
2833
|
return {
|
|
@@ -2845,12 +2849,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2845
2849
|
return (_ctx, _cache) => {
|
|
2846
2850
|
return openBlock(), createElementBlock("div", {
|
|
2847
2851
|
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
2848
|
-
(...args) => unref(toggleCollapsed) && unref(toggleCollapsed)(...args),
|
|
2852
|
+
(...args) => unref$1(toggleCollapsed) && unref$1(toggleCollapsed)(...args),
|
|
2849
2853
|
["stop"]
|
|
2850
2854
|
))
|
|
2851
2855
|
}, [
|
|
2852
2856
|
createElementVNode("i", {
|
|
2853
|
-
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"])
|
|
2854
2858
|
}, null, 2)
|
|
2855
2859
|
]);
|
|
2856
2860
|
};
|
|
@@ -2861,8 +2865,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2861
2865
|
setup(__props) {
|
|
2862
2866
|
const { getCollapsed, getCanDrag, getMenuWidth } = useMenu();
|
|
2863
2867
|
const getDragBarStyle = computed(() => {
|
|
2864
|
-
if (!unref(getCollapsed)) {
|
|
2865
|
-
return { left: `${unref(getMenuWidth)}px` };
|
|
2868
|
+
if (!unref$1(getCollapsed)) {
|
|
2869
|
+
return { left: `${unref$1(getMenuWidth)}px` };
|
|
2866
2870
|
}
|
|
2867
2871
|
return {};
|
|
2868
2872
|
});
|
|
@@ -2870,14 +2874,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2870
2874
|
return [
|
|
2871
2875
|
"dt-darg-bar",
|
|
2872
2876
|
{
|
|
2873
|
-
"dt-darg-bar--hide": !unref(getCanDrag)
|
|
2877
|
+
"dt-darg-bar--hide": !unref$1(getCanDrag)
|
|
2874
2878
|
}
|
|
2875
2879
|
];
|
|
2876
2880
|
});
|
|
2877
2881
|
return (_ctx, _cache) => {
|
|
2878
2882
|
return openBlock(), createElementBlock("div", {
|
|
2879
|
-
class: normalizeClass(unref(getClass)),
|
|
2880
|
-
style: normalizeStyle(unref(getDragBarStyle))
|
|
2883
|
+
class: normalizeClass(unref$1(getClass)),
|
|
2884
|
+
style: normalizeStyle(unref$1(getDragBarStyle))
|
|
2881
2885
|
}, null, 6);
|
|
2882
2886
|
};
|
|
2883
2887
|
}
|
|
@@ -2899,13 +2903,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2899
2903
|
const { getMenuWidth, getMenuTheme, getMixSideTrigger } = useMenu();
|
|
2900
2904
|
const { setMixSiderIsHasMenu } = useThemeStore();
|
|
2901
2905
|
const menuModules = getShallowMenus();
|
|
2902
|
-
const activeId = ref(
|
|
2906
|
+
const activeId = ref(null);
|
|
2907
|
+
const activePath = ref(null);
|
|
2903
2908
|
const subMenus = ref([]);
|
|
2904
|
-
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`));
|
|
2905
2910
|
const getWrapStyle = computed(() => setDomWidth(`${MENU_WIDTH}px`));
|
|
2906
2911
|
const getSubMenuStyle = computed(() => {
|
|
2907
2912
|
return {
|
|
2908
|
-
width: `${unref(getMenuWidth) - MENU_WIDTH}px`,
|
|
2913
|
+
width: `${unref$1(getMenuWidth) - MENU_WIDTH}px`,
|
|
2909
2914
|
left: `${MENU_WIDTH}px`
|
|
2910
2915
|
};
|
|
2911
2916
|
});
|
|
@@ -2920,11 +2925,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2920
2925
|
}
|
|
2921
2926
|
const getMenuEvents = {
|
|
2922
2927
|
onMouseleave: () => {
|
|
2923
|
-
setActive(
|
|
2928
|
+
setActive(unref$1(activePath));
|
|
2924
2929
|
}
|
|
2925
2930
|
};
|
|
2926
2931
|
const getItemEvents = (item) => {
|
|
2927
|
-
if (unref(getMixSideTrigger) === "hover") {
|
|
2932
|
+
if (unref$1(getMixSideTrigger) === "hover") {
|
|
2928
2933
|
return {
|
|
2929
2934
|
onMouseenter: () => handleModuleClick(item.url, true),
|
|
2930
2935
|
onClick: () => handleModuleClick(item.url)
|
|
@@ -2950,26 +2955,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2950
2955
|
watchEffect(() => {
|
|
2951
2956
|
if (!currentRoute || currentRoute.value.path === "/")
|
|
2952
2957
|
return;
|
|
2953
|
-
|
|
2958
|
+
const { meta, path } = unref$1(currentRoute);
|
|
2959
|
+
activePath.value = meta?.currentActiveMenu || path;
|
|
2960
|
+
setActive(unref$1(activePath));
|
|
2954
2961
|
});
|
|
2955
2962
|
return (_ctx, _cache) => {
|
|
2956
2963
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2957
2964
|
createElementVNode("div", {
|
|
2958
2965
|
class: "h-full overflow-hidden",
|
|
2959
|
-
style: normalizeStyle(unref(getDomStyle))
|
|
2966
|
+
style: normalizeStyle(unref$1(getDomStyle))
|
|
2960
2967
|
}, null, 4),
|
|
2961
2968
|
createElementVNode("div", mergeProps({
|
|
2962
|
-
style: unref(getWrapStyle),
|
|
2963
|
-
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)]
|
|
2964
2971
|
}, getMenuEvents), [
|
|
2965
2972
|
createVNode(_sfc_main$q, {
|
|
2966
2973
|
showTitle: false,
|
|
2967
2974
|
class: normalizeClass("justify-center z-10")
|
|
2968
2975
|
}),
|
|
2969
|
-
createVNode(unref(DtScrollContainer), { class: "z-10" }, {
|
|
2976
|
+
createVNode(unref$1(DtScrollContainer), { class: "z-10" }, {
|
|
2970
2977
|
default: withCtx(() => [
|
|
2971
2978
|
createElementVNode("ul", _hoisted_1$2, [
|
|
2972
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuModules), (item) => {
|
|
2979
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(menuModules), (item) => {
|
|
2973
2980
|
return openBlock(), createElementBlock("li", mergeProps({
|
|
2974
2981
|
key: item.id,
|
|
2975
2982
|
class: ["py-3 cursor-pointer relative text-center", {
|
|
@@ -2991,9 +2998,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2991
2998
|
subMenus.value?.length ? (openBlock(), createElementBlock("div", {
|
|
2992
2999
|
key: 0,
|
|
2993
3000
|
class: "fixed top-0 h-full sub-menu bg-white",
|
|
2994
|
-
style: normalizeStyle(unref(getSubMenuStyle))
|
|
3001
|
+
style: normalizeStyle(unref$1(getSubMenuStyle))
|
|
2995
3002
|
}, [
|
|
2996
|
-
createVNode(unref(DtScrollContainer), null, {
|
|
3003
|
+
createVNode(unref$1(DtScrollContainer), null, {
|
|
2997
3004
|
default: withCtx(() => [
|
|
2998
3005
|
createElementVNode("ul", _hoisted_3, [
|
|
2999
3006
|
(openBlock(true), createElementBlock(Fragment, null, renderList(subMenus.value, (menu) => {
|
|
@@ -3007,9 +3014,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3007
3014
|
return openBlock(), createElementBlock("li", {
|
|
3008
3015
|
key: subMenu.id,
|
|
3009
3016
|
class: normalizeClass(["flex cursor-pointer", {
|
|
3010
|
-
"active-menu": subMenu.url ===
|
|
3017
|
+
"active-menu": subMenu.url === activePath.value
|
|
3011
3018
|
}]),
|
|
3012
|
-
onClick: ($event) => unref(go)(subMenu.url)
|
|
3019
|
+
onClick: ($event) => unref$1(go)(subMenu.url)
|
|
3013
3020
|
}, [
|
|
3014
3021
|
createElementVNode("i", {
|
|
3015
3022
|
class: normalizeClass(["i opacity-50 pr-2", subMenu.icon])
|
|
@@ -3021,9 +3028,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3021
3028
|
])) : (openBlock(), createElementBlock("div", {
|
|
3022
3029
|
key: 1,
|
|
3023
3030
|
class: normalizeClass(["sub-menu flex cursor-pointer", {
|
|
3024
|
-
"active-menu": menu.url ===
|
|
3031
|
+
"active-menu": menu.url === activePath.value
|
|
3025
3032
|
}]),
|
|
3026
|
-
onClick: ($event) => unref(go)(menu.url)
|
|
3033
|
+
onClick: ($event) => unref$1(go)(menu.url)
|
|
3027
3034
|
}, [
|
|
3028
3035
|
createElementVNode("i", {
|
|
3029
3036
|
class: normalizeClass(["i opacity-50 pr-2", menu.icon])
|
|
@@ -3070,7 +3077,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3070
3077
|
const dragBarRef = ref(null);
|
|
3071
3078
|
const sideRef = ref(null);
|
|
3072
3079
|
const hiddenDomStyle = computed(() => {
|
|
3073
|
-
const width = `${unref(getRealWidth)}px`;
|
|
3080
|
+
const width = `${unref$1(getRealWidth)}px`;
|
|
3074
3081
|
return {
|
|
3075
3082
|
width,
|
|
3076
3083
|
overflow: "hidden",
|
|
@@ -3084,60 +3091,60 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3084
3091
|
const {
|
|
3085
3092
|
menusRef
|
|
3086
3093
|
} = useSplitMenu(getSplitType);
|
|
3087
|
-
if (!unref(menusRef)?.length)
|
|
3094
|
+
if (!unref$1(menusRef)?.length)
|
|
3088
3095
|
return false;
|
|
3089
|
-
return unref(getSplit) ? !unref(getMenuHidden) : true;
|
|
3096
|
+
return unref$1(getSplit) ? !unref$1(getMenuHidden) : true;
|
|
3090
3097
|
});
|
|
3091
3098
|
useDragLine(sideRef, dragBarRef);
|
|
3092
3099
|
const getSiderClass = computed(() => {
|
|
3093
3100
|
let cls = `dt-sideBar overflow-hidden z-10 `;
|
|
3094
|
-
if (unref(getMenuFixed)) {
|
|
3101
|
+
if (unref$1(getMenuFixed)) {
|
|
3095
3102
|
cls += `dt-sideBar--fixed t-0 l-0 h-full `;
|
|
3096
3103
|
}
|
|
3097
|
-
if (unref(getIsMixMode)) {
|
|
3104
|
+
if (unref$1(getIsMixMode)) {
|
|
3098
3105
|
cls += "dt-sideBar--mix ";
|
|
3099
3106
|
}
|
|
3100
3107
|
return cls;
|
|
3101
3108
|
});
|
|
3102
3109
|
const getSplitType = computed(() => {
|
|
3103
|
-
return unref(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3110
|
+
return unref$1(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3104
3111
|
});
|
|
3105
3112
|
const getMode = computed(() => {
|
|
3106
|
-
return unref(getSplit) ? MenuMode.INLINE : null;
|
|
3113
|
+
return unref$1(getSplit) ? MenuMode.INLINE : null;
|
|
3107
3114
|
});
|
|
3108
3115
|
const renderTrigger = h(_sfc_main$7);
|
|
3109
3116
|
return (_ctx, _cache) => {
|
|
3110
3117
|
const _component_ALayoutSider = LayoutSider;
|
|
3111
|
-
return unref(getIsMixSidebar) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
3118
|
+
return unref$1(getIsMixSidebar) ? (openBlock(), createBlock(_sfc_main$5, {
|
|
3112
3119
|
key: 0
|
|
3113
3120
|
})) : (openBlock(), createElementBlock(Fragment, {
|
|
3114
3121
|
key: 1
|
|
3115
|
-
}, [unref(getMenuFixed) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
3122
|
+
}, [unref$1(getMenuFixed) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
3116
3123
|
key: 0,
|
|
3117
|
-
style: normalizeStyle(unref(hiddenDomStyle))
|
|
3118
|
-
}, 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({
|
|
3119
3126
|
ref_key: "sideRef",
|
|
3120
3127
|
ref: sideRef,
|
|
3121
3128
|
collapsible: "",
|
|
3122
3129
|
breakpoint: "lg",
|
|
3123
|
-
class: unref(getSiderClass),
|
|
3124
|
-
width: unref(getMenuWidth),
|
|
3125
|
-
collapsed: unref(getCollapsed),
|
|
3126
|
-
collapsedWidth: unref(getCollapsedWidth),
|
|
3127
|
-
onBreakpoint: unref(onBreakPointChange),
|
|
3128
|
-
theme: unref(getMenuTheme),
|
|
3129
|
-
trigger: unref(renderTrigger)
|
|
3130
|
-
}, 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)), {
|
|
3131
3138
|
default: withCtx(() => [createVNode(_sfc_main$9, {
|
|
3132
|
-
theme: unref(getMenuTheme),
|
|
3133
|
-
menuMode: unref(getMode),
|
|
3134
|
-
splitType: unref(getSplitType)
|
|
3139
|
+
theme: unref$1(getMenuTheme),
|
|
3140
|
+
menuMode: unref$1(getMode),
|
|
3141
|
+
splitType: unref$1(getSplitType)
|
|
3135
3142
|
}, null, 8, ["theme", "menuMode", "splitType"]), createVNode(_sfc_main$6, {
|
|
3136
3143
|
ref_key: "dragBarRef",
|
|
3137
3144
|
ref: dragBarRef
|
|
3138
3145
|
}, null, 512)]),
|
|
3139
3146
|
_: 1
|
|
3140
|
-
}, 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));
|
|
3141
3148
|
};
|
|
3142
3149
|
}
|
|
3143
3150
|
});
|
|
@@ -3154,50 +3161,50 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3154
3161
|
const { getCalcContentWidth, getIsMixMode, getSplit, getIsMixSidebar } = useMenu();
|
|
3155
3162
|
const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
|
|
3156
3163
|
const getPlaceholderDomStyle = computed(() => {
|
|
3157
|
-
let height = unref(getHeaderHeight);
|
|
3158
|
-
if (unref(getIsMixMode)) {
|
|
3159
|
-
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;
|
|
3160
3167
|
}
|
|
3161
3168
|
return {
|
|
3162
3169
|
height: `${height}px`
|
|
3163
3170
|
};
|
|
3164
3171
|
});
|
|
3165
3172
|
const getSplitType = computed(() => {
|
|
3166
|
-
return unref(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3173
|
+
return unref$1(getSplit) ? MenuSplitTye.LEFT : MenuSplitTye.NONE;
|
|
3167
3174
|
});
|
|
3168
3175
|
const { menusRef } = useSplitMenu(getSplitType);
|
|
3169
3176
|
const getWrapStyle = computed(() => {
|
|
3170
3177
|
const style = {};
|
|
3171
|
-
if (unref(getIsMixSidebar)) {
|
|
3172
|
-
style.width = useThemeStore().getMixSiderIsHasMenu ? unref(getCalcContentWidth) : "calc(100% - 80px)";
|
|
3173
|
-
} 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) {
|
|
3174
3181
|
style.width = "100%";
|
|
3175
|
-
} else if (unref(getFixed)) {
|
|
3176
|
-
style.width = unref(getCalcContentWidth);
|
|
3182
|
+
} else if (unref$1(getFixed)) {
|
|
3183
|
+
style.width = unref$1(getCalcContentWidth);
|
|
3177
3184
|
}
|
|
3178
|
-
if (unref(getShowFullHeaderRef))
|
|
3185
|
+
if (unref$1(getShowFullHeaderRef))
|
|
3179
3186
|
style.top = "48px";
|
|
3180
3187
|
return style;
|
|
3181
3188
|
});
|
|
3182
3189
|
const getClass = computed(() => {
|
|
3183
3190
|
let cls = "transition-width duration-200 flex-auto";
|
|
3184
|
-
if (unref(getFixed)) {
|
|
3191
|
+
if (unref$1(getFixed)) {
|
|
3185
3192
|
cls += " fixed top-0 right-0 w-full";
|
|
3186
3193
|
}
|
|
3187
3194
|
return cls;
|
|
3188
3195
|
});
|
|
3189
3196
|
return (_ctx, _cache) => {
|
|
3190
3197
|
return openBlock(), createElementBlock("div", null, [
|
|
3191
|
-
unref(getFixed) ? (openBlock(), createElementBlock("div", {
|
|
3198
|
+
unref$1(getFixed) ? (openBlock(), createElementBlock("div", {
|
|
3192
3199
|
key: 0,
|
|
3193
|
-
style: normalizeStyle(unref(getPlaceholderDomStyle))
|
|
3200
|
+
style: normalizeStyle(unref$1(getPlaceholderDomStyle))
|
|
3194
3201
|
}, null, 4)) : createCommentVNode("", true),
|
|
3195
3202
|
createElementVNode("div", {
|
|
3196
|
-
style: normalizeStyle(unref(getWrapStyle)),
|
|
3197
|
-
class: normalizeClass(unref(getClass))
|
|
3203
|
+
style: normalizeStyle(unref$1(getWrapStyle)),
|
|
3204
|
+
class: normalizeClass(unref$1(getClass))
|
|
3198
3205
|
}, [
|
|
3199
|
-
unref(getShowInsetHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, { key: 0 })) : createCommentVNode("", true),
|
|
3200
|
-
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)
|
|
3201
3208
|
], 6)
|
|
3202
3209
|
]);
|
|
3203
3210
|
};
|
|
@@ -3208,7 +3215,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3208
3215
|
__name: "index",
|
|
3209
3216
|
setup(__props) {
|
|
3210
3217
|
const { getFooter } = useTheme();
|
|
3211
|
-
const { title, subTitle, height } = unref(getFooter);
|
|
3218
|
+
const { title, subTitle, height } = unref$1(getFooter);
|
|
3212
3219
|
const footerOptions = computed(() => {
|
|
3213
3220
|
return {
|
|
3214
3221
|
lineHeight: `${height - 1}px`,
|
|
@@ -3219,13 +3226,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3219
3226
|
};
|
|
3220
3227
|
});
|
|
3221
3228
|
return (_ctx, _cache) => {
|
|
3222
|
-
return openBlock(), createBlock(unref(LayoutFooter), {
|
|
3229
|
+
return openBlock(), createBlock(unref$1(LayoutFooter), {
|
|
3223
3230
|
class: "text-center p-0 w-full block border-t border-gray-200",
|
|
3224
|
-
style: normalizeStyle(unref(footerOptions))
|
|
3231
|
+
style: normalizeStyle(unref$1(footerOptions))
|
|
3225
3232
|
}, {
|
|
3226
3233
|
default: withCtx(() => [
|
|
3227
|
-
createElementVNode("span", _hoisted_1$1, toDisplayString(unref(title)), 1),
|
|
3228
|
-
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)
|
|
3229
3236
|
]),
|
|
3230
3237
|
_: 1
|
|
3231
3238
|
}, 8, ["style"]);
|
|
@@ -3241,7 +3248,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3241
3248
|
const { getCanCache } = useMultipleTab();
|
|
3242
3249
|
const tabStore = useRouteReuseStore();
|
|
3243
3250
|
function getTransitionName(route) {
|
|
3244
|
-
return route.meta.transitionName || unref(getTransitionMode);
|
|
3251
|
+
return route.meta.transitionName || unref$1(getTransitionMode);
|
|
3245
3252
|
}
|
|
3246
3253
|
const getCaches = computed(() => {
|
|
3247
3254
|
return tabStore.getCachedTabList;
|
|
@@ -3251,8 +3258,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3251
3258
|
const _component_ALayoutContent = LayoutContent;
|
|
3252
3259
|
return openBlock(), createElementBlock("div", {
|
|
3253
3260
|
id: "dt-layout-content",
|
|
3254
|
-
class: normalizeClass([["dt-layout-content", unref(getLayoutContentMode)], "relative flex-auto overflow-x-hidden min-h-0 flex"]),
|
|
3255
|
-
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)
|
|
3256
3263
|
}, [
|
|
3257
3264
|
createVNode(_component_ALayoutContent, null, {
|
|
3258
3265
|
default: withCtx(() => [
|
|
@@ -3262,9 +3269,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3262
3269
|
name: getTransitionName(route)
|
|
3263
3270
|
}, {
|
|
3264
3271
|
default: withCtx(() => [
|
|
3265
|
-
!route.meta.hideTab && unref(getCanCache) ? (openBlock(), createBlock(KeepAlive, {
|
|
3272
|
+
!route.meta.hideTab && unref$1(getCanCache) ? (openBlock(), createBlock(KeepAlive, {
|
|
3266
3273
|
key: 0,
|
|
3267
|
-
include: unref(getCaches)
|
|
3274
|
+
include: unref$1(getCaches)
|
|
3268
3275
|
}, [
|
|
3269
3276
|
(openBlock(), createBlock(resolveDynamicComponent(Component), {
|
|
3270
3277
|
key: route.path
|
|
@@ -3290,29 +3297,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3290
3297
|
const { getShowFullHeaderRef, getIsZH, getHeaderHeight, getUiSize } = useHeader();
|
|
3291
3298
|
const { getSplit, getShowMenu, getShowSidebar, getIsMixSidebar } = useMenu();
|
|
3292
3299
|
const { getFooter, getShowFooter } = useTheme();
|
|
3293
|
-
const { height } = unref(getFooter);
|
|
3294
|
-
dayjs.locale(unref(getIsZH) ? "zh-cn" : "en");
|
|
3300
|
+
const { height } = unref$1(getFooter);
|
|
3301
|
+
dayjs.locale(unref$1(getIsZH) ? "zh-cn" : "en");
|
|
3295
3302
|
const layoutClass = computed(() => {
|
|
3296
3303
|
let cls = "ant-layout";
|
|
3297
|
-
if (unref(getIsMixSidebar)) {
|
|
3304
|
+
if (unref$1(getIsMixSidebar)) {
|
|
3298
3305
|
cls += " ant-layout-has-sider";
|
|
3299
3306
|
}
|
|
3300
|
-
if (unref(getShowMenu)) {
|
|
3307
|
+
if (unref$1(getShowMenu)) {
|
|
3301
3308
|
cls += " flex flex-auto min-h-0 flex-row";
|
|
3302
3309
|
}
|
|
3303
3310
|
return cls;
|
|
3304
3311
|
});
|
|
3305
3312
|
const layoutOption = computed(() => {
|
|
3306
|
-
if (unref(getSplit)) {
|
|
3313
|
+
if (unref$1(getSplit)) {
|
|
3307
3314
|
return {
|
|
3308
|
-
paddingTop: unref(getHeaderHeight) + "px",
|
|
3315
|
+
paddingTop: unref$1(getHeaderHeight) + "px",
|
|
3309
3316
|
background: "#f0f2f5"
|
|
3310
3317
|
};
|
|
3311
3318
|
}
|
|
3312
3319
|
});
|
|
3313
3320
|
const getContentStyle = computed(() => {
|
|
3314
3321
|
return {
|
|
3315
|
-
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)`,
|
|
3316
3323
|
overflowY: "auto"
|
|
3317
3324
|
};
|
|
3318
3325
|
});
|
|
@@ -3321,16 +3328,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3321
3328
|
() => router.currentRoute.value.path,
|
|
3322
3329
|
(v) => {
|
|
3323
3330
|
if (v === Pages.LOGIN) {
|
|
3331
|
+
DtCache.clearAll();
|
|
3324
3332
|
const cacheTab = DtCache.getLocal(CacheKey.THEME)?.routeReuse?.cache;
|
|
3325
3333
|
if (!cacheTab) {
|
|
3326
3334
|
const tabStore = useRouteReuseStore();
|
|
3327
3335
|
tabStore.resetState();
|
|
3328
3336
|
}
|
|
3329
|
-
const cacheTheme = DtCache.getLocal(CacheKey.THEME)?.cache;
|
|
3330
|
-
if (!cacheTheme) {
|
|
3331
|
-
const themeStore = useThemeStore();
|
|
3332
|
-
themeStore.resetState();
|
|
3333
|
-
}
|
|
3334
3337
|
}
|
|
3335
3338
|
},
|
|
3336
3339
|
{
|
|
@@ -3341,36 +3344,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3341
3344
|
const _component_ALayout = Layout;
|
|
3342
3345
|
const _component_AConfigProvider = ConfigProvider;
|
|
3343
3346
|
return openBlock(), createElementBlock("div", {
|
|
3344
|
-
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)}`])
|
|
3345
3348
|
}, [
|
|
3346
3349
|
createVNode(_component_AConfigProvider, {
|
|
3347
|
-
locale: unref(getIsZH) ? unref(zhCN) : unref(en),
|
|
3348
|
-
"component-size": unref(getUiSize)
|
|
3350
|
+
locale: unref$1(getIsZH) ? unref$1(zhCN) : unref$1(en),
|
|
3351
|
+
"component-size": unref$1(getUiSize)
|
|
3349
3352
|
}, {
|
|
3350
3353
|
default: withCtx(() => [
|
|
3351
|
-
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, {
|
|
3352
3355
|
key: 0,
|
|
3353
3356
|
class: "w-full h-full flex"
|
|
3354
3357
|
}, {
|
|
3355
3358
|
default: withCtx(() => [
|
|
3356
3359
|
createVNode(_sfc_main$y),
|
|
3357
|
-
unref(getShowFullHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
3360
|
+
unref$1(getShowFullHeaderRef) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
3358
3361
|
key: 0,
|
|
3359
3362
|
fixed: ""
|
|
3360
3363
|
})) : createCommentVNode("", true),
|
|
3361
3364
|
createVNode(_component_ALayout, {
|
|
3362
|
-
class: normalizeClass(unref(layoutClass)),
|
|
3363
|
-
style: normalizeStyle(unref(layoutOption))
|
|
3365
|
+
class: normalizeClass(unref$1(layoutClass)),
|
|
3366
|
+
style: normalizeStyle(unref$1(layoutOption))
|
|
3364
3367
|
}, {
|
|
3365
3368
|
default: withCtx(() => [
|
|
3366
|
-
unref(getShowSidebar) ? (openBlock(), createBlock(_sfc_main$4, { key: 0 })) : createCommentVNode("", true),
|
|
3369
|
+
unref$1(getShowSidebar) ? (openBlock(), createBlock(_sfc_main$4, { key: 0 })) : createCommentVNode("", true),
|
|
3367
3370
|
createVNode(_component_ALayout, { class: "dt-theme-main flex w-full h-ful transition-width duration-200" }, {
|
|
3368
3371
|
default: withCtx(() => [
|
|
3369
3372
|
createVNode(_sfc_main$3),
|
|
3370
3373
|
createVNode(_sfc_main$1, {
|
|
3371
|
-
style: normalizeStyle(unref(getContentStyle))
|
|
3374
|
+
style: normalizeStyle(unref$1(getContentStyle))
|
|
3372
3375
|
}, null, 8, ["style"]),
|
|
3373
|
-
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)
|
|
3374
3377
|
]),
|
|
3375
3378
|
_: 1
|
|
3376
3379
|
})
|
|
@@ -3379,7 +3382,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3379
3382
|
}, 8, ["class", "style"])
|
|
3380
3383
|
]),
|
|
3381
3384
|
_: 1
|
|
3382
|
-
})) : (openBlock(), createBlock(unref(RouterView), { key: 1 }))
|
|
3385
|
+
})) : (openBlock(), createBlock(unref$1(RouterView), { key: 1 }))
|
|
3383
3386
|
]),
|
|
3384
3387
|
_: 1
|
|
3385
3388
|
}, 8, ["locale", "component-size"])
|
|
@@ -3599,6 +3602,8 @@ const DtTheme = withInstall$1(_sfc_main);
|
|
|
3599
3602
|
export {
|
|
3600
3603
|
ContentMode,
|
|
3601
3604
|
DtTheme,
|
|
3605
|
+
MenuMode,
|
|
3606
|
+
MenuType,
|
|
3602
3607
|
UiSize,
|
|
3603
3608
|
defaultThemeConf,
|
|
3604
3609
|
uiLang,
|