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

wip(app): add preClassList

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