king
2024-07-03 c1d885f9eac0619663901b88d12acee7b6bca72f
2024-07-03
3个文件已修改
12 ■■■■■ 已修改文件
src/menu/components/tabs/antv-tabs/index.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/tabs/antv-tabs/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/tabs/antv-tabs/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/tabs/antv-tabs/index.jsx
@@ -223,6 +223,12 @@
    // editab.selectVal = res.selectVal || ''
    editab.blacklist = res.blacklist
    if (/^\s+$/.test(editab.label) && editab.icon) {
      editab.taType = 'only-icon'
    } else {
      delete editab.taType
    }
    if (editab.uuid) {
      tabs.subtabs = tabs.subtabs.map(t => {
        if (t.uuid === editab.uuid) {
src/tabviews/custom/components/tabs/antv-tabs/index.jsx
@@ -149,7 +149,7 @@
      <div className={`menu-antv-tabs-wrap ${tabs.setting.tabLabel || ''} ${tabs.setting.cusClass || ''} align-${tabs.setting.tabAlign || ''}`} id={'anchor' + tabs.uuid} style={tabs.style}>
        <Tabs defaultActiveKey="1" tabBarStyle={{background: tabs.setting.backgroundColor || 'transparent'}} tabPosition={tabs.setting.position} type={tabs.setting.tabStyle}>
          {tabs.subtabs.map(tab => (
            <TabPane tab={<span id={'tab' + tab.uuid}>{tab.icon ? <MkIcon type={tab.icon} /> : null}{tab.label}</span>} style={{backgroundColor: tab.backgroundColor || 'transparent'}} key={tab.uuid}>
            <TabPane tab={<span className={tab.taType || ''} id={'tab' + tab.uuid}>{tab.icon ? <MkIcon type={tab.icon} /> : null}{tab.label}</span>} style={{backgroundColor: tab.backgroundColor || 'transparent'}} key={tab.uuid}>
              <TabTransfer config={tab}/>
            </TabPane>
          ))}
src/tabviews/custom/components/tabs/antv-tabs/index.scss
@@ -23,6 +23,10 @@
  .ant-tabs-bottom-bar {
    margin-top: 0;
  }
  .ant-tabs-tab .only-icon .anticon {
    margin-right: 0px;
  }
}
.menu-antv-tabs-wrap.hide >.ant-tabs >.ant-tabs-bar{