How to use the santd.Select.Option 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 / Header.js View on Github external
`;

    static components = {
        's-col': Col,
        's-row': Row,
        's-icon': Icon,
        's-menu': Menu,
        's-menu-item': Menu.Item,
        's-sub-menu': Menu.Sub,
        's-input': Input,
        's-badge': Badge,
        's-select': Select,
        's-select-option': Select.Option
    };
    initData() {
        return {
            opts: [],
            showOpts: [],
            value: ''
        };
    }
    created() {
        const routes = this.data.get('routes');
        const opts = this.getCom(routes);
        this.data.set('opts', opts);
        this.data.set('showOpts', opts);
    }
    getCom(arr) {
        return arr.reduce((pre, cur) => {

santd

san UI design

Unrecognized
Latest version published 1 year ago

Package Health Score

46 / 100
Full package analysis