This commit is contained in:
parent
d175677042
commit
593959312d
3 changed files with 12 additions and 2 deletions
|
@ -149,7 +149,13 @@ export const showHeaderCellMenu = (protyle: IProtyle, blockElement: HTMLElement,
|
|||
icon: "iconEyeoff",
|
||||
label: window.siyuan.languages.hide,
|
||||
click() {
|
||||
|
||||
transaction(protyle, [{
|
||||
action:"setAttrViewColHidden",
|
||||
data: true
|
||||
}], [{
|
||||
action:"setAttrViewColHidden",
|
||||
data: false
|
||||
}]);
|
||||
}
|
||||
});
|
||||
menu.addItem({
|
||||
|
|
|
@ -651,7 +651,8 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
|
|||
updateRef(protyle, operation.id);
|
||||
} else if (operation.action === "append") {
|
||||
reloadProtyle(protyle, false);
|
||||
} else if (["addAttrViewCol", "insertAttrViewBlock", "updateAttrViewCol", "updateAttrViewCell", "sortAttrViewRow", "sortAttrViewCol"].includes(operation.action)) {
|
||||
} else if (["addAttrViewCol", "insertAttrViewBlock", "updateAttrViewCol", "updateAttrViewCell", "sortAttrViewRow",
|
||||
"sortAttrViewCol", "setAttrViewColHidden", "setAttrViewColWrap", "setAttrViewColWidth"].includes(operation.action)) {
|
||||
refreshAV(protyle, operation);
|
||||
}
|
||||
};
|
||||
|
|
3
app/src/types/index.d.ts
vendored
3
app/src/types/index.d.ts
vendored
|
@ -26,6 +26,9 @@ type TOperation =
|
|||
| "updateAttrViewCol"
|
||||
| "sortAttrViewRow"
|
||||
| "sortAttrViewCol"
|
||||
| "setAttrViewColHidden"
|
||||
| "setAttrViewColWrap"
|
||||
| "setAttrViewColWidth"
|
||||
type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
|
||||
type TCardType = "doc" | "notebook" | "all"
|
||||
type TEventBus = "ws-main" |
|
||||
|
|
Loading…
Add table
Reference in a new issue