|
@@ -24,18 +24,16 @@ declare type ComponentOptions = {
|
|
|
cache?: boolean
|
|
cache?: boolean
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- methods?: {
|
|
|
|
|
- [key: string]: Function
|
|
|
|
|
- };
|
|
|
|
|
- watch?: {
|
|
|
|
|
- [key: string]: Function | string
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ methods?: { [key: string]: Function };
|
|
|
|
|
+ watch?: { [key: string]: Function | string };
|
|
|
|
|
+
|
|
|
// DOM
|
|
// DOM
|
|
|
el?: string | Element;
|
|
el?: string | Element;
|
|
|
template?: string;
|
|
template?: string;
|
|
|
render: (h: () => VNode) => VNode;
|
|
render: (h: () => VNode) => VNode;
|
|
|
renderError?: (h: () => VNode, err: Error) => VNode;
|
|
renderError?: (h: () => VNode, err: Error) => VNode;
|
|
|
staticRenderFns?: Array<() => VNode>;
|
|
staticRenderFns?: Array<() => VNode>;
|
|
|
|
|
+
|
|
|
// lifecycle
|
|
// lifecycle
|
|
|
beforeCreate?: Function;
|
|
beforeCreate?: Function;
|
|
|
created?: Function;
|
|
created?: Function;
|
|
@@ -43,11 +41,27 @@ declare type ComponentOptions = {
|
|
|
mounted?: Function;
|
|
mounted?: Function;
|
|
|
beforeUpdate?: Function;
|
|
beforeUpdate?: Function;
|
|
|
updated?: Function;
|
|
updated?: Function;
|
|
|
|
|
+ activated?: Function;
|
|
|
|
|
+ deactivated?: Function;
|
|
|
|
|
+ beforeDestroy?: Function;
|
|
|
|
|
+ destroyed?: Function;
|
|
|
|
|
+
|
|
|
// assets
|
|
// assets
|
|
|
directives?: { [key: string]: Object };
|
|
directives?: { [key: string]: Object };
|
|
|
components?: { [key: string]: Class<Component> };
|
|
components?: { [key: string]: Class<Component> };
|
|
|
transitions?: { [key: string]: Object };
|
|
transitions?: { [key: string]: Object };
|
|
|
filters?: { [key: string]: Function };
|
|
filters?: { [key: string]: Function };
|
|
|
|
|
+
|
|
|
|
|
+ // context
|
|
|
|
|
+ provide?: Object | () => Object;
|
|
|
|
|
+ inject?: { [key: string]: string } | Array<string>;
|
|
|
|
|
+
|
|
|
|
|
+ // component v-model customization
|
|
|
|
|
+ model?: {
|
|
|
|
|
+ prop?: string;
|
|
|
|
|
+ event?: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
// misc
|
|
// misc
|
|
|
parent?: Component;
|
|
parent?: Component;
|
|
|
mixins?: Array<Object>;
|
|
mixins?: Array<Object>;
|