提交 45f85902 作者: 方治民

style: 预览组件图片背景色支持配置,默认值:#F7F7F7

上级 e582acec
......@@ -17,6 +17,10 @@
type: String,
default: 'aspectFit',
},
background: {
type: String,
default: '#F7F7f7',
},
assets: {
type: Array as PropType<Recordable & URLs>,
},
......@@ -49,7 +53,8 @@
const videoFullScreenChange = (e: any) => {
// 非全屏状态下停止播放
if (!e.detail.fullScreen) {
videoContext.value?.stop()
videoContext.value.seek(0)
videoContext.value.pause()
}
}
......@@ -64,6 +69,7 @@
<!-- 视频预览 -->
<fui-lazyload
class="preview-video"
:background="props.background"
:mode="props.mode"
v-for="(item, index) in videos"
:key="item.url"
......@@ -81,6 +87,7 @@
<!-- 图片预览 -->
<fui-lazyload
class="preview-image"
:background="props.background"
:mode="props.mode"
v-for="(item, index) in images"
:key="item.url"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论