| | |
| | | {value: 'checkbox', label: '多选', forbid: subtype === 'propcard'}, |
| | | ], |
| | | controlFields: [ |
| | | {field: 'checkAll', values: ['checkbox']} |
| | | {field: 'checkAll', values: ['checkbox']}, |
| | | {field: 'selected', values: ['radio', 'checkbox']}, |
| | | ], |
| | | forbid: subtype === 'tablecard' |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'selected', |
| | | label: '首行选中', |
| | | initval: wrap.selected || 'false', |
| | | required: false, |
| | | options: [ |
| | | {value: 'false', label: '无'}, |
| | | {value: 'init', label: '初始化'}, |
| | | {value: 'always', label: '数据加载', forbid: subtype === 'propcard'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | |
| | | ] |
| | | |
| | | return cardWrapForm.map(item => { |
| | | if (['pagestyle', 'cardType'].includes(item.field)) { |
| | | if (['pagestyle', 'cardType', 'selected'].includes(item.field)) { |
| | | item.options = item.options.filter(option => !option.forbid) |
| | | } |
| | | |