优化Select component

This commit is contained in:
PaRaD1SE98
2023-05-10 14:09:30 +00:00
parent 96e3d3a22c
commit 960aa90c32
2 changed files with 3 additions and 6 deletions

View File

@@ -254,11 +254,8 @@ export function Select(
) {
const { className, children, ...otherProps } = props;
return (
<div className={styles["select-with-icon"]}>
<select
className={`${styles["select-with-icon-select"]} ${className}`}
{...otherProps}
>
<div className={`${styles["select-with-icon"]} ${className}`}>
<select className={styles["select-with-icon-select"]} {...otherProps}>
{children}
</select>
<DownIcon className={styles["select-with-icon-icon"]} />