提交 6a18443e 作者: 方治民

chore: 更新 ThumbnailPreview 参数 type 定义

上级 45f85902
......@@ -3,7 +3,7 @@
import { nanoid } from 'nanoid'
import { getPoster, isImage, isVideo } from './utils'
type URLs = { url: string }[]
type Asset = Recordable & { url: string }
const props = defineProps({
width: {
type: [String, Number],
......@@ -22,7 +22,7 @@
default: '#F7F7f7',
},
assets: {
type: Array as PropType<Recordable & URLs>,
type: Array as PropType<Asset[]>,
},
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论