@fmdeui/fmui 1.0.38 → 1.0.40
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/fm-layout/index.d.ts +10 -0
- package/es/components/fm-layout/src/index.vue.d.ts +4 -0
- package/es/hooks/other.d.ts +1 -5
- package/es/packages/components/fm-layout/src/index.vue2.mjs +5 -1
- package/es/packages/components/fm-layout/src/navBars/topBar/user.vue2.mjs +3 -2
- package/es/packages/components/fm-layout/src/navMenu/horizontal.vue2.mjs +7 -2
- package/es/packages/components/fm-layout/src/navMenu/subItem.vue2.mjs +7 -2
- package/es/packages/components/fm-layout/src/navMenu/vertical.vue2.mjs +7 -2
- package/es/packages/hooks/commonFunction.mjs +2 -2
- package/es/packages/hooks/other.mjs +8 -34
- package/index.js +31 -38
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +31 -38
- package/lib/components/fm-layout/index.d.ts +10 -0
- package/lib/components/fm-layout/src/index.vue.d.ts +4 -0
- package/lib/hooks/other.d.ts +1 -5
- package/lib/packages/components/fm-layout/src/index.vue2.js +5 -1
- package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue2.js +3 -2
- package/lib/packages/components/fm-layout/src/navMenu/horizontal.vue2.js +7 -2
- package/lib/packages/components/fm-layout/src/navMenu/subItem.vue2.js +7 -2
- package/lib/packages/components/fm-layout/src/navMenu/vertical.vue2.js +7 -2
- package/lib/packages/hooks/commonFunction.js +2 -2
- package/lib/packages/hooks/other.js +6 -34
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{make-installer.css → defaults.css} +0 -0
- /package/lib/{component.css → make-installer.css} +0 -0
|
@@ -5,10 +5,14 @@ export declare const FLayout: {
|
|
|
5
5
|
onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
|
|
7
7
|
onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
|
|
8
10
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
11
|
layoutChangePassword: (...args: any[]) => void;
|
|
10
12
|
layoutOnlineUsers: (...args: any[]) => void;
|
|
11
13
|
layoutSearchMenu: (...args: any[]) => void;
|
|
14
|
+
layoutSetBrowserTitle: (...args: any[]) => void;
|
|
15
|
+
layoutSetOpenLink: (...args: any[]) => void;
|
|
12
16
|
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
13
17
|
P: {};
|
|
14
18
|
B: {};
|
|
@@ -20,6 +24,8 @@ export declare const FLayout: {
|
|
|
20
24
|
onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
|
|
21
25
|
onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
|
|
22
26
|
onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
|
|
23
29
|
}>, {}, {}, {}, {}, {}>;
|
|
24
30
|
__isFragment?: never;
|
|
25
31
|
__isTeleport?: never;
|
|
@@ -28,10 +34,14 @@ export declare const FLayout: {
|
|
|
28
34
|
onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
|
|
29
35
|
onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
|
|
30
36
|
onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
|
|
31
39
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
32
40
|
layoutChangePassword: (...args: any[]) => void;
|
|
33
41
|
layoutOnlineUsers: (...args: any[]) => void;
|
|
34
42
|
layoutSearchMenu: (...args: any[]) => void;
|
|
43
|
+
layoutSetBrowserTitle: (...args: any[]) => void;
|
|
44
|
+
layoutSetOpenLink: (...args: any[]) => void;
|
|
35
45
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
36
46
|
$slots: any;
|
|
37
47
|
});
|
|
@@ -10,10 +10,14 @@ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOpti
|
|
|
10
10
|
layoutChangePassword: (...args: any[]) => void;
|
|
11
11
|
layoutOnlineUsers: (...args: any[]) => void;
|
|
12
12
|
layoutSearchMenu: (...args: any[]) => void;
|
|
13
|
+
layoutSetBrowserTitle: (...args: any[]) => void;
|
|
14
|
+
layoutSetOpenLink: (...args: any[]) => void;
|
|
13
15
|
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
14
16
|
onLayoutChangePassword?: ((...args: any[]) => any) | undefined;
|
|
15
17
|
onLayoutOnlineUsers?: ((...args: any[]) => any) | undefined;
|
|
16
18
|
onLayoutSearchMenu?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onLayoutSetBrowserTitle?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onLayoutSetOpenLink?: ((...args: any[]) => any) | undefined;
|
|
17
21
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
23
|
export default _default;
|
package/es/hooks/other.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { EmptyArrayType, EmptyObjectType,
|
|
1
|
+
import { EmptyArrayType, EmptyObjectType, RouteToFrom } from 'fmdeui-fmui/es/types';
|
|
2
2
|
/**
|
|
3
3
|
* 设置浏览器标题国际化
|
|
4
4
|
* @method const title = useTitle(); ==> title()
|
|
5
5
|
*/
|
|
6
|
-
export declare function useTitle(): void;
|
|
7
6
|
/**
|
|
8
7
|
* 设置 自定义 tagsView 名称、 自定义 tagsView 名称国际化
|
|
9
8
|
* @param params 路由 query、params 中的 tagsViewName
|
|
@@ -43,7 +42,6 @@ export declare function handleEmpty(list: EmptyArrayType): EmptyArrayType;
|
|
|
43
42
|
* 打开外部链接
|
|
44
43
|
* @param val 当前点击项菜单
|
|
45
44
|
*/
|
|
46
|
-
export declare function handleOpenLink(val: RouteItem): void;
|
|
47
45
|
/**
|
|
48
46
|
* 统一批量导出
|
|
49
47
|
* @method elSvg 导出全局注册 element plus svg 图标
|
|
@@ -57,13 +55,11 @@ export declare function handleOpenLink(val: RouteItem): void;
|
|
|
57
55
|
* @method handleOpenLink 打开外部链接
|
|
58
56
|
*/
|
|
59
57
|
declare const other: {
|
|
60
|
-
useTitle: () => void;
|
|
61
58
|
setTagsViewNameI18n(route: RouteToFrom): string;
|
|
62
59
|
lazyImg: (el: string, arr: EmptyArrayType) => void;
|
|
63
60
|
globalComponentSize: () => string;
|
|
64
61
|
deepClone: (obj: EmptyObjectType) => EmptyObjectType;
|
|
65
62
|
isMobile: () => boolean;
|
|
66
63
|
handleEmpty: (list: EmptyArrayType) => EmptyArrayType;
|
|
67
|
-
handleOpenLink: (val: RouteItem) => void;
|
|
68
64
|
};
|
|
69
65
|
export default other;
|
|
@@ -13,7 +13,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
name: "FLayout"
|
|
14
14
|
},
|
|
15
15
|
__name: "index",
|
|
16
|
-
emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu"],
|
|
16
|
+
emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu", "layoutSetBrowserTitle", "layoutSetOpenLink"],
|
|
17
17
|
setup(__props, { emit: __emit }) {
|
|
18
18
|
const layouts = {
|
|
19
19
|
defaults: defineAsyncComponent(() => import('./main/defaults.vue.mjs')),
|
|
@@ -33,6 +33,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
curMyEmit("layoutOnlineUsers");
|
|
34
34
|
} else if (data.name == "searchFormMenu") {
|
|
35
35
|
curMyEmit("layoutSearchMenu");
|
|
36
|
+
} else if (data.name == "setFBrowserTitle") {
|
|
37
|
+
curMyEmit("layoutSetBrowserTitle");
|
|
38
|
+
} else if (data.name == "setFOpenLink") {
|
|
39
|
+
curMyEmit("layoutSetOpenLink", data);
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
});
|
|
@@ -11,7 +11,6 @@ import '../../../../../api/index.mjs';
|
|
|
11
11
|
import { getCountryCode, languageList } from '../../../../../locale/index.mjs';
|
|
12
12
|
import '../../../../../hooks/index.mjs';
|
|
13
13
|
import emitter from '../../../../../utils/mitt.mjs';
|
|
14
|
-
import other from '../../../../../hooks/other.mjs';
|
|
15
14
|
import Push from 'push.js';
|
|
16
15
|
import { useRoutesList } from '../../../../../stores/routesList.mjs';
|
|
17
16
|
import { useUserInfo } from '../../../../../stores/userInfo.mjs';
|
|
@@ -150,7 +149,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
149
|
Local.set("themeConfig", themeConfig.value);
|
|
151
150
|
currentCountryCode.value = getCountryCode(lang);
|
|
152
151
|
locale.value = lang;
|
|
153
|
-
|
|
152
|
+
events.onFormDialogOpen({
|
|
153
|
+
name: "setFBrowserTitle"
|
|
154
|
+
});
|
|
154
155
|
initI18nOrSize("globalI18n", "disabledI18n");
|
|
155
156
|
refreshCurrentTabpage();
|
|
156
157
|
if (lang == "en") window.$changeLang("en");
|
|
@@ -3,9 +3,10 @@ import { useRoute, onBeforeRouteUpdate } from 'vue-router';
|
|
|
3
3
|
import { storeToRefs } from 'pinia';
|
|
4
4
|
import '../../../../stores/index.mjs';
|
|
5
5
|
import emitter from '../../../../utils/mitt.mjs';
|
|
6
|
-
import
|
|
6
|
+
import '../../../../hooks/index.mjs';
|
|
7
7
|
import { useRoutesList } from '../../../../stores/routesList.mjs';
|
|
8
8
|
import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
|
|
9
|
+
import { useFormEvents } from '../../../../hooks/composables/useDialogEvents.mjs';
|
|
9
10
|
|
|
10
11
|
const _hoisted_1 = { class: "el-menu-horizontal-warp" };
|
|
11
12
|
const _hoisted_2 = ["onClick"];
|
|
@@ -65,8 +66,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
66
|
else state.defaultActive = path;
|
|
66
67
|
}
|
|
67
68
|
};
|
|
69
|
+
const events = useFormEvents();
|
|
68
70
|
const onALinkClick = (val) => {
|
|
69
|
-
|
|
71
|
+
events.onFormDialogOpen({
|
|
72
|
+
name: "setFOpenLink",
|
|
73
|
+
data: val
|
|
74
|
+
});
|
|
70
75
|
};
|
|
71
76
|
onBeforeMount(() => {
|
|
72
77
|
setCurrentRouterHighlight(route);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createVNode, createElementVNode, toDisplayString, withModifiers, createTextVNode } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import '../../../../hooks/index.mjs';
|
|
3
|
+
import { useFormEvents } from '../../../../hooks/composables/useDialogEvents.mjs';
|
|
3
4
|
|
|
4
5
|
const _hoisted_1 = ["onClick"];
|
|
5
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -13,11 +14,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
},
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
17
|
+
const events = useFormEvents();
|
|
16
18
|
const chils = computed(() => {
|
|
17
19
|
return props.chil;
|
|
18
20
|
});
|
|
19
21
|
const onALinkClick = (val) => {
|
|
20
|
-
|
|
22
|
+
events.onFormDialogOpen({
|
|
23
|
+
name: "setFOpenLink",
|
|
24
|
+
data: val
|
|
25
|
+
});
|
|
21
26
|
};
|
|
22
27
|
return (_ctx, _cache) => {
|
|
23
28
|
const _component_SvgIcon = resolveComponent("SvgIcon");
|
|
@@ -2,7 +2,8 @@ import { defineComponent, defineAsyncComponent, reactive, computed, onMounted, w
|
|
|
2
2
|
import { useRoute, onBeforeRouteUpdate } from 'vue-router';
|
|
3
3
|
import { storeToRefs } from 'pinia';
|
|
4
4
|
import '../../../../stores/index.mjs';
|
|
5
|
-
import
|
|
5
|
+
import '../../../../hooks/index.mjs';
|
|
6
|
+
import { useFormEvents } from '../../../../hooks/composables/useDialogEvents.mjs';
|
|
6
7
|
import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
|
|
7
8
|
|
|
8
9
|
const _hoisted_1 = ["onClick"];
|
|
@@ -18,6 +19,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
19
|
setup(__props) {
|
|
19
20
|
const SubItem = defineAsyncComponent(() => import('./subItem.vue.mjs'));
|
|
20
21
|
const props = __props;
|
|
22
|
+
const events = useFormEvents();
|
|
21
23
|
const storesThemeConfig = useThemeConfig();
|
|
22
24
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
23
25
|
const route = useRoute();
|
|
@@ -39,7 +41,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
41
|
else return path;
|
|
40
42
|
};
|
|
41
43
|
const onALinkClick = (val) => {
|
|
42
|
-
|
|
44
|
+
events.onFormDialogOpen({
|
|
45
|
+
name: "setFOpenLink",
|
|
46
|
+
data: val
|
|
47
|
+
});
|
|
43
48
|
};
|
|
44
49
|
onMounted(() => {
|
|
45
50
|
state.defaultActive = setParentHighlight(route);
|
|
@@ -4,12 +4,11 @@ import { i18n } from '../locale/index.mjs';
|
|
|
4
4
|
import '../utils/index.mjs';
|
|
5
5
|
import '../stores/index.mjs';
|
|
6
6
|
import '../api/index.mjs';
|
|
7
|
-
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
8
7
|
import { formatDate } from '../utils/formatTime.mjs';
|
|
9
8
|
import { useBaseApi } from '../api/base/index.mjs';
|
|
9
|
+
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
10
10
|
|
|
11
11
|
function commonFunction() {
|
|
12
|
-
const themeStore = useThemeConfig();
|
|
13
12
|
const { copy, isSupported } = useClipboard();
|
|
14
13
|
const percentFormat = (row, column, cellValue) => {
|
|
15
14
|
return cellValue ? `${cellValue}%` : "-";
|
|
@@ -93,6 +92,7 @@ function commonFunction() {
|
|
|
93
92
|
return fieldValue;
|
|
94
93
|
};
|
|
95
94
|
const getTimeRangePickerShortcuts = () => {
|
|
95
|
+
const themeStore = useThemeConfig();
|
|
96
96
|
return [
|
|
97
97
|
{
|
|
98
98
|
text: "\u8FD1\u4E00\u5468",
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
2
|
import pinia from '../stores/inpinia.mjs';
|
|
3
3
|
import { storeToRefs } from 'pinia';
|
|
4
4
|
import { useThemeConfig } from '../stores/themeConfig.mjs';
|
|
5
5
|
import { i18n } from '../locale/index.mjs';
|
|
6
|
-
import { verifyUrl } from '../utils/toolsValidate.mjs';
|
|
7
6
|
|
|
8
|
-
const { proxy } = getCurrentInstance();
|
|
9
|
-
function useTitle() {
|
|
10
|
-
const stores = useThemeConfig(pinia);
|
|
11
|
-
const { themeConfig } = storeToRefs(stores);
|
|
12
|
-
const router = proxy.$mycurRouter;
|
|
13
|
-
nextTick(() => {
|
|
14
|
-
let webTitle = "";
|
|
15
|
-
let globalTitle = themeConfig.value.globalTitle;
|
|
16
|
-
const { path, meta } = router.currentRoute.value;
|
|
17
|
-
if (path === "/login") {
|
|
18
|
-
webTitle = meta.title;
|
|
19
|
-
} else {
|
|
20
|
-
webTitle = setTagsViewNameI18n(router.currentRoute.value);
|
|
21
|
-
}
|
|
22
|
-
document.title = `${webTitle} - ${globalTitle}` || globalTitle;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
7
|
function setTagsViewNameI18n(item) {
|
|
26
8
|
let tagsViewName = "";
|
|
27
9
|
const { query, params, meta } = item;
|
|
@@ -97,21 +79,13 @@ function handleEmpty(list) {
|
|
|
97
79
|
}
|
|
98
80
|
return arr;
|
|
99
81
|
}
|
|
100
|
-
function handleOpenLink(val) {
|
|
101
|
-
var _a, _b, _c;
|
|
102
|
-
const { origin, pathname } = window.location;
|
|
103
|
-
const router = proxy.$mycurRouter;
|
|
104
|
-
router.push(val.path);
|
|
105
|
-
if (verifyUrl((_a = val.meta) == null ? void 0 : _a.isLink)) window.open((_b = val.meta) == null ? void 0 : _b.isLink);
|
|
106
|
-
else window.open(`${origin}${pathname}#${(_c = val.meta) == null ? void 0 : _c.isLink}`);
|
|
107
|
-
}
|
|
108
82
|
const other = {
|
|
109
83
|
// elSvg: (app: App) => {
|
|
110
84
|
// elSvg(app);
|
|
111
85
|
// },
|
|
112
|
-
useTitle: () => {
|
|
113
|
-
|
|
114
|
-
},
|
|
86
|
+
// useTitle: () => {
|
|
87
|
+
// useTitle();
|
|
88
|
+
// },
|
|
115
89
|
setTagsViewNameI18n(route) {
|
|
116
90
|
return setTagsViewNameI18n(route);
|
|
117
91
|
},
|
|
@@ -129,10 +103,10 @@ const other = {
|
|
|
129
103
|
},
|
|
130
104
|
handleEmpty: (list) => {
|
|
131
105
|
return handleEmpty(list);
|
|
132
|
-
},
|
|
133
|
-
handleOpenLink: (val) => {
|
|
134
|
-
handleOpenLink(val);
|
|
135
106
|
}
|
|
107
|
+
// handleOpenLink: (val: RouteItem) => {
|
|
108
|
+
// handleOpenLink(val);
|
|
109
|
+
// },
|
|
136
110
|
};
|
|
137
111
|
|
|
138
|
-
export { deepClone, other as default, globalComponentSize, handleEmpty,
|
|
112
|
+
export { deepClone, other as default, globalComponentSize, handleEmpty, isMobile, lazyImg, setTagsViewNameI18n };
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.40 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('vue-router'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'vue-router', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -22439,7 +22439,7 @@
|
|
|
22439
22439
|
name: "FLayout"
|
|
22440
22440
|
},
|
|
22441
22441
|
__name: "index",
|
|
22442
|
-
emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu"],
|
|
22442
|
+
emits: ["layoutChangePassword", "layoutOnlineUsers", "layoutSearchMenu", "layoutSetBrowserTitle", "layoutSetOpenLink"],
|
|
22443
22443
|
setup(__props, { emit: __emit }) {
|
|
22444
22444
|
const layouts = {
|
|
22445
22445
|
defaults: vue.defineAsyncComponent(() => Promise.resolve().then(function () { return defaults; })),
|
|
@@ -22459,6 +22459,10 @@
|
|
|
22459
22459
|
curMyEmit("layoutOnlineUsers");
|
|
22460
22460
|
} else if (data.name == "searchFormMenu") {
|
|
22461
22461
|
curMyEmit("layoutSearchMenu");
|
|
22462
|
+
} else if (data.name == "setFBrowserTitle") {
|
|
22463
|
+
curMyEmit("layoutSetBrowserTitle");
|
|
22464
|
+
} else if (data.name == "setFOpenLink") {
|
|
22465
|
+
curMyEmit("layoutSetOpenLink", data);
|
|
22462
22466
|
}
|
|
22463
22467
|
}
|
|
22464
22468
|
});
|
|
@@ -22519,7 +22523,6 @@
|
|
|
22519
22523
|
const FLayout = _sfc_main$o;
|
|
22520
22524
|
|
|
22521
22525
|
function commonFunction() {
|
|
22522
|
-
const themeStore = useThemeConfig();
|
|
22523
22526
|
const { copy, isSupported } = core.useClipboard();
|
|
22524
22527
|
const percentFormat = (row, column, cellValue) => {
|
|
22525
22528
|
return cellValue ? `${cellValue}%` : "-";
|
|
@@ -22603,6 +22606,7 @@
|
|
|
22603
22606
|
return fieldValue;
|
|
22604
22607
|
};
|
|
22605
22608
|
const getTimeRangePickerShortcuts = () => {
|
|
22609
|
+
const themeStore = useThemeConfig();
|
|
22606
22610
|
return [
|
|
22607
22611
|
{
|
|
22608
22612
|
text: "\u8FD1\u4E00\u5468",
|
|
@@ -22688,23 +22692,6 @@
|
|
|
22688
22692
|
};
|
|
22689
22693
|
}
|
|
22690
22694
|
|
|
22691
|
-
const { proxy } = vue.getCurrentInstance();
|
|
22692
|
-
function useTitle() {
|
|
22693
|
-
const stores = useThemeConfig(pinia);
|
|
22694
|
-
const { themeConfig } = pinia$1.storeToRefs(stores);
|
|
22695
|
-
const router = proxy.$mycurRouter;
|
|
22696
|
-
vue.nextTick(() => {
|
|
22697
|
-
let webTitle = "";
|
|
22698
|
-
let globalTitle = themeConfig.value.globalTitle;
|
|
22699
|
-
const { path, meta } = router.currentRoute.value;
|
|
22700
|
-
if (path === "/login") {
|
|
22701
|
-
webTitle = meta.title;
|
|
22702
|
-
} else {
|
|
22703
|
-
webTitle = setTagsViewNameI18n(router.currentRoute.value);
|
|
22704
|
-
}
|
|
22705
|
-
document.title = `${webTitle} - ${globalTitle}` || globalTitle;
|
|
22706
|
-
});
|
|
22707
|
-
}
|
|
22708
22695
|
function setTagsViewNameI18n(item) {
|
|
22709
22696
|
let tagsViewName = "";
|
|
22710
22697
|
const { query, params, meta } = item;
|
|
@@ -22780,21 +22767,13 @@
|
|
|
22780
22767
|
}
|
|
22781
22768
|
return arr;
|
|
22782
22769
|
}
|
|
22783
|
-
function handleOpenLink(val) {
|
|
22784
|
-
var _a, _b, _c;
|
|
22785
|
-
const { origin, pathname } = window.location;
|
|
22786
|
-
const router = proxy.$mycurRouter;
|
|
22787
|
-
router.push(val.path);
|
|
22788
|
-
if (verifyUrl((_a = val.meta) == null ? void 0 : _a.isLink)) window.open((_b = val.meta) == null ? void 0 : _b.isLink);
|
|
22789
|
-
else window.open(`${origin}${pathname}#${(_c = val.meta) == null ? void 0 : _c.isLink}`);
|
|
22790
|
-
}
|
|
22791
22770
|
const other = {
|
|
22792
22771
|
// elSvg: (app: App) => {
|
|
22793
22772
|
// elSvg(app);
|
|
22794
22773
|
// },
|
|
22795
|
-
useTitle: () => {
|
|
22796
|
-
|
|
22797
|
-
},
|
|
22774
|
+
// useTitle: () => {
|
|
22775
|
+
// useTitle();
|
|
22776
|
+
// },
|
|
22798
22777
|
setTagsViewNameI18n(route) {
|
|
22799
22778
|
return setTagsViewNameI18n(route);
|
|
22800
22779
|
},
|
|
@@ -22812,10 +22791,10 @@
|
|
|
22812
22791
|
},
|
|
22813
22792
|
handleEmpty: (list) => {
|
|
22814
22793
|
return handleEmpty(list);
|
|
22815
|
-
},
|
|
22816
|
-
handleOpenLink: (val) => {
|
|
22817
|
-
handleOpenLink(val);
|
|
22818
22794
|
}
|
|
22795
|
+
// handleOpenLink: (val: RouteItem) => {
|
|
22796
|
+
// handleOpenLink(val);
|
|
22797
|
+
// },
|
|
22819
22798
|
};
|
|
22820
22799
|
|
|
22821
22800
|
const _hoisted_1$i = { class: "layout-breadcrumb-seting" };
|
|
@@ -26381,6 +26360,7 @@
|
|
|
26381
26360
|
setup(__props) {
|
|
26382
26361
|
const SubItem = vue.defineAsyncComponent(() => Promise.resolve().then(function () { return subItem; }));
|
|
26383
26362
|
const props = __props;
|
|
26363
|
+
const events = useFormEvents();
|
|
26384
26364
|
const storesThemeConfig = useThemeConfig();
|
|
26385
26365
|
const { themeConfig } = pinia$1.storeToRefs(storesThemeConfig);
|
|
26386
26366
|
const route = vueRouter.useRoute();
|
|
@@ -26402,7 +26382,10 @@
|
|
|
26402
26382
|
else return path;
|
|
26403
26383
|
};
|
|
26404
26384
|
const onALinkClick = (val) => {
|
|
26405
|
-
|
|
26385
|
+
events.onFormDialogOpen({
|
|
26386
|
+
name: "setFOpenLink",
|
|
26387
|
+
data: val
|
|
26388
|
+
});
|
|
26406
26389
|
};
|
|
26407
26390
|
vue.onMounted(() => {
|
|
26408
26391
|
state.defaultActive = setParentHighlight(route);
|
|
@@ -26900,11 +26883,15 @@
|
|
|
26900
26883
|
},
|
|
26901
26884
|
setup(__props) {
|
|
26902
26885
|
const props = __props;
|
|
26886
|
+
const events = useFormEvents();
|
|
26903
26887
|
const chils = vue.computed(() => {
|
|
26904
26888
|
return props.chil;
|
|
26905
26889
|
});
|
|
26906
26890
|
const onALinkClick = (val) => {
|
|
26907
|
-
|
|
26891
|
+
events.onFormDialogOpen({
|
|
26892
|
+
name: "setFOpenLink",
|
|
26893
|
+
data: val
|
|
26894
|
+
});
|
|
26908
26895
|
};
|
|
26909
26896
|
return (_ctx, _cache) => {
|
|
26910
26897
|
const _component_SvgIcon = vue.resolveComponent("SvgIcon");
|
|
@@ -27529,7 +27516,9 @@
|
|
|
27529
27516
|
Local.set("themeConfig", themeConfig.value);
|
|
27530
27517
|
currentCountryCode.value = getCountryCode(lang);
|
|
27531
27518
|
locale.value = lang;
|
|
27532
|
-
|
|
27519
|
+
events.onFormDialogOpen({
|
|
27520
|
+
name: "setFBrowserTitle"
|
|
27521
|
+
});
|
|
27533
27522
|
initI18nOrSize("globalI18n", "disabledI18n");
|
|
27534
27523
|
refreshCurrentTabpage();
|
|
27535
27524
|
if (lang == "en") window.$changeLang("en");
|
|
@@ -28129,8 +28118,12 @@
|
|
|
28129
28118
|
else state.defaultActive = path;
|
|
28130
28119
|
}
|
|
28131
28120
|
};
|
|
28121
|
+
const events = useFormEvents();
|
|
28132
28122
|
const onALinkClick = (val) => {
|
|
28133
|
-
|
|
28123
|
+
events.onFormDialogOpen({
|
|
28124
|
+
name: "setFOpenLink",
|
|
28125
|
+
data: val
|
|
28126
|
+
});
|
|
28134
28127
|
};
|
|
28135
28128
|
vue.onBeforeMount(() => {
|
|
28136
28129
|
setCurrentRouterHighlight(route);
|