Latest updates from IceHrmPro
This commit is contained in:
31
web/node_modules/antd/es/_util/motion.js
generated
vendored
Normal file
31
web/node_modules/antd/es/_util/motion.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// ================== Collapse Motion ==================
|
||||
var getCollapsedHeight = function getCollapsedHeight() {
|
||||
return {
|
||||
height: 0,
|
||||
opacity: 0
|
||||
};
|
||||
};
|
||||
|
||||
var getRealHeight = function getRealHeight(node) {
|
||||
return {
|
||||
height: node.scrollHeight,
|
||||
opacity: 1
|
||||
};
|
||||
};
|
||||
|
||||
var getCurrentHeight = function getCurrentHeight(node) {
|
||||
return {
|
||||
height: node.offsetHeight
|
||||
};
|
||||
};
|
||||
|
||||
var collapseMotion = {
|
||||
motionName: 'ant-motion-collapse',
|
||||
onAppearStart: getCollapsedHeight,
|
||||
onEnterStart: getCollapsedHeight,
|
||||
onAppearActive: getRealHeight,
|
||||
onEnterActive: getRealHeight,
|
||||
onLeaveStart: getCurrentHeight,
|
||||
onLeaveActive: getCollapsedHeight
|
||||
};
|
||||
export default collapseMotion;
|
||||
Reference in New Issue
Block a user