This commit is contained in:
parent
04acdc00f7
commit
748a8c82a8
2 changed files with 8 additions and 2 deletions
|
@ -67,7 +67,10 @@ export const genAVValueHTML = (value: IAVCellValue) => {
|
|||
break;
|
||||
case "mSelect":
|
||||
case "select":
|
||||
value.mSelect?.forEach(item => {
|
||||
value.mSelect?.forEach((item, index) => {
|
||||
if (value.type === "select" && index > 0) {
|
||||
return;
|
||||
}
|
||||
html += `<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>`;
|
||||
});
|
||||
break;
|
||||
|
|
|
@ -794,7 +794,10 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => {
|
|||
} else if (cellValue.type === "number") {
|
||||
text = `<span class="av__celltext" data-content="${cellValue?.number.isNotEmpty ? cellValue?.number.content : ""}">${cellValue?.number.formattedContent || cellValue?.number.content || ""}</span>`;
|
||||
} else if (cellValue.type === "mSelect" || cellValue.type === "select") {
|
||||
cellValue?.mSelect?.forEach((item) => {
|
||||
cellValue?.mSelect?.forEach((item, index) => {
|
||||
if (cellValue.type === "select" && index > 0) {
|
||||
return;
|
||||
}
|
||||
text += `<span class="b3-chip" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">${item.content}</span>`;
|
||||
});
|
||||
} else if (cellValue.type === "date") {
|
||||
|
|
Loading…
Add table
Reference in a new issue