amis-rpc-design/node_modules/antd/es/input-number/style/index.d.ts

63 lines
1.8 KiB
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { SharedInputToken, SharedComponentToken } from '../../input/style';
import type { FullToken } from '../../theme/internal';
export interface ComponentToken extends SharedComponentToken {
/**
* @desc
* @descEN Width of input
*/
controlWidth: number;
/**
* @desc
* @descEN Width of control button
*/
handleWidth: number;
/**
* @desc
* @descEN Icon size of control button
*/
handleFontSize: number;
/**
* Default `auto`. Set `true` will always show the handle
* @desc
* @descEN Handle visible
*/
handleVisible: 'auto' | true;
/**
* @desc
* @descEN Background color of handle
*/
handleBg: string;
/**
* @desc
* @descEN Active background color of handle
*/
handleActiveBg: string;
/**
* @desc
* @descEN Hover color of handle
*/
handleHoverColor: string;
/**
* @desc
* @descEN Border color of handle
*/
handleBorderColor: string;
}
type InputNumberToken = FullToken<'InputNumber'> & SharedInputToken;
export declare const genRadiusStyle: ({ componentCls, borderRadiusSM, borderRadiusLG }: InputNumberToken, size: 'lg' | 'sm') => {
[x: string]: {
[x: string]: {
borderStartEndRadius: number;
borderEndEndRadius: number;
} | {
borderStartEndRadius: number;
borderEndEndRadius?: undefined;
} | {
borderEndEndRadius: number;
borderStartEndRadius?: undefined;
};
};
};
declare const _default: (prefixCls: string) => import("../../theme/interface").UseComponentStyleResult;
export default _default;