fallbackCmp.js 944 B

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _ = require(".");
  7. var _internal = require("../../theme/internal");
  8. /**
  9. * Fallback of IE.
  10. * Safe to remove.
  11. */
  12. // Style as inline component
  13. // ============================= Fallback =============================
  14. const genFallbackStyle = token => {
  15. const {
  16. formItemCls
  17. } = token;
  18. return {
  19. '@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)': {
  20. // Fallback for IE, safe to remove we not support it anymore
  21. [`${formItemCls}-control`]: {
  22. display: 'flex'
  23. }
  24. }
  25. };
  26. };
  27. // ============================== Export ==============================
  28. var _default = exports.default = (0, _internal.genSubStyleComponent)(['Form', 'item-item'], (token, {
  29. rootPrefixCls
  30. }) => {
  31. const formToken = (0, _.prepareToken)(token, rootPrefixCls);
  32. return genFallbackStyle(formToken);
  33. });