king
2023-11-22 8698e2984298f3e16674862507f5f5ebfe504d48
src/menu/components/tabs/antv-tabs/options.jsx
@@ -107,6 +107,8 @@
  let controlVals = subtabs.map(item => ({uuid: item.uuid, label: item.label, value: item.controlVal}))
  let tabStyle = setting.cusClass || setting.tabStyle
  const tabForm = [
    {
      type: 'text',
@@ -140,33 +142,36 @@
        {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',