base6-ui 2.0.28 → 2.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.d.ts +2 -0
- package/dist/_constant/base.d.ts +3 -0
- package/dist/_hooks/boden-use-theme.d.ts +3 -0
- package/dist/_hooks/index.d.ts +1 -0
- package/dist/_internal/icons/ads.d.ts +2 -0
- package/dist/_internal/icons/arrow-right.d.ts +2 -0
- package/dist/_internal/icons/blink.d.ts +2 -0
- package/dist/_internal/icons/forge.d.ts +2 -0
- package/dist/_internal/icons/index.d.ts +7 -0
- package/dist/_internal/icons/omni.d.ts +2 -0
- package/dist/_internal/icons/robo.d.ts +2 -0
- package/dist/_internal/icons/studio.d.ts +2 -0
- package/dist/_mixins/use-theme.d.ts +3 -0
- package/dist/_utils/cssr.d.ts +4 -0
- package/dist/components/global-header/interface.d.ts +1 -1
- package/dist/components/global-header/title.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/platform-header-navigation/index.d.ts +3 -0
- package/dist/components/platform-header-navigation/src/constant.d.ts +21 -0
- package/dist/components/platform-header-navigation/src/interface.d.ts +27 -0
- package/dist/components/platform-header-navigation/src/platform-header-navigation.d.ts +151 -0
- package/dist/components/platform-header-navigation/src/styles/index.cssr.d.ts +2 -0
- package/dist/components/platform-header-navigation/src/useCssVars.d.ts +12 -0
- package/dist/components/platform-navigation/index.d.ts +1 -1
- package/dist/components/platform-navigation/index.vue.d.ts +2 -1
- package/dist/components/platform-navigation/interface.d.ts +1 -16
- package/dist/config/themes/token/dark.d.ts +1 -0
- package/dist/config/themes/token/light.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.umd.js +14 -3
- package/dist/locale/http/en-us.d.ts +2 -0
- package/dist/locale/lang/en-us.d.ts +2 -2
- package/dist/main.d.ts +0 -0
- package/es/App.vue.d.ts +2 -0
- package/es/_constant/base.d.ts +3 -0
- package/es/_constant/base.mjs +4 -0
- package/es/_hooks/boden-use-theme.d.ts +3 -0
- package/es/_hooks/boden-use-theme.mjs +13 -0
- package/es/_hooks/index.d.ts +1 -0
- package/es/_internal/icons/ads.d.ts +2 -0
- package/es/_internal/icons/ads.mjs +137 -0
- package/es/_internal/icons/arrow-right.d.ts +2 -0
- package/es/_internal/icons/arrow-right.mjs +28 -0
- package/es/_internal/icons/blink.d.ts +2 -0
- package/es/_internal/icons/blink.mjs +127 -0
- package/es/_internal/icons/forge.d.ts +2 -0
- package/es/_internal/icons/forge.mjs +125 -0
- package/es/_internal/icons/index.d.ts +7 -0
- package/es/_internal/icons/omni.d.ts +2 -0
- package/es/_internal/icons/omni.mjs +143 -0
- package/es/_internal/icons/robo.d.ts +2 -0
- package/es/_internal/icons/robo.mjs +135 -0
- package/es/_internal/icons/studio.d.ts +2 -0
- package/es/_internal/icons/studio.mjs +144 -0
- package/es/_mixins/use-theme.d.ts +3 -0
- package/es/_mixins/use-theme.mjs +8 -0
- package/es/_utils/cssr.d.ts +4 -0
- package/es/_utils/cssr.mjs +17 -0
- package/es/components/global-header/interface.d.ts +1 -1
- package/es/components/global-header/title.vue.d.ts +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/platform-header-navigation/index.d.ts +3 -0
- package/es/components/platform-header-navigation/src/constant.d.ts +21 -0
- package/es/components/platform-header-navigation/src/constant.mjs +6 -0
- package/es/components/platform-header-navigation/src/interface.d.ts +27 -0
- package/es/components/platform-header-navigation/src/interface.mjs +18 -0
- package/es/components/platform-header-navigation/src/platform-header-navigation.d.ts +151 -0
- package/es/components/platform-header-navigation/src/platform-header-navigation.mjs +196 -0
- package/es/components/platform-header-navigation/src/styles/index.cssr.d.ts +2 -0
- package/es/components/platform-header-navigation/src/styles/index.cssr.mjs +81 -0
- package/es/components/platform-header-navigation/src/useCssVars.d.ts +12 -0
- package/es/components/platform-header-navigation/src/useCssVars.mjs +71 -0
- package/es/components/platform-navigation/index.d.ts +1 -1
- package/es/components/platform-navigation/index.vue.d.ts +2 -1
- package/es/components/platform-navigation/index.vue.mjs +1 -1
- package/es/components/platform-navigation/index.vue2.mjs +160 -106
- package/es/components/platform-navigation/interface.d.ts +1 -16
- package/es/config/themes/components/card/dark.mjs +1 -1
- package/es/config/themes/components/dialog/dark.mjs +1 -1
- package/es/config/themes/token/dark.d.ts +1 -0
- package/es/config/themes/token/dark.mjs +1 -0
- package/es/config/themes/token/light.d.ts +1 -0
- package/es/config/themes/token/light.mjs +2 -1
- package/es/index.css +1 -1
- package/es/index.mjs +92 -87
- package/es/locale/http/en-us.d.ts +2 -0
- package/es/locale/http/en-us.mjs +2 -0
- package/es/locale/http/zh-cn.mjs +2 -0
- package/es/locale/lang/en-us.d.ts +2 -2
- package/es/locale/lang/en-us.mjs +2 -2
- package/es/locale/lang/zh-cn.mjs +2 -2
- package/es/main.d.ts +0 -0
- package/es/node_modules/.pnpm/@css-render_plugin-bem@0.15.14_css-render@0.15.14/node_modules/@css-render/plugin-bem/esm/index.mjs +81 -0
- package/es/node_modules/.pnpm/@emotion_hash@0.8.0/node_modules/@emotion/hash/dist/hash.browser.esm.mjs +22 -0
- package/es/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/CssRender.mjs +15 -0
- package/es/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/c.mjs +30 -0
- package/es/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/mount.mjs +39 -0
- package/es/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/parse.mjs +59 -0
- package/es/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/render.mjs +98 -0
- package/es/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/utils.mjs +22 -0
- package/lib/App.vue.d.ts +2 -0
- package/lib/_constant/base.d.ts +3 -0
- package/lib/_constant/base.js +1 -0
- package/lib/_hooks/boden-use-theme.d.ts +3 -0
- package/lib/_hooks/boden-use-theme.js +1 -0
- package/lib/_hooks/index.d.ts +1 -0
- package/lib/_internal/icons/ads.d.ts +2 -0
- package/lib/_internal/icons/ads.js +1 -0
- package/lib/_internal/icons/arrow-right.d.ts +2 -0
- package/lib/_internal/icons/arrow-right.js +1 -0
- package/lib/_internal/icons/blink.d.ts +2 -0
- package/lib/_internal/icons/blink.js +1 -0
- package/lib/_internal/icons/forge.d.ts +2 -0
- package/lib/_internal/icons/forge.js +1 -0
- package/lib/_internal/icons/index.d.ts +7 -0
- package/lib/_internal/icons/omni.d.ts +2 -0
- package/lib/_internal/icons/omni.js +1 -0
- package/lib/_internal/icons/robo.d.ts +2 -0
- package/lib/_internal/icons/robo.js +1 -0
- package/lib/_internal/icons/studio.d.ts +2 -0
- package/lib/_internal/icons/studio.js +1 -0
- package/lib/_mixins/use-theme.d.ts +3 -0
- package/lib/_mixins/use-theme.js +1 -0
- package/lib/_utils/cssr.d.ts +4 -0
- package/lib/_utils/cssr.js +1 -0
- package/lib/components/global-header/interface.d.ts +1 -1
- package/lib/components/global-header/title.vue.d.ts +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/platform-header-navigation/index.d.ts +3 -0
- package/lib/components/platform-header-navigation/src/constant.d.ts +21 -0
- package/lib/components/platform-header-navigation/src/constant.js +1 -0
- package/lib/components/platform-header-navigation/src/interface.d.ts +27 -0
- package/lib/components/platform-header-navigation/src/interface.js +1 -0
- package/lib/components/platform-header-navigation/src/platform-header-navigation.d.ts +151 -0
- package/lib/components/platform-header-navigation/src/platform-header-navigation.js +1 -0
- package/lib/components/platform-header-navigation/src/styles/index.cssr.d.ts +2 -0
- package/lib/components/platform-header-navigation/src/styles/index.cssr.js +1 -0
- package/lib/components/platform-header-navigation/src/useCssVars.d.ts +12 -0
- package/lib/components/platform-header-navigation/src/useCssVars.js +1 -0
- package/lib/components/platform-navigation/index.d.ts +1 -1
- package/lib/components/platform-navigation/index.vue.d.ts +2 -1
- package/lib/components/platform-navigation/index.vue.js +1 -1
- package/lib/components/platform-navigation/index.vue2.js +1 -1
- package/lib/components/platform-navigation/interface.d.ts +1 -16
- package/lib/config/themes/components/card/dark.js +1 -1
- package/lib/config/themes/components/dialog/dark.js +1 -1
- package/lib/config/themes/token/dark.d.ts +1 -0
- package/lib/config/themes/token/dark.js +1 -1
- package/lib/config/themes/token/light.d.ts +1 -0
- package/lib/config/themes/token/light.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/http/en-us.d.ts +2 -0
- package/lib/locale/http/en-us.js +1 -1
- package/lib/locale/http/zh-cn.js +1 -1
- package/lib/locale/lang/en-us.d.ts +2 -2
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/lib/main.d.ts +0 -0
- package/lib/node_modules/.pnpm/@css-render_plugin-bem@0.15.14_css-render@0.15.14/node_modules/@css-render/plugin-bem/esm/index.js +1 -0
- package/lib/node_modules/.pnpm/@emotion_hash@0.8.0/node_modules/@emotion/hash/dist/hash.browser.esm.js +1 -0
- package/lib/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/CssRender.js +1 -0
- package/lib/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/c.js +1 -0
- package/lib/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/mount.js +1 -0
- package/lib/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/parse.js +1 -0
- package/lib/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/render.js +12 -0
- package/lib/node_modules/.pnpm/css-render@0.15.14/node_modules/css-render/esm/utils.js +1 -0
- package/package.json +3 -1
- package/es/components/platform-navigation/interface.mjs +0 -5
- package/lib/components/platform-navigation/interface.js +0 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM, BODEN_PLATFORM_FEATURE } from './constant';
|
|
2
|
+
import { PlatformItem } from './interface';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
readonly platformUrlMap: {
|
|
5
|
+
readonly type: import('vue').PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
|
|
6
|
+
readonly default: undefined;
|
|
7
|
+
};
|
|
8
|
+
readonly popoverX: {
|
|
9
|
+
readonly type: NumberConstructor;
|
|
10
|
+
readonly default: 0;
|
|
11
|
+
};
|
|
12
|
+
readonly popoverY: {
|
|
13
|
+
readonly type: NumberConstructor;
|
|
14
|
+
readonly default: 0;
|
|
15
|
+
};
|
|
16
|
+
readonly onTogglePlatform: import('vue').PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
|
|
17
|
+
}>, {
|
|
18
|
+
tabValue: import('vue').Ref<"" | BODEN_PLATFORM_FEATURE, "" | BODEN_PLATFORM_FEATURE>;
|
|
19
|
+
dropDownVisible: import('vue').ComputedRef<boolean>;
|
|
20
|
+
navStyleCssVar: import('vue').ComputedRef<{
|
|
21
|
+
'--boden-platform-navigation-option-title-color': string;
|
|
22
|
+
'--boden-platform-navigation-option-title-color-hover': string;
|
|
23
|
+
'--boden-platform-navigation-option-title-color-disabled': string;
|
|
24
|
+
'--boden-platform-navigation-option-description-color': string;
|
|
25
|
+
'--boden-platform-navigation-option-description-color-disabled': string;
|
|
26
|
+
'--boden-platform-navigation-option-color-hover': string;
|
|
27
|
+
'--boden-platform-navigation-option-icon-hover': string;
|
|
28
|
+
'--boden-platform-navigation-option-icon-disabled-opacity': number;
|
|
29
|
+
}>;
|
|
30
|
+
platformFeatures: {
|
|
31
|
+
value: BODEN_PLATFORM_FEATURE;
|
|
32
|
+
label: string;
|
|
33
|
+
}[];
|
|
34
|
+
platformNav: PlatformItem[];
|
|
35
|
+
tabThemeOverrides: import('vue').ComputedRef<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Tabs", {
|
|
36
|
+
colorSegment: string;
|
|
37
|
+
tabFontSizeCard: string;
|
|
38
|
+
tabTextColorLine: string;
|
|
39
|
+
tabTextColorActiveLine: string;
|
|
40
|
+
tabTextColorHoverLine: string;
|
|
41
|
+
tabTextColorDisabledLine: string;
|
|
42
|
+
tabTextColorSegment: string;
|
|
43
|
+
tabTextColorActiveSegment: string;
|
|
44
|
+
tabTextColorHoverSegment: string;
|
|
45
|
+
tabTextColorDisabledSegment: string;
|
|
46
|
+
tabTextColorBar: string;
|
|
47
|
+
tabTextColorActiveBar: string;
|
|
48
|
+
tabTextColorHoverBar: string;
|
|
49
|
+
tabTextColorDisabledBar: string;
|
|
50
|
+
tabTextColorCard: string;
|
|
51
|
+
tabTextColorHoverCard: string;
|
|
52
|
+
tabTextColorActiveCard: string;
|
|
53
|
+
tabTextColorDisabledCard: string;
|
|
54
|
+
barColor: string;
|
|
55
|
+
closeIconColor: string;
|
|
56
|
+
closeIconColorHover: string;
|
|
57
|
+
closeIconColorPressed: string;
|
|
58
|
+
closeColorHover: string;
|
|
59
|
+
closeColorPressed: string;
|
|
60
|
+
closeBorderRadius: string;
|
|
61
|
+
tabColor: string;
|
|
62
|
+
tabColorSegment: string;
|
|
63
|
+
tabBorderColor: string;
|
|
64
|
+
tabFontWeightActive: string;
|
|
65
|
+
tabFontWeight: string;
|
|
66
|
+
tabBorderRadius: string;
|
|
67
|
+
paneTextColor: string;
|
|
68
|
+
fontWeightStrong: string;
|
|
69
|
+
tabFontSizeSmall: string;
|
|
70
|
+
tabFontSizeMedium: string;
|
|
71
|
+
tabFontSizeLarge: string;
|
|
72
|
+
tabGapSmallLine: string;
|
|
73
|
+
tabGapMediumLine: string;
|
|
74
|
+
tabGapLargeLine: string;
|
|
75
|
+
tabGapSmallLineVertical: string;
|
|
76
|
+
tabGapMediumLineVertical: string;
|
|
77
|
+
tabGapLargeLineVertical: string;
|
|
78
|
+
tabPaddingSmallLine: string;
|
|
79
|
+
tabPaddingMediumLine: string;
|
|
80
|
+
tabPaddingLargeLine: string;
|
|
81
|
+
tabPaddingVerticalSmallLine: string;
|
|
82
|
+
tabPaddingVerticalMediumLine: string;
|
|
83
|
+
tabPaddingVerticalLargeLine: string;
|
|
84
|
+
tabGapSmallBar: string;
|
|
85
|
+
tabGapMediumBar: string;
|
|
86
|
+
tabGapLargeBar: string;
|
|
87
|
+
tabGapSmallBarVertical: string;
|
|
88
|
+
tabGapMediumBarVertical: string;
|
|
89
|
+
tabGapLargeBarVertical: string;
|
|
90
|
+
tabPaddingSmallBar: string;
|
|
91
|
+
tabPaddingMediumBar: string;
|
|
92
|
+
tabPaddingLargeBar: string;
|
|
93
|
+
tabPaddingVerticalSmallBar: string;
|
|
94
|
+
tabPaddingVerticalMediumBar: string;
|
|
95
|
+
tabPaddingVerticalLargeBar: string;
|
|
96
|
+
tabGapSmallCard: string;
|
|
97
|
+
tabGapMediumCard: string;
|
|
98
|
+
tabGapLargeCard: string;
|
|
99
|
+
tabGapSmallCardVertical: string;
|
|
100
|
+
tabGapMediumCardVertical: string;
|
|
101
|
+
tabGapLargeCardVertical: string;
|
|
102
|
+
tabPaddingSmallCard: string;
|
|
103
|
+
tabPaddingMediumCard: string;
|
|
104
|
+
tabPaddingLargeCard: string;
|
|
105
|
+
tabPaddingSmallSegment: string;
|
|
106
|
+
tabPaddingMediumSegment: string;
|
|
107
|
+
tabPaddingLargeSegment: string;
|
|
108
|
+
tabPaddingVerticalLargeSegment: string;
|
|
109
|
+
tabPaddingVerticalSmallCard: string;
|
|
110
|
+
tabPaddingVerticalMediumCard: string;
|
|
111
|
+
tabPaddingVerticalLargeCard: string;
|
|
112
|
+
tabPaddingVerticalSmallSegment: string;
|
|
113
|
+
tabPaddingVerticalMediumSegment: string;
|
|
114
|
+
tabGapSmallSegment: string;
|
|
115
|
+
tabGapMediumSegment: string;
|
|
116
|
+
tabGapLargeSegment: string;
|
|
117
|
+
tabGapSmallSegmentVertical: string;
|
|
118
|
+
tabGapMediumSegmentVertical: string;
|
|
119
|
+
tabGapLargeSegmentVertical: string;
|
|
120
|
+
panePaddingSmall: string;
|
|
121
|
+
panePaddingMedium: string;
|
|
122
|
+
panePaddingLarge: string;
|
|
123
|
+
closeSize: string;
|
|
124
|
+
closeIconSize: string;
|
|
125
|
+
}, any>> | undefined>;
|
|
126
|
+
isDisabled: (platformCode: BODEN_PLATFORM_ENUM) => boolean;
|
|
127
|
+
onClick: (platform: PlatformItem) => void;
|
|
128
|
+
onMouseLeave: () => void;
|
|
129
|
+
onPopoverMouseenter: () => void;
|
|
130
|
+
onBeforeLeave: () => boolean;
|
|
131
|
+
setTabValue: (value: BODEN_PLATFORM_FEATURE) => void;
|
|
132
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
133
|
+
readonly platformUrlMap: {
|
|
134
|
+
readonly type: import('vue').PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
|
|
135
|
+
readonly default: undefined;
|
|
136
|
+
};
|
|
137
|
+
readonly popoverX: {
|
|
138
|
+
readonly type: NumberConstructor;
|
|
139
|
+
readonly default: 0;
|
|
140
|
+
};
|
|
141
|
+
readonly popoverY: {
|
|
142
|
+
readonly type: NumberConstructor;
|
|
143
|
+
readonly default: 0;
|
|
144
|
+
};
|
|
145
|
+
readonly onTogglePlatform: import('vue').PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
|
|
146
|
+
}>> & Readonly<{}>, {
|
|
147
|
+
readonly platformUrlMap: Partial<Record<BODEN_PLATFORM_ENUM, string>>;
|
|
148
|
+
readonly popoverX: number;
|
|
149
|
+
readonly popoverY: number;
|
|
150
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
151
|
+
export default _default;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { defineComponent as M, createVNode as o, mergeProps as g, ref as D, computed as d } from "vue";
|
|
2
|
+
import { NTabs as O, NTab as A, NPopover as L, NIcon as T, NEllipsis as E } from "naive-ui";
|
|
3
|
+
import { prefix as i } from "../../../_constant/base.mjs";
|
|
4
|
+
import y from "../../../_mixins/use-theme.mjs";
|
|
5
|
+
import C from "../../../_internal/icons/ads.mjs";
|
|
6
|
+
import P from "../../../_internal/icons/arrow-right.mjs";
|
|
7
|
+
import R from "../../../_internal/icons/blink.mjs";
|
|
8
|
+
import S from "../../../_internal/icons/forge.mjs";
|
|
9
|
+
import V from "../../../_internal/icons/omni.mjs";
|
|
10
|
+
import F from "../../../_internal/icons/robo.mjs";
|
|
11
|
+
import k from "../../../_internal/icons/studio.mjs";
|
|
12
|
+
import w from "./styles/index.cssr.mjs";
|
|
13
|
+
import { BODEN_PLATFORM_FEATURE as t, BODEN_PLATFORM_NAME_ENUM as n, BODEN_PLATFORM_ENUM as l } from "./constant.mjs";
|
|
14
|
+
import { bodenPlatformHeaderNavigationProps as $ } from "./interface.mjs";
|
|
15
|
+
import { createNavCssVar as U, createTabThemeOverrides as x } from "./useCssVars.mjs";
|
|
16
|
+
import H from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
17
|
+
const me = /* @__PURE__ */ M({
|
|
18
|
+
name: "BodenPlatformHeaderNavigation",
|
|
19
|
+
props: $,
|
|
20
|
+
setup(s) {
|
|
21
|
+
y("-platform-header-navigation", w);
|
|
22
|
+
const c = H(), a = D(""), m = d(() => {
|
|
23
|
+
const {
|
|
24
|
+
name: r = "light"
|
|
25
|
+
} = c?.mergedThemeRef.value || {};
|
|
26
|
+
return r !== "light";
|
|
27
|
+
}), f = d(() => U(m.value)), p = d(() => x(m.value)), u = d(() => a.value !== "");
|
|
28
|
+
let e;
|
|
29
|
+
const h = [{
|
|
30
|
+
value: t.Data_Collection,
|
|
31
|
+
label: "数据采集"
|
|
32
|
+
}, {
|
|
33
|
+
value: t.Data_Annotation,
|
|
34
|
+
label: "数据标注"
|
|
35
|
+
}, {
|
|
36
|
+
value: t.Data_Management,
|
|
37
|
+
label: "数据管理"
|
|
38
|
+
}], b = [{
|
|
39
|
+
id: 1,
|
|
40
|
+
featureType: t.Data_Annotation,
|
|
41
|
+
platformId: l.BASE,
|
|
42
|
+
moduleName: n.ADS,
|
|
43
|
+
title: "自动驾驶标注平台 BASE ADS",
|
|
44
|
+
description: "自动驾驶标注平台支持点云、图像等连续的数据的标注与质检。",
|
|
45
|
+
svgIcon: C
|
|
46
|
+
}, {
|
|
47
|
+
id: 2,
|
|
48
|
+
featureType: t.Data_Annotation,
|
|
49
|
+
platformId: l.BASE,
|
|
50
|
+
moduleName: n.STUDIO,
|
|
51
|
+
title: "通用标注平台 BASE Studio",
|
|
52
|
+
description: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。",
|
|
53
|
+
svgIcon: k
|
|
54
|
+
}, {
|
|
55
|
+
id: 3,
|
|
56
|
+
featureType: t.Data_Annotation,
|
|
57
|
+
platformId: l.BASE,
|
|
58
|
+
moduleName: n.OMNI,
|
|
59
|
+
title: "多模态标注平台 BASE Omni",
|
|
60
|
+
description: "支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型。",
|
|
61
|
+
svgIcon: V
|
|
62
|
+
}, {
|
|
63
|
+
id: 4,
|
|
64
|
+
featureType: t.Data_Collection,
|
|
65
|
+
platformId: l.ROBO,
|
|
66
|
+
moduleName: n.ROBO,
|
|
67
|
+
title: "具身智能采集 BRIC Robo",
|
|
68
|
+
description: "专为具身智能研发打造,支持道场场景管理与多类型机器人组网(机器臂/人形)。",
|
|
69
|
+
svgIcon: F
|
|
70
|
+
}, {
|
|
71
|
+
id: 5,
|
|
72
|
+
featureType: t.Data_Collection,
|
|
73
|
+
platformId: l.FORGE,
|
|
74
|
+
moduleName: n.FORGE,
|
|
75
|
+
title: "图片采集 BRIC Forge",
|
|
76
|
+
description: "一站式数据采集与编辑平台,支持源图下发与任务化管理,采集人员可基于源图按规范完成图像编辑与蒙版制作。",
|
|
77
|
+
svgIcon: S
|
|
78
|
+
}, {
|
|
79
|
+
id: 6,
|
|
80
|
+
featureType: t.Data_Management,
|
|
81
|
+
platformId: l.BLINK,
|
|
82
|
+
moduleName: n.BLINK,
|
|
83
|
+
title: "数据管理平台 Blink",
|
|
84
|
+
description: "一站式数据资产运营与服务中枢,集三大核心能力于一体:数据流转管理、数据集市与智能检索,三者有机协同,打通“管—用—找”关键环节,助力组织高效释放数据价值。",
|
|
85
|
+
svgIcon: R
|
|
86
|
+
}], B = (r) => {
|
|
87
|
+
a.value = r;
|
|
88
|
+
}, v = () => {
|
|
89
|
+
e && clearTimeout(e);
|
|
90
|
+
}, N = (r) => !s.platformUrlMap || !s.platformUrlMap[r];
|
|
91
|
+
return {
|
|
92
|
+
tabValue: a,
|
|
93
|
+
dropDownVisible: u,
|
|
94
|
+
navStyleCssVar: f,
|
|
95
|
+
platformFeatures: h,
|
|
96
|
+
platformNav: b,
|
|
97
|
+
tabThemeOverrides: p,
|
|
98
|
+
isDisabled: N,
|
|
99
|
+
onClick: (r) => {
|
|
100
|
+
const {
|
|
101
|
+
platformId: I,
|
|
102
|
+
moduleName: _
|
|
103
|
+
} = r;
|
|
104
|
+
N(I) || s.onTogglePlatform?.(I, _);
|
|
105
|
+
},
|
|
106
|
+
onMouseLeave: () => {
|
|
107
|
+
v(), e = setTimeout(() => {
|
|
108
|
+
a.value = "", e = void 0;
|
|
109
|
+
}, 300);
|
|
110
|
+
},
|
|
111
|
+
onPopoverMouseenter: () => {
|
|
112
|
+
v();
|
|
113
|
+
},
|
|
114
|
+
onBeforeLeave: () => (v(), !0),
|
|
115
|
+
setTabValue: B
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
render() {
|
|
119
|
+
const {
|
|
120
|
+
dropDownVisible: s,
|
|
121
|
+
platformFeatures: c,
|
|
122
|
+
tabValue: a,
|
|
123
|
+
onMouseLeave: m,
|
|
124
|
+
onBeforeLeave: f,
|
|
125
|
+
$props: p,
|
|
126
|
+
$attrs: u
|
|
127
|
+
} = this;
|
|
128
|
+
return o("div", g({
|
|
129
|
+
class: [`${i}-platform-header-navigation`]
|
|
130
|
+
}, u), [o(O, g({
|
|
131
|
+
value: a,
|
|
132
|
+
trigger: "hover",
|
|
133
|
+
onUpdateValue: this.setTabValue,
|
|
134
|
+
onBeforeLeave: f,
|
|
135
|
+
themeOverrides: this.tabThemeOverrides
|
|
136
|
+
}, {
|
|
137
|
+
onMouseleave: m
|
|
138
|
+
}), {
|
|
139
|
+
default: () => c.map((e) => o(A, {
|
|
140
|
+
key: e.value,
|
|
141
|
+
name: e.value
|
|
142
|
+
}, {
|
|
143
|
+
default: () => e.label
|
|
144
|
+
}))
|
|
145
|
+
}), o(L, g({
|
|
146
|
+
class: [`${i}-platform-header-dropdown`],
|
|
147
|
+
trigger: "manual",
|
|
148
|
+
placement: "bottom",
|
|
149
|
+
show: s,
|
|
150
|
+
"show-arrow": !1,
|
|
151
|
+
width: 666,
|
|
152
|
+
x: p.popoverX,
|
|
153
|
+
y: p.popoverY,
|
|
154
|
+
"theme-overrides": {
|
|
155
|
+
padding: "32px",
|
|
156
|
+
space: "0",
|
|
157
|
+
borderRadius: "10px"
|
|
158
|
+
}
|
|
159
|
+
}, {
|
|
160
|
+
onMouseenter: this.onPopoverMouseenter,
|
|
161
|
+
onMouseleave: m
|
|
162
|
+
}), {
|
|
163
|
+
default: () => o("div", {
|
|
164
|
+
style: this.navStyleCssVar
|
|
165
|
+
}, [this.platformNav.map((e) => o("div", {
|
|
166
|
+
class: [`${i}-platform-option`, this.isDisabled(e.platformId) && `${i}-platform-option--disabled`],
|
|
167
|
+
style: {
|
|
168
|
+
display: a !== e.featureType ? "none" : ""
|
|
169
|
+
},
|
|
170
|
+
key: e.id,
|
|
171
|
+
onClick: () => this.onClick(e)
|
|
172
|
+
}, [o(T, {
|
|
173
|
+
class: `${i}-platform-option__logo`,
|
|
174
|
+
size: 46,
|
|
175
|
+
component: e.svgIcon
|
|
176
|
+
}, null), o("div", {
|
|
177
|
+
class: `${i}-platform-option__content`
|
|
178
|
+
}, [o("div", {
|
|
179
|
+
class: "title"
|
|
180
|
+
}, [e.title]), o(E, {
|
|
181
|
+
class: "description",
|
|
182
|
+
tooltip: !1
|
|
183
|
+
}, {
|
|
184
|
+
default: () => [e.description]
|
|
185
|
+
})]), o("span", {
|
|
186
|
+
class: `${i}-platform-option__arrow`
|
|
187
|
+
}, [o(T, {
|
|
188
|
+
size: 24,
|
|
189
|
+
component: P
|
|
190
|
+
}, null)])]))])
|
|
191
|
+
})]);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
export {
|
|
195
|
+
me as default
|
|
196
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { c as o, cB as t, cM as a, cNotM as r, cE as i } from "../../../../_utils/cssr.mjs";
|
|
2
|
+
const e = o([
|
|
3
|
+
t(
|
|
4
|
+
"platform-header-navigation",
|
|
5
|
+
{
|
|
6
|
+
height: "100%"
|
|
7
|
+
},
|
|
8
|
+
[
|
|
9
|
+
o(".n-tabs", {
|
|
10
|
+
height: "100%"
|
|
11
|
+
}, [
|
|
12
|
+
o(".n-tabs-nav--top", {
|
|
13
|
+
height: "100%"
|
|
14
|
+
}),
|
|
15
|
+
o(".v-x-scroll", {
|
|
16
|
+
height: "100%"
|
|
17
|
+
})
|
|
18
|
+
])
|
|
19
|
+
]
|
|
20
|
+
),
|
|
21
|
+
t("platform-header-dropdown", {
|
|
22
|
+
height: "auto"
|
|
23
|
+
}, [
|
|
24
|
+
t("platform-option", {
|
|
25
|
+
display: "flex",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
padding: "0px 12px",
|
|
28
|
+
margin: "8px 0",
|
|
29
|
+
borderRadius: "5px",
|
|
30
|
+
overflow: "hidden"
|
|
31
|
+
}, [
|
|
32
|
+
a("disabled", {
|
|
33
|
+
cursor: "not-allowed"
|
|
34
|
+
}, [
|
|
35
|
+
i("logo", { opacity: "var(--boden-platform-navigation-option-icon-disabled-opacity)" }),
|
|
36
|
+
o(".title", { color: "var(--boden-platform-navigation-option-title-color-disabled)" }),
|
|
37
|
+
o(".description", { color: "var(--boden-platform-navigation-option-description-color-disabled)" })
|
|
38
|
+
]),
|
|
39
|
+
r("disabled", [
|
|
40
|
+
o("&:hover", {
|
|
41
|
+
backgroundColor: "var(--boden-platform-navigation-option-color-hover)",
|
|
42
|
+
cursor: "pointer"
|
|
43
|
+
}, [
|
|
44
|
+
o(".title", { color: "var(--boden-platform-navigation-option-title-color-hover)" }),
|
|
45
|
+
i("arrow", {
|
|
46
|
+
opacity: "1"
|
|
47
|
+
})
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
i("logo", { marginTop: "16px" }),
|
|
51
|
+
i("content", {
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: "column",
|
|
54
|
+
margin: "0 8px 0 6px",
|
|
55
|
+
gap: "4px",
|
|
56
|
+
overflow: "hidden"
|
|
57
|
+
}),
|
|
58
|
+
o(".title", {
|
|
59
|
+
lineHeight: "20px",
|
|
60
|
+
fontSize: "14px",
|
|
61
|
+
fontFamily: "MiSansMedium",
|
|
62
|
+
color: "var(--boden-platform-navigation-option-title-color)"
|
|
63
|
+
}),
|
|
64
|
+
o(".description", {
|
|
65
|
+
lineHeight: "16px",
|
|
66
|
+
fontSize: "12px",
|
|
67
|
+
color: "var(--boden-platform-navigation-option-description-color)"
|
|
68
|
+
}),
|
|
69
|
+
i("arrow", {
|
|
70
|
+
display: "flex",
|
|
71
|
+
opacity: "0",
|
|
72
|
+
color: "var(--boden-platform-navigation-option-icon-hover)",
|
|
73
|
+
cursor: "pointer",
|
|
74
|
+
marginLeft: "auto"
|
|
75
|
+
})
|
|
76
|
+
])
|
|
77
|
+
])
|
|
78
|
+
]);
|
|
79
|
+
export {
|
|
80
|
+
e as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TabsProps } from 'naive-ui';
|
|
2
|
+
export declare const createNavCssVar: (isDarkMode: boolean) => {
|
|
3
|
+
'--boden-platform-navigation-option-title-color': string;
|
|
4
|
+
'--boden-platform-navigation-option-title-color-hover': string;
|
|
5
|
+
'--boden-platform-navigation-option-title-color-disabled': string;
|
|
6
|
+
'--boden-platform-navigation-option-description-color': string;
|
|
7
|
+
'--boden-platform-navigation-option-description-color-disabled': string;
|
|
8
|
+
'--boden-platform-navigation-option-color-hover': string;
|
|
9
|
+
'--boden-platform-navigation-option-icon-hover': string;
|
|
10
|
+
'--boden-platform-navigation-option-icon-disabled-opacity': number;
|
|
11
|
+
};
|
|
12
|
+
export declare const createTabThemeOverrides: (isDarkMode: boolean) => TabsProps["themeOverrides"];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import t from "../../../config/themes/token/dark.mjs";
|
|
2
|
+
import i from "../../../config/themes/token/light.mjs";
|
|
3
|
+
import p from "../../../config/themes/color/dark.mjs";
|
|
4
|
+
import r from "../../../config/themes/color/light.mjs";
|
|
5
|
+
import "../../../config/themes/components/alert/light.mjs";
|
|
6
|
+
import "../../../config/themes/components/button/light.mjs";
|
|
7
|
+
import "../../../config/themes/components/card/light.mjs";
|
|
8
|
+
import "../../../config/themes/components/cascader/light.mjs";
|
|
9
|
+
import "../../../config/themes/components/dataTable/light.mjs";
|
|
10
|
+
import "../../../config/themes/components/datePicker/light.mjs";
|
|
11
|
+
import "../../../config/themes/components/checkbox/light.mjs";
|
|
12
|
+
import "../../../config/themes/components/divider/light.mjs";
|
|
13
|
+
import "../../../config/themes/components/dialog/light.mjs";
|
|
14
|
+
import "../../../config/themes/components/dropdown/light.mjs";
|
|
15
|
+
import "../../../config/themes/components/form/light.mjs";
|
|
16
|
+
import "../../../config/themes/components/input/light.mjs";
|
|
17
|
+
import "../../../config/themes/components/inputNumber/light.mjs";
|
|
18
|
+
import "../../../config/themes/components/layout/light.mjs";
|
|
19
|
+
import "../../../config/themes/components/menu/light.mjs";
|
|
20
|
+
import "../../../config/themes/components/popover/light.mjs";
|
|
21
|
+
import "../../../config/themes/components/progress/light.mjs";
|
|
22
|
+
import "../../../config/themes/components/radio/light.mjs";
|
|
23
|
+
import "../../../config/themes/components/select/light.mjs";
|
|
24
|
+
import "../../../config/themes/components/slider/light.mjs";
|
|
25
|
+
import "../../../config/themes/components/switch/light.mjs";
|
|
26
|
+
import "../../../config/themes/components/tag/light.mjs";
|
|
27
|
+
import "../../../config/themes/components/transfer/light.mjs";
|
|
28
|
+
import "../../../config/themes/components/baseComponent/light.mjs";
|
|
29
|
+
import "../../../config/themes/common/light.mjs";
|
|
30
|
+
import "../../../config/themes/components/alert/dark.mjs";
|
|
31
|
+
import "../../../config/themes/components/button/dark.mjs";
|
|
32
|
+
import "../../../config/themes/components/card/dark.mjs";
|
|
33
|
+
import "../../../config/themes/components/cascader/dark.mjs";
|
|
34
|
+
import "../../../config/themes/components/checkbox/dark.mjs";
|
|
35
|
+
import "../../../config/themes/components/dataTable/dark.mjs";
|
|
36
|
+
import "../../../config/themes/components/datePicker/dark.mjs";
|
|
37
|
+
import "../../../config/themes/components/dialog/dark.mjs";
|
|
38
|
+
import "../../../config/themes/components/dropdown/dark.mjs";
|
|
39
|
+
import "../../../config/themes/components/form/dark.mjs";
|
|
40
|
+
import "../../../config/themes/components/input/dark.mjs";
|
|
41
|
+
import "../../../config/themes/components/inputNumber/dark.mjs";
|
|
42
|
+
import "../../../config/themes/components/layout/dark.mjs";
|
|
43
|
+
import "../../../config/themes/components/menu/dark.mjs";
|
|
44
|
+
import "../../../config/themes/components/popover/dark.mjs";
|
|
45
|
+
import "../../../config/themes/components/progress/dark.mjs";
|
|
46
|
+
import "../../../config/themes/components/radio/dark.mjs";
|
|
47
|
+
import "../../../config/themes/components/select/dark.mjs";
|
|
48
|
+
import "../../../config/themes/components/slider/dark.mjs";
|
|
49
|
+
import "../../../config/themes/components/switch/dark.mjs";
|
|
50
|
+
import "../../../config/themes/components/tag/dark.mjs";
|
|
51
|
+
import "../../../config/themes/components/transfer/dark.mjs";
|
|
52
|
+
import "../../../config/themes/components/baseComponent/dark.mjs";
|
|
53
|
+
import "../../../config/themes/common/dark.mjs";
|
|
54
|
+
import "../../../config/themes/components/charts/dark.mjs";
|
|
55
|
+
import "../../../config/themes/components/charts/light.mjs";
|
|
56
|
+
const no = (o) => ({
|
|
57
|
+
"--boden-platform-navigation-option-title-color": o ? t["color-text-1"] : r["color-gray-10"],
|
|
58
|
+
"--boden-platform-navigation-option-title-color-hover": o ? p["color-primary-6"] : r["color-primary-6"],
|
|
59
|
+
"--boden-platform-navigation-option-title-color-disabled": o ? t["color-text-3"] : i["color-text-3"],
|
|
60
|
+
"--boden-platform-navigation-option-description-color": o ? t["color-text-3"] : i["color-text-3"],
|
|
61
|
+
"--boden-platform-navigation-option-description-color-disabled": o ? t["color-text-4"] : i["color-text-4"],
|
|
62
|
+
"--boden-platform-navigation-option-color-hover": o ? p["color-primary-1"] : r["color-primary-1"],
|
|
63
|
+
"--boden-platform-navigation-option-icon-hover": o ? p["color-primary-6"] : r["color-primary-6"],
|
|
64
|
+
"--boden-platform-navigation-option-icon-disabled-opacity": 0.6
|
|
65
|
+
}), ao = (o) => ({
|
|
66
|
+
tabTextColorBar: o ? t["color-text-1"] : i["color-text-1"]
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
no as createNavCssVar,
|
|
70
|
+
ao as createTabThemeOverrides
|
|
71
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BodenPlatformNavigation } from './index.vue';
|
|
2
|
-
export { type BodenPlatformNavigationProps, type BodenPlatformNavigationInstance
|
|
2
|
+
export { type BodenPlatformNavigationProps, type BodenPlatformNavigationInstance } from './interface';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BodenPlatformNavigationProps
|
|
1
|
+
import { BodenPlatformNavigationProps } from './interface';
|
|
2
|
+
import { BODEN_PLATFORM_ENUM } from '../platform-header-navigation';
|
|
2
3
|
declare const _default: import('vue').DefineComponent<BodenPlatformNavigationProps, {
|
|
3
4
|
updateShow: (value: boolean) => void;
|
|
4
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a55f5a1"]]);
|
|
6
6
|
export {
|
|
7
7
|
i as default
|
|
8
8
|
};
|