mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
🚨
This commit is contained in:
parent
c8bb337ede
commit
2a8f8abc8d
11 changed files with 23 additions and 23 deletions
|
|
@ -34,7 +34,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
const avID = blockElement.dataset.avId;
|
||||
const id = blockElement.dataset.nodeId;
|
||||
cellElements.forEach((item: HTMLElement, elementIndex) => {
|
||||
let cellValue: IAVCellValue = values[elementIndex]
|
||||
let cellValue: IAVCellValue = values[elementIndex];
|
||||
if (!cellValue) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -60,7 +60,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
// 类型不能转换时就不进行替换
|
||||
return;
|
||||
}
|
||||
const content = cellValue[cellValue.type as "text"].content
|
||||
const content = cellValue[cellValue.type as "text"].content;
|
||||
if (!content) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
}
|
||||
return;
|
||||
} catch (e) {
|
||||
console.warn("insert cell: JSON.parse error")
|
||||
console.warn("insert cell: JSON.parse error");
|
||||
}
|
||||
}
|
||||
const text = protyle.lute.BlockDOM2EscapeMarkerContent(html);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {lineNumberRender} from "../render/highlightRender";
|
|||
import {stickyRow} from "../render/av/row";
|
||||
|
||||
export const resize = (protyle: IProtyle) => {
|
||||
hideElements(["gutterOnly"], protyle)
|
||||
hideElements(["gutterOnly"], protyle);
|
||||
const abs = setPadding(protyle);
|
||||
const MIN_ABS = 4;
|
||||
// 不能 clearTimeout,否则 split 时左侧无法 resize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue