base6-ui 2.0.24 → 2.0.25

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.
Files changed (29) hide show
  1. package/dist/components/platform-navigation/index.d.ts +1 -1
  2. package/dist/components/platform-navigation/index.vue.d.ts +3 -1
  3. package/dist/components/platform-navigation/interface.d.ts +3 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index.umd.js +3 -3
  6. package/es/components/global-header/index.vue.mjs +1 -1
  7. package/es/components/layout/components/{WrapHeader.vue.mjs → WrapHeader.vue2.mjs} +1 -1
  8. package/es/components/layout/index.vue2.mjs +1 -1
  9. package/es/components/platform-navigation/index.d.ts +1 -1
  10. package/es/components/platform-navigation/index.vue.d.ts +3 -1
  11. package/es/components/platform-navigation/index.vue.mjs +2 -2
  12. package/es/components/platform-navigation/index.vue2.mjs +74 -70
  13. package/es/components/platform-navigation/interface.d.ts +3 -0
  14. package/es/index.css +1 -1
  15. package/es/locale/lang/en-us.mjs +4 -4
  16. package/es/locale/lang/zh-cn.mjs +4 -4
  17. package/lib/components/global-header/index.vue.js +1 -1
  18. package/lib/components/layout/components/WrapHeader.vue2.js +1 -0
  19. package/lib/components/layout/index.vue2.js +1 -1
  20. package/lib/components/platform-navigation/index.d.ts +1 -1
  21. package/lib/components/platform-navigation/index.vue.d.ts +3 -1
  22. package/lib/components/platform-navigation/index.vue.js +1 -1
  23. package/lib/components/platform-navigation/index.vue2.js +1 -1
  24. package/lib/components/platform-navigation/interface.d.ts +3 -0
  25. package/lib/index.css +1 -1
  26. package/lib/locale/lang/en-us.js +2 -2
  27. package/lib/locale/lang/zh-cn.js +2 -2
  28. package/package.json +1 -1
  29. package/lib/components/layout/components/WrapHeader.vue.js +0 -1
@@ -1,7 +1,7 @@
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";
@@ -1,5 +1,5 @@
1
1
  import a from "./WrapHeader.vue3.mjs";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  const d = /* @__PURE__ */ o(a, [["__scopeId", "data-v-a43da04d"]]);
5
5
  export {
@@ -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.vue.mjs";
2
+ import A from "./components/WrapHeader.vue2.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,2 +1,2 @@
1
1
  export { default as BodenPlatformNavigation } from './index.vue';
2
- export { type BodenPlatformNavigationProps, BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './interface';
2
+ export { type BodenPlatformNavigationProps, type BodenPlatformNavigationInstance, BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './interface';
@@ -1,5 +1,7 @@
1
1
  import { BodenPlatformNavigationProps, BODEN_PLATFORM_ENUM } from './interface';
2
- declare const _default: import('vue').DefineComponent<BodenPlatformNavigationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ declare const _default: import('vue').DefineComponent<BodenPlatformNavigationProps, {
3
+ updateShow: (value: boolean) => void;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
5
  togglePlatform: (...args: any[]) => void;
4
6
  }, string, import('vue').PublicProps, Readonly<BodenPlatformNavigationProps> & Readonly<{
5
7
  onTogglePlatform?: ((...args: any[]) => any) | undefined;
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed111a71"]]);
5
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d7f37bb4"]]);
6
6
  export {
7
- p as default
7
+ i as default
8
8
  };
@@ -1,20 +1,20 @@
1
- import { NPopover as F, 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";
1
+ import { NPopover as K, NGrid as $, NGi as H, NCard as j, NButton as q } from "naive-ui";
2
+ import { defineComponent as J, ref as N, computed as g, resolveComponent as Q, createElementBlock as u, openBlock as l, createVNode as p, createBlock as _, withModifiers as k, normalizeStyle as W, withCtx as s, createElementVNode as o, toDisplayString as f, unref as X, Fragment as y, renderList as P, createCommentVNode as B, normalizeClass as Y, createTextVNode as Z, Teleport as ee, withDirectives as oe, vShow as te } from "vue";
3
+ import ie from "../nav-icon/index.vue.mjs";
4
+ import { useLocale as ne } from "../../hooks/useLocale.mjs";
5
+ import re from "../../hooks/useNaiveConfigProvideContext.mjs";
6
+ import ae from "../../assets/cover/base-ads.png.mjs";
7
+ import le from "../../assets/cover/base-studio.png.mjs";
8
+ import se from "../../assets/cover/base-multimodal.png.mjs";
9
+ import de from "../../assets/cover/robo.png.mjs";
10
+ import ce from "../../assets/cover/ps.png.mjs";
11
+ import me from "../../assets/cover/blink.png.mjs";
12
+ import { createCardThemeOverrides as pe, createHorizontalCardThemeOverrides as fe, createPopoverCssVar as ve } from "./cssVar.mjs";
13
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 = {
14
+ const ge = { class: "header" }, ue = { class: "content-wrapper" }, he = { class: "platform-type-item-header" }, _e = { class: "title" }, be = { class: "description" }, Ne = ["src"], ke = { class: "platform-card_content" }, ye = { class: "title" }, Pe = { class: "description" }, Be = {
15
15
  key: 0,
16
16
  class: "navigation"
17
- }, Pe = { class: "boden-platform-navigation-panel-mask" }, ze = /* @__PURE__ */ j({
17
+ }, Se = { class: "boden-platform-navigation-panel-mask" }, Ue = /* @__PURE__ */ J({
18
18
  __name: "index",
19
19
  props: {
20
20
  platformCode: { default: () => [] },
@@ -23,13 +23,13 @@ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class:
23
23
  y: { default: 0 }
24
24
  },
25
25
  emits: ["togglePlatform"],
26
- setup(m, { emit: B }) {
27
- const C = m, S = B, D = ie(), { t: e } = te(), v = b(null), n = b(!1), h = g(() => {
26
+ setup(m, { expose: S, emit: C }) {
27
+ const D = m, x = C, O = re(), { t: e } = ne(), v = N(null), n = N(!1), h = g(() => {
28
28
  const {
29
- name: l = "light"
30
- } = D?.mergedThemeRef.value || {};
31
- return l !== "light";
32
- }), O = [
29
+ name: r = "light"
30
+ } = O?.mergedThemeRef.value || {};
31
+ return r !== "light";
32
+ }), w = [
33
33
  {
34
34
  key: "bric",
35
35
  title: e("boden.platformNavigation.BricPlatform"),
@@ -41,14 +41,14 @@ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class:
41
41
  key: d.ROBO,
42
42
  title: e("boden.platformNavigation.RoboPlatform"),
43
43
  description: e("boden.platformNavigation.RoboPlatformDescription"),
44
- imageSrc: le
44
+ imageSrc: de
45
45
  },
46
46
  {
47
47
  id: c.PS,
48
48
  key: d.PS,
49
49
  title: e("boden.platformNavigation.PsPlatform"),
50
50
  description: e("boden.platformNavigation.PsPlatformDescription"),
51
- imageSrc: se
51
+ imageSrc: ce
52
52
  }
53
53
  ]
54
54
  },
@@ -63,21 +63,21 @@ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class:
63
63
  key: d.ADS,
64
64
  title: e("boden.platformNavigation.AdsPlatform"),
65
65
  description: e("boden.platformNavigation.AdsPlatformDescription"),
66
- imageSrc: ne
66
+ imageSrc: ae
67
67
  },
68
68
  {
69
69
  id: c.BASE,
70
70
  key: d.STUDIO,
71
71
  title: e("boden.platformNavigation.StudioPlatform"),
72
72
  description: e("boden.platformNavigation.StudioPlatformDescription"),
73
- imageSrc: re
73
+ imageSrc: le
74
74
  },
75
75
  {
76
76
  id: c.BASE,
77
77
  key: d.OMNI,
78
78
  title: e("boden.platformNavigation.OmniPlatform"),
79
79
  description: e("boden.platformNavigation.OmniPlatformDescription"),
80
- imageSrc: ae
80
+ imageSrc: se
81
81
  }
82
82
  ]
83
83
  },
@@ -92,103 +92,107 @@ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class:
92
92
  key: d.BLINK,
93
93
  title: e("boden.platformNavigation.BlinkPlatformSpecific"),
94
94
  description: e("boden.platformNavigation.BlinkPlatformSpecificDescription"),
95
- imageSrc: de
95
+ imageSrc: me
96
96
  }
97
97
  ]
98
98
  }
99
- ], x = g(() => ce(h.value)), w = g(() => me(h.value)), R = g(() => pe(h.value)), A = () => {
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);
99
+ ], R = g(() => pe(h.value)), A = g(() => fe(h.value)), E = g(() => ve(h.value)), I = () => {
100
+ D.triggerDisabled || b(!n.value);
101
+ }, b = (r) => {
102
+ n.value = r;
103
+ }, T = (r, i) => {
104
+ x("togglePlatform", r, i);
105
+ }, M = (r) => {
106
+ v.value && v.value.instRef && v.value.instRef.contains(r.target) || (n.value = !1);
105
107
  };
106
- return (l, i) => {
107
- const T = q("svg-icon"), M = H, L = $, z = K, V = G, U = F;
108
- return a(), u("div", null, [
109
- p(oe, {
108
+ return S({
109
+ updateShow: b
110
+ }), (r, i) => {
111
+ const L = Q("svg-icon"), z = q, V = j, F = H, U = $, G = K;
112
+ return l(), u("div", null, [
113
+ p(ie, {
110
114
  ref_key: "triggerInstRef",
111
115
  ref: v,
112
116
  active: n.value,
113
117
  disabled: m.triggerDisabled,
114
- onClick: N(A, ["stop"])
118
+ onClick: k(I, ["stop"])
115
119
  }, null, 8, ["active", "disabled"]),
116
- p(U, {
120
+ p(G, {
117
121
  "content-class": "boden-platform-navigation-panel-popover",
118
122
  trigger: "manual",
119
123
  show: n.value,
120
124
  "onUpdate:show": i[2] || (i[2] = (t) => n.value = t),
121
- style: J(R.value),
125
+ style: W(E.value),
122
126
  "show-arrow": !1,
123
127
  width: 1058,
124
128
  scrollable: "",
125
129
  x: m.x,
126
130
  y: m.y,
127
131
  "theme-overrides": { padding: "0", space: "0", borderRadius: "3px" },
128
- onClickoutside: I
132
+ onClickoutside: M
129
133
  }, {
130
134
  default: s(() => [
131
135
  o("div", {
132
136
  class: "boden-platform-navigation-panel",
133
- onClick: i[1] || (i[1] = N(() => {
137
+ onClick: i[1] || (i[1] = k(() => {
134
138
  }, ["stop"]))
135
139
  }, [
136
- o("div", fe, [
137
- o("div", null, f(Q(e)("boden.platformNavigation.allProducts")), 1),
138
- p(T, {
140
+ o("div", ge, [
141
+ o("div", null, f(X(e)("boden.platformNavigation.allProducts")), 1),
142
+ p(L, {
139
143
  icon: "operate-close",
140
144
  size: "16",
141
145
  onClick: i[0] || (i[0] = (t) => n.value = !1)
142
146
  })
143
147
  ]),
144
- o("div", ve, [
145
- (a(), u(k, null, y(O, (t) => o("div", {
148
+ o("div", ue, [
149
+ (l(), u(y, null, P(w, (t) => o("div", {
146
150
  key: t.key,
147
151
  class: "platform-type-item"
148
152
  }, [
149
- o("div", ge, [
150
- o("div", ue, f(t.title), 1),
151
- o("div", he, f(t.description), 1)
153
+ o("div", he, [
154
+ o("div", _e, f(t.title), 1),
155
+ o("div", be, f(t.description), 1)
152
156
  ]),
153
- t.children && t.children.length ? (a(), _(V, {
157
+ t.children && t.children.length ? (l(), _(U, {
154
158
  key: 0,
155
159
  "x-gap": "12",
156
160
  cols: t.children.length === 1 ? 1 : 3,
157
161
  style: { "margin-top": "12px" }
158
162
  }, {
159
163
  default: s(() => [
160
- (a(!0), u(k, null, y(t.children, (r) => (a(), _(z, {
161
- key: r.key
164
+ (l(!0), u(y, null, P(t.children, (a) => (l(), _(F, {
165
+ key: a.key
162
166
  }, {
163
167
  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
168
+ p(V, {
169
+ class: Y(["platform-card", { "is-horizontal": t.children.length === 1 }]),
170
+ "theme-overrides": t.children.length === 1 ? A.value : R.value
167
171
  }, {
168
172
  cover: s(() => [
169
173
  o("img", {
170
- src: r.imageSrc,
174
+ src: a.imageSrc,
171
175
  alt: ""
172
- }, null, 8, _e)
176
+ }, null, 8, Ne)
173
177
  ]),
174
178
  default: s(() => [
175
- o("div", be, [
176
- o("div", Ne, f(r.title), 1),
177
- o("div", ke, f(r.description), 1)
179
+ o("div", ke, [
180
+ o("div", ye, f(a.title), 1),
181
+ o("div", Pe, f(a.description), 1)
178
182
  ]),
179
- m.platformCode?.includes(r.id) ? (a(), u("div", ye, [
180
- p(M, {
183
+ m.platformCode?.includes(a.id) ? (l(), u("div", Be, [
184
+ p(z, {
181
185
  round: "",
182
186
  size: "tiny",
183
187
  type: "primary",
184
- onClick: (Be) => E(r.id, r.key)
188
+ onClick: (De) => T(a.id, a.key)
185
189
  }, {
186
190
  default: s(() => [...i[3] || (i[3] = [
187
- X("开始使用", -1)
191
+ Z("开始使用", -1)
188
192
  ])]),
189
193
  _: 1
190
194
  }, 8, ["onClick"])
191
- ])) : P("", !0)
195
+ ])) : B("", !0)
192
196
  ]),
193
197
  _: 2
194
198
  }, 1032, ["class", "theme-overrides"])
@@ -197,16 +201,16 @@ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class:
197
201
  }, 1024))), 128))
198
202
  ]),
199
203
  _: 2
200
- }, 1032, ["cols"])) : P("", !0)
204
+ }, 1032, ["cols"])) : B("", !0)
201
205
  ])), 64))
202
206
  ])
203
207
  ])
204
208
  ]),
205
209
  _: 1
206
210
  }, 8, ["show", "style", "x", "y"]),
207
- (a(), _(Y, { to: "body" }, [
208
- Z(o("div", Pe, null, 512), [
209
- [ee, n.value]
211
+ (l(), _(ee, { to: "body" }, [
212
+ oe(o("div", Se, null, 512), [
213
+ [te, n.value]
210
214
  ])
211
215
  ]))
212
216
  ]);
@@ -214,5 +218,5 @@ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class:
214
218
  }
215
219
  });
216
220
  export {
217
- ze as default
221
+ Ue as default
218
222
  };
@@ -37,3 +37,6 @@ export type PlatformItem = {
37
37
  href?: string;
38
38
  children?: Array<SubPlatformItem>;
39
39
  };
40
+ export type BodenPlatformNavigationInstance = {
41
+ updateShow: (value: boolean) => void;
42
+ };