6bae6eb8be4d335f7692ebbf2256df57.json
1.64 KB
{"ast":null,"code":"export function getMotion(_ref) {\n var prefixCls = _ref.prefixCls,\n motion = _ref.motion,\n animation = _ref.animation,\n transitionName = _ref.transitionName;\n\n if (motion) {\n return motion;\n }\n\n if (animation) {\n return {\n motionName: \"\".concat(prefixCls, \"-\").concat(animation)\n };\n }\n\n if (transitionName) {\n return {\n motionName: transitionName\n };\n }\n\n return null;\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-trigger/es/utils/legacyUtil.js"],"names":["getMotion","_ref","prefixCls","motion","animation","transitionName","motionName","concat"],"mappings":"AAAA,OAAO,SAASA,SAAT,CAAmBC,IAAnB,EAAyB;AAC9B,MAAIC,SAAS,GAAGD,IAAI,CAACC,SAArB;AAAA,MACIC,MAAM,GAAGF,IAAI,CAACE,MADlB;AAAA,MAEIC,SAAS,GAAGH,IAAI,CAACG,SAFrB;AAAA,MAGIC,cAAc,GAAGJ,IAAI,CAACI,cAH1B;;AAKA,MAAIF,MAAJ,EAAY;AACV,WAAOA,MAAP;AACD;;AAED,MAAIC,SAAJ,EAAe;AACb,WAAO;AACLE,MAAAA,UAAU,EAAE,GAAGC,MAAH,CAAUL,SAAV,EAAqB,GAArB,EAA0BK,MAA1B,CAAiCH,SAAjC;AADP,KAAP;AAGD;;AAED,MAAIC,cAAJ,EAAoB;AAClB,WAAO;AACLC,MAAAA,UAAU,EAAED;AADP,KAAP;AAGD;;AAED,SAAO,IAAP;AACD","sourcesContent":["export function getMotion(_ref) {\n var prefixCls = _ref.prefixCls,\n motion = _ref.motion,\n animation = _ref.animation,\n transitionName = _ref.transitionName;\n\n if (motion) {\n return motion;\n }\n\n if (animation) {\n return {\n motionName: \"\".concat(prefixCls, \"-\").concat(animation)\n };\n }\n\n if (transitionName) {\n return {\n motionName: transitionName\n };\n }\n\n return null;\n}"]},"metadata":{},"sourceType":"module"}