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

fix: 细节修改

parent a53a6b2f
......@@ -79,11 +79,10 @@ const Account = (props) => {
>
<Input
ref={searchInput}
placeholder={`Search ${dataIndex}`}
placeholder={`搜索 ${dataIndex}`}
value={selectedKeys[0]}
onChange={e => setSelectedKeys(e.target.value ? [e.target.value] : [])}
// onChange={(e) => setSelectedKeys(e.target.value ? [e.target.value] : [])}
// onPressEnter={() => handleSearch(selectedKeys, confirm, dataIndex)}
onPressEnter={() => confirm({ closeDropdown: true })}
style={{
marginBottom: 8,
display: 'block',
......@@ -93,47 +92,20 @@ const Account = (props) => {
<Space>
<Button
type="primary"
// onClick={() => handleSearch(selectedKeys, confirm, dataIndex)}
onClick={() => confirm({ closeDropdown: true })}
icon={<SearchOutlined />}
size="small"
style={{
width: 90,
}}
style={{ width: 90 }}
>
搜索
</Button>
<Button
onClick={() => handleReset(clearFilters, confirm)}
size="small"
style={{
width: 90,
}}
style={{ width: 90 }}
>
重置
</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>
</div>
),
......@@ -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(() => {
......@@ -337,7 +302,7 @@ const Account = (props) => {
const search = (values) => {
setParams({ ...params, ...values })
getDataSource({ ...params, ...values })
getDataSource({ ...values })
}
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