优化定时任务名称展示效果,提升用户体验 (#1017)

This commit is contained in:
琚涛涛 2021-12-21 22:39:17 +08:00 committed by GitHub
parent 5bfa10bfe7
commit 394735a5d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -1,11 +1,3 @@
.ant-table-pagination.ant-pagination { .ant-table-pagination.ant-pagination {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
tr {
td:nth-child(2) {
span {
cursor: pointer;
}
}
}

View File

@ -77,7 +77,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
width: 150, width: 150,
align: 'center' as const, align: 'center' as const,
render: (text: string, record: any) => ( render: (text: string, record: any) => (
<span <a
onClick={() => { onClick={() => {
goToScriptManager(record); goToScriptManager(record);
}} }}
@ -90,7 +90,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
) : ( ) : (
'' ''
)} )}
</span> </a>
), ),
sorter: { sorter: {
compare: (a: any, b: any) => a.name.localeCompare(b.name), compare: (a: any, b: any) => a.name.localeCompare(b.name),