first commit
This commit is contained in:
17
frontend/node_modules/antd/es/theme/themes/shared/genCommonMapToken.js
generated
vendored
Normal file
17
frontend/node_modules/antd/es/theme/themes/shared/genCommonMapToken.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import genRadius from './genRadius';
|
||||
export default function genCommonMapToken(token) {
|
||||
const {
|
||||
motionUnit,
|
||||
motionBase,
|
||||
borderRadius,
|
||||
lineWidth
|
||||
} = token;
|
||||
return Object.assign({
|
||||
// motion
|
||||
motionDurationFast: `${(motionBase + motionUnit).toFixed(1)}s`,
|
||||
motionDurationMid: `${(motionBase + motionUnit * 2).toFixed(1)}s`,
|
||||
motionDurationSlow: `${(motionBase + motionUnit * 3).toFixed(1)}s`,
|
||||
// line
|
||||
lineWidthBold: lineWidth + 1
|
||||
}, genRadius(borderRadius));
|
||||
}
|
||||
Reference in New Issue
Block a user