Files
video-gen/video-gen-admin/node_modules/antd/es/form/style/fallbackCmp.js
T
2026-05-25 17:08:18 +08:00

27 lines
792 B
JavaScript

/**
* Fallback of IE.
* Safe to remove.
*/
import { prepareToken } from '.';
import { genSubStyleComponent } from '../../theme/internal';
// ============================= Fallback =============================
const genFallbackStyle = token => {
const {
formItemCls
} = token;
return {
'@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)': {
// Fallback for IE, safe to remove we not support it anymore
[`${formItemCls}-control`]: {
display: 'flex'
}
}
};
};
// ============================== Export ==============================
export default genSubStyleComponent(['Form', 'item-item'], (token, {
rootPrefixCls
}) => {
const formToken = prepareToken(token, rootPrefixCls);
return genFallbackStyle(formToken);
});