base6-ui 2.0.21 → 2.0.23
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/global-header/interface.d.ts +3 -3
- package/dist/components/global-header/title.vue.d.ts +1 -1
- package/dist/components/platform-navigation/cssVar.d.ts +10 -0
- package/dist/components/platform-navigation/index.d.ts +1 -1
- package/dist/components/platform-navigation/index.vue.d.ts +2 -2
- package/dist/components/platform-navigation/interface.d.ts +16 -5
- package/dist/config/themes/token/light.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.umd.js +5 -1
- package/dist/locale/lang/en-us.d.ts +6 -2
- package/es/_virtual/virtual_svg-icons-register.mjs +2 -2
- package/es/assets/cover/base-studio.png.mjs +2 -2
- package/es/assets/cover/blink.png.mjs +4 -0
- package/es/assets/cover/ps.png.mjs +4 -0
- package/es/assets/cover/robo.png.mjs +4 -0
- package/es/components/dialog/index.vue.mjs +8 -4
- package/es/components/global-header/index.vue.mjs +4 -3
- package/es/components/global-header/interface.d.ts +3 -3
- package/es/components/global-header/title.vue.d.ts +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/nav-icon/cssVar.mjs +3 -2
- package/es/components/platform-navigation/cssVar.d.ts +10 -0
- package/es/components/platform-navigation/cssVar.mjs +38 -31
- package/es/components/platform-navigation/index.d.ts +1 -1
- package/es/components/platform-navigation/index.vue.d.ts +2 -2
- package/es/components/platform-navigation/index.vue.mjs +2 -2
- package/es/components/platform-navigation/index.vue2.mjs +144 -120
- package/es/components/platform-navigation/interface.d.ts +16 -5
- package/es/components/platform-navigation/interface.mjs +3 -2
- package/es/components/select/src/cssVar.mjs +3 -2
- package/es/config/themes/components/baseComponent/dark.mjs +15 -14
- package/es/config/themes/components/button/dark.mjs +3 -2
- package/es/config/themes/components/card/dark.mjs +3 -2
- package/es/config/themes/components/cascader/dark.mjs +3 -2
- package/es/config/themes/components/charts/dark.mjs +3 -2
- package/es/config/themes/components/checkbox/dark.mjs +3 -2
- package/es/config/themes/components/dataTable/common.mjs +1 -0
- package/es/config/themes/components/dataTable/dark.mjs +4 -2
- package/es/config/themes/components/dataTable/light.mjs +1 -2
- package/es/config/themes/components/dialog/dark.mjs +3 -2
- package/es/config/themes/components/dropdown/dark.mjs +1 -0
- package/es/config/themes/components/input/dark.mjs +1 -0
- package/es/config/themes/components/inputNumber/dark.mjs +3 -2
- package/es/config/themes/components/layout/dark.mjs +1 -0
- package/es/config/themes/components/menu/dark.mjs +3 -2
- package/es/config/themes/components/popover/dark.mjs +3 -2
- package/es/config/themes/components/progress/dark.mjs +3 -2
- package/es/config/themes/components/radio/dark.mjs +3 -2
- package/es/config/themes/components/select/dark.mjs +3 -2
- package/es/config/themes/components/switch/dark.mjs +3 -2
- package/es/config/themes/components/tag/dark.mjs +3 -2
- package/es/config/themes/components/transfer/dark.mjs +3 -2
- package/es/config/themes/index.mjs +7 -5
- package/es/config/themes/token/light.d.ts +2 -0
- package/es/config/themes/token/light.mjs +5 -2
- package/es/index.css +1 -1
- package/es/index.mjs +80 -77
- package/es/locale/lang/en-us.d.ts +6 -2
- package/es/locale/lang/en-us.mjs +8 -2
- package/es/locale/lang/zh-cn.mjs +8 -2
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/cover/base-studio.png.js +1 -1
- package/lib/assets/cover/blink.png.js +1 -0
- package/lib/assets/cover/ps.png.js +1 -0
- package/lib/assets/cover/robo.png.js +1 -0
- package/lib/components/dialog/index.vue.js +1 -1
- package/lib/components/global-header/index.vue.js +1 -1
- package/lib/components/global-header/interface.d.ts +3 -3
- package/lib/components/global-header/title.vue.d.ts +1 -1
- package/lib/components/layout/components/WrapHeader.vue.js +1 -0
- package/lib/components/layout/index.vue2.js +1 -1
- package/lib/components/nav-icon/cssVar.js +1 -1
- package/lib/components/platform-navigation/cssVar.d.ts +10 -0
- package/lib/components/platform-navigation/cssVar.js +1 -1
- package/lib/components/platform-navigation/index.d.ts +1 -1
- package/lib/components/platform-navigation/index.vue.d.ts +2 -2
- 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 +16 -5
- package/lib/components/platform-navigation/interface.js +1 -1
- package/lib/components/select/src/cssVar.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/button/dark.js +1 -1
- package/lib/config/themes/components/card/dark.js +1 -1
- package/lib/config/themes/components/cascader/dark.js +1 -1
- package/lib/config/themes/components/charts/dark.js +1 -1
- package/lib/config/themes/components/checkbox/dark.js +1 -1
- package/lib/config/themes/components/dataTable/common.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dataTable/light.js +1 -1
- package/lib/config/themes/components/dialog/dark.js +1 -1
- package/lib/config/themes/components/dropdown/dark.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/inputNumber/dark.js +1 -1
- package/lib/config/themes/components/layout/dark.js +1 -1
- package/lib/config/themes/components/menu/dark.js +1 -1
- package/lib/config/themes/components/popover/dark.js +1 -1
- package/lib/config/themes/components/progress/dark.js +1 -1
- package/lib/config/themes/components/radio/dark.js +1 -1
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/switch/dark.js +1 -1
- package/lib/config/themes/components/tag/dark.js +1 -1
- package/lib/config/themes/components/transfer/dark.js +1 -1
- package/lib/config/themes/index.js +1 -1
- package/lib/config/themes/token/light.d.ts +2 -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/lang/en-us.d.ts +6 -2
- package/lib/locale/lang/en-us.js +3 -1
- package/lib/locale/lang/zh-cn.js +3 -1
- package/package.json +1 -1
- package/es/assets/cover/source-robot.png.mjs +0 -4
- package/lib/assets/cover/source-robot.png.js +0 -1
- package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NModal as S, NCard as I } from "naive-ui";
|
|
2
|
-
import { defineComponent as P, mergeDefaults as E, computed as l, resolveComponent as O, createBlock as y, openBlock as c, mergeProps as h, withCtx as t, createVNode as d, createSlots as
|
|
2
|
+
import { defineComponent as P, mergeDefaults as E, computed as l, resolveComponent as O, createBlock as y, openBlock as c, mergeProps as h, withCtx as t, createVNode as d, createSlots as p, renderSlot as a, createElementBlock as C, toDisplayString as H, normalizeClass as L, unref as i } from "vue";
|
|
3
3
|
import { defaultProps as N } from "./options.mjs";
|
|
4
4
|
import b from "../button/button.mjs";
|
|
5
5
|
import "../button/interface.mjs";
|
|
@@ -71,11 +71,15 @@ const D = {
|
|
|
71
71
|
default: t(() => [
|
|
72
72
|
d(w, h({
|
|
73
73
|
"header-style": v.value,
|
|
74
|
+
"header-extra-style": {
|
|
75
|
+
position: "absolute",
|
|
76
|
+
right: "var(--n-padding-left)"
|
|
77
|
+
},
|
|
74
78
|
style: k.value,
|
|
75
79
|
size: e.cardSize,
|
|
76
80
|
closable: e.closable,
|
|
77
81
|
segmented: { content: !0 }
|
|
78
|
-
}, o.$attrs),
|
|
82
|
+
}, o.$attrs), p({
|
|
79
83
|
default: t(() => [
|
|
80
84
|
a(o.$slots, "default")
|
|
81
85
|
]),
|
|
@@ -84,7 +88,7 @@ const D = {
|
|
|
84
88
|
o.$slots.header || e.title ? {
|
|
85
89
|
name: "header",
|
|
86
90
|
fn: t(() => [
|
|
87
|
-
o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), C("span", D,
|
|
91
|
+
o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), C("span", D, H(e.title), 1))
|
|
88
92
|
]),
|
|
89
93
|
key: "0"
|
|
90
94
|
} : void 0,
|
|
@@ -105,7 +109,7 @@ const D = {
|
|
|
105
109
|
fn: t(() => [
|
|
106
110
|
o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), C("div", {
|
|
107
111
|
key: 1,
|
|
108
|
-
class:
|
|
112
|
+
class: L(["gap-[8px]", x.value])
|
|
109
113
|
}, [
|
|
110
114
|
d(i(b), {
|
|
111
115
|
icon: e.cancelIcon,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as S, ref as c, computed as I, createBlock as p, openBlock as s, unref as m, withCtx as i, createVNode as u, renderSlot as g, createCommentVNode as T, createSlots as w } from "vue";
|
|
2
2
|
import B from "./title.vue.mjs";
|
|
3
3
|
import L from "../system-actions/index.vue.mjs";
|
|
4
|
-
/* empty css
|
|
4
|
+
/* empty css */
|
|
5
5
|
import "../layout/options.mjs";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import P from "../layout/header/index.vue.mjs";
|
|
8
|
+
import "../../config/themes/token/light.mjs";
|
|
8
9
|
import "../../config/themes/components/alert/light.mjs";
|
|
9
10
|
import "../../config/themes/components/button/light.mjs";
|
|
10
11
|
import "../../config/themes/components/card/light.mjs";
|
|
@@ -59,7 +60,7 @@ import "../../config/themes/components/charts/light.mjs";
|
|
|
59
60
|
/* empty css */
|
|
60
61
|
import b from "../layout/aside-menu/aside-menu.mjs";
|
|
61
62
|
import "../layout/aside-menu/props.mjs";
|
|
62
|
-
const
|
|
63
|
+
const Oo = /* @__PURE__ */ S({
|
|
63
64
|
name: "BodenGlobalHeader",
|
|
64
65
|
__name: "index",
|
|
65
66
|
props: {
|
|
@@ -151,5 +152,5 @@ const Ko = /* @__PURE__ */ S({
|
|
|
151
152
|
}
|
|
152
153
|
});
|
|
153
154
|
export {
|
|
154
|
-
|
|
155
|
+
Oo as default
|
|
155
156
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { BODEN_PLATFORM_ENUM } from '../platform-navigation/interface';
|
|
3
3
|
import { BodenSystemActionsProps, BodenSystemActionsEmits } from '../system-actions';
|
|
4
4
|
export type BodenGlobalHeaderProps = {
|
|
5
5
|
isShowPlatformMenus?: boolean;
|
|
6
|
-
platformCode?: Array<
|
|
6
|
+
platformCode?: Array<BODEN_PLATFORM_ENUM>;
|
|
7
7
|
productIntroductionTriggerDisabled?: boolean;
|
|
8
8
|
} & Omit<BodenSystemActionsProps, 'mode'> & BodenGlobalHeaderTitleProps;
|
|
9
9
|
export type BodenGlobalHeaderSlots = {
|
|
@@ -30,7 +30,7 @@ export type BodenGlobalHeaderTitleProps = {
|
|
|
30
30
|
isShowProductIntroduction?: boolean;
|
|
31
31
|
isShowLogo?: boolean;
|
|
32
32
|
productIntroductionTriggerDisabled?: boolean;
|
|
33
|
-
platformCode?: Array<
|
|
33
|
+
platformCode?: Array<BODEN_PLATFORM_ENUM>;
|
|
34
34
|
};
|
|
35
35
|
export type BodenGlobalHeaderTitleSlots = {
|
|
36
36
|
logo?: () => VNode;
|
|
@@ -15,7 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<BodenGlobalHeaderTi
|
|
|
15
15
|
onTogglePlatform?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
onToggleLogo?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
platformCode: Array<import('../platform-navigation
|
|
18
|
+
platformCode: Array<import('../platform-navigation').BODEN_PLATFORM_ENUM>;
|
|
19
19
|
isShowProductIntroduction: boolean;
|
|
20
20
|
isShowLogo: boolean;
|
|
21
21
|
productIntroductionTriggerDisabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, mergeDefaults as _, useSlots as E, computed as o, createElementBlock as T, openBlock as u, normalizeStyle as j, createElementVNode as z, normalizeClass as G, unref as M, createBlock as p, createCommentVNode as l, createVNode as P, withCtx as d, renderSlot as c } from "vue";
|
|
2
|
-
import A from "./components/WrapHeader.
|
|
2
|
+
import A from "./components/WrapHeader.vue.mjs";
|
|
3
3
|
import N from "./components/WrapTab.vue.mjs";
|
|
4
4
|
import D from "./components/WrapContent.vue.mjs";
|
|
5
5
|
import O from "./components/WrapSlider.vue.mjs";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import r from "../../config/themes/token/dark.mjs";
|
|
2
|
+
import "../../config/themes/token/light.mjs";
|
|
2
3
|
import t from "../../config/themes/color/light.mjs";
|
|
3
4
|
import "../../config/themes/components/alert/light.mjs";
|
|
4
5
|
import "../../config/themes/components/button/light.mjs";
|
|
@@ -51,9 +52,9 @@ import "../../config/themes/components/baseComponent/dark.mjs";
|
|
|
51
52
|
import "../../config/themes/common/dark.mjs";
|
|
52
53
|
import "../../config/themes/components/charts/dark.mjs";
|
|
53
54
|
import "../../config/themes/components/charts/light.mjs";
|
|
54
|
-
const
|
|
55
|
+
const io = (o) => ({
|
|
55
56
|
"--base-icon-color": o ? r["color-text-2"] : t["color-gray-8"]
|
|
56
57
|
});
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
+
io as getNavIconStyleCssVar
|
|
59
60
|
};
|
|
@@ -5,6 +5,16 @@ export declare const createCardThemeOverrides: (isDarkMode: boolean) => {
|
|
|
5
5
|
color: string;
|
|
6
6
|
textColor: string;
|
|
7
7
|
titleTextColor: string;
|
|
8
|
+
paddingMedium: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const createHorizontalCardThemeOverrides: (isDarkMode: boolean) => {
|
|
11
|
+
fontSizeMedium: string;
|
|
12
|
+
titleFontSizeMedium: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
color: string;
|
|
15
|
+
textColor: string;
|
|
16
|
+
titleTextColor: string;
|
|
17
|
+
paddingMedium: string;
|
|
8
18
|
};
|
|
9
19
|
export declare const createPopoverCssVar: (isDarkMode: boolean) => {
|
|
10
20
|
'--base-title-color': string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import r from "../../config/themes/token/dark.mjs";
|
|
2
|
+
import i from "../../config/themes/token/light.mjs";
|
|
3
|
+
import l from "../../config/themes/color/dark.mjs";
|
|
4
|
+
import m from "../../config/themes/color/light.mjs";
|
|
5
5
|
import "../../config/themes/components/alert/light.mjs";
|
|
6
6
|
import "../../config/themes/components/button/light.mjs";
|
|
7
7
|
import "../../config/themes/components/card/light.mjs";
|
|
@@ -53,38 +53,45 @@ import "../../config/themes/components/baseComponent/dark.mjs";
|
|
|
53
53
|
import "../../config/themes/common/dark.mjs";
|
|
54
54
|
import "../../config/themes/components/charts/dark.mjs";
|
|
55
55
|
import "../../config/themes/components/charts/light.mjs";
|
|
56
|
-
const
|
|
57
|
-
"light-1":
|
|
58
|
-
"light-3":
|
|
59
|
-
"dark-1":
|
|
60
|
-
"dark-3":
|
|
56
|
+
const t = {
|
|
57
|
+
"light-1": m["color-gray-10"],
|
|
58
|
+
"light-3": m["color-gray-6"],
|
|
59
|
+
"dark-1": r["color-text-1"],
|
|
60
|
+
"dark-3": r["color-text-3"]
|
|
61
61
|
}, e = {
|
|
62
|
-
"light-
|
|
63
|
-
"dark-
|
|
64
|
-
},
|
|
65
|
-
"light-
|
|
66
|
-
"dark-
|
|
67
|
-
},
|
|
68
|
-
"light-1": o["color-gray-3"],
|
|
69
|
-
"dark-1": p["color-gray-3"]
|
|
70
|
-
}, gr = (r) => ({
|
|
62
|
+
"light-2": i["bg-color-2"],
|
|
63
|
+
"dark-2": r["bg-color-2"]
|
|
64
|
+
}, p = {
|
|
65
|
+
"light-1": m["color-gray-3"],
|
|
66
|
+
"dark-1": l["color-gray-3"]
|
|
67
|
+
}, ao = (o) => ({
|
|
71
68
|
fontSizeMedium: "12px",
|
|
72
69
|
titleFontSizeMedium: "14px",
|
|
73
|
-
borderColor:
|
|
74
|
-
color:
|
|
75
|
-
textColor:
|
|
76
|
-
titleTextColor:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
borderColor: p[o ? "dark-1" : "light-1"],
|
|
71
|
+
color: o ? r["fill-color-1"] : i["fill-color-1"],
|
|
72
|
+
textColor: t[o ? "dark-3" : "light-3"],
|
|
73
|
+
titleTextColor: t[o ? "dark-1" : "light-1"],
|
|
74
|
+
paddingMedium: "0"
|
|
75
|
+
}), go = (o) => ({
|
|
76
|
+
fontSizeMedium: "12px",
|
|
77
|
+
titleFontSizeMedium: "14px",
|
|
78
|
+
borderColor: p[o ? "dark-1" : "light-1"],
|
|
79
|
+
color: o ? r["fill-color-1"] : i["fill-color-1"],
|
|
80
|
+
textColor: t[o ? "dark-3" : "light-3"],
|
|
81
|
+
titleTextColor: o ? r["color-text-2"] : i["color-text-2"],
|
|
82
|
+
paddingMedium: "0"
|
|
83
|
+
}), ho = (o) => ({
|
|
84
|
+
"--base-title-color": t[o ? "dark-1" : "light-1"],
|
|
85
|
+
"--base-text-color": t[o ? "dark-3" : "light-3"],
|
|
86
|
+
"--base-color": e[o ? "dark-2" : "light-2"],
|
|
87
|
+
"--base-card-border-hover-color": o ? l["color-primary-6"] : m["color-primary-6"],
|
|
82
88
|
height: "620px",
|
|
83
|
-
borderRight: `1px solid ${
|
|
84
|
-
borderBottom: `1px solid ${
|
|
89
|
+
borderRight: `1px solid ${p[o ? "dark-1" : "light-1"]}`,
|
|
90
|
+
borderBottom: `1px solid ${p[o ? "dark-1" : "light-1"]}`,
|
|
85
91
|
overflow: "hidden"
|
|
86
92
|
});
|
|
87
93
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
ao as createCardThemeOverrides,
|
|
95
|
+
go as createHorizontalCardThemeOverrides,
|
|
96
|
+
ho as createPopoverCssVar
|
|
90
97
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BodenPlatformNavigation } from './index.vue';
|
|
2
|
-
export type
|
|
2
|
+
export { type BodenPlatformNavigationProps, BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BodenPlatformNavigationProps,
|
|
1
|
+
import { BodenPlatformNavigationProps, BODEN_PLATFORM_ENUM } from './interface';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<BodenPlatformNavigationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
3
|
togglePlatform: (...args: any[]) => void;
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<BodenPlatformNavigationProps> & Readonly<{
|
|
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<BodenPlatformNavigationPro
|
|
|
6
6
|
}>, {
|
|
7
7
|
x: number;
|
|
8
8
|
y: number;
|
|
9
|
-
platformCode:
|
|
9
|
+
platformCode: BODEN_PLATFORM_ENUM[];
|
|
10
10
|
triggerDisabled: boolean;
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
12
|
triggerInstRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').BodenNavIconProps> & Readonly<{
|
|
@@ -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
|
|
5
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-952f1733"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
i as default
|
|
8
8
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { NPopover as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import { useLocale as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { NPopover as U, NGrid as G, NGi as K, NCard as $, NButton as H } from "naive-ui";
|
|
2
|
+
import { defineComponent as j, ref as b, computed as g, resolveComponent as q, createElementBlock as u, openBlock as a, createVNode as p, createBlock as _, withModifiers as N, normalizeStyle as J, withCtx as s, createElementVNode as o, toDisplayString as f, unref as Q, Fragment as k, renderList as y, createCommentVNode as P, normalizeClass as W, createTextVNode as X, Teleport as Y, withDirectives as Z, vShow as ee } from "vue";
|
|
3
|
+
import oe from "../nav-icon/index.vue.mjs";
|
|
4
|
+
import { useLocale as te } from "../../hooks/useLocale.mjs";
|
|
5
|
+
import ie from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
6
|
+
import ne from "../../assets/cover/base-ads.png.mjs";
|
|
7
|
+
import re from "../../assets/cover/base-studio.png.mjs";
|
|
8
|
+
import ae from "../../assets/cover/base-multimodal.png.mjs";
|
|
9
|
+
import le from "../../assets/cover/robo.png.mjs";
|
|
10
|
+
import se from "../../assets/cover/ps.png.mjs";
|
|
11
|
+
import de from "../../assets/cover/blink.png.mjs";
|
|
12
|
+
import { createCardThemeOverrides as ce, createHorizontalCardThemeOverrides as me, createPopoverCssVar as pe } from "./cssVar.mjs";
|
|
13
|
+
import { BODEN_PLATFORM_NAME_ENUM as d, BODEN_PLATFORM_ENUM as c } from "./interface.mjs";
|
|
14
|
+
const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class: "platform-type-item-header" }, ue = { class: "title" }, he = { class: "description" }, _e = ["src"], be = { class: "platform-card_content" }, Ne = { class: "title" }, ke = { class: "description" }, ye = {
|
|
13
15
|
key: 0,
|
|
14
|
-
class: "
|
|
15
|
-
},
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "to-use"
|
|
18
|
-
}, pe = { class: "boden-platform-navigation-panel-mask" }, Be = /* @__PURE__ */ F({
|
|
16
|
+
class: "navigation"
|
|
17
|
+
}, Pe = { class: "boden-platform-navigation-panel-mask" }, ze = /* @__PURE__ */ j({
|
|
19
18
|
__name: "index",
|
|
20
19
|
props: {
|
|
21
20
|
platformCode: { default: () => [] },
|
|
@@ -24,165 +23,190 @@ const ie = { class: "header" }, ne = { class: "platform-wrap" }, re = { class: "
|
|
|
24
23
|
y: { default: 0 }
|
|
25
24
|
},
|
|
26
25
|
emits: ["togglePlatform"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
26
|
+
setup(m, { emit: B }) {
|
|
27
|
+
const C = m, S = B, D = ie(), { t: e } = te(), v = b(null), n = b(!1), h = g(() => {
|
|
29
28
|
const {
|
|
30
|
-
name:
|
|
31
|
-
} =
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
29
|
+
name: l = "light"
|
|
30
|
+
} = D?.mergedThemeRef.value || {};
|
|
31
|
+
return l !== "light";
|
|
32
|
+
}), O = [
|
|
33
|
+
{
|
|
34
|
+
key: "bric",
|
|
35
|
+
title: e("boden.platformNavigation.BricPlatform"),
|
|
36
|
+
description: e("boden.platformNavigation.BricPlatformDescription"),
|
|
37
|
+
svgIcon: "logo-base",
|
|
38
|
+
children: [
|
|
39
|
+
{
|
|
40
|
+
id: c.VLA,
|
|
41
|
+
key: d.ROBO,
|
|
42
|
+
title: e("boden.platformNavigation.RoboPlatform"),
|
|
43
|
+
description: e("boden.platformNavigation.RoboPlatformDescription"),
|
|
44
|
+
imageSrc: le
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: c.PS,
|
|
48
|
+
key: d.PS,
|
|
49
|
+
title: e("boden.platformNavigation.PsPlatform"),
|
|
50
|
+
description: e("boden.platformNavigation.PsPlatformDescription"),
|
|
51
|
+
imageSrc: se
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
34
55
|
{
|
|
35
|
-
id: u.BASE,
|
|
36
56
|
key: "base",
|
|
37
57
|
title: e("boden.platformNavigation.BasePlatform"),
|
|
38
58
|
description: e("boden.platformNavigation.BasePlatformDescription"),
|
|
39
59
|
svgIcon: "logo-base",
|
|
40
60
|
children: [
|
|
41
61
|
{
|
|
42
|
-
|
|
62
|
+
id: c.BASE,
|
|
63
|
+
key: d.ADS,
|
|
43
64
|
title: e("boden.platformNavigation.AdsPlatform"),
|
|
44
65
|
description: e("boden.platformNavigation.AdsPlatformDescription"),
|
|
45
|
-
imageSrc:
|
|
66
|
+
imageSrc: ne
|
|
46
67
|
},
|
|
47
68
|
{
|
|
48
|
-
|
|
69
|
+
id: c.BASE,
|
|
70
|
+
key: d.BASE,
|
|
49
71
|
title: e("boden.platformNavigation.StudioPlatform"),
|
|
50
72
|
description: e("boden.platformNavigation.StudioPlatformDescription"),
|
|
51
|
-
imageSrc:
|
|
73
|
+
imageSrc: re
|
|
52
74
|
},
|
|
53
75
|
{
|
|
54
|
-
|
|
76
|
+
id: c.BASE,
|
|
77
|
+
key: d.OMNI,
|
|
55
78
|
title: e("boden.platformNavigation.OmniPlatform"),
|
|
56
79
|
description: e("boden.platformNavigation.OmniPlatformDescription"),
|
|
57
|
-
imageSrc:
|
|
80
|
+
imageSrc: ae
|
|
58
81
|
}
|
|
59
82
|
]
|
|
60
83
|
},
|
|
61
84
|
{
|
|
62
|
-
id: u.BLINK,
|
|
63
85
|
key: "blink",
|
|
64
86
|
title: e("boden.platformNavigation.BlinkPlatform"),
|
|
65
87
|
description: e("boden.platformNavigation.BlinkPlatformDescription"),
|
|
66
|
-
svgIcon: "logo-base"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: u.VLA,
|
|
70
|
-
key: "bric",
|
|
71
|
-
title: e("boden.platformNavigation.BricPlatform"),
|
|
72
|
-
description: e("boden.platformNavigation.BricPlatformDescription"),
|
|
73
88
|
svgIcon: "logo-base",
|
|
74
89
|
children: [
|
|
75
90
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
91
|
+
id: c.BLINK,
|
|
92
|
+
key: d.BLINK,
|
|
93
|
+
title: e("boden.platformNavigation.BlinkPlatformSpecific"),
|
|
94
|
+
description: e("boden.platformNavigation.BlinkPlatformSpecificDescription"),
|
|
95
|
+
imageSrc: de
|
|
80
96
|
}
|
|
81
97
|
]
|
|
82
98
|
}
|
|
83
|
-
],
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
|
|
99
|
+
], x = g(() => ce(h.value)), w = g(() => me(h.value)), A = g(() => pe(h.value)), R = () => {
|
|
100
|
+
C.triggerDisabled || (n.value = !n.value);
|
|
101
|
+
}, E = (l, i) => {
|
|
102
|
+
S("togglePlatform", l, i);
|
|
103
|
+
}, I = (l) => {
|
|
104
|
+
v.value && v.value.instRef && v.value.instRef.contains(l.target) || (n.value = !1);
|
|
89
105
|
};
|
|
90
|
-
return (
|
|
91
|
-
const
|
|
92
|
-
return
|
|
93
|
-
|
|
106
|
+
return (l, i) => {
|
|
107
|
+
const M = q("svg-icon"), T = H, L = $, z = K, V = G, F = U;
|
|
108
|
+
return a(), u("div", null, [
|
|
109
|
+
p(oe, {
|
|
94
110
|
ref_key: "triggerInstRef",
|
|
95
|
-
ref:
|
|
96
|
-
active:
|
|
97
|
-
disabled:
|
|
98
|
-
onClick: N(
|
|
111
|
+
ref: v,
|
|
112
|
+
active: n.value,
|
|
113
|
+
disabled: m.triggerDisabled,
|
|
114
|
+
onClick: N(R, ["stop"])
|
|
99
115
|
}, null, 8, ["active", "disabled"]),
|
|
100
|
-
|
|
116
|
+
p(F, {
|
|
101
117
|
"content-class": "boden-platform-navigation-panel-popover",
|
|
102
118
|
trigger: "manual",
|
|
103
|
-
show:
|
|
104
|
-
"onUpdate:show":
|
|
105
|
-
style:
|
|
119
|
+
show: n.value,
|
|
120
|
+
"onUpdate:show": i[2] || (i[2] = (t) => n.value = t),
|
|
121
|
+
style: J(A.value),
|
|
106
122
|
"show-arrow": !1,
|
|
107
123
|
width: 1058,
|
|
108
124
|
scrollable: "",
|
|
109
|
-
x:
|
|
110
|
-
y:
|
|
125
|
+
x: m.x,
|
|
126
|
+
y: m.y,
|
|
111
127
|
"theme-overrides": { padding: "0", space: "0", borderRadius: "3px" },
|
|
112
|
-
onClickoutside:
|
|
128
|
+
onClickoutside: I
|
|
113
129
|
}, {
|
|
114
|
-
default:
|
|
115
|
-
|
|
130
|
+
default: s(() => [
|
|
131
|
+
o("div", {
|
|
116
132
|
class: "boden-platform-navigation-panel",
|
|
117
|
-
onClick:
|
|
133
|
+
onClick: i[1] || (i[1] = N(() => {
|
|
118
134
|
}, ["stop"]))
|
|
119
135
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
136
|
+
o("div", fe, [
|
|
137
|
+
o("div", null, f(Q(e)("boden.platformNavigation.allProducts")), 1),
|
|
138
|
+
p(M, {
|
|
123
139
|
icon: "operate-close",
|
|
124
140
|
size: "16",
|
|
125
|
-
onClick:
|
|
141
|
+
onClick: i[0] || (i[0] = (t) => n.value = !1)
|
|
126
142
|
})
|
|
127
143
|
]),
|
|
128
|
-
|
|
129
|
-
(
|
|
130
|
-
key:
|
|
131
|
-
class: "platform-item"
|
|
144
|
+
o("div", ve, [
|
|
145
|
+
(a(), u(k, null, y(O, (t) => o("div", {
|
|
146
|
+
key: t.key,
|
|
147
|
+
class: "platform-type-item"
|
|
132
148
|
}, [
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
icon: o.svgIcon,
|
|
137
|
-
size: "32"
|
|
138
|
-
}, null, 8, ["icon"])
|
|
139
|
-
]),
|
|
140
|
-
t("div", {
|
|
141
|
-
class: "title",
|
|
142
|
-
onClick: (l) => b(o.key)
|
|
143
|
-
}, v(o.title), 9, le),
|
|
144
|
-
t("div", se, v(o.description), 1)
|
|
149
|
+
o("div", ge, [
|
|
150
|
+
o("div", ue, f(t.title), 1),
|
|
151
|
+
o("div", he, f(t.description), 1)
|
|
145
152
|
]),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
s.platformCode?.includes(o.id) ? (r(), d("div", me, [
|
|
161
|
-
c(T, {
|
|
162
|
-
round: "",
|
|
163
|
-
size: "tiny",
|
|
164
|
-
type: "primary",
|
|
165
|
-
onClick: (ve) => b(l.key)
|
|
153
|
+
t.children && t.children.length ? (a(), _(V, {
|
|
154
|
+
key: 0,
|
|
155
|
+
"x-gap": "12",
|
|
156
|
+
cols: t.children.length === 1 ? 1 : 3,
|
|
157
|
+
style: { "margin-top": "12px" }
|
|
158
|
+
}, {
|
|
159
|
+
default: s(() => [
|
|
160
|
+
(a(!0), u(k, null, y(t.children, (r) => (a(), _(z, {
|
|
161
|
+
key: r.key
|
|
162
|
+
}, {
|
|
163
|
+
default: s(() => [
|
|
164
|
+
p(L, {
|
|
165
|
+
class: W(["platform-card", { "is-horizontal": t.children.length === 1 }]),
|
|
166
|
+
"theme-overrides": t.children.length === 1 ? w.value : x.value
|
|
166
167
|
}, {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
cover: s(() => [
|
|
169
|
+
o("img", {
|
|
170
|
+
src: r.imageSrc,
|
|
171
|
+
alt: ""
|
|
172
|
+
}, null, 8, _e)
|
|
173
|
+
]),
|
|
174
|
+
default: s(() => [
|
|
175
|
+
o("div", be, [
|
|
176
|
+
o("div", Ne, f(r.title), 1),
|
|
177
|
+
o("div", ke, f(r.description), 1)
|
|
178
|
+
]),
|
|
179
|
+
m.platformCode?.includes(r.id) ? (a(), u("div", ye, [
|
|
180
|
+
p(T, {
|
|
181
|
+
round: "",
|
|
182
|
+
size: "tiny",
|
|
183
|
+
type: "primary",
|
|
184
|
+
onClick: (Be) => E(r.id, r.key)
|
|
185
|
+
}, {
|
|
186
|
+
default: s(() => [...i[3] || (i[3] = [
|
|
187
|
+
X("开始使用", -1)
|
|
188
|
+
])]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["onClick"])
|
|
191
|
+
])) : P("", !0)
|
|
192
|
+
]),
|
|
193
|
+
_: 2
|
|
194
|
+
}, 1032, ["class", "theme-overrides"])
|
|
195
|
+
]),
|
|
196
|
+
_: 2
|
|
197
|
+
}, 1024))), 128))
|
|
198
|
+
]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1032, ["cols"])) : P("", !0)
|
|
177
201
|
])), 64))
|
|
178
202
|
])
|
|
179
203
|
])
|
|
180
204
|
]),
|
|
181
205
|
_: 1
|
|
182
206
|
}, 8, ["show", "style", "x", "y"]),
|
|
183
|
-
(
|
|
184
|
-
|
|
185
|
-
[
|
|
207
|
+
(a(), _(Y, { to: "body" }, [
|
|
208
|
+
Z(o("div", Pe, null, 512), [
|
|
209
|
+
[ee, n.value]
|
|
186
210
|
])
|
|
187
211
|
]))
|
|
188
212
|
]);
|
|
@@ -190,5 +214,5 @@ const ie = { class: "header" }, ne = { class: "platform-wrap" }, re = { class: "
|
|
|
190
214
|
}
|
|
191
215
|
});
|
|
192
216
|
export {
|
|
193
|
-
|
|
217
|
+
ze as default
|
|
194
218
|
};
|