[improvement] allow use ref in functional components (#2863)

This commit is contained in:
neverland 2019-02-27 21:15:09 +08:00 committed by GitHub
parent fde0f39ce6
commit ef06d058e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ type Context = RenderContext & { data: VNodeData & ObjectIndex };
type InheritContext = Partial<VNodeData> & ObjectIndex;
const inheritKey = [
'ref',
'style',
'class',
'attrs',