仪表盘
版本库
文件存储
活动
搜索
登录
wk
/
vue_mdc_wk
沃克前端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
first commit
zhaowei
2025-04-10
a41fc1ec8d3aa557b22a690c61537c7e177fed74
[wk/vue_mdc_wk.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() !== ''))
}