| | |
| | | /** |
| | | * @description Wrap表单配置信息 |
| | | */ |
| | | export default function (wrap, columns = []) { |
| | | export default function (wrap, columns = [], hasLineAction) { |
| | | let roleList = sessionStorage.getItem('sysRoles') |
| | | let appType = sessionStorage.getItem('appType') |
| | | let ispop = sessionStorage.getItem('editMenuType') === 'popview' |
| | |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'number', |
| | | field: 'lineHeight', |
| | | label: '行高', |
| | | initval: wrap.lineHeight || 24, |
| | | min: 24, |
| | | max: 200, |
| | | precision: 0, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'showIcon', |
| | | label: '图标', |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'actShow', |
| | | label: '按钮显示', |
| | | initval: wrap.actShow || 'dropdown', |
| | | tooltip: '选择单行按钮的显示方式。', |
| | | required: false, |
| | | forbid: !hasLineAction, |
| | | options: [ |
| | | {value: 'dropdown', label: '下拉'}, |
| | | {value: 'line', label: '行内'}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'permission', |
| | | label: '权限验证', |
| | | initval: wrap.permission || 'false', |