🎨 多选复制到单选中会变为多个
This commit is contained in:
parent
2ba5242920
commit
cf4e9f22ac
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
cellValue.isDetached = true;
|
||||
delete cellValue.block.id;
|
||||
} else if (type === "select" || type === "mSelect") {
|
||||
if (type === "select" && cellValue.type === "mSelect" && cellValue.mSelect.length > 0) {
|
||||
cellValue.mSelect.splice(1, cellValue.mSelect.length - 1);
|
||||
}
|
||||
const operations = mergeAddOption(columns.find(e => e.id === cellElement.dataset.colId), cellValue, avID);
|
||||
doOperations.push(...operations.doOperations);
|
||||
undoOperations.push(...operations.undoOperations);
|
||||
|
|
Loading…
Add table
Reference in a new issue