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 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();
|
||||||
|
|
Loading…
Reference in New Issue