fix: remove flex check (#4165)
parent
1281e4a4c9
commit
2b0afdaead
|
@ -4,13 +4,11 @@ import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
|
|||
import PlusOutlined from '@ant-design/icons-vue/PlusOutlined';
|
||||
import VcTabs, { TabPane } from '../vc-tabs/src';
|
||||
import TabContent from '../vc-tabs/src/TabContent';
|
||||
import { isFlexSupported } from '../_util/styleChecker';
|
||||
import PropTypes, { withUndefined } from '../_util/vue-types';
|
||||
import {
|
||||
getComponent,
|
||||
getOptionProps,
|
||||
filterEmpty,
|
||||
findDOMNode,
|
||||
getPropsData,
|
||||
getSlot,
|
||||
} from '../_util/props-util';
|
||||
|
@ -60,13 +58,6 @@ export default defineComponent({
|
|||
configProvider: inject('configProvider', defaultConfigProvider),
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
const NO_FLEX = ' no-flex';
|
||||
const tabNode = findDOMNode(this);
|
||||
if (tabNode && !isFlexSupported && tabNode.className.indexOf(NO_FLEX) === -1) {
|
||||
tabNode.className += NO_FLEX;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
removeTab(targetKey: string, e: MouseEvent) {
|
||||
e.stopPropagation();
|
||||
|
|
Loading…
Reference in New Issue