This commit is contained in:
Harvey Zack committed 2019-04-16 10:14:56 +08:00
1 parent 33e73810cb
commit 258abf82fa
1 file changed
+7 -2
+7 -2
View File
@@ -4,7 +4,7 @@ Vue Component for Artplayer, It is recommended to package itself according to ac
## Demo ## Demo
[Checkout the demo](https://codesandbox.io/s/n74859y9rl) from Github Pages [Checkout the demo](https://codesandbox.io/s/6z76lm109n) from Github Pages
## Install ## Install
@@ -27,7 +27,12 @@ import ArtplayerComponent from 'artplayer-vue';
import 'artplayer-vue/dist/artplayer-vue.css'; import 'artplayer-vue/dist/artplayer-vue.css';
// ... // ...
<ArtplayerComponent />; <ArtplayerComponent
:option="{
// option, no 'container' property required
}"
@getInstance="ins => console.log(ins)" // get the instance
/>;
``` ```
## License ## License