style: 优化部分链接样式

This commit is contained in:
2024-10-20 21:23:41 +08:00
parent 7970940f50
commit c6daf41a2e
5 changed files with 42 additions and 5 deletions

View File

@@ -3,7 +3,18 @@
<a-avatar :size="24" shape="circle">
<img :src="props.avatar" alt="avatar" />
</a-avatar>
<a-link v-if="props.isLink" @click="emit('click')">{{ props.name }}</a-link>
<a-link v-if="props.isLink" @click="emit('click')">
<a-typography-paragraph
class="link-text"
:ellipsis="{
rows: 1,
showTooltip: true,
css: true,
}"
>
{{ props.name }}
</a-typography-paragraph>
</a-link>
<span v-else>{{ props.name }}</span>
</a-space>
</template>

View File

@@ -302,6 +302,10 @@ defineExpose({ tableRef })
}
}
}
:deep(.link-text.arco-typography) {
color: rgb(var(--link-6));
}
}
&__header {

View File

@@ -15,12 +15,12 @@
:xxl="8"
class="my-project-item"
>
<a-card style="min-height: 204px" :bordered="true" hoverable>
<a-card style="min-height: 204px; max-height: 204px" :bordered="true" hoverable>
<div class="badge badge-right" :style="`background-color: ${item.statusColor}`">{{ item.status }}</div>
<a :href="item.url" target="_blank">
<a-space direction="vertical">
<a-space>
<img :src="item.logo" width="30px" alt="logo" />
<a-image :src="item.logo" width="30px" alt="logo" />
<a-typography-text bold>{{ item.name }}</a-typography-text>
</a-space>
<a-typography-paragraph

View File

@@ -36,7 +36,18 @@
</a-button>
</template>
<template #title="{ record }">
<a-link @click="onDetail(record)">{{ record.title }}</a-link>
<a-link @click="onDetail(record)">
<a-typography-paragraph
class="link-text"
:ellipsis="{
rows: 1,
showTooltip: true,
css: true,
}"
>
{{ record.title }}
</a-typography-paragraph>
</a-link>
</template>
<template #type="{ record }">
<GiCellTag :value="record.type" :dict="notice_type" />

View File

@@ -28,7 +28,18 @@
</a-button>
</template>
<template #name="{ record }">
<a-link @click="onDetail(record)">{{ record.name }}</a-link>
<a-link @click="onDetail(record)">
<a-typography-paragraph
class="link-text"
:ellipsis="{
rows: 1,
showTooltip: true,
css: true,
}"
>
{{ record.name }}
</a-typography-paragraph>
</a-link>
</template>
<template #dataScope="{ record }">
<GiCellTag :value="record.dataScope" :dict="data_scope_enum" />