Lius
2025-04-10 5fadb9533dae67ad5e2327f97a4faa0f5068de62
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() !== ''))
}