
Layout
The container component used for layout, which is convenient to quickly build the basic structure of the page:
Container
:Outer container. When the child element contains Header
or Footer
, all child elements will be arranged vertically up and down, otherwise they will be arranged horizontally.
Header
:Top bar container
Side
:Sidebar container
Main
:Main area container
Footer
:Bottom bar container
Component overview
Layout
:Layout container, Header
Sider
Main
Footer
or Layout
itself can be nested under it , Can be placed in any parent container
Header
:Top layout, with default style, any elements can be nested under it
Sider
:Sidebar, with default style and basic functions, any elements can be nested under it
Main
:The content part, with its own default style, any element can be nested under it
Footer
:Bottom layout, with default style, any element can be nested under it
Common page layout
Commonly found in Internet website layout
Demo
The middle part adopts the left and right structure, which is mostly used for back-end management website layout. When the Side
component is added to the layout template, the upper middle and lower parts are used by default, and the middle part adopts the left and right structure layout.
Demo
The right side adopts an upper, middle and lower structure, which is mostly used for back-end management of the website layout, and the layout is controlled to the left and right structure by setting the IsFullSide
attribute value
Demo
The width of the sidebar is controlled by setting the SideWidth
property, which supports percentage writing. When setting 0
, the width setting function is turned off, and the internal sub-controls are used to fill the width feature
Demo
In application
Demo
- The sidebar fills the entire screen, and scroll bars appear when the overall height of the menu exceeds the screen
- The sidebar is not processed and the height is automatically opened by the content
In order to facilitate your study and comparison, try to use the style
inline style in the following practical examples
In this example, a scroll bar appears after clicking the menu on the left to expand
In this example, if the scroll bar does not appear after clicking the left menu to expand, the height of the parent container will be expanded
Please refer to Tab component for practical examples of using Layout
component and Tab
component together
By setting the IsPage
layout the full page
Demo
Attributes
B station related video link
交流群