mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 08:26:16 -08:00
32 lines
644 B
Vue
32 lines
644 B
Vue
<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>
|