first commit
This commit is contained in:
20
frontend/node_modules/antd/es/input-number/style/token.js
generated
vendored
Normal file
20
frontend/node_modules/antd/es/input-number/style/token.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { FastColor } from '@ant-design/fast-color';
|
||||
import { initComponentToken } from '../../input/style/token';
|
||||
export const prepareComponentToken = token => {
|
||||
var _a;
|
||||
const handleVisible = (_a = token.handleVisible) !== null && _a !== void 0 ? _a : 'auto';
|
||||
const handleWidth = token.controlHeightSM - token.lineWidth * 2;
|
||||
return Object.assign(Object.assign({}, initComponentToken(token)), {
|
||||
controlWidth: 90,
|
||||
handleWidth,
|
||||
handleFontSize: token.fontSize / 2,
|
||||
handleVisible,
|
||||
handleActiveBg: token.colorFillAlter,
|
||||
handleBg: token.colorBgContainer,
|
||||
filledHandleBg: new FastColor(token.colorFillSecondary).onBackground(token.colorBgContainer).toHexString(),
|
||||
handleHoverColor: token.colorPrimary,
|
||||
handleBorderColor: token.colorBorder,
|
||||
handleOpacity: handleVisible === true ? 1 : 0,
|
||||
handleVisibleWidth: handleVisible === true ? handleWidth : 0
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user