lazyimg title

This commit is contained in:
tangly1024.com
2023-07-24 15:07:37 +08:00
parent 779e4c9bc9
commit 06dca2fd71

View File

@@ -16,6 +16,7 @@ export default function LazyImage({
className,
width,
height,
title,
onLoad,
style
}) {
@@ -66,6 +67,10 @@ export default function LazyImage({
imgProps.id = id
}
if (title) {
imgProps.title = title
}
if (width && width !== 'auto') {
imgProps.width = width
}