Skip to content

Commit 6b4dce6

Browse files
committed
fix
1 parent 6c7ff1a commit 6b4dce6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BaseSelect/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { getSeparatedContent, isValidCount } from '../utils/valueUtil';
3030
import SelectContext from '../SelectContext';
3131
import type { SelectContextProps } from '../SelectContext';
3232
import Polite from './Polite';
33-
import { SemanticName } from '../Select';
33+
type BaseSelectSemanticName = 'prefix' | 'suffix' | 'input';
3434

3535
export type {
3636
DisplayInfoType,
@@ -132,8 +132,8 @@ export type BaseSelectPropsWithoutPrivate = Omit<BaseSelectProps, keyof BaseSele
132132
export interface BaseSelectProps extends BaseSelectPrivateProps, React.AriaAttributes {
133133
className?: string;
134134
style?: React.CSSProperties;
135-
classNames?: Partial<Record<SemanticName, string>>;
136-
styles?: Partial<Record<SemanticName, React.CSSProperties>>;
135+
classNames?: Partial<Record<BaseSelectSemanticName, string>>;
136+
styles?: Partial<Record<BaseSelectSemanticName, React.CSSProperties>>;
137137
title?: string;
138138
showSearch?: boolean;
139139
tagRender?: (props: CustomTagProps) => React.ReactElement;

0 commit comments

Comments
 (0)