Sign in

wms / wms4_xinxiangweiliang · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • wms4_xinxiangweiliang
  • ant-design-vue-jeecg
  • src
  • components
  • _util
  • util.js
  • 格式化所有文件
    05270686
    肖超群 authored
    2023-01-29 11:18:46 +0800  
    Browse Code »
util.js 217 Bytes
Edit Raw Blame History Permalink
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() !== ''))
}