仪表盘
版本库
文件存储
活动
搜索
登录
xhj
/
vue_mdc_xhj
新火炬前端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
feat(cms): CuttingInboundList 组件中增加提交功能并优化 CuttingInboundModal 组件- 在 Cutti...
lixiangyu
3 天以前
92560c22dc7837c254e1b65185c1f93a09357cf3
[xhj/vue_mdc_xhj.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() !== ''))
}