fix RenderContext (#4099)

This commit is contained in:
Kaorun343 2016-11-04 02:07:07 +09:00 committed by Evan You
parent 5a4c1d7f70
commit 887ec90d14
2 changed files with 2 additions and 2 deletions

2
types/options.d.ts vendored
View File

@ -55,7 +55,7 @@ export interface FunctionalComponentOptions {
export interface RenderContext {
props: any;
children: VNode[];
slots: any;
slots(): any;
data: VNodeData;
parent: Vue;
}

View File

@ -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);