fix(projects): fix page: plugin_video style

This commit is contained in:
Soybean 2024-05-08 23:01:38 +08:00
parent 12d7bf94ee
commit fbebef3acb

View File

@ -12,8 +12,7 @@ function renderXgPlayer() {
player.value = new Player({ player.value = new Player({
el: domRef.value, el: domRef.value,
url, url,
playbackRate: [0.5, 0.75, 1, 1.5, 2], playbackRate: [0.5, 0.75, 1, 1.5, 2]
fluid: true
}); });
} }
function destroyXgPlayer() { function destroyXgPlayer() {
@ -30,9 +29,11 @@ onUnmounted(() => {
</script> </script>
<template> <template>
<div class="h-full"> <div>
<NCard title="视频播放器插件" :bordered="false" class="h-full card-wrapper"> <NCard title="视频播放器插件" :bordered="false" class="h-full card-wrapper">
<div ref="domRef" class=""></div> <div class="flex-center">
<div ref="domRef" class="h-auto w-full shadow-md"></div>
</div>
</NCard> </NCard>
</div> </div>
</template> </template>