king
2022-01-03 ab744f965257e832d17869418bd96233bd63a756
src/menu/components/tabs/antv-tabs/index.jsx
@@ -2,7 +2,7 @@
import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
import { Tabs, Popover, Modal } from 'antd'
import { PlusOutlined, CloseOutlined, EditOutlined, SearchOutlined, DeleteOutlined, FontColorsOutlined, ToolOutlined } from '@ant-design/icons'
import { PlusOutlined, CloseOutlined, EditOutlined, DeleteOutlined, FontColorsOutlined, ToolOutlined } from '@ant-design/icons'
import MKEmitter from '@/utils/events.js'
import asyncComponent from '@/utils/asyncComponent'
@@ -316,7 +316,8 @@
    editab.label = res.label
    editab.icon = res.icon
    editab.hasSearch = res.hasSearch || ''
    // editab.hasSearch = res.hasSearch || ''
    editab.controlVal = res.controlVal || ''
    editab.blacklist = res.blacklist
    if (editab.uuid) {
@@ -343,7 +344,7 @@
  getTabsForms = () => {
    const { tabs } = this.state
    return getTabsSetForm(tabs.setting)
    return getTabsSetForm(tabs.setting, tabs.uuid)
  }
  updateTabs = (res) => {
@@ -356,7 +357,7 @@
  }
  render() {
    const { tabs, appType, defaultActiveKey } = this.state
    const { tabs, defaultActiveKey } = this.state
    let _style = resetStyle(tabs.style)
    return (
@@ -376,8 +377,8 @@
                <span>{tab.icon ? <MkIcon type={tab.icon} /> : null}{tab.label}</span>
              </Popover>
            } key={tab.uuid}>
              {appType === 'mob' && tabs.setting.position === 'top' && tabs.setting.display === 'inline-block' && tab.hasSearch === 'icon' ?
                <SearchOutlined className="search-icon" onDoubleClick={() => this.setSearch(tab)}/> : null}
              {/* {appType === 'mob' && tabs.setting.position === 'top' && tabs.setting.display === 'inline-block' && tab.hasSearch === 'icon' ?
                <SearchOutlined className="search-icon" onDoubleClick={() => this.setSearch(tab)}/> : null} */}
              <TabComponents config={tab} handleList={this.updateTabComponent} deleteCard={this.deleteCard} />
            </TabPane>
          ))}