| | |
| | | return cell |
| | | }) |
| | | item.components = this.resetConfig(item.components) |
| | | } else if (item.type === 'menubar') { |
| | | item.subMenus = item.subMenus.map(cell => { |
| | | cell.uuid = this.getuuid() |
| | | return cell |
| | | }) |
| | | } else if (item.type === 'card' || item.type === 'carousel' || (item.type === 'table' && item.subtype === 'tablecard')) { |
| | | item.subcards.forEach(card => { |
| | | card.uuid = this.getuuid() |
| | |
| | | * @return {Object} style |
| | | */ |
| | | export function resetStyle (style) { |
| | | if (sessionStorage.getItem('appType') === 'mob' && style) { |
| | | if (!style) return {} |
| | | if (sessionStorage.getItem('appType') === 'mob') { |
| | | let _style = JSON.stringify(style) |
| | | |
| | | // scaleview |
| | |
| | | }) |
| | | |
| | | return JSON.parse(_style) |
| | | } else { |
| | | return style |
| | | } |
| | | |
| | | return JSON.parse(JSON.stringify(style)) |
| | | } |