mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 11:46:09 +01:00
🚨
This commit is contained in:
parent
e6a8abf004
commit
6f0c68f506
11 changed files with 29 additions and 31 deletions
|
|
@ -530,7 +530,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
|
|||
icon: "iconEdit",
|
||||
label: window.siyuan.languages.edit,
|
||||
click() {
|
||||
const colName = (menu.element.querySelector(".b3-text-field") as HTMLInputElement).value
|
||||
const colName = (menu.element.querySelector(".b3-text-field") as HTMLInputElement).value;
|
||||
openMenuPanel({
|
||||
protyle,
|
||||
blockElement,
|
||||
|
|
@ -538,7 +538,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
|
|||
colId,
|
||||
cb(avElement) {
|
||||
// 修改名字后点击编辑,需要更新名字
|
||||
const editNameElement = avElement.querySelector('.b3-text-field[data-type="name"]') as HTMLInputElement
|
||||
const editNameElement = avElement.querySelector('.b3-text-field[data-type="name"]') as HTMLInputElement;
|
||||
editNameElement.value = colName;
|
||||
editNameElement.select();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue