Skip to content

Commit eaf55ff

Browse files
committed
fix(search): 修复通过css vars 修改图标大小无效
1 parent 7bc5aa0 commit eaf55ff

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

src/search/Search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Search: FC<SearchProps> = (props) => {
9494

9595
const renderLeftIcon = () => {
9696
if (leftIcon === 'search') {
97-
return <SearchIcon size="24px" />;
97+
return <SearchIcon />;
9898
}
9999
return parseTNode(leftIcon);
100100
};
@@ -103,7 +103,7 @@ const Search: FC<SearchProps> = (props) => {
103103
if (clearable && searchValue) {
104104
return (
105105
<div className={`${searchClass}__clear`} onClick={handleClear}>
106-
<CloseCircleFilledIcon size="24" />
106+
<CloseCircleFilledIcon />
107107
</div>
108108
);
109109
}

0 commit comments

Comments
 (0)