king
2023-11-22 8698e2984298f3e16674862507f5f5ebfe504d48
2023-11-22
4个文件已修改
44 ■■■■■ 已修改文件
src/menu/components/tabs/antv-tabs/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/tabs/antv-tabs/options.jsx 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/tabs/antv-tabs/index.jsx
@@ -265,10 +265,13 @@
      delete res.controlVals
    }
    if (res.cusClass) {
    res.tabStyle = res.tabStyle || 'line'
    res.cusClass = ''
    if (!['line', 'card'].includes(res.tabStyle)) {
      res.cusClass = res.tabStyle
      res.tabStyle = 'line'
    }
    res.tabStyle = res.tabStyle || 'line'
    tabs.setting = res
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',
src/views/login/index.jsx
@@ -891,7 +891,7 @@
            <a target="_blank" rel="noopener noreferrer" href={webSite} dangerouslySetInnerHTML={{ __html: copyRight.replace(/\s/ig, '&nbsp;') }}></a> :
            <p dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, '&nbsp;') : '' }}></p>
          }
          {ICP ? <p dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, '&nbsp;') }}></p> : null}
          {ICP ? <a target="_blank" rel="noopener noreferrer" href="https://beian.miit.gov.cn/#/Integrated/index" dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, '&nbsp;') }}></a> : null}
        </div>
        {/* 编辑状态登录 */}
        <Modal
src/views/login/index.scss
@@ -240,7 +240,7 @@
      margin-right: 15px;
    }
    a {
      display: inline-block;
      display: block;
      margin-bottom: 5px;
      color: var(--mk-sys-font-color);
    }