mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
7cd297e507
commit
60317e2a0d
2 changed files with 4 additions and 6 deletions
|
|
@ -104,9 +104,7 @@ export class Protyle {
|
|||
case "refreshAttributeView":
|
||||
Array.from(this.protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${data.data.id}"]`)).forEach((item: HTMLElement) => {
|
||||
item.removeAttribute("data-render");
|
||||
avRender(item, () => {
|
||||
showColMenu(this.protyle, item, item.querySelector(".av__row--header").lastElementChild.previousElementSibling as HTMLElement);
|
||||
});
|
||||
avRender(item);
|
||||
});
|
||||
break;
|
||||
case "addLoading":
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export const addCol = (protyle: IProtyle, blockElement: HTMLElement) => {
|
|||
const id = Lute.NewNodeID();
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
name: "Text",
|
||||
name: "Select",
|
||||
parentID: blockElement.getAttribute("data-av-id"),
|
||||
type: "select",
|
||||
id
|
||||
|
|
@ -64,7 +64,7 @@ export const addCol = (protyle: IProtyle, blockElement: HTMLElement) => {
|
|||
const id = Lute.NewNodeID();
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
name: "Text",
|
||||
name: "Multi-select",
|
||||
parentID: blockElement.getAttribute("data-av-id"),
|
||||
type: "mSelect",
|
||||
id
|
||||
|
|
@ -82,7 +82,7 @@ export const addCol = (protyle: IProtyle, blockElement: HTMLElement) => {
|
|||
const id = Lute.NewNodeID();
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
name: "Text",
|
||||
name: "Date",
|
||||
parentID: blockElement.getAttribute("data-av-id"),
|
||||
type: "date",
|
||||
id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue