first commit
This commit is contained in:
24
frontend/node_modules/antd/lib/theme/themes/shared/genCommonMapToken.js
generated
vendored
Normal file
24
frontend/node_modules/antd/lib/theme/themes/shared/genCommonMapToken.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = genCommonMapToken;
|
||||
var _genRadius = _interopRequireDefault(require("./genRadius"));
|
||||
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
|
||||
}, (0, _genRadius.default)(borderRadius));
|
||||
}
|
||||
Reference in New Issue
Block a user