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