mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-31 21:30:33 +08:00
为MessageCard组件添加图片加载事件,更新MessageView以处理图片加载完成后的滚动事件
This commit is contained in:
@@ -10,6 +10,9 @@ const props = defineProps({
|
||||
height: String,
|
||||
})
|
||||
|
||||
// 定义事件
|
||||
const emit = defineEmits(['imageload'])
|
||||
|
||||
// 图片是否加载完成
|
||||
const isImageLoaded = ref(false)
|
||||
|
||||
@@ -19,6 +22,7 @@ const imageLoadError = ref(false)
|
||||
// 图片加载完成
|
||||
async function imageLoaded() {
|
||||
isImageLoaded.value = true
|
||||
emit('imageload')
|
||||
}
|
||||
|
||||
// 链接打开新窗口
|
||||
|
||||
Reference in New Issue
Block a user