视觉优化

This commit is contained in:
CaIon
2023-12-01 01:30:24 +08:00
parent 6e744bd1a3
commit 8b96d068c9
5 changed files with 33 additions and 10 deletions

View File

@@ -437,6 +437,18 @@ const TokensTable = () => {
},
};
const handleRow = (record, index) => {
if (record.status !== 1) {
return {
style: {
background: 'var(--semi-color-disabled-border)',
},
};
} else {
return {};
}
};
return (
<>
<EditToken refresh={refresh} editingToken={editingToken} visiable={showEdit} handleClose={closeEdit}></EditToken>
@@ -473,7 +485,7 @@ const TokensTable = () => {
setActivePage(1);
},
onPageChange: handlePageChange,
}} loading={loading} rowSelection={rowSelection}>
}} loading={loading} rowSelection={rowSelection} onRow={handleRow}>
</Table>
<Button theme='light' type='primary' style={{marginRight: 8}} onClick={
() => {