Commit 1e5565d9 authored by 田翔's avatar 田翔

fix: 细节修改

parent a53a6b2f
...@@ -79,11 +79,10 @@ const Account = (props) => { ...@@ -79,11 +79,10 @@ const Account = (props) => {
> >
<Input <Input
ref={searchInput} ref={searchInput}
placeholder={`Search ${dataIndex}`} placeholder={`搜索 ${dataIndex}`}
value={selectedKeys[0]} value={selectedKeys[0]}
onChange={e => setSelectedKeys(e.target.value ? [e.target.value] : [])} onChange={e => setSelectedKeys(e.target.value ? [e.target.value] : [])}
// onChange={(e) => setSelectedKeys(e.target.value ? [e.target.value] : [])} onPressEnter={() => confirm({ closeDropdown: true })}
// onPressEnter={() => handleSearch(selectedKeys, confirm, dataIndex)}
style={{ style={{
marginBottom: 8, marginBottom: 8,
display: 'block', display: 'block',
...@@ -93,47 +92,20 @@ const Account = (props) => { ...@@ -93,47 +92,20 @@ const Account = (props) => {
<Space> <Space>
<Button <Button
type="primary" type="primary"
// onClick={() => handleSearch(selectedKeys, confirm, dataIndex)}
onClick={() => confirm({ closeDropdown: true })} onClick={() => confirm({ closeDropdown: true })}
icon={<SearchOutlined />} icon={<SearchOutlined />}
size="small" size="small"
style={{ style={{ width: 90 }}
width: 90,
}}
> >
搜索 搜索
</Button> </Button>
<Button <Button
onClick={() => handleReset(clearFilters, confirm)} onClick={() => handleReset(clearFilters, confirm)}
size="small" size="small"
style={{ style={{ width: 90 }}
width: 90,
}}
> >
重置 重置
</Button> </Button>
{/* <Button
type="link"
size="small"
onClick={() => {
confirm({
closeDropdown: false,
});
setSearchText(selectedKeys[0]);
setSearchedColumn(dataIndex);
}}
>
Filter
</Button>
<Button
type="link"
size="small"
onClick={() => {
close();
}}
>
close
</Button> */}
</Space> </Space>
</div> </div>
), ),
...@@ -144,13 +116,6 @@ const Account = (props) => { ...@@ -144,13 +116,6 @@ const Account = (props) => {
}} }}
/> />
), ),
// onFilter: (value, record) =>
// record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()),
// onFilterDropdownOpenChange: (visible) => {
// if (visible) {
// setTimeout(() => searchInput.current?.select(), 100);
// }
// },
}) })
const fileColumns = useMemo(() => { const fileColumns = useMemo(() => {
...@@ -337,7 +302,7 @@ const Account = (props) => { ...@@ -337,7 +302,7 @@ const Account = (props) => {
const search = (values) => { const search = (values) => {
setParams({ ...params, ...values }) setParams({ ...params, ...values })
getDataSource({ ...params, ...values }) getDataSource({ ...values })
} }
const getConfig = async () => { const getConfig = async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment