|
| 1 | +import { CSSProperties } from 'react' |
1 | 2 | import { ComponentSizeType } from '@Shared/constants' |
2 | 3 | import { SelectPickerProps } from './type' |
3 | 4 |
|
4 | | -export const SELECT_PICKER_FONT_SIZE_MAP: Record<SelectPickerProps['size'], string> = { |
| 5 | +export const SELECT_PICKER_FONT_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['fontSize']> = { |
5 | 6 | [ComponentSizeType.small]: '12px', |
6 | 7 | [ComponentSizeType.medium]: '13px', |
7 | 8 | [ComponentSizeType.large]: '13px', |
8 | 9 | } |
9 | 10 |
|
10 | | -export const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], { width: string; height: string }> = { |
| 11 | +export const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], Pick<CSSProperties, 'width' | 'height'>> = { |
11 | 12 | [ComponentSizeType.small]: { width: '12px', height: '12px' }, |
12 | 13 | [ComponentSizeType.medium]: { width: '16px', height: '16px' }, |
13 | 14 | [ComponentSizeType.large]: { width: '16px', height: '16px' }, |
14 | 15 | } |
15 | 16 |
|
16 | | -export const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], string> = { |
| 17 | +export const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['minHeight']> = { |
17 | 18 | [ComponentSizeType.small]: 'auto', |
18 | 19 | [ComponentSizeType.medium]: 'auto', |
19 | | - [ComponentSizeType.large]: '36px', |
| 20 | + [ComponentSizeType.large]: '3px', |
20 | 21 | } |
0 commit comments