parent
be80cbab2d
commit
7072675740
@ -1,13 +1,21 @@ |
|||||||
import {FC} from "react"; |
import {FC} from "react"; |
||||||
import {Text, View} from "@tarojs/components"; |
import {Input, View} from "@tarojs/components"; |
||||||
import styles from "../home.module.scss"; |
import styles from "../home.module.scss"; |
||||||
import Icon from "@/components/icon"; |
import Icon from "@/components/icon"; |
||||||
|
|
||||||
export const Search: FC = () => { |
interface Props { |
||||||
|
onConfirm: (value: string) => void |
||||||
|
} |
||||||
|
|
||||||
|
export const Search: FC<Props> = (props) => { |
||||||
return ( |
return ( |
||||||
<View className={styles.search}> |
<View className={styles.search}> |
||||||
<Icon name='search' size={18}/> |
<Icon name='search' size={18} color='#808080'/> |
||||||
<Text className='ml-1'>搜索课程</Text> |
<Input |
||||||
|
placeholder='搜索疾病名称' |
||||||
|
confirmType='search' |
||||||
|
onConfirm={(e) => props.onConfirm((e.target as any).value!)} |
||||||
|
className='flex-1 pl-1'/> |
||||||
</View> |
</View> |
||||||
) |
) |
||||||
} |
} |
||||||
|
@ -0,0 +1,13 @@ |
|||||||
|
import {FC} from "react"; |
||||||
|
import {Text, View} from "@tarojs/components"; |
||||||
|
import styles from "../sort.module.scss"; |
||||||
|
import Icon from "@/components/icon"; |
||||||
|
|
||||||
|
export const Search: FC = () => { |
||||||
|
return ( |
||||||
|
<View className={styles.search}> |
||||||
|
<Icon name='search' size={18}/> |
||||||
|
<Text className='ml-1'>搜索课程</Text> |
||||||
|
</View> |
||||||
|
) |
||||||
|
} |
@ -1,3 +1,4 @@ |
|||||||
export default definePageConfig({ |
export default definePageConfig({ |
||||||
navigationBarTitleText: '疾病知识', |
navigationBarTitleText: '疾病知识', |
||||||
|
navigationStyle: "custom", |
||||||
}) |
}) |
||||||
|
After Width: | Height: | Size: 406 B |
Loading…
Reference in new issue