mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
e4e4879911
commit
452b7dddb9
1 changed files with 3 additions and 2 deletions
|
|
@ -201,11 +201,12 @@ export const avContextmenu = (protyle: IProtyle, event: MouseEvent & { detail: a
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const editAttrSubmenu: IMenu[] = [];
|
const editAttrSubmenu: IMenu[] = [];
|
||||||
rowElement.parentElement.querySelectorAll(".av__row--header .av__cell").forEach((cellElement) => {
|
rowElement.parentElement.querySelectorAll(".av__row--header .av__cell").forEach((cellElement: HTMLElement) => {
|
||||||
editAttrSubmenu.push({
|
editAttrSubmenu.push({
|
||||||
icon: getColIconByType(cellElement.getAttribute("data-dtype") as TAVCol),
|
icon: getColIconByType(cellElement.getAttribute("data-dtype") as TAVCol),
|
||||||
label: cellElement.textContent.trim(),
|
label: cellElement.textContent.trim(),
|
||||||
click() {
|
click() {
|
||||||
|
popTextCell(protyle, rowElement.querySelector(`.av__cell[data-col-id="${cellElement.dataset.colId}"]`));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue