| | |
| | | parts='UI'; |
| | | } |
| | | // 如果问号前面部分不在 ['ui', 'UI', 'base'] 中,则是自定义组件 |
| | | if (!['ui', 'UI', 'base','bs'].includes(parts)) { |
| | | if (!['ui', 'UI', 'base','bs'].includes(parts) && parts.indexOf('views/')==-1) { |
| | | component = `views/custom-ui/${parts}`; |
| | | }else if (['UI', 'ui', 'base','bs'].includes(parts)) { |
| | | // 如果问号前面等于 UI、ui 则为UI引擎 |
| | | component = 'views/base/UIContentViewer'; |
| | | }else{ |
| | | component = `${parts}`; |
| | | } |
| | | |
| | | // 如果问号前面等于 UI、ui 则为UI引擎 |
| | | if (['UI', 'ui'].includes(parts)) { |
| | | component = 'views/base/UIContentViewer'; |
| | | } |
| | | let name = oMenu[propsDefault.label], |
| | | icon = oMenu[propsDefault.icon], |
| | | children = oMenu[propsDefault.children], |