Skip to content

Commit 887ec90

Browse files
Kaorun343yyx990803
authored andcommitted
fix RenderContext (vuejs#4099)
1 parent 5a4c1d7 commit 887ec90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/options.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface FunctionalComponentOptions {
5555
export interface RenderContext {
5656
props: any;
5757
children: VNode[];
58-
slots: any;
58+
slots(): any;
5959
data: VNodeData;
6060
parent: Vue;
6161
}

types/test/options-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Vue.component('functional-component', {
166166
render(createElement, context) {
167167
context.props;
168168
context.children;
169-
context.slots;
169+
context.slots();
170170
context.data;
171171
context.parent;
172172
return createElement("div", {}, context.children);

0 commit comments

Comments
 (0)