zy-asrs-admin/src/utils/tableUtils.jsx
@@ -17,6 +17,10 @@ }); searchText.value = ''; }; function handleResizeColumn(w, col) { col.width = w; } const getColumnSearchProps = (dataIndex) => ({ filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters }) => ( @@ -45,12 +49,14 @@ record[dataIndex] ? record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()) : '', resizable: true, }); return { searchText, searchedColumn, getColumnSearchProps, handleResizeColumn, }; }