| | |
| | | label: '显示为', |
| | | initVal: card.show || 'button', |
| | | required: true, |
| | | forbid: type === 'datacard' && appType === 'mob', // 移动端,滑动显示的按钮只显示文字 |
| | | options: [{ |
| | | value: 'icon', |
| | | text: '图标' |
| | |
| | | label: Formdict['model.icon'], |
| | | initVal: card.icon, |
| | | required: false, |
| | | forbid: type === 'datacard' && appType === 'mob', // 移动端,滑动显示的按钮只显示文字 |
| | | options: [] |
| | | }, |
| | | { |
| | |
| | | initVal: card.class, |
| | | tooltip: '此颜色为按钮初始化颜色,可在样式调整中修改。', |
| | | required: false, |
| | | forbid: type === 'datacard' && appType === 'mob', // 移动端,滑动显示的按钮不设置通用颜色 |
| | | options: [] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'color', |
| | | label: Formdict['model.form.color'], |
| | | initVal: card.color || 'primary', |
| | | required: false, |
| | | forbid: (type !== 'datacard' || appType !== 'mob'), // 移动端,滑动显示的按钮只可设置固定颜色 |
| | | options: [{ |
| | | value: 'primary', |
| | | text: '蓝' |
| | | }, { |
| | | value: 'danger', |
| | | text: '红' |
| | | }, { |
| | | value: 'warning', |
| | | text: '橙' |
| | | }, { |
| | | value: 'success', |
| | | text: '绿' |
| | | }, { |
| | | value: 'light', |
| | | text: '灰' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'joint', |
| | | label: Formdict['model.form.paramJoint'], |
| | | initVal: card.joint || 'true', |