DPlayer Module for Vuejs 3.0
** This module still WIP,we can't solve the prop problem. **
npm install dPlayer
Here is a example
- For VitePress:
// .vitepress/theme/index.ts
import { h } from 'vue'
import Theme from 'vitepress/theme'
import './style.css'
import Player from '../../components/Player.vue';
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('Player', Player)
}
}
Here is a example
<Player src="video link" />