/** * components util */ /** * 清理空值,对象 * @param children * @returns {*[]} */ export function filterEmpty (children = []) { return children.filter(c => c.tag || (c.text && c.text.trim() !== '')) }