Skip to content

Shell 子组件嵌套方式讨论 #2

@youluna

Description

@youluna
  1. 单层模式
<Shell>
    <Shell.Branding /> Box(row)
    <Shell.Navigation/>
    <Shell.Action /> Box(row)
    <Shell.LocaleNavigation /> Box(column)

    <Shell.AppBar /> Box(column)
    <Shell.Content /> Grid
    <Shell.Footer /> Box(column)
    
    <Shell.Ancillary /> Box(column)
    <Shell.ToolDock /> Box(column)
        <Shell.ToolDockItem />
</Shell>
  1. 嵌套模式
<Shell>
    <Header>
        <Shell.Branding /> Box(row)
        <Shell.Navigation/>
        <Shell.Action /> Box(row)
    </Header>
    <Content>
        <Aside>
            <Shell.Navigation/>
            <Shell.LocaleNavigation /> Box(column)
        </Aside>
        <Content>
             <Shell.AppBar /> Box(column)
            <Shell.Content /> Grid
            <Shell.Footer /> Box(column)
        </Content>
        <Footer />
    </Content>
</Shell>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions