Sign in

wms / wms4_global · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • wms4_global
  • jeecg-boot-master
  • ant-design-vue-jeecg
  • src
  • components
  • _util
  • util.js
  • 初始版本
    c4af3466
    肖超群 authored
    2022-09-19 17:32:06 +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() !== ''))
}