样式修改
This commit is contained in:
parent
32771816d0
commit
1ba3d8b871
@ -329,9 +329,15 @@ export default function Index() {
|
|||||||
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// console.log('监听',keywords);
|
console.log('监听type',type);
|
||||||
// }, [keywords]);
|
nav('/home', {
|
||||||
|
state: {
|
||||||
|
keyword: keywords,
|
||||||
|
name: type
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, [type]);
|
||||||
|
|
||||||
const handleSearch = (value: string) => {
|
const handleSearch = (value: string) => {
|
||||||
console.log(value);
|
console.log(value);
|
||||||
@ -343,6 +349,17 @@ export default function Index() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const handleChange = (e:any) => {
|
||||||
|
console.log(e.target.value);
|
||||||
|
if(e.target.value == ''){
|
||||||
|
nav('/home', {
|
||||||
|
state: {
|
||||||
|
keyword: '',
|
||||||
|
name: type
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* <Breadcrumb
|
{/* <Breadcrumb
|
||||||
@ -401,11 +418,15 @@ export default function Index() {
|
|||||||
display: showSearchBox ? 'none' : 'block'
|
display: showSearchBox ? 'none' : 'block'
|
||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
<Search placeholder="输入项目名称" onSearch={handleSearch} style={{
|
<Search placeholder="输入项目名称"
|
||||||
|
onSearch={handleSearch}
|
||||||
|
onChange={handleChange}
|
||||||
|
style={{
|
||||||
width: '253px',
|
width: '253px',
|
||||||
height: '31px',
|
height: '31px',
|
||||||
display: showSearchBox ? 'block' : 'none'
|
display: showSearchBox ? 'block' : 'none'
|
||||||
}} />
|
}}
|
||||||
|
/>
|
||||||
<Select
|
<Select
|
||||||
style={{ height: '31px', width: '183px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
|
style={{ height: '31px', width: '183px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
|
||||||
onChange={(value: string) => {
|
onChange={(value: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user