ee0e38542e08096737dd7f3451088e15.json
1.88 KB
{"ast":null,"code":"export var isStyleSupport = function isStyleSupport(styleName) {\n if (typeof window !== 'undefined' && window.document && window.document.documentElement) {\n var styleNameList = Array.isArray(styleName) ? styleName : [styleName];\n var documentElement = window.document.documentElement;\n return styleNameList.some(function (name) {\n return name in documentElement.style;\n });\n }\n\n return false;\n};\nexport var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/_util/styleChecker.js"],"names":["isStyleSupport","styleName","window","document","documentElement","styleNameList","Array","isArray","some","name","style","isFlexSupported"],"mappings":"AAAA,OAAO,IAAIA,cAAc,GAAG,SAASA,cAAT,CAAwBC,SAAxB,EAAmC;AAC7D,MAAI,OAAOC,MAAP,KAAkB,WAAlB,IAAiCA,MAAM,CAACC,QAAxC,IAAoDD,MAAM,CAACC,QAAP,CAAgBC,eAAxE,EAAyF;AACvF,QAAIC,aAAa,GAAGC,KAAK,CAACC,OAAN,CAAcN,SAAd,IAA2BA,SAA3B,GAAuC,CAACA,SAAD,CAA3D;AACA,QAAIG,eAAe,GAAGF,MAAM,CAACC,QAAP,CAAgBC,eAAtC;AACA,WAAOC,aAAa,CAACG,IAAd,CAAmB,UAAUC,IAAV,EAAgB;AACxC,aAAOA,IAAI,IAAIL,eAAe,CAACM,KAA/B;AACD,KAFM,CAAP;AAGD;;AAED,SAAO,KAAP;AACD,CAVM;AAWP,OAAO,IAAIC,eAAe,GAAGX,cAAc,CAAC,CAAC,MAAD,EAAS,YAAT,EAAuB,MAAvB,EAA+B,QAA/B,CAAD,CAApC","sourcesContent":["export var isStyleSupport = function isStyleSupport(styleName) {\n if (typeof window !== 'undefined' && window.document && window.document.documentElement) {\n var styleNameList = Array.isArray(styleName) ? styleName : [styleName];\n var documentElement = window.document.documentElement;\n return styleNameList.some(function (name) {\n return name in documentElement.style;\n });\n }\n\n return false;\n};\nexport var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);"]},"metadata":{},"sourceType":"module"}