@@ -3,25 +3,31 @@ import { Layout } from '../../molecules';
33import DashboardTemplateFooter from './Footer' ;
44import DashboardTemplateHeader from './Header' ;
55import DashboardTemplateSider from './Sider' ;
6- import { DashboardTemplateContent , DashboardTemplateStyles } from './styles' ;
6+ import {
7+ DashboardTemplateContent ,
8+ DashboardTemplateSkeletonLayout ,
9+ DashboardTemplateStyles ,
10+ } from './styles' ;
711import { RdDashboardTemplateComponent , RdDashboardTemplateCompoundedComponent } from './types' ;
812
913const DashboardTemplateInternal : RdDashboardTemplateComponent = forwardRef ( ( props , ref ) => {
10- const { headerProps, siderProps, footerProps, ...restProps } = props ;
14+ const { headerProps, siderProps, footerProps, fitScreen = false , ...restProps } = props ;
1115
1216 return (
13- < DashboardTemplateStyles ref = { ref } { ...restProps } >
17+ < DashboardTemplateStyles ref = { ref } fitScreen = { fitScreen } { ...restProps } >
1418 { headerProps && < DashboardTemplateHeader { ...headerProps } /> }
1519
1620 < Layout hasSider = { Boolean ( siderProps ) } >
1721 { siderProps && < DashboardTemplateSider { ...siderProps } /> }
1822
19- < Layout >
20- < DashboardTemplateContent > { props . children } </ DashboardTemplateContent >
23+ < DashboardTemplateSkeletonLayout >
24+ < DashboardTemplateContent fitScreen = { fitScreen } >
25+ { props . children }
26+ </ DashboardTemplateContent >
2127 { footerProps !== false && (
2228 < DashboardTemplateFooter { ...footerProps } > </ DashboardTemplateFooter >
2329 ) }
24- </ Layout >
30+ </ DashboardTemplateSkeletonLayout >
2531 </ Layout >
2632 </ DashboardTemplateStyles >
2733 ) ;
0 commit comments