mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🚨
This commit is contained in:
parent
62b990bf05
commit
01c8447d4d
4 changed files with 4 additions and 13 deletions
|
|
@ -191,15 +191,6 @@ export const avContextmenu = (protyle: IProtyle, event: MouseEvent & { detail: a
|
|||
});
|
||||
}
|
||||
menu.addSeparator();
|
||||
if (rowIds.length === 1) {
|
||||
menu.addItem({
|
||||
icon: "iconEdit",
|
||||
label: window.siyuan.languages.edit,
|
||||
click() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
const editAttrSubmenu: IMenu[] = [];
|
||||
rowElement.parentElement.querySelectorAll(".av__row--header .av__cell").forEach((cellElement: HTMLElement) => {
|
||||
editAttrSubmenu.push({
|
||||
|
|
|
|||
|
|
@ -347,9 +347,9 @@ const updateCellValue = (protyle: IProtyle, cellElement: HTMLElement, type: TAVC
|
|||
};
|
||||
if (type === "number") {
|
||||
oldValue.content = parseFloat(oldValue.content as string);
|
||||
oldValue.isNotEmpty = !!oldValue.content
|
||||
oldValue.isNotEmpty = !!oldValue.content;
|
||||
inputValue.content = parseFloat(inputValue.content as string);
|
||||
inputValue.isNotEmpty = !!inputValue.content
|
||||
inputValue.isNotEmpty = !!inputValue.content;
|
||||
}
|
||||
transaction(protyle, [{
|
||||
action: "updateAttrViewCell",
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl
|
|||
id,
|
||||
avID,
|
||||
}]);
|
||||
})
|
||||
});
|
||||
} else {
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue