Skip to content

Commit 2b0afda

Browse files
authored
fix: remove flex check (#4165)
1 parent 1281e4a commit 2b0afda

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

components/tabs/tabs.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
44
import PlusOutlined from '@ant-design/icons-vue/PlusOutlined';
55
import VcTabs, { TabPane } from '../vc-tabs/src';
66
import TabContent from '../vc-tabs/src/TabContent';
7-
import { isFlexSupported } from '../_util/styleChecker';
87
import PropTypes, { withUndefined } from '../_util/vue-types';
98
import {
109
getComponent,
1110
getOptionProps,
1211
filterEmpty,
13-
findDOMNode,
1412
getPropsData,
1513
getSlot,
1614
} from '../_util/props-util';
@@ -60,13 +58,6 @@ export default defineComponent({
6058
configProvider: inject('configProvider', defaultConfigProvider),
6159
};
6260
},
63-
mounted() {
64-
const NO_FLEX = ' no-flex';
65-
const tabNode = findDOMNode(this);
66-
if (tabNode && !isFlexSupported && tabNode.className.indexOf(NO_FLEX) === -1) {
67-
tabNode.className += NO_FLEX;
68-
}
69-
},
7061
methods: {
7162
removeTab(targetKey: string, e: MouseEvent) {
7263
e.stopPropagation();

0 commit comments

Comments
 (0)