src/menu/pastecontroller/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/transfer/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/utils/utils-custom.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/menu/pastecontroller/index.jsx
@@ -23,12 +23,7 @@ } resetconfig = (item, appType, commonId) => { if (item.type === 'navbar') { item.uuid = MenuUtils.getuuid() item.menus.forEach(menu => { menu.MenuID = MenuUtils.getuuid() }) } else if (item.type === 'tabs') { if (item.type === 'tabs') { item.uuid = md5(commonId + item.uuid) item.setting.name = (item.setting.name || '') + MenuUtils.getSignName() item.name = item.setting.name src/menu/transfer/index.jsx
@@ -74,8 +74,6 @@ delete _config.autoMatic let useMSearch = false if (clear) { _config.components = [] } else { @@ -91,9 +89,6 @@ 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) { @@ -145,14 +140,14 @@ }) } 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} } src/utils/utils-custom.js
@@ -703,10 +703,6 @@ * @return {String} item 组件信息 */ static resetComponentConfig = (item, appType, commonId) => { if (item.type === 'navbar') { return item } if (item.subtype === 'tablecard') { // 兼容 item.type = 'card' } @@ -724,7 +720,22 @@ item.name = item.setting.name } if (item.type === 'menubar') { if (item.columns) { item.columns = item.columns.map(cell => { cell.uuid = this.getuuid() return cell }) } if (item.type === 'navbar') { if (appType === 'mob') { item.menus.forEach(menu => { menu.MenuID = this.getuuid() }) item.wrap.MenuNo = item.wrap.MenuNo + sign } return item } else if (item.type === 'menubar') { item.subMenus = item.subMenus.map(cell => { cell.uuid = this.getuuid() return cell @@ -923,12 +934,6 @@ } } else if (item.search) { item.search = item.search.map(cell => { cell.uuid = this.getuuid() return cell }) } if (item.columns) { item.columns = item.columns.map(cell => { cell.uuid = this.getuuid() return cell })