mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 20:57:10 +08:00
style: 优化部分链接样式
This commit is contained in:
@@ -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>
|
||||
|
@@ -302,6 +302,10 @@ defineExpose({ tableRef })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.link-text.arco-typography) {
|
||||
color: rgb(var(--link-6));
|
||||
}
|
||||
}
|
||||
|
||||
&__header {
|
||||
|
@@ -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
|
||||
|
@@ -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" />
|
||||
|
@@ -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" />
|
||||
|
Reference in New Issue
Block a user