40c242fe7a5bbcfdf0ce2069b6bd654c.json
3.33 KB
{"ast":null,"code":"// ================== Collapse Motion ==================\nvar getCollapsedHeight = function getCollapsedHeight() {\n return {\n height: 0,\n opacity: 0\n };\n};\n\nvar getRealHeight = function getRealHeight(node) {\n return {\n height: node.scrollHeight,\n opacity: 1\n };\n};\n\nvar getCurrentHeight = function getCurrentHeight(node) {\n return {\n height: node.offsetHeight\n };\n};\n\nvar skipOpacityTransition = function skipOpacityTransition(_, event) {\n return event.propertyName === 'height';\n};\n\nvar collapseMotion = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500\n};\nexport default collapseMotion;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/_util/motion.js"],"names":["getCollapsedHeight","height","opacity","getRealHeight","node","scrollHeight","getCurrentHeight","offsetHeight","skipOpacityTransition","_","event","propertyName","collapseMotion","motionName","onAppearStart","onEnterStart","onAppearActive","onEnterActive","onLeaveStart","onLeaveActive","onAppearEnd","onEnterEnd","onLeaveEnd","motionDeadline"],"mappings":"AAAA;AACA,IAAIA,kBAAkB,GAAG,SAASA,kBAAT,GAA8B;AACrD,SAAO;AACLC,IAAAA,MAAM,EAAE,CADH;AAELC,IAAAA,OAAO,EAAE;AAFJ,GAAP;AAID,CALD;;AAOA,IAAIC,aAAa,GAAG,SAASA,aAAT,CAAuBC,IAAvB,EAA6B;AAC/C,SAAO;AACLH,IAAAA,MAAM,EAAEG,IAAI,CAACC,YADR;AAELH,IAAAA,OAAO,EAAE;AAFJ,GAAP;AAID,CALD;;AAOA,IAAII,gBAAgB,GAAG,SAASA,gBAAT,CAA0BF,IAA1B,EAAgC;AACrD,SAAO;AACLH,IAAAA,MAAM,EAAEG,IAAI,CAACG;AADR,GAAP;AAGD,CAJD;;AAMA,IAAIC,qBAAqB,GAAG,SAASA,qBAAT,CAA+BC,CAA/B,EAAkCC,KAAlC,EAAyC;AACnE,SAAOA,KAAK,CAACC,YAAN,KAAuB,QAA9B;AACD,CAFD;;AAIA,IAAIC,cAAc,GAAG;AACnBC,EAAAA,UAAU,EAAE,qBADO;AAEnBC,EAAAA,aAAa,EAAEd,kBAFI;AAGnBe,EAAAA,YAAY,EAAEf,kBAHK;AAInBgB,EAAAA,cAAc,EAAEb,aAJG;AAKnBc,EAAAA,aAAa,EAAEd,aALI;AAMnBe,EAAAA,YAAY,EAAEZ,gBANK;AAOnBa,EAAAA,aAAa,EAAEnB,kBAPI;AAQnBoB,EAAAA,WAAW,EAAEZ,qBARM;AASnBa,EAAAA,UAAU,EAAEb,qBATO;AAUnBc,EAAAA,UAAU,EAAEd,qBAVO;AAWnBe,EAAAA,cAAc,EAAE;AAXG,CAArB;AAaA,eAAeX,cAAf","sourcesContent":["// ================== Collapse Motion ==================\nvar getCollapsedHeight = function getCollapsedHeight() {\n return {\n height: 0,\n opacity: 0\n };\n};\n\nvar getRealHeight = function getRealHeight(node) {\n return {\n height: node.scrollHeight,\n opacity: 1\n };\n};\n\nvar getCurrentHeight = function getCurrentHeight(node) {\n return {\n height: node.offsetHeight\n };\n};\n\nvar skipOpacityTransition = function skipOpacityTransition(_, event) {\n return event.propertyName === 'height';\n};\n\nvar collapseMotion = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500\n};\nexport default collapseMotion;"]},"metadata":{},"sourceType":"module"}