From: likui <2218301630@qq.com> Date: Wed, 23 Oct 2019 13:29:09 +0000 (+0800) Subject: types: improve slots type (#366) X-Git-Tag: v3.0.0-alpha.0~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e34d2bd853ec893c45616a4c5c0e8ee2aebde222;p=thirdparty%2Fvuejs%2Fcore.git types: improve slots type (#366) --- 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