mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
87dcbcd58c
commit
32ec165065
2 changed files with 33 additions and 2 deletions
|
|
@ -349,10 +349,16 @@ export class Files extends Model {
|
|||
}
|
||||
let ids = "";
|
||||
const ghostElement = document.createElement("ul");
|
||||
selectElements.forEach((item: HTMLElement) => {
|
||||
selectElements.forEach((item: HTMLElement, index) => {
|
||||
ghostElement.append(item.cloneNode(true));
|
||||
item.style.opacity = "0.1";
|
||||
ids += (item.getAttribute("data-node-id") || "") + ",";
|
||||
const itemNodeId = item.getAttribute("data-node-id") || ""
|
||||
if (itemNodeId) {
|
||||
ids += itemNodeId;
|
||||
if (index < selectElements.length - 1) {
|
||||
ids += ",";
|
||||
}
|
||||
}
|
||||
});
|
||||
ghostElement.setAttribute("style", `width: 219px;position: fixed;top:-${selectElements.length * 30}px`);
|
||||
ghostElement.setAttribute("class", "b3-list b3-list--background");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue