mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
fix RenderContext (#4099)
This commit is contained in:
parent
5a4c1d7f70
commit
887ec90d14
2
types/options.d.ts
vendored
2
types/options.d.ts
vendored
@ -55,7 +55,7 @@ export interface FunctionalComponentOptions {
|
||||
export interface RenderContext {
|
||||
props: any;
|
||||
children: VNode[];
|
||||
slots: any;
|
||||
slots(): any;
|
||||
data: VNodeData;
|
||||
parent: Vue;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ Vue.component('functional-component', {
|
||||
render(createElement, context) {
|
||||
context.props;
|
||||
context.children;
|
||||
context.slots;
|
||||
context.slots();
|
||||
context.data;
|
||||
context.parent;
|
||||
return createElement("div", {}, context.children);
|
||||
|
Loading…
Reference in New Issue
Block a user