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