mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
refactor(components): [only-child] simplify conditions (#8480)
This commit is contained in:
parent
5d88f628bb
commit
9c154e9228
@ -61,7 +61,6 @@ function findFirstLegitChild(node: VNode[] | undefined): VNode | null {
|
||||
case Comment:
|
||||
continue
|
||||
case Text:
|
||||
return wrapTextContent(child)
|
||||
case 'svg':
|
||||
return wrapTextContent(child)
|
||||
case Fragment:
|
||||
|
Loading…
Reference in New Issue
Block a user