mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -72,9 +72,9 @@ export const genAVValueHTML = (value: IAVCellValue) => {
|
||||
case "mAsset":
|
||||
value.mAsset?.forEach(item => {
|
||||
if (item.type === "image") {
|
||||
html += `<img class="av__cellassetimg" src="${item.content}">`;
|
||||
html += `<img class="av__cellassetimg ariaLabel" aria-label="${item.content}" src="${item.content}">`;
|
||||
} else {
|
||||
html += `<span class="b3-chip b3-chip--middle av__celltext--url" data-name="${escapeAttr(item.name)}" data-url="${escapeAttr(item.content)}">${item.name || item.content}</span>`;
|
||||
html += `<span class="b3-chip b3-chip--middle av__celltext--url ariaLabel" aria-label="${escapeAttr(item.content)}" data-name="${escapeAttr(item.name)}" data-url="${escapeAttr(item.content)}">${item.name || item.content}</span>`;
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user