This commit is contained in:
Vanessa 2023-07-17 10:12:31 +08:00
parent 62b990bf05
commit 01c8447d4d
4 changed files with 4 additions and 13 deletions

View file

@ -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({

View file

@ -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",

View file

@ -236,7 +236,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl
id,
avID,
}]);
})
});
} else {
transaction(protyle, [{
action: "addAttrViewCol",