vue-layout-gitcode 1.12.15-beta.34 → 1.12.15-beta.35

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/index.d.ts CHANGED
@@ -157,6 +157,8 @@ declare type __VLS_Props_2 = {
157
157
  createMenuItems?: HeaderCreateMenuItem[];
158
158
  /** Header 新建菜单跳转适配器 */
159
159
  createMenuNavigate?: HeaderCreateMenuNavigate;
160
+ /** 工作台按钮站内路由跳转适配器 */
161
+ workspaceNavigate?: HomeHeaderWorkspaceNavigate;
160
162
  /** AtomCode 工作台 query string 参数 */
161
163
  atomcodeLaunchQs?: string;
162
164
  /** 是否展示 AtomCodeLauncher 引导入口 */
@@ -166,6 +168,8 @@ declare type __VLS_Props_2 = {
166
168
  declare type __VLS_Props_3 = {
167
169
  customItems?: HomePageSidebarItem[];
168
170
  fallbacks?: Partial<HomeHeaderActionUrls>;
171
+ /** 宿主应用可接管工作台的站内路由跳转。 */
172
+ workspaceNavigate?: HomeHeaderWorkspaceNavigate;
169
173
  };
170
174
 
171
175
  declare type __VLS_Props_4 = {
@@ -445,11 +449,11 @@ export declare const GitCodeLayoutEmitter: Emitter<EventBus>;
445
449
  export declare const HEADER_CREATE_MENU_PATHS: readonly ["/create?position=nav_top", "/create/migrate?type=3", "/models/create", "/datasets/create", "/space/create", "/collections/create", "/org/create"];
446
450
 
447
451
  export declare const HeaderCreateMenu: DefineComponent_2<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {
448
- "update:dropdownVisible": (visible: boolean) => any;
449
452
  navigate: (item: HeaderCreateMenuItem) => any;
453
+ "update:dropdownVisible": (visible: boolean) => any;
450
454
  }, string, PublicProps_2, Readonly<__VLS_Props_5> & Readonly<{
451
- "onUpdate:dropdownVisible"?: ((visible: boolean) => any) | undefined;
452
455
  onNavigate?: ((item: HeaderCreateMenuItem) => any) | undefined;
456
+ "onUpdate:dropdownVisible"?: ((visible: boolean) => any) | undefined;
453
457
  }>, {
454
458
  dropdownVisible: boolean;
455
459
  isCreateOrg: boolean;
@@ -536,6 +540,7 @@ declare type HomeChannelStoreItem = HomeChannelItem & {
536
540
  export declare const HomeHeaderActions: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
537
541
  customItems: HomePageSidebarItem[];
538
542
  fallbacks: Partial<HomeHeaderActionUrls>;
543
+ workspaceNavigate: HomeHeaderWorkspaceNavigate;
539
544
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
540
545
 
541
546
  declare interface HomeHeaderActionUrls {
@@ -546,6 +551,8 @@ declare interface HomeHeaderActionUrls {
546
551
  workspace: string;
547
552
  }
548
553
 
554
+ export declare type HomeHeaderWorkspaceNavigate = (href: string) => void | Promise<void>;
555
+
549
556
  declare interface HomePageSidebarItem {
550
557
  left_menu_name_cn?: string;
551
558
  left_menu_name_cn_shrink?: string;
package/index.js CHANGED
@@ -1,23 +1,23 @@
1
- import { a1, Y, $, Q, U, W, a4, a6, Z, X, P, S, V, a0, O, B, a7, a3, a5, a2 } from "./index-YiOclmv5.js";
1
+ import { O, P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, B, a4, a5, a6, a7 } from "./index-Dy_ygVv2.js";
2
2
  export {
3
- a1 as AsideFooterTools,
4
- Y as AtomCodeLauncher,
5
- $ as EnterpriseHeader,
6
- Q as GitCodeAside,
3
+ O as AsideFooterTools,
4
+ P as AtomCodeLauncher,
5
+ Q as EnterpriseHeader,
6
+ S as GitCodeAside,
7
7
  U as GitCodeAsideV2,
8
- W as GitCodeHeader,
9
- a4 as GitCodeLayoutEmitter,
10
- a6 as HEADER_CREATE_MENU_PATHS,
11
- Z as HeaderCreateMenu,
12
- X as HomeHeaderActions,
13
- P as Login,
14
- S as SceneValue,
15
- V as ScrollActiveContainer,
16
- a0 as SiteAnnouncement,
17
- O as ToolsFloat,
8
+ V as GitCodeHeader,
9
+ W as GitCodeLayoutEmitter,
10
+ X as HEADER_CREATE_MENU_PATHS,
11
+ Y as HeaderCreateMenu,
12
+ Z as HomeHeaderActions,
13
+ $ as Login,
14
+ a0 as SceneValue,
15
+ a1 as ScrollActiveContainer,
16
+ a2 as SiteAnnouncement,
17
+ a3 as ToolsFloat,
18
18
  B as currentTheme,
19
- a7 as default,
20
- a3 as setLayoutConfig,
21
- a5 as setTheme,
22
- a2 as useLogin
19
+ a4 as default,
20
+ a5 as setLayoutConfig,
21
+ a6 as setTheme,
22
+ a7 as useLogin
23
23
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-YiOclmv5.js";
1
+ import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-Dy_ygVv2.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
@@ -33,14 +33,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  createVNode(unref(Button), {
34
34
  variant: "outline",
35
35
  size: isMobile.value ? "sm" : "md",
36
- onClick: _ctx.onClose,
36
+ onClick: __props.onClose,
37
37
  class: "email-notice__btn-ignore"
38
38
  }, {
39
- default: withCtx(() => _cache[1] || (_cache[1] = [
40
- createTextVNode("忽略")
41
- ])),
42
- _: 1,
43
- __: [1]
39
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
40
+ createTextVNode("忽略", -1)
41
+ ])]),
42
+ _: 1
44
43
  }, 8, ["size", "onClick"]),
45
44
  createVNode(unref(Button), {
46
45
  variant: "solid",
@@ -48,11 +47,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
47
  color: "primary",
49
48
  onClick: handleConfirm
50
49
  }, {
51
- default: withCtx(() => _cache[2] || (_cache[2] = [
52
- createTextVNode("修改")
53
- ])),
54
- _: 1,
55
- __: [2]
50
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
51
+ createTextVNode("修改", -1)
52
+ ])]),
53
+ _: 1
56
54
  }, 8, ["size"])
57
55
  ], 2)
58
56
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.12.15-beta.34",
3
+ "version": "1.12.15-beta.35",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",