MCPcopy
hub / github.com/ustbhuangyi/vue-analysis / WeexElement

Interface WeexElement

vue/flow/weex.js:64–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64declare interface WeexElement {
65 nodeType: number;
66 nodeId: string;
67 type: string;
68 ref: string;
69 text?: string;
70
71 parentNode: WeexElement | void;
72 children: Array<WeexElement>;
73 previousSibling: WeexElement | void;
74 nextSibling: WeexElement | void;
75
76 appendChild: (node: WeexElement) => void;
77 removeChild: (node: WeexElement, preserved?: boolean) => void;
78 insertBefore: (node: WeexElement, before: WeexElement) => void;
79 insertAfter: (node: WeexElement, after: WeexElement) => void;
80 setAttr: (key: string, value: any, silent?: boolean) => void;
81 setAttrs: (attrs: Object, silent?: boolean) => void;
82 setStyle: (key: string, value: any, silent?: boolean) => void;
83 setStyles: (attrs: Object, silent?: boolean) => void;
84 addEvent: (type: string, handler: Function, args?: Array<any>) => void;
85 removeEvent: (type: string) => void;
86 fireEvent: (type: string) => void;
87 destroy: () => void;
88};
89
90declare type WeexInstanceOption = {
91 instanceId: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected