Latest updates from IceHrmPro
This commit is contained in:
14
web/node_modules/antd/es/_util/styleChecker.js
generated
vendored
Normal file
14
web/node_modules/antd/es/_util/styleChecker.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var isStyleSupport = function isStyleSupport(styleName) {
|
||||
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
|
||||
var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
|
||||
var documentElement = window.document.documentElement;
|
||||
return styleNameList.some(function (name) {
|
||||
return name in documentElement.style;
|
||||
});
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
export var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);
|
||||
export default isStyleSupport;
|
||||
Reference in New Issue
Block a user