| | |
| | | getOptions = (eleType, datatype, link, showType, showInfo) => { |
| | | let _options = fromJS(cardTypeOptions[eleType]).toJS() // 选项列表 |
| | | |
| | | if (['text', 'number', 'picture', 'link', 'slider', 'barcode', 'qrcode', 'video'].includes(eleType)) { |
| | | if (['text', 'number', 'picture', 'slider', 'barcode', 'qrcode', 'video'].includes(eleType)) { |
| | | if (datatype === 'dynamic') { |
| | | _options.push('field') |
| | | } else if (eleType === 'picture' || eleType === 'video') { |
| | |
| | | } |
| | | |
| | | if (['text', 'picture'].includes(eleType) && link) { |
| | | if (link === 'dynamic' || link === 'static' || link === 'custom') { |
| | | _options.push('linkurl', 'joint') |
| | | } else if (link === 'page') { |
| | | _options.push('copyMenuId', 'joint', 'open') |
| | | } else if (link === 'linkpage') { |
| | | _options.push('linkmenu', 'joint', 'open') |
| | | } |
| | | // if (link === 'dynamic' || link === 'static') { |
| | | _options.push('linkurl', 'joint', 'linkType') |
| | | // } |
| | | } else if (eleType === 'picture' && !link) { |
| | | _options.push('scale') |
| | | } else if (eleType === 'slider') { |