@flatbiz/pro-layout 4.0.0 → 4.0.1
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/cjs/index.css +95 -278
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +18 -4
- package/package.json +2 -3
package/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare type TAdminUser = null | {
|
|
|
70
70
|
};
|
|
71
71
|
export interface TRouteItemProps {
|
|
72
72
|
path: string;
|
|
73
|
-
element: ReactElement | null;
|
|
73
|
+
element: ReactElement | ComponentType | null;
|
|
74
74
|
redirect?: string | false;
|
|
75
75
|
caseSensitive?: boolean;
|
|
76
76
|
}
|
|
@@ -178,9 +178,13 @@ export declare type BootstrapOptions = {
|
|
|
178
178
|
hideDefaultBread?: boolean;
|
|
179
179
|
headerThemeConfig?: {
|
|
180
180
|
bgColor?: string;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
textColor?: string;
|
|
182
|
+
menuActiveBgColor?: string;
|
|
183
|
+
menuActiveTextColor?: string;
|
|
184
|
+
menuSelectedBgColor?: string;
|
|
185
|
+
menuSelectedTextColor?: string;
|
|
186
|
+
menuColor?: string;
|
|
187
|
+
menuTextFontSize?: number;
|
|
184
188
|
};
|
|
185
189
|
sidebarThemeConfig?: {
|
|
186
190
|
bgColor?: string;
|
|
@@ -189,6 +193,8 @@ export declare type BootstrapOptions = {
|
|
|
189
193
|
menuSelectedBgColor?: string;
|
|
190
194
|
menuSelectedTextColor?: string;
|
|
191
195
|
menuColor?: string;
|
|
196
|
+
menuTextFontSize?: number;
|
|
197
|
+
menuItemHeight?: number;
|
|
192
198
|
/**
|
|
193
199
|
* 默认值 16
|
|
194
200
|
*/
|
|
@@ -203,6 +209,14 @@ export declare type BootstrapOptions = {
|
|
|
203
209
|
*/
|
|
204
210
|
hideSidebarShrink?: boolean;
|
|
205
211
|
configProviderProps?: ConfigProviderProps;
|
|
212
|
+
/**
|
|
213
|
+
* 配置theme后 sidebarThemeConfig 配置失效
|
|
214
|
+
*/
|
|
215
|
+
sidebarMenuConfigProviderProps?: Omit<ConfigProviderProps, "locale">;
|
|
216
|
+
/**
|
|
217
|
+
* 配置theme后 headerThemeConfig 配置失效
|
|
218
|
+
*/
|
|
219
|
+
topMenuConfigProviderProps?: Omit<ConfigProviderProps, "locale">;
|
|
206
220
|
};
|
|
207
221
|
export declare type LayoutCtxProps = {
|
|
208
222
|
sidebarWidth: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -56,6 +56,5 @@
|
|
|
56
56
|
"react-dom": "18.2.0",
|
|
57
57
|
"react-router": "^6.4.4",
|
|
58
58
|
"react-router-dom": "^6.4.4"
|
|
59
|
-
}
|
|
60
|
-
"gitHead": "5381ba2486f8ee1fdfb6ff8957b82166f69a1b0c"
|
|
59
|
+
}
|
|
61
60
|
}
|