| | |
| | | { |
| | | uuid: 'card1', |
| | | url: card1, |
| | | type: 'card1' |
| | | subelement: ['content'] |
| | | }, |
| | | { |
| | | uuid: 'card2', |
| | | url: card2, |
| | | type: 'card2' |
| | | subelement: ['content', 'avatar'] |
| | | }, |
| | | { |
| | | uuid: 'card3', |
| | | url: card3, |
| | | type: 'card3' |
| | | subelement: ['content', 'avatar', 'header', 'actions'] |
| | | } |
| | | ] |
| | | } |
| | |
| | | result.Yaxis = result.Yaxis[0] || '' |
| | | } |
| | | } else if (result.chartType === 'card') { |
| | | result.cardType = selectlegend.type |
| | | result.subelement = selectlegend.subelement |
| | | |
| | | if (!result.details) { |
| | | result.details = [ |
| | |
| | | {bold: 'false', uuid: 'carddescription', content: 'Card content', datatype: 'static', align: 'left'} |
| | | ] |
| | | result.actions = [] |
| | | result.title = '' |
| | | result.header = { |
| | | title: {content: 'Card title', datatype: 'static'}, |
| | | actions: [] |
| | | } |
| | | result.avatar = {content: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png', datatype: 'static', width: 32, height: 32} |
| | | } |
| | | } |
| | | |