mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 23:16:52 +00:00
lazyimg title
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user