Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
`;
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) => {