Vanessa 2023-07-08 22:12:44 +08:00
parent 7cd297e507
commit 60317e2a0d
2 changed files with 4 additions and 6 deletions

View file

@ -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":

View file

@ -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