🎨 Update attr panel for av

This commit is contained in:
Daniel 2023-10-12 19:55:57 +08:00
parent d257caff8d
commit 1590913db7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 8 additions and 5 deletions

View file

@ -8,6 +8,9 @@ import {popTextCell} from "./cell";
export const genAVValueHTML = (value: IAVCellValue) => {
let html = "";
switch (value.type) {
case "block":
html = `<div class="fn__flex-1">${value.block.content}</div>`;
break;
case "text":
html = `<textarea rows="${value.text.content.split("\n").length}" class="b3-text-field b3-text-field--text fn__flex-1">${value.text.content}</textarea>`;
break;