视觉优化
This commit is contained in:
@@ -324,6 +324,18 @@ const RedemptionsTable = () => {
|
||||
},
|
||||
};
|
||||
|
||||
const handleRow = (record, index) => {
|
||||
if (record.status !== 1) {
|
||||
return {
|
||||
style: {
|
||||
background: 'var(--semi-color-disabled-border)',
|
||||
},
|
||||
};
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<EditRedemption refresh={refresh} editingRedemption={editingRedemption} visiable={showEdit}
|
||||
@@ -353,7 +365,7 @@ const RedemptionsTable = () => {
|
||||
// setActivePage(1);
|
||||
// },
|
||||
onPageChange: handlePageChange,
|
||||
}} loading={loading} rowSelection={rowSelection}>
|
||||
}} loading={loading} rowSelection={rowSelection} onRow={handleRow}>
|
||||
</Table>
|
||||
<Button theme='light' type='primary' style={{marginRight: 8}} onClick={
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user