Vanessa 2023-07-11 00:03:11 +08:00
parent c78cbe067d
commit 42833c6285
3 changed files with 56 additions and 15 deletions

View file

@ -62,7 +62,7 @@ ${column.wrap ? "" : "white-space: nowrap;"}">
} else if (cell.valueType === "number") {
text = `<span class="av__celltext">${cell.value?.number.content || ""}</span>`;
} else if (cell.valueType === "mSelect" || cell.valueType === "select") {
cell.value?.mSelect.forEach((item: { content: string, color: string }) => {
cell.value?.mSelect?.forEach((item: { content: string, color: string }) => {
text += `<span class="av__celltext"><span class="b3-chip b3-chip--middle" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">${item.content}</span></span>`;
});
if (!text) {