This commit is contained in:
parent
faadbf5960
commit
803069d807
2 changed files with 3 additions and 2 deletions
|
@ -225,7 +225,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
|||
</label>
|
||||
${notifyHTML}
|
||||
</div>
|
||||
<div data-type="NodeAttributeView" class="fn__none custom-attr" data-av-id="${attrs["custom-avs"]}" data-node-id="${attrs.id}"></div>
|
||||
<div data-type="NodeAttributeView" class="fn__none custom-attr"></div>
|
||||
<div data-type="custom" class="fn__none custom-attr">
|
||||
${customHTML}
|
||||
<div class="b3-label">
|
||||
|
|
|
@ -76,7 +76,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle?: IP
|
|||
avID: string
|
||||
avName: string
|
||||
}) => {
|
||||
html += `<div class="block__logo custom-attr__avheader">
|
||||
html += `<div data-av-id="${table.avID}" data-node-id="${id}" data-type="NodeAttributeView"><div class="block__logo custom-attr__avheader">
|
||||
<svg><use xlink:href="#iconDatabase"></use></svg>
|
||||
<span>${table.avName || window.siyuan.languages.database}</span>
|
||||
</div>`;
|
||||
|
@ -93,6 +93,7 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "templat
|
|||
</div>
|
||||
</div>`;
|
||||
});
|
||||
html += "</div>";
|
||||
});
|
||||
element.innerHTML = html;
|
||||
element.addEventListener("click", (event) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue