add artplayer-template

This commit is contained in:
Harvey Zack committed 2022-05-03 11:11:23 +08:00
1 parent 8fa763b9c7
commit 703f881019
59 files changed
+1408 -1

No files matched your search

@@ -0,0 +1,31 @@
<template>
<Artplayer @get-instance="getInstance" :option="option" :style="style" />
</template>
<script>
import Artplayer from "./Artplayer.vue";
export default {
data() {
return {
option: {
url: "https://artplayer.org/assets/sample/video.mp4",
autoSize: true,
},
style: {
width: "600px",
height: "400px",
margin: "60px auto 0",
},
};
},
components: {
Artplayer,
},
methods: {
getInstance(art) {
console.log(art);
},
},
};
</script>