| | |
| | | |
| | | import Utils from '@/utils/utils.js' |
| | | import MKEmitter from '@/utils/events.js' |
| | | import MenuUtils from '@/utils/utils-custom.js' |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | | // import './index.scss' |
| | | |
| | |
| | | item.uuid = _uuid |
| | | } |
| | | |
| | | if (item.copyType === 'cardcell' && config.subtype === 'datacard') { |
| | | if (item.copyType === 'action') { |
| | | MenuUtils.resetBtn(item, _uuid) |
| | | } else if (item.copyType === 'cardcell' && config.subtype === 'datacard') { |
| | | item.setting = item.setting || {} |
| | | item.$cardType = 'extendCard' |
| | | item.setting.width = item.setting.width || 6 |
| | |
| | | cell.datatype = 'static' |
| | | } |
| | | cell.uuid = Utils.getuuid() |
| | | |
| | | if (cell.eleType === 'button') { |
| | | MenuUtils.resetBtn(cell, _uuid) |
| | | } |
| | | return cell |
| | | }) |
| | | } |
| | |
| | | cell.datatype = 'static' |
| | | } |
| | | cell.uuid = Utils.getuuid() |
| | | |
| | | if (cell.eleType === 'button') { |
| | | MenuUtils.resetBtn(cell, _uuid) |
| | | } |
| | | return cell |
| | | }) |
| | | } |
| | |
| | | if (item.elements) { |
| | | item.elements = item.elements.map(cell => { |
| | | cell.uuid = Utils.getuuid() |
| | | if (cell.eleType === 'button') { |
| | | MenuUtils.resetBtn(cell, _uuid) |
| | | } |
| | | return cell |
| | | }) |
| | | } |
| | | if (item.backElements) { |
| | | item.backElements = item.backElements.map(cell => { |
| | | cell.uuid = Utils.getuuid() |
| | | if (cell.eleType === 'button') { |
| | | MenuUtils.resetBtn(cell, _uuid) |
| | | } |
| | | return cell |
| | | }) |
| | | } |
| | |
| | | } else if (col.type === 'custom' && col.elements) { |
| | | col.elements = col.elements.map(cell => { |
| | | cell.uuid = Utils.getuuid() |
| | | if (cell.eleType === 'button') { |
| | | MenuUtils.resetBtn(cell, _uuid) |
| | | } |
| | | return cell |
| | | }) |
| | | } |