@gx-design-vue/pro-layout-components 0.1.0-beta.2 → 0.1.0-beta.20
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/Icon/components/Moon.d.ts +3 -0
- package/dist/Icon/components/Paintbrush.d.ts +3 -0
- package/dist/Icon/components/Palette.d.ts +3 -0
- package/dist/Icon/components/Sunny.d.ts +3 -0
- package/dist/Icon/components/index.d.ts +6 -0
- package/dist/Icon/index.d.ts +32 -4
- package/dist/Paintbrush-WUgfaqlM.js +18 -0
- package/dist/Palette-Ct57ShlX.js +15 -0
- package/dist/RightContent/index.d.ts +8 -30
- package/dist/RightContent/props.d.ts +2 -12
- package/dist/ThemeEditor/components/BlockCheckbox.d.ts +0 -4
- package/dist/ThemeEditor/components/RegionalChange.d.ts +0 -4
- package/dist/ThemeEditor/components/Setting/index.d.ts +12 -41
- package/dist/ThemeEditor/components/SwitchTab/index.d.ts +6 -6
- package/dist/ThemeEditor/components/Tokens/Colors/Primary.d.ts +2 -0
- package/dist/ThemeEditor/components/Tokens/Colors/Side.d.ts +2 -0
- package/dist/ThemeEditor/components/Tokens/Colors/index.d.ts +2 -0
- package/dist/ThemeEditor/components/Tokens/context.d.ts +5 -0
- package/dist/ThemeEditor/components/{Theme → Tokens}/index.d.ts +4 -4
- package/dist/ThemeEditor/components/Tokens/utils/config.d.ts +6 -0
- package/dist/ThemeEditor/components/Trigger.d.ts +0 -4
- package/dist/ThemeEditor/context.d.ts +10 -0
- package/dist/ThemeEditor/index.d.ts +870 -32
- package/dist/ThemeEditor/props.d.ts +14 -16
- package/dist/ThemeEditor/style/index.d.ts +2 -0
- package/dist/ThemeEditor/utils/config.d.ts +4 -4
- package/dist/ThemeEditor/utils/index.d.ts +2 -1
- package/dist/index.d.ts +5 -1
- package/dist/pro-layout-components.js +3875 -6
- package/dist/pro-layout-components.umd.cjs +7 -3
- package/package.json +6 -5
- package/dist/index-BE3WbI0h.js +0 -372
- package/dist/index-DFpeKk29.js +0 -3796
- /package/dist/ThemeEditor/components/{ColorSvg.d.ts → Tokens/Colors/ColorSvg.d.ts} +0 -0
package/dist/Icon/index.d.ts
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { IconBaseType } from '@gx-design-vue/icon';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { IconType } from './components';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
type: {
|
|
6
|
+
type: PropType<IconType | IconBaseType>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
class: PropType<string | string[]>;
|
|
10
|
+
onClick: PropType<any>;
|
|
11
|
+
spin: BooleanConstructor;
|
|
12
|
+
style: {
|
|
13
|
+
type: PropType<import("vue").CSSProperties>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
type: {
|
|
18
|
+
type: PropType<IconType | IconBaseType>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
class: PropType<string | string[]>;
|
|
22
|
+
onClick: PropType<any>;
|
|
23
|
+
spin: BooleanConstructor;
|
|
24
|
+
style: {
|
|
25
|
+
type: PropType<import("vue").CSSProperties>;
|
|
26
|
+
default: () => {};
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
style: import("vue").CSSProperties;
|
|
30
|
+
spin: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createVNode as l, mergeProps as a } from "vue";
|
|
2
|
+
const r = (c = {}) => l("svg", a({
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
viewBox: "0 0 24 24"
|
|
7
|
+
}, c), [l("g", {
|
|
8
|
+
fill: "none",
|
|
9
|
+
"fill-rule": "evenodd"
|
|
10
|
+
}, [l("path", {
|
|
11
|
+
d: "m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z"
|
|
12
|
+
}, null), l("path", {
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
d: "m8.464 4.222l12.021 12.02a1.01 1.01 0 0 1 0 1.415l-2.828 2.828a1 1 0 0 1-1.414 0L4.222 8.465a2 2 0 0 1 0-2.829l1.414-1.414a2 2 0 0 1 2.828 0M5 11.5c.444 0 .758.269.95.632l.053.112a3.87 3.87 0 0 0 1.385 1.672l.21.128c.358.202.62.525.62.955c0 .38-.203.68-.5.882l-.115.072a3.8 3.8 0 0 0-1.49 1.573l-.105.22c-.187.422-.512.754-1.008.754c-.452 0-.761-.274-.954-.641l-.054-.113a3.83 3.83 0 0 0-1.384-1.664l-.206-.126c-.359-.202-.621-.526-.621-.957c0-.383.208-.68.505-.883l.116-.072a3.76 3.76 0 0 0 1.482-1.565l.113-.236C4.18 11.826 4.51 11.5 5 11.5m5.586-2.328l-1.414 1.414l7.778 7.778l1.414-1.414zm6.845-1.77c.238-.481.8-.513 1.082-.097l.056.096c.216.435.574.804 1.043 1.04c.494.246.501.87.004 1.116a2.35 2.35 0 0 0-.954.872l-.09.164c-.24.486-.804.518-1.085.102l-.056-.096a2.3 2.3 0 0 0-.872-.945l-.17-.094c-.466-.232-.497-.79-.097-1.063l.092-.054a2.33 2.33 0 0 0 .957-.878l.09-.164ZM7.051 5.635L5.635 7.05l2.121 2.122l1.415-1.415L7.05 5.636ZM13.5 2c.294 0 .51.167.654.399l.06.11c.238.477.618.894 1.11 1.187l.196.107c.275.137.48.373.48.697c0 .283-.157.5-.38.64l-.105.06c-.52.26-.932.654-1.205 1.115l-.1.183c-.14.284-.374.502-.71.502c-.294 0-.51-.167-.654-.399l-.06-.11a2.9 2.9 0 0 0-1.11-1.187l-.196-.107c-.275-.137-.48-.374-.48-.698c0-.282.157-.499.38-.64l.105-.058c.52-.262.932-.654 1.205-1.116l.1-.183c.14-.284.374-.502.71-.502"
|
|
15
|
+
}, null)])]);
|
|
16
|
+
export {
|
|
17
|
+
r as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createVNode as e, mergeProps as l } from "vue";
|
|
2
|
+
const t = (a = {}) => e("svg", l({
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
viewBox: "0 0 16 16"
|
|
7
|
+
}, a), [e("path", {
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
"fill-rule": "evenodd",
|
|
10
|
+
d: "m14.489 8.388l-.001.006a.1.1 0 0 1-.027.028a.43.43 0 0 1-.264.082h-3.186c-3.118 0-4.68 3.77-2.476 5.974a6.5 6.5 0 1 1 5.953-6.09Zm-.292 1.616c.913 0 1.736-.618 1.79-1.529a8 8 0 1 0-7.032 7.468c1.243-.147 1.527-1.639.641-2.525c-1.26-1.26-.367-3.414 1.415-3.414zM10 5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M6 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m0 2a1 1 0 1 1-2 0a1 1 0 0 1 2 0",
|
|
11
|
+
"clip-rule": "evenodd"
|
|
12
|
+
}, null)]);
|
|
13
|
+
export {
|
|
14
|
+
t as default
|
|
15
|
+
};
|
|
@@ -13,10 +13,6 @@ declare const GlobalRightContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
13
13
|
type: import("vue").PropType<string>;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
themeEditorOpen: {
|
|
17
|
-
type: import("vue").PropType<boolean>;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
16
|
avatar: import("vue").PropType<string>;
|
|
21
17
|
actionsRender: {
|
|
22
18
|
type: import("vue").PropType<import("@gx-design-vue/pro-utils/dist").WithFalse<(classNames: string[]) => import("@gx-design-vue/pro-utils/dist").CustomRender>>;
|
|
@@ -39,19 +35,16 @@ declare const GlobalRightContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
39
35
|
default: undefined;
|
|
40
36
|
};
|
|
41
37
|
onLogout: import("vue").PropType<(callback?: () => void) => void>;
|
|
42
|
-
|
|
38
|
+
onClick: import("vue").PropType<(type: keyof RightContentActions) => void>;
|
|
43
39
|
dataSource: {
|
|
44
40
|
type: import("vue").PropType<import("@gx-design-vue/pro-layout/dist").AppRouteModule[]>;
|
|
45
41
|
default: () => never[];
|
|
46
42
|
};
|
|
47
43
|
historyKey: import("vue").PropType<string>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
onDarkChange: import("vue").PropType<(value?: boolean | "system") => void>;
|
|
53
|
-
'onUpdate:dark': import("vue").PropType<(value?: boolean | "system") => void>;
|
|
54
|
-
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("logout" | "darkChange" | "clickSettings" | "update:dark" | "lockOpenChange")[], "logout" | "darkChange" | "clickSettings" | "update:dark" | "lockOpenChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
click: (type: keyof RightContentActions) => boolean;
|
|
46
|
+
logout: (callback?: () => void) => callback is () => void;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
48
|
actions: {
|
|
56
49
|
type: import("vue").PropType<RightContentActions | false>;
|
|
57
50
|
default: () => {};
|
|
@@ -64,10 +57,6 @@ declare const GlobalRightContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
64
57
|
type: import("vue").PropType<string>;
|
|
65
58
|
default: string;
|
|
66
59
|
};
|
|
67
|
-
themeEditorOpen: {
|
|
68
|
-
type: import("vue").PropType<boolean>;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
60
|
avatar: import("vue").PropType<string>;
|
|
72
61
|
actionsRender: {
|
|
73
62
|
type: import("vue").PropType<import("@gx-design-vue/pro-utils/dist").WithFalse<(classNames: string[]) => import("@gx-design-vue/pro-utils/dist").CustomRender>>;
|
|
@@ -90,24 +79,15 @@ declare const GlobalRightContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
90
79
|
default: undefined;
|
|
91
80
|
};
|
|
92
81
|
onLogout: import("vue").PropType<(callback?: () => void) => void>;
|
|
93
|
-
|
|
82
|
+
onClick: import("vue").PropType<(type: keyof RightContentActions) => void>;
|
|
94
83
|
dataSource: {
|
|
95
84
|
type: import("vue").PropType<import("@gx-design-vue/pro-layout/dist").AppRouteModule[]>;
|
|
96
85
|
default: () => never[];
|
|
97
86
|
};
|
|
98
87
|
historyKey: import("vue").PropType<string>;
|
|
99
|
-
dark: {
|
|
100
|
-
type: import("vue").PropType<boolean | "system">;
|
|
101
|
-
default: undefined;
|
|
102
|
-
};
|
|
103
|
-
onDarkChange: import("vue").PropType<(value?: boolean | "system") => void>;
|
|
104
|
-
'onUpdate:dark': import("vue").PropType<(value?: boolean | "system") => void>;
|
|
105
88
|
}>> & Readonly<{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
onDarkChange?: ((...args: any[]) => any) | undefined;
|
|
109
|
-
"onUpdate:dark"?: ((...args: any[]) => any) | undefined;
|
|
110
|
-
onLockOpenChange?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
onClick?: ((type: keyof RightContentActions) => any) | undefined;
|
|
90
|
+
onLogout?: ((callback?: (() => void) | undefined) => any) | undefined;
|
|
111
91
|
}>, {
|
|
112
92
|
name: string;
|
|
113
93
|
actions: false | RightContentActions;
|
|
@@ -115,7 +95,6 @@ declare const GlobalRightContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
115
95
|
keys?: string;
|
|
116
96
|
disabled?: boolean;
|
|
117
97
|
} | undefined;
|
|
118
|
-
themeEditorOpen: boolean;
|
|
119
98
|
actionsRender: import("@gx-design-vue/pro-utils/dist").WithFalse<(classNames: string[]) => import("@gx-design-vue/pro-utils/dist").CustomRender>;
|
|
120
99
|
dropdownProps: Omit<Partial<import("vue").ExtractPropTypes<{
|
|
121
100
|
arrow: {
|
|
@@ -327,7 +306,6 @@ declare const GlobalRightContent: import("vue").DefineComponent<import("vue").Ex
|
|
|
327
306
|
dropdownMenuRender: import("@gx-design-vue/pro-utils/dist").CustomRender;
|
|
328
307
|
dropdownMenuExtraItemRender: import("@gx-design-vue/pro-utils/dist").CustomRender;
|
|
329
308
|
dataSource: import("@gx-design-vue/pro-layout/dist").AppRouteModule[];
|
|
330
|
-
dark: boolean | "system";
|
|
331
309
|
}, SlotsType<{
|
|
332
310
|
default(): void;
|
|
333
311
|
actionsRender(classNames: string[]): void;
|
|
@@ -6,7 +6,7 @@ export interface RightContentActions {
|
|
|
6
6
|
lock?: boolean;
|
|
7
7
|
theme?: boolean;
|
|
8
8
|
search?: boolean;
|
|
9
|
-
|
|
9
|
+
themeEditor?: boolean;
|
|
10
10
|
fullScreen?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare const getRightContentProps: () => {
|
|
@@ -22,10 +22,6 @@ export declare const getRightContentProps: () => {
|
|
|
22
22
|
type: PropType<string>;
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
|
-
themeEditorOpen: {
|
|
26
|
-
type: PropType<boolean>;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
25
|
avatar: PropType<string>;
|
|
30
26
|
actionsRender: {
|
|
31
27
|
type: PropType<WithFalse<(classNames: string[]) => CustomRender>>;
|
|
@@ -48,17 +44,11 @@ export declare const getRightContentProps: () => {
|
|
|
48
44
|
default: undefined;
|
|
49
45
|
};
|
|
50
46
|
onLogout: PropType<(callback?: () => void) => void>;
|
|
51
|
-
|
|
47
|
+
onClick: PropType<(type: keyof RightContentActions) => void>;
|
|
52
48
|
dataSource: {
|
|
53
49
|
type: PropType<import("@gx-design-vue/pro-layout/dist").AppRouteModule[]>;
|
|
54
50
|
default: () => never[];
|
|
55
51
|
};
|
|
56
52
|
historyKey: PropType<string>;
|
|
57
|
-
dark: {
|
|
58
|
-
type: PropType<boolean | "system">;
|
|
59
|
-
default: undefined;
|
|
60
|
-
};
|
|
61
|
-
onDarkChange: PropType<(value?: boolean | "system") => void>;
|
|
62
|
-
'onUpdate:dark': PropType<(value?: boolean | "system") => void>;
|
|
63
53
|
};
|
|
64
54
|
export type RightContentProps = Partial<ExtractPropTypes<ReturnType<typeof getRightContentProps>>>;
|
|
@@ -11,8 +11,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
default: () => never[];
|
|
12
12
|
};
|
|
13
13
|
configType: PropType<"menuTheme" | "layout">;
|
|
14
|
-
prefixCls: PropType<string>;
|
|
15
|
-
hashId: PropType<string>;
|
|
16
14
|
onChange: PropType<(value: any, event: MouseEvent) => void>;
|
|
17
15
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
16
|
value: PropType<string>;
|
|
@@ -25,8 +23,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
23
|
default: () => never[];
|
|
26
24
|
};
|
|
27
25
|
configType: PropType<"menuTheme" | "layout">;
|
|
28
|
-
prefixCls: PropType<string>;
|
|
29
|
-
hashId: PropType<string>;
|
|
30
26
|
onChange: PropType<(value: any, event: MouseEvent) => void>;
|
|
31
27
|
}>> & Readonly<{}>, {
|
|
32
28
|
list: {
|
|
@@ -3,17 +3,13 @@ import type { SettingsState } from '../utils/config';
|
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
label: PropType<string>;
|
|
5
5
|
value: PropType<boolean>;
|
|
6
|
-
prefixCls: PropType<string>;
|
|
7
6
|
valueKey: PropType<keyof SettingsState>;
|
|
8
|
-
hashId: PropType<string>;
|
|
9
7
|
disabled: PropType<boolean>;
|
|
10
8
|
onChange: PropType<(key: keyof SettingsState, value: boolean) => void>;
|
|
11
9
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
10
|
label: PropType<string>;
|
|
13
11
|
value: PropType<boolean>;
|
|
14
|
-
prefixCls: PropType<string>;
|
|
15
12
|
valueKey: PropType<keyof SettingsState>;
|
|
16
|
-
hashId: PropType<string>;
|
|
17
13
|
disabled: PropType<boolean>;
|
|
18
14
|
onChange: PropType<(key: keyof SettingsState, value: boolean) => void>;
|
|
19
15
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,76 +1,47 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ThemeValue } from '@gx-design-vue/pro-layout';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
import type {
|
|
4
|
-
export declare const pickDefaultPropsKeys: string[];
|
|
3
|
+
import type { LayoutConfig } from '../../props';
|
|
5
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
onChangeConfig: PropType<(value: Partial<ProLayoutConfig>) => void>;
|
|
10
|
-
onChangeExtraConfig: PropType<(value: ExtraConfigState) => void>;
|
|
11
|
-
progress: {
|
|
12
|
-
type: PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
5
|
+
theme: PropType<ThemeValue>;
|
|
6
|
+
onChange: PropType<(value: Partial<LayoutConfig>) => void>;
|
|
7
|
+
onChangeColorScheme: PropType<(value: ThemeValue) => void>;
|
|
15
8
|
copyButton: {
|
|
16
9
|
type: PropType<boolean>;
|
|
17
10
|
default: boolean;
|
|
18
11
|
};
|
|
19
|
-
weakMode: {
|
|
20
|
-
type: PropType<boolean>;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
extraSettingState: {
|
|
24
|
-
type: PropType<ExtraConfigState>;
|
|
25
|
-
};
|
|
26
|
-
prefixCls: PropType<string>;
|
|
27
|
-
hashId: PropType<string>;
|
|
28
12
|
width: PropType<number>;
|
|
13
|
+
isEqual: PropType<boolean>;
|
|
29
14
|
open: {
|
|
30
15
|
type: PropType<boolean>;
|
|
31
16
|
default: undefined;
|
|
32
17
|
};
|
|
18
|
+
onSync: PropType<() => void>;
|
|
33
19
|
onOpenChange: {
|
|
34
20
|
type: PropType<(val: boolean | undefined) => void>;
|
|
35
21
|
default: undefined;
|
|
36
22
|
};
|
|
37
23
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
onChangeConfig: PropType<(value: Partial<ProLayoutConfig>) => void>;
|
|
42
|
-
onChangeExtraConfig: PropType<(value: ExtraConfigState) => void>;
|
|
43
|
-
progress: {
|
|
44
|
-
type: PropType<boolean>;
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
24
|
+
theme: PropType<ThemeValue>;
|
|
25
|
+
onChange: PropType<(value: Partial<LayoutConfig>) => void>;
|
|
26
|
+
onChangeColorScheme: PropType<(value: ThemeValue) => void>;
|
|
47
27
|
copyButton: {
|
|
48
28
|
type: PropType<boolean>;
|
|
49
29
|
default: boolean;
|
|
50
30
|
};
|
|
51
|
-
weakMode: {
|
|
52
|
-
type: PropType<boolean>;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
extraSettingState: {
|
|
56
|
-
type: PropType<ExtraConfigState>;
|
|
57
|
-
};
|
|
58
|
-
prefixCls: PropType<string>;
|
|
59
|
-
hashId: PropType<string>;
|
|
60
31
|
width: PropType<number>;
|
|
32
|
+
isEqual: PropType<boolean>;
|
|
61
33
|
open: {
|
|
62
34
|
type: PropType<boolean>;
|
|
63
35
|
default: undefined;
|
|
64
36
|
};
|
|
37
|
+
onSync: PropType<() => void>;
|
|
65
38
|
onOpenChange: {
|
|
66
39
|
type: PropType<(val: boolean | undefined) => void>;
|
|
67
40
|
default: undefined;
|
|
68
41
|
};
|
|
69
42
|
}>> & Readonly<{}>, {
|
|
70
|
-
progress: boolean;
|
|
71
43
|
open: boolean;
|
|
72
44
|
onOpenChange: (val: boolean | undefined) => void;
|
|
73
45
|
copyButton: boolean;
|
|
74
|
-
weakMode: boolean;
|
|
75
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
47
|
export default _default;
|
|
@@ -13,13 +13,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
13
|
default: () => never[];
|
|
14
14
|
};
|
|
15
15
|
renderItem: {
|
|
16
|
-
type: PropType<(item:
|
|
16
|
+
type: PropType<(item: any) => any>;
|
|
17
17
|
};
|
|
18
18
|
renderContent: {
|
|
19
|
-
type: PropType<(item:
|
|
19
|
+
type: PropType<(item: any) => any>;
|
|
20
20
|
};
|
|
21
21
|
onChange: {
|
|
22
|
-
type: PropType<(val:
|
|
22
|
+
type: PropType<(val: any) => void>;
|
|
23
23
|
};
|
|
24
24
|
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
activeKey: {
|
|
@@ -31,13 +31,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
31
31
|
default: () => never[];
|
|
32
32
|
};
|
|
33
33
|
renderItem: {
|
|
34
|
-
type: PropType<(item:
|
|
34
|
+
type: PropType<(item: any) => any>;
|
|
35
35
|
};
|
|
36
36
|
renderContent: {
|
|
37
|
-
type: PropType<(item:
|
|
37
|
+
type: PropType<(item: any) => any>;
|
|
38
38
|
};
|
|
39
39
|
onChange: {
|
|
40
|
-
type: PropType<(val:
|
|
40
|
+
type: PropType<(val: any) => void>;
|
|
41
41
|
};
|
|
42
42
|
}>> & Readonly<{}>, {
|
|
43
43
|
activeKey: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DeepPartial, ProAliasToken } from '@gx-design-vue/pro-provider';
|
|
2
|
+
export interface TokensStateContext {
|
|
3
|
+
onChange: ((val: DeepPartial<ProAliasToken>) => void) | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare const provideTokensStateContext: (value: TokensStateContext) => void, useThemeTokensStateContext: (injectDefaultValue?: TokensStateContext | undefined) => TokensStateContext;
|
|
@@ -5,13 +5,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5
5
|
type: PropType<(val: DeepPartial<ProAliasToken>) => void>;
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
|
-
prefixCls: PropType<string>;
|
|
9
|
-
hashId: PropType<string>;
|
|
10
8
|
width: PropType<number>;
|
|
9
|
+
isEqual: PropType<boolean>;
|
|
11
10
|
open: {
|
|
12
11
|
type: PropType<boolean>;
|
|
13
12
|
default: undefined;
|
|
14
13
|
};
|
|
14
|
+
onSync: PropType<() => void>;
|
|
15
15
|
onOpenChange: {
|
|
16
16
|
type: PropType<(val: boolean | undefined) => void>;
|
|
17
17
|
default: undefined;
|
|
@@ -21,13 +21,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
type: PropType<(val: DeepPartial<ProAliasToken>) => void>;
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
|
-
prefixCls: PropType<string>;
|
|
25
|
-
hashId: PropType<string>;
|
|
26
24
|
width: PropType<number>;
|
|
25
|
+
isEqual: PropType<boolean>;
|
|
27
26
|
open: {
|
|
28
27
|
type: PropType<boolean>;
|
|
29
28
|
default: undefined;
|
|
30
29
|
};
|
|
30
|
+
onSync: PropType<() => void>;
|
|
31
31
|
onOpenChange: {
|
|
32
32
|
type: PropType<(val: boolean | undefined) => void>;
|
|
33
33
|
default: undefined;
|
|
@@ -3,16 +3,12 @@ export type ThemeEditorType = 'setting' | 'theme';
|
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
type: PropType<ThemeEditorType>;
|
|
5
5
|
open: PropType<boolean>;
|
|
6
|
-
hashId: PropType<string>;
|
|
7
|
-
prefixCls: PropType<string>;
|
|
8
6
|
onTypeChange: PropType<(val: ThemeEditorType) => void>;
|
|
9
7
|
onOpenChange: PropType<(val: boolean) => void>;
|
|
10
8
|
onClose: PropType<() => void>;
|
|
11
9
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
10
|
type: PropType<ThemeEditorType>;
|
|
13
11
|
open: PropType<boolean>;
|
|
14
|
-
hashId: PropType<string>;
|
|
15
|
-
prefixCls: PropType<string>;
|
|
16
12
|
onTypeChange: PropType<(val: ThemeEditorType) => void>;
|
|
17
13
|
onOpenChange: PropType<(val: boolean) => void>;
|
|
18
14
|
onClose: PropType<() => void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { LayoutConfig, TokensConfig } from './props';
|
|
3
|
+
export interface ThemeEditorContext {
|
|
4
|
+
hashId: ComputedRef<string>;
|
|
5
|
+
prefixCls: string;
|
|
6
|
+
drawerClass: string;
|
|
7
|
+
config: Ref<LayoutConfig>;
|
|
8
|
+
tokens: Ref<TokensConfig>;
|
|
9
|
+
}
|
|
10
|
+
export declare const provideThemeEditorContext: (value: ThemeEditorContext) => void, useThemeEditorContext: (injectDefaultValue?: ThemeEditorContext | undefined) => ThemeEditorContext;
|