feat: 链接添加下划线
This commit is contained in:
parent
eda18ad3f6
commit
717644ef5f
|
@ -149,6 +149,11 @@ ol {
|
|||
z-index: 999;
|
||||
}
|
||||
|
||||
.kf-table-row-link:hover {
|
||||
text-decoration: underline @underline-color;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
input:-webkit-autofill {
|
||||
transition: background-color 5000s ease-in-out 0s;
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ function ResourceVersion({
|
|||
dataIndex: 'index',
|
||||
key: 'index',
|
||||
width: 80,
|
||||
render(text: string, record: ResourceFileData, index: number) {
|
||||
render(_text: string, _record: ResourceFileData, index: number) {
|
||||
return <span>{index + 1}</span>;
|
||||
},
|
||||
},
|
||||
|
@ -137,7 +137,9 @@ function ResourceVersion({
|
|||
dataIndex: 'file_name',
|
||||
key: 'file_name',
|
||||
render: (text: string, record: ResourceFileData) => (
|
||||
<a onClick={() => downloadAlone(record)}>{text}</a>
|
||||
<a className="kf-table-row-link" onClick={() => downloadAlone(record)}>
|
||||
{text}
|
||||
</a>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
|
|
@ -154,7 +154,9 @@ function EditorList() {
|
|||
width: '30%',
|
||||
render: (text, record) =>
|
||||
record.url ? (
|
||||
<a onClick={(e) => gotoEditorPage(e, record)}>{text}</a>
|
||||
<a className="kf-table-row-link" onClick={(e) => gotoEditorPage(e, record)}>
|
||||
{text}
|
||||
</a>
|
||||
) : (
|
||||
<span>{text ?? '--'}</span>
|
||||
),
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
|
||||
.operation {
|
||||
width: 334px;
|
||||
width: 344px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -355,7 +355,11 @@ function Experiment() {
|
|||
title: '关联流水线名称',
|
||||
dataIndex: 'workflow_name',
|
||||
key: 'workflow_name',
|
||||
render: (text, record) => <a onClick={(e) => gotoPipeline(e, record)}>{text}</a>,
|
||||
render: (text, record) => (
|
||||
<a className="kf-table-row-link" onClick={(e) => gotoPipeline(e, record)}>
|
||||
{text}
|
||||
</a>
|
||||
),
|
||||
width: '16%',
|
||||
},
|
||||
{
|
||||
|
@ -393,7 +397,7 @@ function Experiment() {
|
|||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 350,
|
||||
width: 360,
|
||||
render: (_, record) => (
|
||||
<Space size="small">
|
||||
<Button
|
||||
|
|
|
@ -50,6 +50,10 @@
|
|||
flex: 1;
|
||||
min-width: 0;
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline @underline-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -189,7 +189,11 @@ function ModelDeployment() {
|
|||
key: 'service_name',
|
||||
width: '20%',
|
||||
render: (text, record) => {
|
||||
return <a onClick={() => toDetail(record)}>{text}</a>;
|
||||
return (
|
||||
<a className="kf-table-row-link" onClick={() => toDetail(record)}>
|
||||
{text}
|
||||
</a>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -122,7 +122,11 @@ const Pipeline = () => {
|
|||
title: '流水线名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
render: (text, record) => <a onClick={(e) => routeToEdit(e, record)}>{text}</a>,
|
||||
render: (text, record) => (
|
||||
<a className="kf-table-row-link" onClick={(e) => routeToEdit(e, record)}>
|
||||
{text}
|
||||
</a>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: '流水线描述',
|
||||
|
|
|
@ -171,6 +171,7 @@ const DictTableList: React.FC = () => {
|
|||
render: (dom, record) => {
|
||||
return (
|
||||
<a
|
||||
className="kf-table-row-link"
|
||||
onClick={() => {
|
||||
history.push(`/system/dict-data/index/${record.dictId}`);
|
||||
}}
|
||||
|
|
|
@ -81,7 +81,6 @@ const GenCodeView: React.FC = () => {
|
|||
{
|
||||
title: '编号',
|
||||
dataIndex: 'tableId',
|
||||
tip: '编号',
|
||||
render: (dom, entity) => {
|
||||
return (
|
||||
<a
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
@warning-color: #f98e1b;
|
||||
@abort-color: #8a8a8a;
|
||||
@pending-color: #ecb934;
|
||||
@underline-color: #5d93ff;
|
||||
|
||||
@border-color: rgba(22, 100, 255, 0.3);
|
||||
@border-color-secondary: rgba(22, 100, 255, 0.1);
|
||||
|
|
Loading…
Reference in New Issue