| | |
| | | |
| | | delete _config.autoMatic |
| | | |
| | | let useMSearch = false |
| | | |
| | | if (clear) { |
| | | _config.components = [] |
| | | } else { |
| | |
| | | tab.components[0].width = 24 |
| | | tab.components[0].wrap.width = 24 |
| | | tab.components[0].wrap.name = tab.components[0].name |
| | | if (tab.components[0].setting.useMSearch === 'true') { |
| | | useMSearch = true |
| | | } |
| | | |
| | | tab.components[0].action.forEach(btn => { |
| | | if (btn.OpenType === 'popview' && btn.config) { |
| | |
| | | }) |
| | | } |
| | | |
| | | if (useMSearch) { |
| | | if (_config.components[0].search && _config.components[0].search.length > 0) { |
| | | let cell = { |
| | | uuid: Utils.getuuid(), |
| | | type: 'search', |
| | | width: 24, |
| | | subtype: 'mainsearch', |
| | | name: '搜索', |
| | | search: _config.components[0].search || [], |
| | | search: _config.components[0].search, |
| | | style: {borderBottomColor: '#f0f0f0', borderBottomWidth: '1px'}, |
| | | wrap: {float: 'left', blacklist: [], name: '搜索', width: 24} |
| | | } |