Files
ArtPlayer/packages/artplayer-vue/README.md
T
2020-02-27 16:59:38 +08:00

40 lines
629 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';
// ...
<ArtplayerComponent
:option="{
// option, no 'container' property required
}"
@getInstance="ins => console.log(ins)" // get the instance
/>;
```
## License
MIT © [Harvey Zack](https://sleepy.im/)