Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Nekotakus/vue3-dplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Vue3-DPlayer

DPlayer Module for Vuejs 3.0

** This module still WIP,we can't solve the prop problem. **

How to use it?

Step 1 - Install DPlayer from npm

npm install dPlayer

Step 2 - Import this vue module

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)
  }
}

Step 3 - Use it

Here is a example

<Player src="video link" />

About

WIP!!! DPlayer Module for Vuejs 3.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages