fix: functional components should inherit "key" (#8718)

This commit is contained in:
neverland 2021-05-18 11:14:56 +08:00 committed by GitHub
parent 13cdc6e7c9
commit 7f66b3ff4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ type InheritContext = Partial<VNodeData> & ObjectIndex;
const inheritKey = [ const inheritKey = [
'ref', 'ref',
'key',
'style', 'style',
'class', 'class',
'attrs', 'attrs',