mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
Create vite.test.vue
This commit is contained in:
1 parent
3bf4db8529
commit
060bed6e72
1 file changed
+21
@@ -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>
|
||||||
Reference in new issue
Block a user