@gx-design-vue/pro-layout 0.1.0-beta.205 → 0.1.0-beta.206

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.
@@ -0,0 +1,2 @@
1
+ import type { ProLayoutInjextExpose } from '../types/typings';
2
+ export declare const provideProLayoutExposeContext: (value: ProLayoutInjextExpose) => void, useProLayoutExposeContext: (injectDefaultValue?: ProLayoutInjextExpose | undefined) => ProLayoutInjextExpose;
@@ -1,10 +1,10 @@
1
1
  import type { CustomRender, PrefixCls, WithFalse } from '@gx-design-vue/pro-utils';
2
2
  import type { ComputedRef, Ref } from 'vue';
3
- import type { LayoutPageContainer, PageContainerPropsType } from './components/PageContainer/props';
4
- import type { ShortcutKeyProps } from './props';
5
- import type { BreadcrumbListReturn, BreadcrumbProps } from './types/Breadcrumb';
6
- import type { MenuPropsContext, ProLayoutMenuFunProps } from './types/MenuTypings';
7
- import type { BasicLayoutProps, CollapsedProps, LayoutClassNamesType, LayoutContext, LayoutStylesType, TabsComExpose } from './types/typings';
3
+ import type { LayoutPageContainer, PageContainerPropsType } from '../components/PageContainer/props';
4
+ import type { ShortcutKeyProps } from '../props';
5
+ import type { BreadcrumbListReturn, BreadcrumbProps } from '../types/Breadcrumb';
6
+ import type { MenuPropsContext, ProLayoutMenuFunProps } from '../types/MenuTypings';
7
+ import type { BasicLayoutProps, CollapsedProps, LayoutClassNamesType, LayoutContext, LayoutStylesType } from '../types/typings';
8
8
  export declare const defaultContextKey: (keyof ProLayoutContextProps)[];
9
9
  export interface ProLayoutContextProps {
10
10
  getPrefixCls: (prefixCls: PrefixCls) => string;
@@ -12,7 +12,6 @@ export interface ProLayoutContextProps {
12
12
  styles: Ref<LayoutStylesType>;
13
13
  waterMarkProps: Ref<BasicLayoutProps['waterMarkProps']>;
14
14
  classNames: Ref<LayoutClassNamesType>;
15
- tabsComRef: Ref<TabsComExpose | undefined>;
16
15
  breadcrumb: ComputedRef<BreadcrumbListReturn>;
17
16
  collapsed: Ref<boolean>;
18
17
  hasFooterToolbar: Ref<boolean>;
@@ -7,7 +7,7 @@ export interface MenuDataState {
7
7
  fixed: AppRouteModule[];
8
8
  normal: AppRouteModule[];
9
9
  }
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const TabsRoute: import("vue").DefineComponent<ExtractPropTypes<{
11
11
  onReloadPage: {
12
12
  type: import("vue").PropType<() => void>;
13
13
  };
@@ -86,4 +86,4 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
86
86
  storage: boolean;
87
87
  itemRender: import("../../types/SlotsTypings").TabsRouteItemRender;
88
88
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
89
- export default _default;
89
+ export default TabsRoute;
@@ -0,0 +1,11 @@
1
+ import type { AppRouteModule } from '../../types/RouteTypings';
2
+ export default function (): {
3
+ tabsRouter: {
4
+ clean: () => void | undefined;
5
+ close: (options?: {
6
+ name?: AppRouteModule["name"];
7
+ callback?: (row: AppRouteModule) => void;
8
+ }) => void | undefined;
9
+ update: (params: Partial<AppRouteModule>, route?: AppRouteModule) => void;
10
+ };
11
+ };
@@ -1,4 +1,4 @@
1
- import type { ComputedRef, Ref } from 'vue';
1
+ import type { ComputedRef, MaybeRef, Ref } from 'vue';
2
2
  import type { ProRoute } from '../../types/Breadcrumb';
3
3
  import type { AppRouteModule } from '../../types/RouteTypings';
4
4
  import type { MenuData } from '../../utils/menu';
@@ -8,9 +8,10 @@ export interface MenuState {
8
8
  names: string[];
9
9
  }
10
10
  export default function (options?: {
11
- menuData?: any;
11
+ menuData?: MaybeRef<any[]>;
12
12
  defaultOpen?: boolean;
13
13
  autoClose?: boolean;
14
+ currentName?: ComputedRef<string>;
14
15
  }): {
15
16
  update: () => void;
16
17
  menuState: MenuState;
package/dist/index.d.ts CHANGED
@@ -7,13 +7,14 @@ import { useProLayoutMenuContext } from './hooks/menu/context';
7
7
  import GProLayout from './ProLayout';
8
8
  import { iconStyle } from './style';
9
9
  export * from './Context';
10
+ export * from './Context/expose';
10
11
  export { default as GProPageContainer } from './components/PageContainer';
11
12
  export { default as GBaseMenu } from './components/BaseMenu';
12
13
  export { default as GProAppPage } from './components/AppPage';
13
14
  export { baseMenuProps } from './components/BaseMenu/props';
14
15
  export { default as GlobalFooter } from './components/GlobalFooter';
15
16
  export { default as GPageTransition } from './components/PageTranstion';
16
- export { default as useProLayout } from './hooks/layout';
17
+ export { default as useLayoutExpose } from './hooks/layout/use-layout-expose';
17
18
  export { default as useLayoutMenu } from './hooks/menu';
18
19
  export { default as useThemeState } from './hooks/theme';
19
20
  export * from './utils';