first commit
This commit is contained in:
44
frontend/node_modules/antd/es/form/style/explain.js
generated
vendored
Normal file
44
frontend/node_modules/antd/es/form/style/explain.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
const genFormValidateMotionStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
const helpCls = `${componentCls}-show-help`;
|
||||
const helpItemCls = `${componentCls}-show-help-item`;
|
||||
return {
|
||||
[helpCls]: {
|
||||
// Explain holder
|
||||
transition: `opacity ${token.motionDurationFast} ${token.motionEaseInOut}`,
|
||||
'&-appear, &-enter': {
|
||||
opacity: 0,
|
||||
'&-active': {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
'&-leave': {
|
||||
opacity: 1,
|
||||
'&-active': {
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
// Explain
|
||||
[helpItemCls]: {
|
||||
overflow: 'hidden',
|
||||
transition: `height ${token.motionDurationFast} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationFast} ${token.motionEaseInOut},
|
||||
transform ${token.motionDurationFast} ${token.motionEaseInOut} !important`,
|
||||
[`&${helpItemCls}-appear, &${helpItemCls}-enter`]: {
|
||||
transform: `translateY(-5px)`,
|
||||
opacity: 0,
|
||||
'&-active': {
|
||||
transform: 'translateY(0)',
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
[`&${helpItemCls}-leave-active`]: {
|
||||
transform: `translateY(-5px)`
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
export default genFormValidateMotionStyle;
|
||||
Reference in New Issue
Block a user