mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 03:57:36 +08:00
fix(types): add missing listeners
type on RenderContext (#7584)
This commit is contained in:
parent
dc97a39c2f
commit
db1b18ceec
1
types/options.d.ts
vendored
1
types/options.d.ts
vendored
@ -119,6 +119,7 @@ export interface RenderContext<Props=DefaultProps> {
|
||||
slots(): any;
|
||||
data: VNodeData;
|
||||
parent: Vue;
|
||||
listeners: { [key: string]: Function | Function[] };
|
||||
injections: any
|
||||
}
|
||||
|
||||
|
@ -312,6 +312,7 @@ Vue.component('functional-component', {
|
||||
context.slots();
|
||||
context.data;
|
||||
context.parent;
|
||||
context.listeners.click;
|
||||
return createElement("div", {}, context.children);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user