How to use the santd.Menu.MenuItemGroup function in santd

To help you get started, we’ve selected a few santd 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 / site / src / containers / Navigator.js View on Github external
<span>{{leafItem.name}}</span>
                        
                    
                    
                        <span>{{item.name}}</span>
                    
                
            
        
    `;

    static components = {
        's-menu': Menu,
        's-sub-menu': Menu.Sub,
        's-menu-item': Menu.Item,
        's-menu-item-group': Menu.MenuItemGroup
    };

    static computed = {
        defaultOpenKeys() {
            const routes = this.data.get('routes');
            return routes.map(item =&gt; item.key);
        },
        selectedKeys() {
            return [this.data.get('currentPath')];
        },
        count() {
            let routes = this.data.get('routes').filter(route =&gt; route.list);
            let count = 0;
            routes.forEach(route =&gt; {
                route.list.forEach(r =&gt; {
                    count += r.leaf.length;

santd

san UI design

Unrecognized
Latest version published 1 year ago

Package Health Score

49 / 100
Full package analysis