提交 f83cae67 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue

上级 c2f4e930
......@@ -349,6 +349,7 @@ export declare interface NVueElement {
type: string;
ref: string;
text?: string;
classList: string[];
parentNode: NVueElement | null;
children: Array<NVueElement>;
previousSibling: NVueElement | null;
......@@ -359,6 +360,7 @@ export declare interface NVueElement {
insertAfter: (node: NVueElement, after: NVueElement) => void;
setAttr: (key: string, value: any, silent?: boolean) => void;
setAttrs: (attrs: Record<string, unknown>, silent?: boolean) => void;
setClassList: (classList: string[]) => void;
setStyle: (key: string, value: any, silent?: boolean) => void;
setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void;
addEvent: (type: string, handler: Function, args?: Array<any>) => void;
......
......@@ -85,6 +85,7 @@ export interface NVueElement {
ref: string
text?: string
classList: string[]
parentNode: NVueElement | null
children: Array<NVueElement>
previousSibling: NVueElement | null
......@@ -96,6 +97,7 @@ export interface NVueElement {
insertAfter: (node: NVueElement, after: NVueElement) => void
setAttr: (key: string, value: any, silent?: boolean) => void
setAttrs: (attrs: Record<string, unknown>, silent?: boolean) => void
setClassList: (classList: string[]) => void
setStyle: (key: string, value: any, silent?: boolean) => void
setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void
addEvent: (type: string, handler: Function, args?: Array<any>) => void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册