mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
🎨 Update attr panel for av
This commit is contained in:
parent
d257caff8d
commit
1590913db7
2 changed files with 8 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue