Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 703 Bytes

README.md

File metadata and controls

41 lines (33 loc) · 703 Bytes

zoo-layout

Layout for zoo-js.

install

npm install @zoo-js/layout
// or
yarn add @zoo-js/layout

use

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>