mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 15:01:46 +01:00
feat(types): support custom values from app.config.ts (#863)
This commit is contained in:
@@ -39,7 +39,7 @@ export function hexToRgb (hex: string) {
|
||||
|
||||
export function getSlotsChildren (slots: any) {
|
||||
let children = slots.default?.()
|
||||
if (children.length) {
|
||||
if (children?.length) {
|
||||
children = children.flatMap(c => {
|
||||
if (typeof c.type === 'symbol') {
|
||||
if (typeof c.children === 'string') {
|
||||
@@ -53,7 +53,7 @@ export function getSlotsChildren (slots: any) {
|
||||
return c
|
||||
}).filter(Boolean)
|
||||
}
|
||||
return children
|
||||
return children || []
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user