This commit is contained in:
juguohong
2025-08-31 20:24:42 +08:00
parent d92419f3c5
commit 4e68db2476
28 changed files with 921 additions and 206 deletions

View File

@@ -8,10 +8,12 @@ interface IProps {
isSelect: boolean;
filterCount: number;
onChange: (value: string) => void;
value: string;
onInputClick: () => void;
}
const SearchBarComponent = (props: IProps) => {
const { handleFilterIcon, isSelect, filterCount, onChange } = props;
const { handleFilterIcon, isSelect, filterCount, onChange, value, onInputClick } = props;
const handleChange = (value: string) => {
onChange && onChange(value);
@@ -19,6 +21,7 @@ const SearchBarComponent = (props: IProps) => {
return (
<>
<SearchBar
clearable={false}
leftIn={
<View className={styles.searchBarLeft}>
<Image className={styles.searchIcon} src={img.ICON_SEARCH} />
@@ -43,6 +46,8 @@ const SearchBarComponent = (props: IProps) => {
className={styles.searchBar}
placeholder="搜索上海的球局和场地"
onChange={handleChange}
value={value}
onInputClick={onInputClick}
/>
</>
);