mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 07:30:49 +08:00
🎨 tag rename
This commit is contained in:
parent
7c1bec64f2
commit
c62e178652
@ -18,7 +18,7 @@ export const renameTag = (labelName: string) => {
|
||||
const dialog = new Dialog({
|
||||
title: window.siyuan.languages.rename,
|
||||
content: `<div class="b3-dialog__content">
|
||||
<input class="b3-text-field fn__block" value="${labelName}">
|
||||
<input class="b3-text-field fn__block">
|
||||
<div class="b3-list fn__flex-1 b3-list--background fn__none protyle-hint" style=" position: absolute;
|
||||
width: calc(100% - 48px);">
|
||||
<img style="margin: 0 auto;display: block;width: 64px;height: 64px" src="/stage/loading-pure.svg">
|
||||
@ -47,6 +47,7 @@ export const renameTag = (labelName: string) => {
|
||||
});
|
||||
});
|
||||
const inputElement = dialog.element.querySelector("input");
|
||||
inputElement.value = labelName;
|
||||
inputElement.focus();
|
||||
inputElement.select();
|
||||
const listElement = dialog.element.querySelector(".b3-list--background");
|
||||
|
Loading…
Reference in New Issue
Block a user