king
2023-03-29 d530bf19707bfaa92c13e9a74807a51f8bef22de
src/mob/components/tabs/antv-tabs/options.jsx
@@ -34,19 +34,6 @@
      required: false,
      allowClear: true,
    },
    // {
    //   type: 'radio',
    //   field: 'hasSearch',
    //   label: '搜索',
    //   initval: tab.hasSearch || 'false',
    //   required: false,
    //   options: [
    //     {value: 'false', label: '无'},
    //     {value: 'icon', label: '有'},
    //   ],
    //   forbid: appType !== 'mob' || setting.display !== 'inline-block',
    //   span: 22
    // },
    {
      type: 'text',
      field: 'controlVal',
@@ -99,7 +86,7 @@
 * @description tabs表单配置信息
 */
export function getTabsSetForm(setting, uuid) {
  let modules = MenuUtils.getSupModules(window.GLOB.customMenu.components, uuid) || []
  let modules = MenuUtils.getSupModules(window.GLOB.customMenu.components, uuid, window.GLOB.customMenu.interfaces)
  modules.push({
    value: 'preview',
    label: '上一页(url参数)'
@@ -164,6 +151,7 @@
      options: modules,
      controlFields: [
        {field: 'controlField', notNull: true},
        {field: 'swiper', values: ['']},
      ],
    },
    {
@@ -173,6 +161,17 @@
      initval: setting.controlField || '',
      tooltip: '用于控制标签隐藏的字段,在标签中填入隐藏标记。',
      required: true
    },
    {
      type: 'radio',
      field: 'swiper',
      label: '滑动切换',
      initval: setting.swiper || 'false',
      required: false,
      options: [
        {value: 'false', label: '禁用'},
        {value: 'true', label: '启用'},
      ],
    },
    {
      type: 'text',
@@ -198,7 +197,8 @@
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ]
      ],
      forbid: sessionStorage.getItem('editMenuType') === 'popview'
    },
  ]