仪表盘
版本库
文件存储
活动
搜索
登录
common
/
vue_mdc_common
标准版前端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
first commit
zhaowei
2024-06-25
e68724aee9b82d65796cb29f2d91c409c4a3c008
[common/vue_mdc_common.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() !== ''))
}