fix
This commit is contained in:
@@ -7,6 +7,7 @@ import CustomNavbar from "@/components/CustomNavbar";
|
||||
import { Input } from "@nutui/nutui-react-taro";
|
||||
import Taro from "@tarojs/taro";
|
||||
import "./index.scss";
|
||||
import { useMemo } from "react";
|
||||
|
||||
interface IProps {
|
||||
config?: {
|
||||
@@ -70,12 +71,18 @@ const ListHeader = (props: IProps) => {
|
||||
paddingTop: `4px`,
|
||||
};
|
||||
|
||||
const showInputNavBar = useMemo(() => {
|
||||
return isShowInputCustomerNavBar || showInput;
|
||||
}, [isShowInputCustomerNavBar, showInput]);
|
||||
|
||||
console.log("===showInputNavBar",showInputNavBar)
|
||||
|
||||
return (
|
||||
<CustomNavbar>
|
||||
<View className="listNavWrapper">
|
||||
{/* 首页logo 导航*/}
|
||||
<View
|
||||
className={`listNavContainer toggleElement firstElement hidden ${(!isShowInputCustomerNavBar && !showInput) && "visible"
|
||||
className={`listNavContainer toggleElement firstElement hidden ${(!showInputNavBar && !showInput) && "visible"
|
||||
}`}
|
||||
style={navbarStyle}
|
||||
>
|
||||
@@ -103,7 +110,7 @@ const ListHeader = (props: IProps) => {
|
||||
</View>
|
||||
{/* 搜索导航 */}
|
||||
<View
|
||||
className={`inputCustomerNavbarContainer toggleElement secondElement hidden ${(isShowInputCustomerNavBar || showInput) && "visible"
|
||||
className={`inputCustomerNavbarContainer toggleElement secondElement hidden ${(showInputNavBar || showInput) && "visible"
|
||||
} ${showInput && "inputCustomerNavbarShowInput"}`}
|
||||
style={navbarStyle}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user