base6-ui 1.1.14 → 1.1.15
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/dist/components/BaseConfigProvider/constants.d.ts +3 -0
- package/dist/components/BaseConfigProvider/index.d.ts +2 -0
- package/dist/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/dist/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/dist/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/dist/components/BaseConfigProvider/type.d.ts +16 -0
- package/dist/components/BaseLayout/Default/index.vue.d.ts +7 -5
- package/dist/components/BaseLayout/Default/type.d.ts +6 -8
- package/dist/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/dist/components/BaseProgress/cssVar.d.ts +8 -0
- package/dist/components/BaseProgress/index.d.ts +128 -3
- package/dist/components/BaseRadio/cssVar.d.ts +5 -0
- package/dist/components/BaseSwitch/cssVar.d.ts +7 -0
- package/dist/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/dist/components/BaseSystemActions/index.d.ts +2 -0
- package/dist/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/dist/components/BaseSystemActions/type.d.ts +9 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/components/progress/dark.d.ts +2 -3
- package/dist/config/themes/components/progress/light.d.ts +2 -3
- package/dist/config/themes/components/radio/dark.d.ts +2 -3
- package/dist/config/themes/components/radio/light.d.ts +2 -3
- package/dist/config/themes/components/switch/common.d.ts +2 -3
- package/dist/config/themes/components/switch/dark.d.ts +2 -3
- package/dist/config/themes/components/switch/light.d.ts +2 -3
- package/dist/enum/locale.d.ts +4 -0
- package/dist/hooks/useLocale.d.ts +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/lang/en-us.d.ts +26 -0
- package/dist/locale/lang/zh-cn.d.ts +3 -0
- package/dist/types/themes/components.d.ts +5 -0
- package/dist/utils/typescript.d.ts +61 -0
- package/es/components/BaseConfigProvider/constants.d.ts +3 -0
- package/es/components/BaseConfigProvider/constants.mjs +4 -0
- package/es/components/BaseConfigProvider/index.d.ts +2 -0
- package/es/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/es/components/BaseConfigProvider/index.vue.mjs +54 -0
- package/es/components/BaseConfigProvider/index.vue2.mjs +4 -0
- package/es/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/es/components/BaseConfigProvider/locale-base.mjs +9 -0
- package/es/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/es/components/BaseConfigProvider/locale-naive.mjs +12 -0
- package/es/components/BaseConfigProvider/type.d.ts +16 -0
- package/es/components/BaseLayout/Default/index.vue.d.ts +7 -5
- package/es/components/BaseLayout/Default/index.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/index.vue2.mjs +42 -38
- package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +26 -19
- package/es/components/BaseLayout/Default/type.d.ts +6 -8
- package/es/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +29 -24
- package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
- package/es/components/BaseProductIntroduction/index.vue2.mjs +86 -80
- package/es/components/BaseProgress/cssVar.d.ts +8 -0
- package/es/components/BaseProgress/cssVar.mjs +14 -0
- package/es/components/BaseProgress/index.d.ts +128 -3
- package/es/components/BaseProgress/index.mjs +22 -34
- package/es/components/BaseRadio/cssVar.d.ts +5 -0
- package/es/components/BaseRadio/cssVar.mjs +8 -0
- package/es/components/BaseRadio/index.vue.mjs +2 -2
- package/es/components/BaseRadio/index.vue2.mjs +16 -26
- package/es/components/BaseSwitch/cssVar.d.ts +7 -0
- package/es/components/BaseSwitch/cssVar.mjs +10 -0
- package/es/components/BaseSwitch/index.vue.mjs +2 -2
- package/es/components/BaseSwitch/index.vue2.mjs +17 -29
- package/es/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/es/components/BaseSystemActions/cssVar.mjs +63 -0
- package/es/components/BaseSystemActions/index.d.ts +2 -0
- package/es/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/es/components/BaseSystemActions/index.vue.mjs +7 -0
- package/es/components/BaseSystemActions/index.vue2.mjs +102 -0
- package/es/components/BaseSystemActions/type.d.ts +9 -0
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/components/progress/dark.d.ts +2 -3
- package/es/config/themes/components/progress/light.d.ts +2 -3
- package/es/config/themes/components/radio/dark.d.ts +2 -3
- package/es/config/themes/components/radio/light.d.ts +2 -3
- package/es/config/themes/components/switch/common.d.ts +2 -3
- package/es/config/themes/components/switch/dark.d.ts +2 -3
- package/es/config/themes/components/switch/light.d.ts +2 -3
- package/es/enum/locale.d.ts +4 -0
- package/es/hooks/useLocale.d.ts +17 -0
- package/es/hooks/useLocale.mjs +24 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +62 -54
- package/es/locale/index.d.ts +3 -0
- package/es/locale/lang/en-us.d.ts +26 -0
- package/es/locale/lang/en-us.mjs +27 -0
- package/es/locale/lang/zh-cn.d.ts +3 -0
- package/es/locale/lang/zh-cn.mjs +27 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs +12 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.mjs +44 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.mjs +21 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.mjs +13 -0
- package/es/types/themes/components.d.ts +5 -0
- package/es/utils/typescript.d.ts +61 -0
- package/lib/components/BaseConfigProvider/constants.d.ts +3 -0
- package/lib/components/BaseConfigProvider/constants.js +1 -0
- package/lib/components/BaseConfigProvider/index.d.ts +2 -0
- package/lib/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/lib/components/BaseConfigProvider/index.vue.js +1 -0
- package/lib/components/BaseConfigProvider/index.vue2.js +1 -0
- package/lib/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/lib/components/BaseConfigProvider/locale-base.js +1 -0
- package/lib/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/lib/components/BaseConfigProvider/locale-naive.js +1 -0
- package/lib/components/BaseConfigProvider/type.d.ts +16 -0
- package/lib/components/BaseLayout/Default/index.vue.d.ts +7 -5
- package/lib/components/BaseLayout/Default/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +6 -8
- package/lib/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
- package/lib/components/BaseProgress/cssVar.d.ts +8 -0
- package/lib/components/BaseProgress/cssVar.js +1 -0
- package/lib/components/BaseProgress/index.d.ts +128 -3
- package/lib/components/BaseProgress/index.js +1 -1
- package/lib/components/BaseRadio/cssVar.d.ts +5 -0
- package/lib/components/BaseRadio/cssVar.js +1 -0
- package/lib/components/BaseRadio/index.vue.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSwitch/cssVar.d.ts +7 -0
- package/lib/components/BaseSwitch/cssVar.js +1 -0
- package/lib/components/BaseSwitch/index.vue.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/lib/components/BaseSystemActions/cssVar.js +1 -0
- package/lib/components/BaseSystemActions/index.d.ts +2 -0
- package/lib/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/lib/components/BaseSystemActions/index.vue.js +1 -0
- package/lib/components/BaseSystemActions/index.vue2.js +1 -0
- package/lib/components/BaseSystemActions/type.d.ts +9 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/components/progress/dark.d.ts +2 -3
- package/lib/config/themes/components/progress/light.d.ts +2 -3
- package/lib/config/themes/components/radio/dark.d.ts +2 -3
- package/lib/config/themes/components/radio/light.d.ts +2 -3
- package/lib/config/themes/components/switch/common.d.ts +2 -3
- package/lib/config/themes/components/switch/dark.d.ts +2 -3
- package/lib/config/themes/components/switch/light.d.ts +2 -3
- package/lib/enum/locale.d.ts +4 -0
- package/lib/hooks/useLocale.d.ts +17 -0
- package/lib/hooks/useLocale.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/lang/en-us.d.ts +26 -0
- package/lib/locale/lang/en-us.js +1 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/locale/lang/zh-cn.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.js +1 -0
- package/lib/types/themes/components.d.ts +5 -0
- package/lib/utils/typescript.d.ts +61 -0
- package/package.json +1 -1
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +0 -7
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +0 -85
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +0 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +0 -1
package/es/index.mjs
CHANGED
|
@@ -1,67 +1,75 @@
|
|
|
1
1
|
import "./_virtual/virtual_svg-icons-register.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as f } from "./components/AppProvider/index.vue.mjs";
|
|
5
5
|
import { default as d } from "./components/BaseButton/index.vue.mjs";
|
|
6
6
|
import { default as u } from "./components/BaseCascader/index.vue.mjs";
|
|
7
|
-
import { default as l } from "./components/
|
|
8
|
-
import { default as i } from "./components/
|
|
9
|
-
import { default as n } from "./components/
|
|
10
|
-
import { default as g } from "./components/
|
|
11
|
-
import { default as T } from "./components/BaseLayout/
|
|
12
|
-
import { default as v } from "./components/BaseLayout/
|
|
7
|
+
import { default as l } from "./components/BaseConfigProvider/index.vue.mjs";
|
|
8
|
+
import { default as i } from "./components/BaseDataTable/index.vue.mjs";
|
|
9
|
+
import { default as n } from "./components/BaseDialog/index.vue.mjs";
|
|
10
|
+
import { default as g } from "./components/BaseInputNumber/index.vue.mjs";
|
|
11
|
+
import { default as T } from "./components/BaseLayout/index.vue.mjs";
|
|
12
|
+
import { default as v } from "./components/BaseLayout/ASide/index.vue.mjs";
|
|
13
|
+
import { default as C } from "./components/BaseLayout/AsideMenu/index.vue.mjs";
|
|
13
14
|
import { default as L } from "./components/BaseLayout/Header/index.vue.mjs";
|
|
14
|
-
import { default as
|
|
15
|
+
import { default as S } from "./components/BaseLayout/Default/index.vue.mjs";
|
|
15
16
|
import { default as I } from "./components/BaseNavIcon/index.vue.mjs";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
17
|
+
import { default as M } from "./components/BaseRadio/index.vue.mjs";
|
|
18
|
+
import { default as H } from "./components/BaseProductIntroduction/index.vue.mjs";
|
|
19
|
+
import { default as j } from "./components/BaseProgress/index.mjs";
|
|
20
|
+
import { default as z } from "./components/BaseSelect/index.vue.mjs";
|
|
21
|
+
import { default as K } from "./components/BaseSlider/index.vue.mjs";
|
|
22
|
+
import { default as U } from "./components/BaseSwitch/index.vue.mjs";
|
|
23
|
+
import { default as E } from "./components/BaseSystemActions/index.vue.mjs";
|
|
24
|
+
import { configProviderInjectionKey as J } from "./config/themes/index.mjs";
|
|
25
|
+
import { useAnimationHook as V } from "./hooks/useAnimationHook.mjs";
|
|
26
|
+
import { default as X } from "./locale/lang/en-us.mjs";
|
|
27
|
+
import { default as Z } from "./locale/lang/zh-cn.mjs";
|
|
28
|
+
import { default as $ } from "./globalMethods/index.mjs";
|
|
29
|
+
import { default as ae } from "./config/themes/token/dark.mjs";
|
|
30
|
+
import { default as re } from "./config/themes/token/light.mjs";
|
|
31
|
+
import { default as fe } from "./config/themes/color/dark.mjs";
|
|
32
|
+
import { default as de } from "./config/themes/color/light.mjs";
|
|
33
|
+
import { default as ue } from "./globalMethods/modules/message.mjs";
|
|
34
|
+
import { default as le } from "./globalMethods/modules/confirmTip.mjs";
|
|
35
|
+
import { lightThemeOverrides as ie } from "./config/themes/light.mjs";
|
|
36
|
+
import { darkThemeOverrides as ne } from "./config/themes/dark.mjs";
|
|
37
|
+
import { ChartsThemeDark as ge } from "./config/themes/components/charts/dark.mjs";
|
|
38
|
+
import { ChartsThemeLight as Te } from "./config/themes/components/charts/light.mjs";
|
|
35
39
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
f as AppProvider,
|
|
41
|
+
C as BaseAsideMenu,
|
|
38
42
|
d as BaseButton,
|
|
39
43
|
u as BaseCascader,
|
|
40
|
-
l as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
n as
|
|
44
|
-
g as
|
|
45
|
-
T as
|
|
44
|
+
l as BaseConfigProvider,
|
|
45
|
+
i as BaseDataTable,
|
|
46
|
+
S as BaseDefaultLayout,
|
|
47
|
+
n as BaseDialog,
|
|
48
|
+
g as BaseInputNumber,
|
|
49
|
+
T as BaseLayout,
|
|
50
|
+
v as BaseLayoutAside,
|
|
46
51
|
L as BaseLayoutHeader,
|
|
47
52
|
I as BaseNavIcon,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
H as BaseProductIntroduction,
|
|
54
|
+
j as BaseProgress,
|
|
55
|
+
M as BaseRadio,
|
|
56
|
+
z as BaseSelect,
|
|
57
|
+
K as BaseSlider,
|
|
58
|
+
U as BaseSwitch,
|
|
59
|
+
E as BaseSystemActions,
|
|
60
|
+
ge as ChartsThemeDark,
|
|
61
|
+
Te as ChartsThemeLight,
|
|
62
|
+
J as configProviderInjectionKey,
|
|
63
|
+
fe as darkBase,
|
|
64
|
+
ne as darkThemeOverrides,
|
|
65
|
+
ae as darkToken,
|
|
66
|
+
X as enUS,
|
|
67
|
+
de as lightBase,
|
|
68
|
+
ie as lightThemeOverrides,
|
|
69
|
+
re as lightToken,
|
|
70
|
+
$ as registerGlobalMethods,
|
|
71
|
+
V as useAnimationHook,
|
|
72
|
+
le as useConfirmTip,
|
|
73
|
+
ue as useMessage,
|
|
74
|
+
Z as zhCN
|
|
67
75
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const enUS: {
|
|
2
|
+
name: string;
|
|
3
|
+
base: {
|
|
4
|
+
systemActions: {
|
|
5
|
+
userCenter: string;
|
|
6
|
+
logout: string;
|
|
7
|
+
};
|
|
8
|
+
productIntroduction: {
|
|
9
|
+
allProducts: string;
|
|
10
|
+
BasePlatform: string;
|
|
11
|
+
BasePlatformDescription: string;
|
|
12
|
+
AdsPlatform: string;
|
|
13
|
+
AdsPlatformDescription: string;
|
|
14
|
+
StudioPlatform: string;
|
|
15
|
+
StudioPlatformDescription: string;
|
|
16
|
+
MultiModalPlatform: string;
|
|
17
|
+
MultiModalPlatformDescription: string;
|
|
18
|
+
BlinkPlatform: string;
|
|
19
|
+
BlinkPlatformDescription: string;
|
|
20
|
+
BcollectionPlatform: string;
|
|
21
|
+
BcollectionPlatformDescription: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type BaseLocale = typeof enUS;
|
|
26
|
+
export default enUS;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
name: "en-us",
|
|
3
|
+
base: {
|
|
4
|
+
systemActions: {
|
|
5
|
+
userCenter: "user center",
|
|
6
|
+
logout: "logout"
|
|
7
|
+
},
|
|
8
|
+
productIntroduction: {
|
|
9
|
+
allProducts: "all Products",
|
|
10
|
+
BasePlatform: "BASE 数据标注平台",
|
|
11
|
+
BasePlatformDescription: "专业标注服务,打造精准数据,驱动智能变革",
|
|
12
|
+
AdsPlatform: "自动驾驶标注平台 - BASE ADS",
|
|
13
|
+
AdsPlatformDescription: "自动驾驶标注平台支持点云、图像等连续的数据的标注与质检,提供可编排工作流与智能辅助工具,帮助团队高效构建自动驾驶训练数据集。",
|
|
14
|
+
StudioPlatform: "通用标注平台 - BASE Studio",
|
|
15
|
+
StudioPlatformDescription: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP",
|
|
16
|
+
MultiModalPlatform: "多模态标注平台 - BASE MultiModal",
|
|
17
|
+
MultiModalPlatformDescription: "多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集",
|
|
18
|
+
BlinkPlatform: "Blink 数据管理平台",
|
|
19
|
+
BlinkPlatformDescription: "集成数据资产的管理、交付、检索等全链路管理",
|
|
20
|
+
BcollectionPlatform: "Bcollection 数据采集平台",
|
|
21
|
+
BcollectionPlatformDescription: "全场景数据采集,全链路价值护航"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
o as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
name: "zh-cn",
|
|
3
|
+
base: {
|
|
4
|
+
systemActions: {
|
|
5
|
+
userCenter: "用户中心",
|
|
6
|
+
logout: "退出"
|
|
7
|
+
},
|
|
8
|
+
productIntroduction: {
|
|
9
|
+
allProducts: "全部产品",
|
|
10
|
+
BasePlatform: "BASE 数据标注平台",
|
|
11
|
+
BasePlatformDescription: "专业标注服务,打造精准数据,驱动智能变革",
|
|
12
|
+
AdsPlatform: "自动驾驶标注平台 - BASE ADS",
|
|
13
|
+
AdsPlatformDescription: "自动驾驶标注平台支持点云、图像等连续的数据的标注与质检,提供可编排工作流与智能辅助工具,帮助团队高效构建自动驾驶训练数据集。",
|
|
14
|
+
StudioPlatform: "通用标注平台 - BASE Studio",
|
|
15
|
+
StudioPlatformDescription: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP",
|
|
16
|
+
MultiModalPlatform: "多模态标注平台 - BASE MultiModal",
|
|
17
|
+
MultiModalPlatformDescription: "多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集",
|
|
18
|
+
BlinkPlatform: "Blink 数据管理平台",
|
|
19
|
+
BlinkPlatformDescription: "集成数据资产的管理、交付、检索等全链路管理",
|
|
20
|
+
BcollectionPlatform: "Bcollection 数据采集平台",
|
|
21
|
+
BcollectionPlatformDescription: "全场景数据采集,全链路价值护航"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
o as default
|
|
27
|
+
};
|
package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.mjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { isUnsafeProperty as s } from "../../_internal/isUnsafeProperty.mjs";
|
|
2
|
+
import { isDeepKey as o } from "../_internal/isDeepKey.mjs";
|
|
3
|
+
import { toKey as t } from "../_internal/toKey.mjs";
|
|
4
|
+
import { toPath as u } from "../util/toPath.mjs";
|
|
5
|
+
function m(e, r, i) {
|
|
6
|
+
if (e == null)
|
|
7
|
+
return i;
|
|
8
|
+
switch (typeof r) {
|
|
9
|
+
case "string": {
|
|
10
|
+
if (s(r))
|
|
11
|
+
return i;
|
|
12
|
+
const n = e[r];
|
|
13
|
+
return n === void 0 ? o(r) ? m(e, u(r), i) : i : n;
|
|
14
|
+
}
|
|
15
|
+
case "number":
|
|
16
|
+
case "symbol": {
|
|
17
|
+
typeof r == "number" && (r = t(r));
|
|
18
|
+
const n = e[r];
|
|
19
|
+
return n === void 0 ? i : n;
|
|
20
|
+
}
|
|
21
|
+
default: {
|
|
22
|
+
if (Array.isArray(r))
|
|
23
|
+
return y(e, r, i);
|
|
24
|
+
if (Object.is(r?.valueOf(), -0) ? r = "-0" : r = String(r), s(r))
|
|
25
|
+
return i;
|
|
26
|
+
const n = e[r];
|
|
27
|
+
return n === void 0 ? i : n;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function y(e, r, i) {
|
|
32
|
+
if (r.length === 0)
|
|
33
|
+
return i;
|
|
34
|
+
let n = e;
|
|
35
|
+
for (let f = 0; f < r.length; f++) {
|
|
36
|
+
if (n == null || s(r[f]))
|
|
37
|
+
return i;
|
|
38
|
+
n = n[r[f]];
|
|
39
|
+
}
|
|
40
|
+
return n === void 0 ? i : n;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
m as get
|
|
44
|
+
};
|
package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { toString as u } from "./toString.mjs";
|
|
2
|
+
import { toKey as e } from "../_internal/toKey.mjs";
|
|
3
|
+
function c(i) {
|
|
4
|
+
if (Array.isArray(i))
|
|
5
|
+
return i.map(e);
|
|
6
|
+
if (typeof i == "symbol")
|
|
7
|
+
return [i];
|
|
8
|
+
i = u(i);
|
|
9
|
+
const f = [], o = i.length;
|
|
10
|
+
if (o === 0)
|
|
11
|
+
return f;
|
|
12
|
+
let s = 0, t = "", l = "", n = !1;
|
|
13
|
+
for (i.charCodeAt(0) === 46 && (f.push(""), s++); s < o; ) {
|
|
14
|
+
const r = i[s];
|
|
15
|
+
l ? r === "\\" && s + 1 < o ? (s++, t += i[s]) : r === l ? l = "" : t += r : n ? r === '"' || r === "'" ? l = r : r === "]" ? (n = !1, f.push(t), t = "") : t += r : r === "[" ? (n = !0, t && (f.push(t), t = "")) : r === "." ? t && (f.push(t), t = "") : t += r, s++;
|
|
16
|
+
}
|
|
17
|
+
return t && f.push(t), f;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
c as toPath
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function n(r) {
|
|
2
|
+
if (r == null)
|
|
3
|
+
return "";
|
|
4
|
+
if (typeof r == "string")
|
|
5
|
+
return r;
|
|
6
|
+
if (Array.isArray(r))
|
|
7
|
+
return r.map(n).join(",");
|
|
8
|
+
const t = String(r);
|
|
9
|
+
return t === "0" && Object.is(Number(r), -0) ? "-0" : t;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
n as toString
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RadioProps, SwitchProps, ProgressProps } from 'naive-ui';
|
|
2
|
+
import { ExtendThemeRadio, ExtendThemeSwitch, ExtendProgress } from './extendThemes';
|
|
3
|
+
export type BaseRadioThemeOverrides = RadioProps['themeOverrides'] & ExtendThemeRadio;
|
|
4
|
+
export type BaseSwitchThemeOverrides = SwitchProps['themeOverrides'] & ExtendThemeSwitch;
|
|
5
|
+
export type BaseProgressThemeOverrides = ProgressProps['themeOverrides'] & ExtendProgress;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
2
|
+
type BrowserNativeObject = Date | FileList | File | Blob | RegExp;
|
|
3
|
+
/**
|
|
4
|
+
* Check whether it is tuple
|
|
5
|
+
*
|
|
6
|
+
* 检查是否为元组
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* IsTuple<[1, 2, 3]> => true
|
|
10
|
+
* IsTuple<Array[number]> => false
|
|
11
|
+
*/
|
|
12
|
+
type IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true;
|
|
13
|
+
/**
|
|
14
|
+
* Array method key
|
|
15
|
+
*
|
|
16
|
+
* 数组方法键
|
|
17
|
+
*/
|
|
18
|
+
type ArrayMethodKey = keyof any[];
|
|
19
|
+
/**
|
|
20
|
+
* Tuple index key
|
|
21
|
+
*
|
|
22
|
+
* 元组下标键
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* TupleKey<[1, 2, 3]> => '0' | '1' | '2'
|
|
26
|
+
*/
|
|
27
|
+
type TupleKey<T extends ReadonlyArray<any>> = Exclude<keyof T, ArrayMethodKey>;
|
|
28
|
+
/**
|
|
29
|
+
* Array index key
|
|
30
|
+
*
|
|
31
|
+
* 数组下标键
|
|
32
|
+
*/
|
|
33
|
+
type ArrayKey = number;
|
|
34
|
+
/**
|
|
35
|
+
* Helper type for recursively constructing paths through a type
|
|
36
|
+
*
|
|
37
|
+
* 用于通过一个类型递归构建路径的辅助类型
|
|
38
|
+
*/
|
|
39
|
+
type PathImpl<K extends string | number, V> = V extends Primitive | BrowserNativeObject ? `${K}` : `${K}` | `${K}.${Path<V>}`;
|
|
40
|
+
/**
|
|
41
|
+
* Type which collects all paths through a type
|
|
42
|
+
*
|
|
43
|
+
* 通过一个类型收集所有路径的类型
|
|
44
|
+
*
|
|
45
|
+
* @see {@link FieldPath}
|
|
46
|
+
*/
|
|
47
|
+
type Path<T> = T extends ReadonlyArray<infer V> ? IsTuple<T> extends true ? {
|
|
48
|
+
[K in TupleKey<T>]-?: PathImpl<Exclude<K, symbol>, T[K]>;
|
|
49
|
+
}[TupleKey<T>] : PathImpl<ArrayKey, V> : {
|
|
50
|
+
[K in keyof T]-?: PathImpl<Exclude<K, symbol>, T[K]>;
|
|
51
|
+
}[keyof T];
|
|
52
|
+
/**
|
|
53
|
+
* Type which collects all paths through a type
|
|
54
|
+
*
|
|
55
|
+
* 通过一个类型收集所有路径的类型
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* FieldPath<{ 1: number; a: number; b: string; c: { d: number; e: string }; f: [{ value: string }]; g: { value: string }[]; h: Date; i: FileList; j: File; k: Blob; l: RegExp }> => '1' | 'a' | 'b' | 'c' | 'f' | 'g' | 'c.d' | 'c.e' | 'f.0' | 'f.0.value' | 'g.number' | 'g.number.value' | 'h' | 'i' | 'j' | 'k' | 'l'
|
|
59
|
+
*/
|
|
60
|
+
export type FieldPath<T> = T extends object ? Path<T> : never;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Symbol();exports.BaseLocaleContextKey=e;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseConfigProviderProps } from './type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<BaseConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),i=require("naive-ui"),c=require("../AppProvider/index.vue.js"),l=require("./locale-naive.js"),u=require("./locale-base.js"),d=require("./constants.js"),p=t.defineComponent({__name:"index",props:{abstract:{type:Boolean},breakpoints:{},clsPrefix:{},inlineThemeDisabled:{type:Boolean},katex:{},namespace:{},preflightStyleDisabled:{type:Boolean},styleMountTarget:{},tag:{},lang:{},theme:{},themeOverrides:{}},setup(r){const a=r,n=t.computed(()=>l.naiveLocales[a.lang]),s=t.computed(()=>l.naiveDateLocales[a.lang]),o=t.computed(()=>u.baseLocales[a.lang]);return t.provide(d.BaseLocaleContextKey,o),(e,m)=>(t.openBlock(),t.createBlock(t.unref(i.NConfigProvider),{theme:e.theme,"theme-overrides":e.themeOverrides,abstract:e.abstract,breakpoints:e.breakpoints,"cls-prefix":e.clsPrefix,"inline-theme-disabled":e.inlineThemeDisabled,katex:e.katex,namespace:e.namespace,"preflight-style-disabled":e.preflightStyleDisabled,"style-mount-target":e.styleMountTarget,tag:e.tag,locale:n.value,"date-locale":s.value},{default:t.withCtx(()=>[t.createVNode(c.default,null,{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["theme","theme-overrides","abstract","breakpoints","cls-prefix","inline-theme-disabled","katex","namespace","preflight-style-disabled","style-mount-target","tag","locale","date-locale"]))}});exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../locale/lang/en-us.js"),t=require("../../locale/lang/zh-cn.js"),s={"zh-CN":t.default,"en-US":e.default};exports.baseLocales=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("naive-ui"),a={"zh-CN":e.zhCN,"en-US":e.enUS},n={"zh-CN":e.dateZhCN,"en-US":e.dateEnUS};exports.naiveDateLocales=n;exports.naiveLocales=a;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConfigProviderProps } from 'naive-ui';
|
|
2
|
+
import { LOCALE_LANG } from '../../enum/locale';
|
|
3
|
+
export type BaseConfigProviderProps = {
|
|
4
|
+
abstract: boolean;
|
|
5
|
+
breakpoints?: ConfigProviderProps['breakpoints'];
|
|
6
|
+
clsPrefix?: ConfigProviderProps['clsPrefix'];
|
|
7
|
+
inlineThemeDisabled?: ConfigProviderProps['inlineThemeDisabled'];
|
|
8
|
+
katex?: ConfigProviderProps['katex'];
|
|
9
|
+
namespace?: ConfigProviderProps['namespace'];
|
|
10
|
+
preflightStyleDisabled?: ConfigProviderProps['preflightStyleDisabled'];
|
|
11
|
+
styleMountTarget?: ConfigProviderProps['styleMountTarget'];
|
|
12
|
+
tag?: ConfigProviderProps['tag'];
|
|
13
|
+
lang?: LOCALE_LANG;
|
|
14
|
+
theme?: ConfigProviderProps['theme'];
|
|
15
|
+
themeOverrides?: ConfigProviderProps['themeOverrides'];
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MenuOption } from 'naive-ui';
|
|
2
2
|
import { BaseDefaultLayoutProps, BaseDefaultLayoutMode } from './type';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -13,15 +13,17 @@ declare function __VLS_template(): {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
toggleLogo: (...args: any[]) => void;
|
|
17
16
|
toggleSystemTheme: (...args: any[]) => void;
|
|
17
|
+
toggleSystemLang: (...args: any[]) => void;
|
|
18
18
|
toggleUserItem: (...args: any[]) => void;
|
|
19
|
+
toggleLogo: (...args: any[]) => void;
|
|
19
20
|
toggleMenuItem: (...args: any[]) => void;
|
|
20
21
|
toggleMixMenuItem: (...args: any[]) => void;
|
|
21
22
|
}, string, import('vue').PublicProps, Readonly<BaseDefaultLayoutProps> & Readonly<{
|
|
22
|
-
onToggleLogo?: ((...args: any[]) => any) | undefined;
|
|
23
23
|
onToggleSystemTheme?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onToggleSystemLang?: ((...args: any[]) => any) | undefined;
|
|
24
25
|
onToggleUserItem?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onToggleLogo?: ((...args: any[]) => any) | undefined;
|
|
25
27
|
onToggleMenuItem?: ((...args: any[]) => any) | undefined;
|
|
26
28
|
onToggleMixMenuItem?: ((...args: any[]) => any) | undefined;
|
|
27
29
|
}>, {
|
|
@@ -51,14 +53,14 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutPr
|
|
|
51
53
|
footerVisible: boolean;
|
|
52
54
|
fixedFooter: boolean;
|
|
53
55
|
footerIsFullWidth: boolean;
|
|
56
|
+
userActionOption: (MenuOption | import('naive-ui').MenuGroupOption | import('naive-ui').MenuDividerOption | import('naive-ui/es/menu/src/interface').MenuRenderOption)[];
|
|
57
|
+
userInfo: import('../../BaseSystemActions/type').UserInfoType;
|
|
54
58
|
sliderMixWidth: number;
|
|
55
59
|
sliderMixCollapseWidth: number;
|
|
56
60
|
sliderMixChildMenuWidth: number;
|
|
57
61
|
mixSliderFixed: boolean;
|
|
58
62
|
reverseHorizontalMix: boolean;
|
|
59
63
|
menuList: import('./type').BaseMenuOptionType[];
|
|
60
|
-
userActionOption: Array<DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
|
61
|
-
userInfo: import('./type').UserInfoType;
|
|
62
64
|
curRoute: any;
|
|
63
65
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
64
66
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-8da8ff01"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),L=require("../index.vue.js"),H=require("./layoutHeader/index.vue.js"),z=require("./layoutSlider/index.vue.js"),g=require("./options.js"),q=require("../../../hooks/useNaiveConfigProvideContext.js"),_=require("../../../hooks/useMenu.js"),F=t.defineComponent({__name:"index",props:t.mergeDefaults({scrollMode:{},scrollElId:{},scrollWrapperClass:{},baseClass:{},fixedTop:{type:Boolean},commonClass:{},layoutZIndex:{},headerVisible:{type:Boolean},headerClass:{},headerHeight:{},tabVisible:{type:Boolean},tabClass:{},tabHeight:{},sliderVisible:{type:Boolean},sliderClass:{},sliderCollapse:{type:Boolean},sliderWidth:{},sliderCollapseWidth:{},contentClass:{},fullContent:{type:Boolean},footerVisible:{type:Boolean},footerClass:{},fixedFooter:{type:Boolean},footerIsFullWidth:{type:Boolean},footerHeight:{},mode:{},curRoute:{},sliderMixWidth:{},sliderMixCollapseWidth:{},sliderMixChildMenuWidth:{},mixSliderFixed:{type:Boolean},menuList:{},reverseHorizontalMix:{type:Boolean},userActionOption:{},userInfo:{}},{...g.DefaultLayoutPropsInDefault,menuList:()=>[],userActionOption:()=>[],userInfo:()=>({name:""})}),emits:["toggleLogo","toggleMenuItem","toggleMixMenuItem","toggleSystemLang","toggleSystemTheme","toggleUserItem"],setup(p,{emit:f}){const m=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./layoutMenu/index.vue.js"))),o=p,i=f,v=q.default(),{childLevelMenus:u}=_.setupMixMenuContext(o),M=t.computed(()=>{const{name:e="light"}=v?.mergedThemeRef.value||{};return e!=="light"}),C=t.computed(()=>{const e="vertical";return o.mode.includes(e)?e:"horizontal"}),b=t.computed(()=>o.mode!=="horizontal"),r=t.computed(()=>o.mode==="horizontal-mix"),d=t.computed(()=>o.mode==="vertical-mix"),y=()=>{const{reverseHorizontalMix:e}=o,{sliderCollapseWidth:l,sliderMixCollapseWidth:n,sliderMixChildMenuWidth:a}=o;if(r.value&&e)return l;let s=d.value||r.value?n:l;return d.value&&o.mixSliderFixed&&u.value.length&&(s+=a),s},h=t.computed(()=>y());function x(){const{reverseHorizontalMix:e}=o,{sliderWidth:l,sliderMixChildMenuWidth:n,sliderMixWidth:a}=o;if(r.value&&e)return l;let s=d.value||r.value?a:l;return d.value&&o.mixSliderFixed&&u.value.length&&(s+=n),s}const c=t.computed(()=>x()),I=()=>{i("toggleLogo")},W=(e,l)=>{i("toggleMenuItem",e,l)},S=(e,l)=>{i("toggleMixMenuItem",e,l)},B=e=>{i("toggleSystemTheme",e)},w=()=>{i("toggleSystemLang")},V=(e,l)=>{i("toggleUserItem",e,l)};return t.provide(g.defaultLayoutProviderInjectKey,{layoutConfig:o,isDarkMode:M,userActionOption:o.userActionOption,userInfo:o.userInfo,_sliderCollapseWidth:h,_sliderWidth:c,toggleLogo:I,toggleMenuItem:W,toggleMixMenuItem:S,toggleSystemLang:w,toggleSystemTheme:B,toggleUserItem:V}),(e,l)=>(t.openBlock(),t.createBlock(L.default,{mode:C.value,"scroll-mode":e.scrollMode,"scroll-el-id":e.scrollElId,"fixed-top":e.fixedTop,"header-visible":e.headerVisible,"header-height":e.headerHeight,"tab-visible":e.tabVisible,"tab-height":e.tabHeight,"slider-visible":b.value,"slider-class":e.sliderClass,"slider-collapse":e.sliderCollapse,"slider-width":c.value,"slider-collapse-width":h.value,"footer-visible":e.footerVisible,"fixed-footer":e.fixedFooter,"footer-is-full-width":e.footerIsFullWidth,"footer-height":e.footerHeight},{header:t.withCtx(()=>[t.renderSlot(e.$slots,"header",{},()=>[t.createVNode(H.default)],!0)]),slider:t.withCtx(()=>[t.renderSlot(e.$slots,"slider",{},()=>[t.createVNode(z.default)],!0)]),footer:t.withCtx(()=>[t.renderSlot(e.$slots,"footer",{},void 0,!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0),t.createVNode(t.unref(m))]),_:3},8,["mode","scroll-mode","scroll-el-id","fixed-top","header-visible","header-height","tab-visible","tab-height","slider-visible","slider-class","slider-collapse","slider-width","slider-collapse-width","footer-visible","fixed-footer","footer-is-full-width","footer-height"]))}});exports.default=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../Header/index.vue.js"),a=require("./title.vue.js"),c=require("../constants.js"),d=require("../../../BaseSystemActions/index.vue.js"),f=require("../hooks/useBaseLayoutContext.js"),g=["id"],m=e.defineComponent({name:"GlobalHeader",__name:"index",setup(_){const{layoutConfig:t,userActionOption:o,userInfo:n,toggleSystemTheme:r,toggleSystemLang:u,toggleUserItem:l}=f.default(),s=e.computed(()=>!(t.mode.indexOf("vertical")>-1));return(h,p)=>(e.openBlock(),e.createBlock(i.default,null,{headerTitle:e.withCtx(()=>[s.value?(e.openBlock(),e.createBlock(a.default,{key:0})):e.createCommentVNode("",!0)]),headerActions:e.withCtx(()=>[e.createVNode(d.default,{mode:"horizontal",userActionOption:e.unref(o),userInfo:e.unref(n),onToggleSystemTheme:e.unref(r),onToggleSystemLang:e.unref(u),onToggleUserItem:e.unref(l)},null,8,["userActionOption","userInfo","onToggleSystemTheme","onToggleSystemLang","onToggleUserItem"])]),default:e.withCtx(()=>[e.createElementVNode("div",{id:e.unref(c.LAYOUT_HEADER_MENU_ID),class:"h-full flex-y-center flex-1-hidden pl-[16px]"},null,8,g)]),_:1}))}});exports.default=m;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LayoutProps, LayoutMode } from '../type';
|
|
2
|
-
import { DropdownOption,
|
|
2
|
+
import { DropdownOption, MenuOption } from 'naive-ui';
|
|
3
3
|
import { VNode, ComputedRef } from 'vue';
|
|
4
|
+
import { BaseSystemActionsProps } from '../../BaseSystemActions';
|
|
4
5
|
export type BaseDefaultLayoutMode = LayoutMode | 'horizontal-mix' | 'vertical-mix';
|
|
5
6
|
export type BaseDefaultLayoutProps = Omit<LayoutProps, 'mode'> & {
|
|
6
7
|
mode?: BaseDefaultLayoutMode;
|
|
@@ -11,8 +12,8 @@ export type BaseDefaultLayoutProps = Omit<LayoutProps, 'mode'> & {
|
|
|
11
12
|
mixSliderFixed?: boolean;
|
|
12
13
|
menuList: BaseMenuOptionType[];
|
|
13
14
|
reverseHorizontalMix?: boolean;
|
|
14
|
-
userActionOption?:
|
|
15
|
-
userInfo?:
|
|
15
|
+
userActionOption?: BaseSystemActionsProps['userActionOption'];
|
|
16
|
+
userInfo?: BaseSystemActionsProps['userInfo'];
|
|
16
17
|
};
|
|
17
18
|
export type BaseMenuOptionType = {
|
|
18
19
|
key: string;
|
|
@@ -25,13 +26,10 @@ export type BaseMenuOptionType = {
|
|
|
25
26
|
activeIcon?: () => VNode;
|
|
26
27
|
children?: BaseMenuOptionType[];
|
|
27
28
|
};
|
|
28
|
-
export type UserInfoType = {
|
|
29
|
-
name: string;
|
|
30
|
-
};
|
|
31
29
|
export type BaseLayoutProviderType = {
|
|
32
30
|
layoutConfig: Required<BaseDefaultLayoutProps>;
|
|
33
|
-
userInfo:
|
|
34
|
-
userActionOption?:
|
|
31
|
+
userInfo: BaseSystemActionsProps['userInfo'];
|
|
32
|
+
userActionOption?: BaseSystemActionsProps['userActionOption'];
|
|
35
33
|
isDarkMode: ComputedRef<boolean>;
|
|
36
34
|
toggleLogo: () => void;
|
|
37
35
|
toggleMenuItem: (key: string, item: MenuOption) => void;
|