mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
update docs
This commit is contained in:
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);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user