Waline Module for Vuejs 3.0
npm install @waline/client
Here is a example
- For VitePress:
// .vitepress/theme/index.ts
import { h } from 'vue'
import Theme from 'vitepress/theme'
import './style.css'
import Walineinit from '../../components/Walineinit.vue'; // Import this Vue file
export default {
extends: Theme,
Layout: () => {
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
})
},
enhanceApp({ app, router, siteData }) {
// ...
app.component('Walineinit', Walineinit)
}
}
Here is a example
<Walineinit />