仪表盘
版本库
文件存储
活动
搜索
登录
iot
/
lx_iot_ui
iot前端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
‘代码迁移初始化’
cuikaidong
2025-06-12
64931370717723655d4ecec4802dcdc54ec015f5
[iot/lx_iot_ui.git]
/
src
/
components
/
_util
/
util.js
1
2
3
4
5
6
7
8
9
10
11
12
/**
* components util
*/
/**
* 清理空值,对象
* @param children
* @returns {*[]}
*/
export function filterEmpty (children = []) {
return children.filter(c => c.tag || (c.text && c.text.trim() !== ''))
}