Create vite.test.vue

This commit is contained in:
Harvey committed 2022-03-03 14:51:34 +08:00
1 parent 3bf4db8529
commit 060bed6e72
1 file changed
+21
+21
View File
@@ -0,0 +1,21 @@
<script setup>
import Artplayer from 'artplayer/examples/vue/Artplayer.vue';
const option = {
url: 'https://artplayer.org/assets/sample/video.mp4',
};
const style = {
width: '600px',
height: '400px',
margin: '60px auto 0',
};
function getInstance(art) {
console.log(art);
}
</script>
<template>
<Artplayer @get-instance="getInstance" :option="option" :style="style" />
</template>