From e34d2bd853ec893c45616a4c5c0e8ee2aebde222 Mon Sep 17 00:00:00 2001 From: likui <2218301630@qq.com> Date: Wed, 23 Oct 2019 21:29:09 +0800 Subject: [PATCH] types: improve slots type (#366) --- packages/runtime-core/src/componentProxy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentProxy.ts b/packages/runtime-core/src/componentProxy.ts index 6113283927..b54f927af2 100644 --- a/packages/runtime-core/src/componentProxy.ts +++ b/packages/runtime-core/src/componentProxy.ts @@ -10,6 +10,7 @@ import { } from './apiOptions' import { UnwrapRef, ReactiveEffect } from '@vue/reactivity' import { warn } from './warning' +import { Slots } from './componentSlots' // public properties exposed on the proxy, which is used as the render context // in templates (as `this` in the render option) @@ -26,7 +27,7 @@ export type ComponentPublicInstance< $props: PublicProps $attrs: Data $refs: Data - $slots: Data + $slots: Slots $root: ComponentInternalInstance | null $parent: ComponentInternalInstance | null $emit: Emit -- 2.47.3