fix: remove flex check (#4165)

pull/4171/head
zkwolf 2021-06-07 14:16:08 +08:00 committed by GitHub
parent 1281e4a4c9
commit 2b0afdaead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -4,13 +4,11 @@ import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
import PlusOutlined from '@ant-design/icons-vue/PlusOutlined'; import PlusOutlined from '@ant-design/icons-vue/PlusOutlined';
import VcTabs, { TabPane } from '../vc-tabs/src'; import VcTabs, { TabPane } from '../vc-tabs/src';
import TabContent from '../vc-tabs/src/TabContent'; import TabContent from '../vc-tabs/src/TabContent';
import { isFlexSupported } from '../_util/styleChecker';
import PropTypes, { withUndefined } from '../_util/vue-types'; import PropTypes, { withUndefined } from '../_util/vue-types';
import { import {
getComponent, getComponent,
getOptionProps, getOptionProps,
filterEmpty, filterEmpty,
findDOMNode,
getPropsData, getPropsData,
getSlot, getSlot,
} from '../_util/props-util'; } from '../_util/props-util';
@ -60,13 +58,6 @@ export default defineComponent({
configProvider: inject('configProvider', defaultConfigProvider), 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: { methods: {
removeTab(targetKey: string, e: MouseEvent) { removeTab(targetKey: string, e: MouseEvent) {
e.stopPropagation(); e.stopPropagation();