update docs

This commit is contained in:
Harvey committed 2022-05-06 10:46:17 +08:00
1 parent 194c65778b
commit d88a992efb
51 files changed
+219 -220

No files matched your search

@@ -29,7 +29,7 @@ export default {
},
beforeUnmount() {
if (this.instance && this.instance.destroy) {
this.instance.destroy();
this.instance.destroy(false);
}
},
};
+4 -8
View File
@@ -1,18 +1,11 @@
<template>
<div>
<client-only placeholder="loading...">
<Artplayer @get-instance="getInstance" :option="option" :style="style" />
</client-only>
</div>
<Artplayer @get-instance="getInstance" :option="option" :style="style" />
</template>
<script>
import Artplayer from './Artplayer.vue';
export default {
components: {
Artplayer,
},
data() {
return {
option: {
@@ -26,6 +19,9 @@ export default {
},
};
},
components: {
Artplayer,
},
methods: {
getInstance(art) {
console.log(art);