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:
Harvey Zack committed 2025-09-06 18:28:07 +08:00
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: [