Sign in

wms / yuyue · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • yuyue
  • ant-design-vue-jeecg
  • src
  • components
  • _util
  • util.js
  • 初始化分支
    ed6f0bbe
    李泰瑜 authored
    2022-01-20 08:36:44 +0800  
    Browse Code »
util.js 218 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() !== ''))
}