| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- declare type VNodeChildren = Array<?VNode | string | VNodeChildren> | string
- declare type VNodeComponentOptions = {
- Ctor: Class<Component>;
- propsData: ?Object;
- listeners: ?Object;
- children: ?Array<VNode>;
- tag?: string;
- }
- declare type MountedComponentVNode = {
- componentOptions: VNodeComponentOptions;
- child: Component;
- parent: VNode;
- data: VNodeData;
- }
- // interface for vnodes in update modules
- declare type VNodeWithData = {
- tag: string;
- data: VNodeData;
- children: ?Array<VNode>;
- text: void;
- elm: any;
- ns: string | void;
- context: Component;
- key: string | number | void;
- parent?: VNodeWithData;
- child?: Component;
- isRootInsert: boolean;
- }
- declare interface VNodeData {
- key?: string | number;
- slot?: string;
- ref?: string;
- pre?: boolean;
- tag?: string;
- staticClass?: string;
- class?: any;
- staticStyle?: { [key: string]: any };
- style?: Array<Object> | Object;
- props?: { [key: string]: any };
- attrs?: { [key: string]: string };
- domProps?: { [key: string]: any };
- hook?: { [key: string]: Function };
- on?: ?{ [key: string]: Function | Array<Function> };
- nativeOn?: { [key: string]: Function | Array<Function> };
- transition?: Object;
- show?: boolean; // marker for v-show
- inlineTemplate?: {
- render: Function;
- staticRenderFns: Array<Function>;
- };
- directives?: Array<VNodeDirective>;
- keepAlive?: boolean;
- scopedSlots?: { [key: string]: Function }
- }
- declare type VNodeDirective = {
- name: string;
- rawName: string;
- value?: any;
- oldValue?: any;
- arg?: string;
- modifiers?: ASTModifiers;
- def?: Object;
- }
|