mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 10:56:15 -08:00
fix: update type annotations for art and container in Player.vue
fix: remove beta version entry from changelog fix: simplify i18n import in CHANGELOG.md
This commit is contained in:
1 parent
92ff80d285
commit
eb015c7fac
2 files changed
+18
-6
No files matched your search
@@ -15,14 +15,14 @@ import artplayerPluginDanmuku from 'artplayer-plugin-danmuku'
|
||||
const props = defineProps<{ option: Partial<Option> }>()
|
||||
const emit = defineEmits(['getInstance'])
|
||||
|
||||
const art = shallowRef<Artplayer>(null)
|
||||
const $container = ref(null)
|
||||
const art = shallowRef<Artplayer | null>(null)
|
||||
const $container = ref<HTMLDivElement | null>(null)
|
||||
|
||||
onMounted(() => {
|
||||
art.value = new Artplayer({
|
||||
...props.option,
|
||||
url: props.option.url,
|
||||
container: $container.value,
|
||||
url: props.option.url as string,
|
||||
container: $container.value as HTMLDivElement,
|
||||
i18n: { id, fr },
|
||||
lang: 'fr',
|
||||
plugins: [
|
||||
|
||||
Reference in new issue
Block a user