mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 01:56:16 -08:00
41 lines
676 B
Markdown
41 lines
676 B
Markdown
# artplayer-vue
|
|
|
|
Vue Component for Artplayer, It is recommended to package itself according to actual business needs.
|
|
|
|
## Demo
|
|
|
|
[Checkout the demo](https://codesandbox.io/s/6z76lm109n) from Codesandbox
|
|
|
|
## Install
|
|
|
|
Install with `npm`
|
|
|
|
```bash
|
|
$ npm install artplayer-vue
|
|
```
|
|
|
|
Or install with `yarn`
|
|
|
|
```bash
|
|
$ yarn add artplayer-vue
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
import ArtplayerComponent from 'artplayer-vue';
|
|
import 'artplayer-vue/dist/artplayer-vue.css';
|
|
|
|
// ...
|
|
<ArtplayerComponent
|
|
:option="{
|
|
// option, no 'container' property required
|
|
}"
|
|
@getInstance="ins => console.log(ins)" // get the instance
|
|
/>;
|
|
```
|
|
|
|
## License
|
|
|
|
MIT © [Harvey Zack](https://sleepy.im/)
|