How to use the san.NodeType.TEXT function in san

To help you get started, we’ve selected a few san examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ecomfe / santd / src / typography / base.js View on Github external
                let textnode = getComponentChildren(this.children, item => item.nodeType === NodeType.TEXT);
                copyConfig.text = textnode.reduce((total, cur) => !/^\n\s*$/g.test(cur.content) ? (total + cur.content) : total, '');
github ecomfe / santd / santd / typography / base.js View on Github external
                    item => item.nodeType === NodeType.TEXT);
                copyConfig.text = textnode.reduce(
github ecomfe / san-xui / src / x / components / Tab.js View on Github external
        const tabPanels = _.filter(slotChildren, n => n.nodeType !== NodeType.TEXT);
        return tabPanels;