ant-design/components/_util/styleChecker.ts

7 lines
229 B
TypeScript
Raw Normal View History

import canUseDom from 'rc-util/lib/Dom/canUseDom';
2021-09-15 14:13:32 +08:00
import { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';
export const canUseDocElement = () => canUseDom() && window.document.documentElement;
2021-09-15 14:13:32 +08:00
export { isStyleSupport };