| | |
| | | }, { |
| | | value: 'group', |
| | | text: '日期(组合)' |
| | | }, { |
| | | value: 'switch', |
| | | text: '开关' |
| | | }, { |
| | | value: 'check', |
| | | text: '勾选框' |
| | | }] |
| | | } |
| | | |
| | |
| | | value: 'custom', |
| | | text: '自定义' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'openVal', |
| | | label: '开启值', |
| | | initVal: card.openVal || '', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'closeVal', |
| | | label: '关闭值', |
| | | initVal: card.closeVal || '', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'openText', |
| | | label: '开启提示', |
| | | initVal: card.openText || '', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'closeText', |
| | | label: '关闭提示', |
| | | initVal: card.closeText || '', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'checkTip', |
| | | label: '提示', |
| | | initVal: card.checkTip || '', |
| | | tooltip: '勾选框后的提示文字', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'color', |
| | |
| | | value: 'switch', |
| | | text: '开关' |
| | | }, { |
| | | value: 'check', |
| | | text: '勾选框' |
| | | }, { |
| | | value: 'checkbox', |
| | | text: '多选框' |
| | | }, { |
| | |
| | | value: 'switch', |
| | | text: '开关' |
| | | }, { |
| | | value: 'check', |
| | | text: '勾选框' |
| | | }, { |
| | | value: 'checkbox', |
| | | text: '多选框' |
| | | }, { |
| | |
| | | } |
| | | |
| | | let initval = card.initval || '' |
| | | if (card.type === 'switch') { |
| | | if (card.type === 'switch' || card.type === 'check') { |
| | | initval = card.initval === true |
| | | } else if (card.type === 'number') { |
| | | initval = card.initval || 0 |
| | |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'checkTip', |
| | | label: '提示', |
| | | initVal: card.checkTip || '', |
| | | tooltip: '勾选框后的提示文字', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'resourceType', |
| | | label: '选项来源', |