fix(components): [date-picker] slot compatible with Vue3.3.x (#14354)

This commit is contained in:
一只前端汪 2023-10-04 03:18:59 -05:00 committed by GitHub
parent 4747d69be7
commit 9b9b65751c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,9 @@ export default defineComponent({
if (slots.default) {
const list = slots.default(cell).filter((item) => {
return (
item.patchFlag !== -2 && item.type.toString() !== 'Symbol(Comment)'
item.patchFlag !== -2 &&
item.type.toString() !== 'Symbol(Comment)' &&
item.type.toString() !== 'Symbol(v-cmt)'
)
})
if (list.length) {