update docs

This commit is contained in:
Harvey committed 2022-05-06 10:21:32 +08:00
1 parent 481d8fefbb
commit 194c65778b
145 files changed
+871 -510

No files matched your search

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