| | |
| | | let _card = { |
| | | uuid: card.uuid, |
| | | type: card.type, |
| | | format: 'object', // 组件属性 - 数据格式 |
| | | format: 'array', // 组件属性 - 数据格式 |
| | | pageable: false, // 组件属性 - 是否可分页 |
| | | switchable: false, // 组件属性 - 数据是否可切换 |
| | | width: card.width || 24, |
| | |
| | | } else { |
| | | let _card = fromJS(card).toJS() |
| | | |
| | | _card.format = 'array' |
| | | if (_card.wrap.firstTr === 'light') { |
| | | _card.wrap.tbStyle = 'th-light' |
| | | delete _card.wrap.firstTr |
| | |
| | | card.name = card.wrap.name |
| | | |
| | | card.errors = [] |
| | | card.$tables = [] |
| | | |
| | | if (card.wrap.datatype !== 'static') { |
| | | if (card.wrap.datatype === 'dynamic') { |
| | | card.$c_ds = true |
| | | card.errors = checkComponent(card) |
| | | |