mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-12-02 17:53:47 +08:00
Add layout registration, visual editing, and source generation. Preserve embedded pages and wait for asynchronous layout renderers. Add workspace lint and formatting commands.
31 lines
575 B
TypeScript
31 lines
575 B
TypeScript
import {
|
|
LayoutFooter,
|
|
LayoutFrame,
|
|
LayoutHeaderActions,
|
|
LayoutRow,
|
|
LayoutTabs,
|
|
LayoutTopNavigation,
|
|
} from '../blocks'
|
|
|
|
export default defineComponent({
|
|
name: 'CustomTopLayout',
|
|
setup() {
|
|
return () => (
|
|
<LayoutFrame>
|
|
{{
|
|
header: () => (
|
|
<>
|
|
<LayoutRow>
|
|
<LayoutTabs />
|
|
<LayoutHeaderActions />
|
|
</LayoutRow>
|
|
<LayoutTopNavigation />
|
|
</>
|
|
),
|
|
footer: () => <LayoutFooter />,
|
|
}}
|
|
</LayoutFrame>
|
|
)
|
|
},
|
|
})
|