base6-ui 2.0.30 → 2.0.32
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/platform-header-navigation/src/constant.d.ts +2 -0
- package/dist/components/platform-header-navigation/src/interface.d.ts +28 -10
- package/dist/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
- package/dist/components/platform-header-navigation/src/utils.d.ts +2 -0
- package/dist/index.umd.js +8 -8
- package/es/components/global-header/index.vue.mjs +1 -1
- package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
- package/es/components/layout/index.vue2.mjs +1 -1
- package/es/components/platform-header-navigation/src/constant.d.ts +2 -0
- package/es/components/platform-header-navigation/src/constant.mjs +80 -4
- package/es/components/platform-header-navigation/src/interface.d.ts +28 -10
- package/es/components/platform-header-navigation/src/interface.mjs +5 -3
- package/es/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
- package/es/components/platform-header-navigation/src/platform-header-navigation.mjs +91 -148
- package/es/components/platform-header-navigation/src/styles/index.cssr.mjs +7 -3
- package/es/components/platform-header-navigation/src/utils.d.ts +2 -0
- package/es/components/platform-header-navigation/src/utils.mjs +6 -0
- package/es/config/themes/components/baseComponent/light.mjs +4 -4
- package/es/config/themes/components/checkbox/light.mjs +1 -1
- package/es/index.mjs +69 -68
- package/lib/components/global-header/index.vue.js +1 -1
- package/lib/components/layout/components/WrapHeader.vue.js +1 -0
- package/lib/components/layout/index.vue2.js +1 -1
- package/lib/components/platform-header-navigation/src/constant.d.ts +2 -0
- package/lib/components/platform-header-navigation/src/constant.js +1 -1
- package/lib/components/platform-header-navigation/src/interface.d.ts +28 -10
- package/lib/components/platform-header-navigation/src/interface.js +1 -1
- package/lib/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
- package/lib/components/platform-header-navigation/src/platform-header-navigation.js +1 -1
- package/lib/components/platform-header-navigation/src/styles/index.cssr.js +1 -1
- package/lib/components/platform-header-navigation/src/utils.d.ts +2 -0
- package/lib/components/platform-header-navigation/src/utils.js +1 -0
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/checkbox/light.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PlatformNavigationItem } from './interface';
|
|
1
2
|
export declare const enum BODEN_PLATFORM_ENUM {
|
|
2
3
|
BASE = 1,// 标注
|
|
3
4
|
BLINK = 2,// Blink
|
|
@@ -19,3 +20,4 @@ export declare const enum BODEN_PLATFORM_FEATURE {
|
|
|
19
20
|
Data_Annotation = 2,
|
|
20
21
|
Data_Management = 3
|
|
21
22
|
}
|
|
23
|
+
export declare const bodenPlatformNavigation: PlatformNavigationItem[];
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ExtractPublicPropTypes, PropType, VNode, VNodeChild } from 'vue';
|
|
2
|
+
import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './constant';
|
|
3
|
+
export type PlatformRenderOption = {
|
|
4
|
+
key: string | number;
|
|
5
|
+
type: 'render';
|
|
6
|
+
render: () => VNodeChild;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
export type PlatformOption = {
|
|
10
|
+
key: string | number;
|
|
6
11
|
platformId: BODEN_PLATFORM_ENUM;
|
|
7
12
|
moduleName: BODEN_PLATFORM_NAME_ENUM;
|
|
8
13
|
title: string;
|
|
9
14
|
description: string;
|
|
10
|
-
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
svgIcon?: () => VNode;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
export type PlatformNavigationItem = {
|
|
20
|
+
key: string | number;
|
|
21
|
+
label: string;
|
|
22
|
+
i18nKey?: string;
|
|
23
|
+
option?: Array<PlatformMixedOption>;
|
|
11
24
|
};
|
|
25
|
+
export type PlatformMixedOption = PlatformOption | PlatformRenderOption;
|
|
12
26
|
export declare const bodenPlatformHeaderNavigationProps: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly type: PropType<
|
|
15
|
-
readonly default:
|
|
27
|
+
readonly platformNavigation: {
|
|
28
|
+
readonly type: PropType<PlatformNavigationItem[]>;
|
|
29
|
+
readonly default: () => PlatformNavigationItem[];
|
|
16
30
|
};
|
|
17
31
|
readonly popoverX: {
|
|
18
32
|
readonly type: NumberConstructor;
|
|
@@ -22,6 +36,10 @@ export declare const bodenPlatformHeaderNavigationProps: {
|
|
|
22
36
|
readonly type: NumberConstructor;
|
|
23
37
|
readonly default: 0;
|
|
24
38
|
};
|
|
25
|
-
readonly
|
|
39
|
+
readonly renderOption: PropType<(params: {
|
|
40
|
+
node: VNode;
|
|
41
|
+
option: PlatformOption;
|
|
42
|
+
}) => VNodeChild>;
|
|
43
|
+
readonly onTogglePlatform: PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
|
|
26
44
|
};
|
|
27
45
|
export type BodenPlatformHeaderNavigationProps = ExtractPublicPropTypes<typeof bodenPlatformHeaderNavigationProps>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PlatformItem } from './interface';
|
|
1
|
+
import { PlatformOption } from './interface';
|
|
3
2
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
readonly
|
|
5
|
-
readonly type: import('vue').PropType<
|
|
6
|
-
readonly default:
|
|
3
|
+
readonly platformNavigation: {
|
|
4
|
+
readonly type: import('vue').PropType<import('./interface').PlatformNavigationItem[]>;
|
|
5
|
+
readonly default: () => import('./interface').PlatformNavigationItem[];
|
|
7
6
|
};
|
|
8
7
|
readonly popoverX: {
|
|
9
8
|
readonly type: NumberConstructor;
|
|
@@ -13,9 +12,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
12
|
readonly type: NumberConstructor;
|
|
14
13
|
readonly default: 0;
|
|
15
14
|
};
|
|
16
|
-
readonly
|
|
15
|
+
readonly renderOption: import('vue').PropType<(params: {
|
|
16
|
+
node: import('vue').VNode;
|
|
17
|
+
option: PlatformOption;
|
|
18
|
+
}) => import('vue').VNodeChild>;
|
|
19
|
+
readonly onTogglePlatform: import('vue').PropType<(code: import('./constant').BODEN_PLATFORM_ENUM, name: import('./constant').BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
|
|
17
20
|
}>, {
|
|
18
|
-
tabValue: import('vue').Ref<
|
|
21
|
+
tabValue: import('vue').Ref<string | number, string | number>;
|
|
19
22
|
dropDownVisible: import('vue').ComputedRef<boolean>;
|
|
20
23
|
navStyleCssVar: import('vue').ComputedRef<{
|
|
21
24
|
'--boden-platform-navigation-option-title-color': string;
|
|
@@ -27,11 +30,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
30
|
'--boden-platform-navigation-option-icon-hover': string;
|
|
28
31
|
'--boden-platform-navigation-option-icon-disabled-opacity': number;
|
|
29
32
|
}>;
|
|
30
|
-
platformFeatures: {
|
|
31
|
-
value: BODEN_PLATFORM_FEATURE;
|
|
32
|
-
label: string;
|
|
33
|
-
}[];
|
|
34
|
-
platformNav: PlatformItem[];
|
|
35
33
|
tabThemeOverrides: import('vue').ComputedRef<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Tabs", {
|
|
36
34
|
colorSegment: string;
|
|
37
35
|
tabFontSizeCard: string;
|
|
@@ -123,16 +121,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
123
121
|
closeSize: string;
|
|
124
122
|
closeIconSize: string;
|
|
125
123
|
}, any>> | undefined>;
|
|
126
|
-
|
|
127
|
-
onClick: (platform: PlatformItem) => void;
|
|
124
|
+
onClick: (platform: PlatformOption) => void;
|
|
128
125
|
onMouseLeave: () => void;
|
|
129
126
|
onPopoverMouseenter: () => void;
|
|
130
127
|
onBeforeLeave: () => boolean;
|
|
131
|
-
setTabValue: (value:
|
|
128
|
+
setTabValue: (value: string | number) => void;
|
|
132
129
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
133
|
-
readonly
|
|
134
|
-
readonly type: import('vue').PropType<
|
|
135
|
-
readonly default:
|
|
130
|
+
readonly platformNavigation: {
|
|
131
|
+
readonly type: import('vue').PropType<import('./interface').PlatformNavigationItem[]>;
|
|
132
|
+
readonly default: () => import('./interface').PlatformNavigationItem[];
|
|
136
133
|
};
|
|
137
134
|
readonly popoverX: {
|
|
138
135
|
readonly type: NumberConstructor;
|
|
@@ -142,9 +139,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
142
139
|
readonly type: NumberConstructor;
|
|
143
140
|
readonly default: 0;
|
|
144
141
|
};
|
|
145
|
-
readonly
|
|
142
|
+
readonly renderOption: import('vue').PropType<(params: {
|
|
143
|
+
node: import('vue').VNode;
|
|
144
|
+
option: PlatformOption;
|
|
145
|
+
}) => import('vue').VNodeChild>;
|
|
146
|
+
readonly onTogglePlatform: import('vue').PropType<(code: import('./constant').BODEN_PLATFORM_ENUM, name: import('./constant').BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
|
|
146
147
|
}>> & Readonly<{}>, {
|
|
147
|
-
readonly
|
|
148
|
+
readonly platformNavigation: import('./interface').PlatformNavigationItem[];
|
|
148
149
|
readonly popoverX: number;
|
|
149
150
|
readonly popoverY: number;
|
|
150
151
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|