0.0.11 • Published 3 years ago

@squidc/vite-layout v0.0.11

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

squid-vite-layout

layout需要使用插件提供的layout hooks

使用

vite.config.ts

vueJsx预编译jsx/tsx配置文件

import vueLayout from "@squidc/vite-layout"
import vueJsx from "@vitejs/plugin-vue-jsx"
export default {
  plugins: [
    vueLayout(),
    vueJsx(),
  ],
}

main.ts

挂载全局layout组件 该插件使用全局组件生成.vue文件渲染

import TestLayout from "./testLayout.vue"
const app = createApp(App)
app.component("TestLayout", TestLayout)
app.mount("#app")
0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago