king
2022-02-18 e0cac33690a8bfdff2102d03a106c44c36df8ba1
src/mob/components/tabs/antv-tabs/options.jsx
@@ -2,7 +2,7 @@
 * @description Wrap表单配置信息
 */
export function getTabForm(tab, setting) {
  let appType = sessionStorage.getItem('appType')
  // let appType = sessionStorage.getItem('appType')
  let roleList = sessionStorage.getItem('sysRoles')
  if (roleList) {
@@ -23,7 +23,6 @@
      initval: tab.label || '',
      required: true,
      focus: true,
      span: 22
    },
    {
      type: 'mkicon',
@@ -32,7 +31,6 @@
      initval: tab.icon || '',
      required: false,
      allowClear: true,
      span: 22
    },
    // {
    //   type: 'radio',
@@ -50,10 +48,9 @@
    {
      type: 'color',
      field: 'backgroundColor',
      label: '背景色',
      label: '背景(内容区)',
      initval: tab.backgroundColor || 'transparent',
      required: false,
      span: 22
    },
    {
      type: 'radio',
@@ -65,18 +62,16 @@
        {value: 'false', label: '否'},
        {value: 'true', label: '是'},
      ],
      span: 22
    },
    {
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',
      initval: tab.blacklist || [],
      required: false,
      options: roleList,
      forbid: !!appType,
      span: 22
    },
    // {
    //   type: 'multiselect',
    //   field: 'blacklist',
    //   label: '黑名单',
    //   initval: tab.blacklist || [],
    //   required: false,
    //   options: roleList,
    //   forbid: !!appType,
    // },
  ]
  return tabForm
@@ -132,6 +127,13 @@
        {value: 'flex', label: '弹性布局'},
        {value: 'inline-block', label: '定宽'},
      ],
    },
    {
      type: 'color',
      field: 'backgroundColor',
      label: '背景(标题栏)',
      initval: setting.backgroundColor || 'transparent',
      required: false
    }
  ]