| | |
| | | |
| | | let controlVals = subtabs.map(item => ({uuid: item.uuid, label: item.label, value: item.controlVal})) |
| | | |
| | | let tabStyle = setting.cusClass || setting.tabStyle |
| | | |
| | | const tabForm = [ |
| | | { |
| | | type: 'text', |
| | |
| | | {value: 'right', label: 'right'}, |
| | | ], |
| | | controlFields: [ |
| | | {field: 'cusClass', values: ['top']}, |
| | | // {field: 'cusClass', values: ['top']}, |
| | | {field: 'tabStyle', values: ['top']}, |
| | | ] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | type: 'select', |
| | | field: 'tabStyle', |
| | | label: '页签样式', |
| | | initval: setting.tabStyle || 'line', |
| | | initval: tabStyle || 'line', |
| | | tooltip: '按钮样式在运行时可见', |
| | | required: true, |
| | | options: [ |
| | | {value: 'line', label: 'line'}, |
| | | {value: 'card', label: 'card'}, |
| | | ], |
| | | }, |
| | | { |
| | | type: 'select', |
| | | field: 'cusClass', |
| | | label: '自定义样式', |
| | | initval: setting.cusClass || '', |
| | | required: false, |
| | | options: [ |
| | | {value: '', label: '无'}, |
| | | {value: 'mk-tab-button', label: '按钮(左)'}, |
| | | {value: 'mk-tab-button tab-right', label: '按钮(右)'}, |
| | | ] |
| | | ], |
| | | }, |
| | | // { |
| | | // type: 'select', |
| | | // field: 'cusClass', |
| | | // label: '自定义样式', |
| | | // initval: setting.cusClass || '', |
| | | // required: false, |
| | | // options: [ |
| | | // {value: '', label: '无'}, |
| | | // {value: 'mk-tab-button', label: '按钮(左)'}, |
| | | // {value: 'mk-tab-button tab-right', label: '按钮(右)'}, |
| | | // ] |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | field: 'autoSwitch', |