| | |
| | | import React from 'react' |
| | | import MkIcon from '@/components/mk-icon' |
| | | |
| | | /** |
| | | * @description Wrap表单配置信息 |
| | | */ |
| | |
| | | label: '刷新' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'table', |
| | | field: 'menus', |
| | | label: '自定义菜单', |
| | | initval: wrap.menus || [], |
| | | required: false, |
| | | span: 24, |
| | | columns: [ |
| | | { |
| | | title: '图标', |
| | | dataIndex: 'icon', |
| | | inputType: 'icon', |
| | | editable: true, |
| | | required: true, |
| | | render: (text, record) => <MkIcon type={text}/>, |
| | | width: '35%' |
| | | }, |
| | | { |
| | | title: '菜单', |
| | | dataIndex: 'menu', |
| | | inputType: 'select', |
| | | editable: true, |
| | | required: true, |
| | | extends: [{key: 'label', value: 'label'}], |
| | | width: '35%', |
| | | render: (text, record) => record.label, |
| | | options: menulist |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | |
| | | return topbarWrapForm |