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

wip(app): nvue

上级 8d74161f
......@@ -349,7 +349,7 @@ export declare interface NVueElement {
type: string;
ref: string;
text?: string;
preClassList: string[];
styleSheet: Record<string, Record<string, Record<string, unknown>>>;
classList: string[];
parentNode: NVueElement | null;
children: Array<NVueElement>;
......@@ -361,10 +361,10 @@ 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;
setPreClassList: (preClassList: string[]) => void;
setClassList: (classList: string[]) => void;
setStyle: (key: string, value: any, silent?: boolean) => void;
setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void;
setStyleSheet: (styleSheet: Record<string, Record<string, Record<string, unknown>>>) => void;
addEvent: (type: string, handler: Function, args?: Array<any>) => void;
removeEvent: (type: string) => void;
fireEvent: (type: string) => void;
......
......@@ -85,7 +85,7 @@ export interface NVueElement {
ref: string
text?: string
preClassList: string[]
styleSheet: Record<string, Record<string, Record<string, unknown>>>
classList: string[]
parentNode: NVueElement | null
children: Array<NVueElement>
......@@ -98,10 +98,12 @@ 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
setPreClassList: (preClassList: string[]) => void
setClassList: (classList: string[]) => void
setStyle: (key: string, value: any, silent?: boolean) => void
setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void
setStyleSheet: (
styleSheet: Record<string, Record<string, Record<string, unknown>>>
) => void
addEvent: (type: string, handler: Function, args?: Array<any>) => void
removeEvent: (type: string) => void
fireEvent: (type: string) => void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册