mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🚨
This commit is contained in:
parent
23bece401f
commit
45c389629a
9 changed files with 32 additions and 32 deletions
|
|
@ -48,19 +48,19 @@ export const avRender = (element: Element, cb?: () => void) => {
|
|||
</div>
|
||||
<div class="av__firstcol"><svg><use xlink:href="#iconUncheck"></use></svg></div>`;
|
||||
row.cells.forEach((cell, index) => {
|
||||
let text: string
|
||||
let text: string;
|
||||
if (cell.valueType === "text") {
|
||||
text = cell.value?.text.content || ""
|
||||
text = cell.value?.text.content || "";
|
||||
} else if (cell.valueType === "block") {
|
||||
text = cell.value?.block.content || ""
|
||||
text = cell.value?.block.content || "";
|
||||
} else if (cell.valueType === "number") {
|
||||
text = cell.value?.number.content || ""
|
||||
text = cell.value?.number.content || "";
|
||||
} else if (cell.valueType === "select") {
|
||||
text = cell.value?.select.content || ""
|
||||
text = cell.value?.select.content || "";
|
||||
} else if (cell.valueType === "mSelect") {
|
||||
text = cell.value?.mSelect.content || ""
|
||||
text = cell.value?.mSelect.content || "";
|
||||
} else if (cell.valueType === "date") {
|
||||
text = cell.value?.date.content || ""
|
||||
text = cell.value?.date.content || "";
|
||||
}
|
||||
tableHTML += `<div class="av__cell" ${index === 0 ? 'data-block-id="' + (cell.value.block.id || "") + '"' : ""} data-id="${cell.id}" data-index="${index}" style="width: ${data.columns[index].width || 200}px;${cell.bgColor ? `background-color:${cell.bgColor};` : ""}${cell.color ? `color:${cell.color};` : ""}">${text}</div>`;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue