mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
🚨
This commit is contained in:
parent
4670092d22
commit
cb2560ffda
6 changed files with 22 additions and 23 deletions
|
|
@ -669,13 +669,13 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
|
|||
if (!item) {
|
||||
return;
|
||||
}
|
||||
let hasSameContent = false
|
||||
let hasSameContent = false;
|
||||
oldValue.mSelect.find((mSelectItem) => {
|
||||
if (mSelectItem.content === item) {
|
||||
hasSameContent = true
|
||||
return true
|
||||
hasSameContent = true;
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
if (hasSameContent) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -683,8 +683,8 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
|
|||
newMSelectValue.push({
|
||||
content: item,
|
||||
color: colorIndex.toString()
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
value = oldValue.mSelect.concat(newMSelectValue);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import {Constants} from "../../constants";
|
||||
import {merge} from "./merge";
|
||||
import {hintEmbed, hintRef, hintSlash, hintTag} from "../hint/extend";
|
||||
import {isMobile} from "../../util/functions";
|
||||
import {toolbarKeyToMenu} from "../toolbar/util";
|
||||
|
||||
export class Options {
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
} else if (cellsElement.length > 0) {
|
||||
if (cellsElement.length > 1) {
|
||||
// 选择多个单元格时,逐行填充
|
||||
let rowIndex = 0
|
||||
let rowIndex = 0;
|
||||
text.split("\n").find((row) => {
|
||||
if (!row) {
|
||||
return false;
|
||||
|
|
@ -205,7 +205,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
} else {
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
} else {
|
||||
updateCellsValue(protyle, blockElement as HTMLElement, text, cellsElement, columns, html);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue