fix(components): [collection] type error (#7940)

This commit is contained in:
三咲智子 2022-05-30 10:27:16 +08:00 committed by GitHub
parent 180a2b91e0
commit 20317b9c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
"packages/components/checkbox/",
"packages/components/col/",
"packages/components/collapse-transition/",
"packages/components/collection/",
"packages/components/color-picker/",
"packages/components/date-picker/",
"packages/components/descriptions/",

View File

@ -52,7 +52,7 @@ export const createCollectionWithScope = (name: string) => {
const ElCollectionItem = {
...CollectionItem,
name: COLLECTION_ITEM_NAME,
setup(_, { attrs }: SetupContext) {
setup(_: unknown, { attrs }: SetupContext) {
const collectionItemRef = ref<HTMLElement | null>(null)
const collectionInjection = inject(COLLECTION_INJECTION_KEY, undefined)!