base6-ui 2.0.11 → 2.0.13
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/index.css +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/locale/lang/en-us.d.ts +3 -3
- package/es/components/platform-navigation/index.vue.mjs +2 -2
- package/es/components/platform-navigation/index.vue2.mjs +78 -78
- package/es/config/themes/components/button/dark.mjs +16 -9
- package/es/config/themes/components/button/light.mjs +8 -1
- package/es/index.css +1 -1
- package/es/locale/lang/en-us.d.ts +3 -3
- package/es/locale/lang/en-us.mjs +4 -4
- package/es/locale/lang/zh-cn.mjs +4 -4
- package/lib/components/platform-navigation/index.vue.js +1 -1
- package/lib/components/platform-navigation/index.vue2.js +1 -1
- package/lib/config/themes/components/button/dark.js +1 -1
- package/lib/config/themes/components/button/light.js +1 -1
- package/lib/index.css +1 -1
- package/lib/locale/lang/en-us.d.ts +3 -3
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ declare const enUS: {
|
|
|
5
5
|
userCenter: string;
|
|
6
6
|
logout: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
platformNavigation: {
|
|
9
9
|
allProducts: string;
|
|
10
10
|
BasePlatform: string;
|
|
11
11
|
BasePlatformDescription: string;
|
|
@@ -17,8 +17,8 @@ declare const enUS: {
|
|
|
17
17
|
OmniPlatformDescription: string;
|
|
18
18
|
BlinkPlatform: string;
|
|
19
19
|
BlinkPlatformDescription: string;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
BricPlatform: string;
|
|
21
|
+
BricPlatformDescription: string;
|
|
22
22
|
RobotPlatform: string;
|
|
23
23
|
RobotPlatformDescription: string;
|
|
24
24
|
};
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1b2deb36"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NPopover as z, NCard as E, NButton as $ } from "naive-ui";
|
|
2
|
-
import { defineComponent as F, ref as h, computed as
|
|
2
|
+
import { defineComponent as F, ref as h, computed as f, resolveComponent as U, createElementBlock as d, openBlock as r, createVNode as c, createBlock as y, withModifiers as N, normalizeStyle as K, withCtx as p, createElementVNode as t, toDisplayString as v, unref as j, Fragment as _, renderList as P, createCommentVNode as C, createTextVNode as B, Teleport as q, withDirectives as G, vShow as H } from "vue";
|
|
3
3
|
import J from "../nav-icon/index.vue.mjs";
|
|
4
4
|
import { useLocale as Q } from "../../hooks/useLocale.mjs";
|
|
5
5
|
import W from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
@@ -8,14 +8,14 @@ import Y from "../../assets/cover/base-studio.png.mjs";
|
|
|
8
8
|
import Z from "../../assets/cover/base-multimodal.png.mjs";
|
|
9
9
|
import ee from "../../assets/cover/source-robot.png.mjs";
|
|
10
10
|
import { createCardThemeOverrides as oe, createPopoverCssVar as te } from "./cssVar.mjs";
|
|
11
|
-
import { PLATFORM_ENUM as
|
|
12
|
-
const
|
|
11
|
+
import { PLATFORM_ENUM as u } from "./interface.mjs";
|
|
12
|
+
const ie = { class: "header" }, ne = { class: "platform-wrap" }, re = { class: "platform-item-header" }, ae = { class: "icon" }, le = ["onClick"], se = { class: "description" }, de = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "platform-child-wrap"
|
|
15
|
-
},
|
|
15
|
+
}, ce = ["src"], me = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "to-use"
|
|
18
|
-
},
|
|
18
|
+
}, pe = { class: "boden-platform-navigation-panel-mask" }, Be = /* @__PURE__ */ F({
|
|
19
19
|
__name: "index",
|
|
20
20
|
props: {
|
|
21
21
|
platformCode: { default: () => [] },
|
|
@@ -24,148 +24,148 @@ const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "
|
|
|
24
24
|
y: { default: 0 }
|
|
25
25
|
},
|
|
26
26
|
emits: ["togglePlatform"],
|
|
27
|
-
setup(
|
|
28
|
-
const w =
|
|
27
|
+
setup(s, { emit: S }) {
|
|
28
|
+
const w = s, D = S, x = W(), { t: e } = Q(), m = h(null), i = h(!1), g = f(() => {
|
|
29
29
|
const {
|
|
30
|
-
name:
|
|
31
|
-
} =
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
30
|
+
name: a = "light"
|
|
31
|
+
} = x?.mergedThemeRef.value || {};
|
|
32
|
+
return a !== "light";
|
|
33
|
+
}), R = [
|
|
34
34
|
{
|
|
35
|
-
id:
|
|
35
|
+
id: u.BASE,
|
|
36
36
|
key: "base",
|
|
37
|
-
title: e("boden.
|
|
38
|
-
description: e("boden.
|
|
37
|
+
title: e("boden.platformNavigation.BasePlatform"),
|
|
38
|
+
description: e("boden.platformNavigation.BasePlatformDescription"),
|
|
39
39
|
svgIcon: "logo-base",
|
|
40
40
|
children: [
|
|
41
41
|
{
|
|
42
42
|
key: "ads",
|
|
43
|
-
title: e("boden.
|
|
44
|
-
description: e("boden.
|
|
43
|
+
title: e("boden.platformNavigation.AdsPlatform"),
|
|
44
|
+
description: e("boden.platformNavigation.AdsPlatformDescription"),
|
|
45
45
|
imageSrc: X
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: "studio",
|
|
49
|
-
title: e("boden.
|
|
50
|
-
description: e("boden.
|
|
49
|
+
title: e("boden.platformNavigation.StudioPlatform"),
|
|
50
|
+
description: e("boden.platformNavigation.StudioPlatformDescription"),
|
|
51
51
|
imageSrc: Y
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: "omni",
|
|
55
|
-
title: e("boden.
|
|
56
|
-
description: e("boden.
|
|
55
|
+
title: e("boden.platformNavigation.OmniPlatform"),
|
|
56
|
+
description: e("boden.platformNavigation.OmniPlatformDescription"),
|
|
57
57
|
imageSrc: Z
|
|
58
58
|
}
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
id:
|
|
62
|
+
id: u.BLINK,
|
|
63
63
|
key: "blink",
|
|
64
|
-
title: e("boden.
|
|
65
|
-
description: e("boden.
|
|
64
|
+
title: e("boden.platformNavigation.BlinkPlatform"),
|
|
65
|
+
description: e("boden.platformNavigation.BlinkPlatformDescription"),
|
|
66
66
|
svgIcon: "logo-base"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
id:
|
|
70
|
-
key: "
|
|
71
|
-
title: e("boden.
|
|
72
|
-
description: e("boden.
|
|
69
|
+
id: u.VLA,
|
|
70
|
+
key: "bric",
|
|
71
|
+
title: e("boden.platformNavigation.BricPlatform"),
|
|
72
|
+
description: e("boden.platformNavigation.BricPlatformDescription"),
|
|
73
73
|
svgIcon: "logo-base",
|
|
74
74
|
children: [
|
|
75
75
|
{
|
|
76
76
|
key: "robot",
|
|
77
|
-
title: e("boden.
|
|
78
|
-
description: e("boden.
|
|
77
|
+
title: e("boden.platformNavigation.RobotPlatform"),
|
|
78
|
+
description: e("boden.platformNavigation.RobotPlatformDescription"),
|
|
79
79
|
imageSrc: ee
|
|
80
80
|
}
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
|
-
],
|
|
84
|
-
w.triggerDisabled || (
|
|
85
|
-
}, b = (
|
|
86
|
-
D("togglePlatform",
|
|
87
|
-
}, O = (
|
|
88
|
-
|
|
83
|
+
], I = f(() => oe(g.value)), A = f(() => te(g.value)), L = () => {
|
|
84
|
+
w.triggerDisabled || (i.value = !i.value);
|
|
85
|
+
}, b = (a) => {
|
|
86
|
+
D("togglePlatform", a);
|
|
87
|
+
}, O = (a) => {
|
|
88
|
+
m.value && m.value.instRef && m.value.instRef.contains(a.target) || (i.value = !1);
|
|
89
89
|
};
|
|
90
|
-
return (
|
|
90
|
+
return (a, n) => {
|
|
91
91
|
const k = U("svg-icon"), T = $, V = E, M = z;
|
|
92
|
-
return r(),
|
|
93
|
-
|
|
92
|
+
return r(), d("div", null, [
|
|
93
|
+
c(J, {
|
|
94
94
|
ref_key: "triggerInstRef",
|
|
95
|
-
ref:
|
|
96
|
-
active:
|
|
97
|
-
disabled:
|
|
98
|
-
onClick:
|
|
95
|
+
ref: m,
|
|
96
|
+
active: i.value,
|
|
97
|
+
disabled: s.triggerDisabled,
|
|
98
|
+
onClick: N(L, ["stop"])
|
|
99
99
|
}, null, 8, ["active", "disabled"]),
|
|
100
|
-
|
|
100
|
+
c(M, {
|
|
101
101
|
"content-class": "boden-platform-navigation-panel-popover",
|
|
102
102
|
trigger: "manual",
|
|
103
|
-
show:
|
|
104
|
-
"onUpdate:show":
|
|
103
|
+
show: i.value,
|
|
104
|
+
"onUpdate:show": n[2] || (n[2] = (o) => i.value = o),
|
|
105
105
|
style: K(A.value),
|
|
106
106
|
"show-arrow": !1,
|
|
107
107
|
width: 1058,
|
|
108
108
|
scrollable: "",
|
|
109
|
-
x:
|
|
110
|
-
y:
|
|
109
|
+
x: s.x,
|
|
110
|
+
y: s.y,
|
|
111
111
|
"theme-overrides": { padding: "0", space: "0", borderRadius: "3px" },
|
|
112
112
|
onClickoutside: O
|
|
113
113
|
}, {
|
|
114
|
-
default:
|
|
114
|
+
default: p(() => [
|
|
115
115
|
t("div", {
|
|
116
116
|
class: "boden-platform-navigation-panel",
|
|
117
|
-
onClick:
|
|
117
|
+
onClick: n[1] || (n[1] = N(() => {
|
|
118
118
|
}, ["stop"]))
|
|
119
119
|
}, [
|
|
120
|
-
t("div",
|
|
121
|
-
t("div", null,
|
|
122
|
-
|
|
120
|
+
t("div", ie, [
|
|
121
|
+
t("div", null, v(j(e)("boden.platformNavigation.allProducts")), 1),
|
|
122
|
+
c(k, {
|
|
123
123
|
icon: "operate-close",
|
|
124
124
|
size: "16",
|
|
125
|
-
onClick:
|
|
125
|
+
onClick: n[0] || (n[0] = (o) => i.value = !1)
|
|
126
126
|
})
|
|
127
127
|
]),
|
|
128
|
-
t("div",
|
|
129
|
-
(r(),
|
|
128
|
+
t("div", ne, [
|
|
129
|
+
(r(), d(_, null, P(R, (o) => t("div", {
|
|
130
130
|
key: o.key,
|
|
131
131
|
class: "platform-item"
|
|
132
132
|
}, [
|
|
133
133
|
t("div", re, [
|
|
134
|
-
t("div",
|
|
135
|
-
|
|
134
|
+
t("div", ae, [
|
|
135
|
+
c(k, {
|
|
136
136
|
icon: o.svgIcon,
|
|
137
137
|
size: "32"
|
|
138
138
|
}, null, 8, ["icon"])
|
|
139
139
|
]),
|
|
140
140
|
t("div", {
|
|
141
141
|
class: "title",
|
|
142
|
-
onClick: (
|
|
143
|
-
},
|
|
144
|
-
t("div",
|
|
142
|
+
onClick: (l) => b(o.key)
|
|
143
|
+
}, v(o.title), 9, le),
|
|
144
|
+
t("div", se, v(o.description), 1)
|
|
145
145
|
]),
|
|
146
|
-
o.children && o.children.length ? (r(),
|
|
147
|
-
(r(!0),
|
|
148
|
-
key:
|
|
149
|
-
title:
|
|
150
|
-
"theme-overrides":
|
|
146
|
+
o.children && o.children.length ? (r(), d("div", de, [
|
|
147
|
+
(r(!0), d(_, null, P(o.children, (l) => (r(), y(V, {
|
|
148
|
+
key: l.key,
|
|
149
|
+
title: l.title,
|
|
150
|
+
"theme-overrides": I.value
|
|
151
151
|
}, {
|
|
152
|
-
cover:
|
|
152
|
+
cover: p(() => [
|
|
153
153
|
t("img", {
|
|
154
|
-
src:
|
|
154
|
+
src: l.imageSrc,
|
|
155
155
|
alt: ""
|
|
156
|
-
}, null, 8,
|
|
156
|
+
}, null, 8, ce)
|
|
157
157
|
]),
|
|
158
|
-
default:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
default: p(() => [
|
|
159
|
+
B(" " + v(l.description) + " ", 1),
|
|
160
|
+
s.platformCode?.includes(o.id) ? (r(), d("div", me, [
|
|
161
|
+
c(T, {
|
|
162
162
|
round: "",
|
|
163
163
|
size: "tiny",
|
|
164
164
|
type: "primary",
|
|
165
|
-
onClick: (
|
|
165
|
+
onClick: (ve) => b(l.key)
|
|
166
166
|
}, {
|
|
167
|
-
default:
|
|
168
|
-
|
|
167
|
+
default: p(() => [...n[3] || (n[3] = [
|
|
168
|
+
B("开始使用", -1)
|
|
169
169
|
])]),
|
|
170
170
|
_: 1
|
|
171
171
|
}, 8, ["onClick"])
|
|
@@ -181,8 +181,8 @@ const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "
|
|
|
181
181
|
_: 1
|
|
182
182
|
}, 8, ["show", "style", "x", "y"]),
|
|
183
183
|
(r(), y(q, { to: "body" }, [
|
|
184
|
-
G(t("div",
|
|
185
|
-
[H,
|
|
184
|
+
G(t("div", pe, null, 512), [
|
|
185
|
+
[H, i.value]
|
|
186
186
|
])
|
|
187
187
|
]))
|
|
188
188
|
]);
|
|
@@ -190,5 +190,5 @@ const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
export {
|
|
193
|
-
|
|
193
|
+
Be as default
|
|
194
194
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "../../color/dark.mjs";
|
|
2
2
|
import r from "../../token/dark.mjs";
|
|
3
3
|
import { ButtonThemeCommon as e } from "./common.mjs";
|
|
4
|
-
const
|
|
4
|
+
const c = {
|
|
5
5
|
...e,
|
|
6
6
|
opacityDisabled: "0.4",
|
|
7
7
|
border: `1px solid ${r["fill-color-2"]}`,
|
|
@@ -55,17 +55,16 @@ const t = {
|
|
|
55
55
|
colorPressedPrimary: o["color-primary-7"],
|
|
56
56
|
colorPressedSuccess: o["color-green-7"],
|
|
57
57
|
colorPressedWarning: o["color-origin-7"],
|
|
58
|
-
textColor:
|
|
58
|
+
textColor: r["color-text-2"],
|
|
59
59
|
textColorError: r["color-text-5"],
|
|
60
60
|
textColorPrimary: r["color-text-5"],
|
|
61
61
|
textColorSuccess: r["color-text-5"],
|
|
62
62
|
textColorWarning: r["color-text-5"],
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
textColorDisabledWarning: "rgba(255, 255, 255, 0.75)",
|
|
63
|
+
textColorDisabled: r["color-text-2"],
|
|
64
|
+
textColorDisabledError: r["color-text-5"],
|
|
65
|
+
textColorDisabledPrimary: r["color-text-5"],
|
|
66
|
+
textColorDisabledSuccess: r["color-text-5"],
|
|
67
|
+
textColorDisabledWarning: r["color-text-5"],
|
|
69
68
|
textColorFocus: o["color-gray-8"],
|
|
70
69
|
textColorFocusError: r["color-text-5"],
|
|
71
70
|
textColorFocusPrimary: r["color-text-5"],
|
|
@@ -81,6 +80,14 @@ const t = {
|
|
|
81
80
|
textColorPressedPrimary: r["color-text-5"],
|
|
82
81
|
textColorPressedSuccess: r["color-text-5"],
|
|
83
82
|
textColorPressedWarning: r["color-text-5"],
|
|
83
|
+
textColorText: r["color-text-2"],
|
|
84
|
+
textColorTextHover: o["color-primary-6"],
|
|
85
|
+
textColorTextFocus: o["color-primary-6"],
|
|
86
|
+
textColorTextDisabled: "rgba(255, 255, 255, 0.5)",
|
|
87
|
+
textColorTextDisabledError: r["color-error-disabled"],
|
|
88
|
+
textColorTextDisabledPrimary: r["color-primary-disabled"],
|
|
89
|
+
textColorTextDisabledSuccess: r["color-success-disabled"],
|
|
90
|
+
textColorTextDisabledWarning: r["color-warning-disabled"],
|
|
84
91
|
textColorGhost: o["color-gray-8"],
|
|
85
92
|
textColorGhostError: o["color-red-6"],
|
|
86
93
|
textColorGhostPrimary: o["color-primary-6"],
|
|
@@ -108,5 +115,5 @@ const t = {
|
|
|
108
115
|
textColorGhostPressedWarning: o["color-origin-7"]
|
|
109
116
|
};
|
|
110
117
|
export {
|
|
111
|
-
|
|
118
|
+
c as ButtonThemeDark
|
|
112
119
|
};
|
|
@@ -58,7 +58,14 @@ const c = {
|
|
|
58
58
|
textColorFocus: o["color-gray-8"],
|
|
59
59
|
textColorHover: o["color-gray-8"],
|
|
60
60
|
textColorPressed: o["color-gray-8"],
|
|
61
|
-
textColorText: o["color-gray-
|
|
61
|
+
textColorText: o["color-gray-8"],
|
|
62
|
+
textColorTextHover: o["color-primary-6"],
|
|
63
|
+
textColorTextFocus: o["color-primary-6"],
|
|
64
|
+
textColorTextDisabled: o["color-gray-5"],
|
|
65
|
+
textColorTextDisabledError: o["color-red-3"],
|
|
66
|
+
textColorTextDisabledPrimary: o["color-primary-3"],
|
|
67
|
+
textColorTextDisabledSuccess: o["color-green-3"],
|
|
68
|
+
textColorTextDisabledWarning: o["color-origin-3"],
|
|
62
69
|
textColorGhost: o["color-gray-8"],
|
|
63
70
|
textColorGhostError: o["color-red-6"],
|
|
64
71
|
textColorGhostPrimary: o["color-primary-6"],
|