zoo layout
v0.0.3
Zoo-js의 레이아웃.
npm install @zoo-js/layout
// or
yarn add @zoo-js/layout
import { createApp } from 'vue'
import Layout from '@zoo-js/layout'
createApp ( ) . use ( Layout )
//jsx
const slots = {
header : ( ) => < div > header < / div > ,
default : ( ) => < div > main < / div >
}
< Layout title = { name : 'xx' , url : 'xx' } extraClass = "test" vSlots = { slots } > < / Layout >
//template
< template >
< Layout
extraClass = "test"
title = {
name : 'xx' ,
url : 'xxx'
} >
< div slot = "header" > header < / div >
< div > main < / div >
< / Layout >
< / template >