@gx-design-vue/pro-layout 0.1.0-beta.203 → 0.1.0-beta.205
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/BaseMenu/index.d.ts +1 -0
- package/dist/hooks/layout/use-page-content.d.ts +1 -1
- package/dist/hooks/menu/context.d.ts +2 -0
- package/dist/hooks/menu/index.d.ts +2 -0
- package/dist/pro-layout.js +1389 -1356
- package/dist/pro-layout.umd.cjs +8 -8
- package/dist/types/MenuTypings.d.ts +1 -1
- package/dist/types/RouteTypings.d.ts +7 -3
- package/dist/types/typings.d.ts +2 -3
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseTheme, ThemeValue } from '@gx-design-vue/context';
|
|
2
|
+
import type { SemanticClassNames, SemanticStyles } from '@gx-design-vue/pro-utils';
|
|
2
3
|
import type { MenuInfo, MenuProps, SelectInfo } from '../_utils';
|
|
3
4
|
import type { AppRouteModule } from '../types/RouteTypings';
|
|
4
5
|
import type { MenuItemRender, MenuTextRender, SubMenuItemRender } from '../types/SlotsTypings';
|
|
5
|
-
import type { SemanticClassNames, SemanticStyles } from './typings';
|
|
6
6
|
export type MenuSemanticName = 'menu' | 'footerMenu' | 'menuItem' | 'menuItemSelect' | 'menuItemTitle' | 'menuItemTitleText' | 'menuItemIcon' | 'subMenu' | 'subMenuTitle' | 'subMenuPopup';
|
|
7
7
|
export type MenuStylesType = SemanticStyles<MenuSemanticName>;
|
|
8
8
|
export type MenuClassNamesType = SemanticClassNames<MenuSemanticName>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
2
|
-
import type {
|
|
1
|
+
import type { RecordType, SemanticClassNames, SemanticStyles } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { defineComponent } from 'vue';
|
|
3
3
|
import type { RouteRecordRaw } from 'vue-router';
|
|
4
4
|
import type { MenuItemBadgeRender } from './SlotsTypings';
|
|
5
|
+
export type SemanticName = 'item' | 'itemTitle' | 'itemTitleText' | 'itemIcon' | 'subMenu' | 'subMenuPopup' | 'itemRight';
|
|
6
|
+
export type StylesType = SemanticStyles<SemanticName>;
|
|
7
|
+
export type ClassNamesType = SemanticClassNames<SemanticName>;
|
|
5
8
|
export type Component<T = any> = ReturnType<typeof defineComponent> | (() => Promise<typeof import('*.vue')>) | (() => Promise<T>);
|
|
6
9
|
export type AppRouteModule = {
|
|
7
10
|
name: string;
|
|
@@ -66,7 +69,8 @@ export interface Meta {
|
|
|
66
69
|
title?: string;
|
|
67
70
|
order?: number;
|
|
68
71
|
icon?: any;
|
|
69
|
-
|
|
72
|
+
styles?: StylesType;
|
|
73
|
+
classNames?: ClassNamesType;
|
|
70
74
|
divider?: boolean;
|
|
71
75
|
iconPrefix?: string;
|
|
72
76
|
hidden?: boolean;
|
package/dist/types/typings.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SemanticClassNames, SemanticStyles } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
3
|
import type { CommonLogoProps } from '../components/LogoContent/props';
|
|
3
4
|
import type { SiderProps } from '../components/SiderMenu/typings';
|
|
4
5
|
import type { ProLayoutConfig } from '../config';
|
|
@@ -6,8 +7,6 @@ import type { BaseMenuProps, MenuSemanticName } from './MenuTypings';
|
|
|
6
7
|
import type { AppRouteModule } from './RouteTypings';
|
|
7
8
|
import type { CollapsedButtonRender, CollapsedIconRender, DefaultRender, HeaderContentRender, HeaderRender, MenuContentRender, MenuFooterRender, RightContentRender } from './SlotsTypings';
|
|
8
9
|
import { basicLayoutProps } from '../props';
|
|
9
|
-
export type SemanticClassNames<Name extends string> = Partial<Record<Name, string>>;
|
|
10
|
-
export type SemanticStyles<Name extends string> = Partial<Record<Name, CSSProperties>>;
|
|
11
10
|
export type LayoutSemanticName = 'root' | 'footer' | 'header' | 'sider' | 'siderChildren' | 'logo' | 'logoImage' | 'content' | 'siderHeader' | 'siderFooter' | MenuSemanticName;
|
|
12
11
|
export type LayoutStylesType = SemanticStyles<LayoutSemanticName>;
|
|
13
12
|
export type LayoutClassNamesType = SemanticClassNames<LayoutSemanticName>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-layout",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.205",
|
|
5
5
|
"description": "Gx Design Pro Layout",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@gx-design-vue/color-picker": "^0.2.0-beta.39",
|
|
37
37
|
"@gx-design-vue/pro-app": "^0.1.0-beta.35",
|
|
38
38
|
"@gx-design-vue/pro-hooks": "^0.2.0-beta.61",
|
|
39
|
-
"@gx-design-vue/pro-modal": "^0.2.0-beta.
|
|
39
|
+
"@gx-design-vue/pro-modal": "^0.2.0-beta.41",
|
|
40
40
|
"@gx-design-vue/pro-provider": "^0.1.0-beta.142",
|
|
41
41
|
"@gx-design-vue/pro-utils": "^0.2.0-beta.87",
|
|
42
42
|
"@gx-design-vue/pro-watermark": "^0.2.0-beta.16",
|