style: Tag组件改用type=outline实现描边样式

This commit is contained in:
小蟑螂
2026-03-27 21:30:24 +08:00
parent dea51d1e89
commit 1f6afd6d93
2 changed files with 4 additions and 19 deletions
@@ -213,7 +213,8 @@ function handleModalSuccess() {
<Tag
v-if="row.color"
:color="row.color"
class="order-status-tag font-bold"
type="outline"
class="font-bold"
>
{{ row.statusName }}
</Tag>
@@ -224,7 +225,7 @@ function handleModalSuccess() {
<template #autoStatistics="{ row }: { row: OrderStatusVO.Info }">
<Tag
:color="row.autoStatistics === 1 ? 'green' : 'default'"
class="order-status-tag"
type="outline"
>
{{ row.autoStatistics === 1 ? '参与统计' : '不参与统计' }}
</Tag>
@@ -251,11 +252,3 @@ function handleModalSuccess() {
/>
</Page>
</template>
<style scoped>
/* 订单状态 tag 描边样式 */
:deep(.order-status-tag.ant-tag) {
background-color: transparent !important;
border: 2px solid currentColor;
}
</style>
@@ -411,7 +411,7 @@ onMounted(async () => {
<template #orderStatus="{ row }: { row: any }">
<Tag
:color="row.orderStatus?.color || 'blue'"
class="order-status-tag"
type="outline"
>
{{ row.statusName || '未知状态' }}
</Tag>
@@ -435,11 +435,3 @@ onMounted(async () => {
<OrderFormModal ref="orderFormModalRef" @success="handleModalSuccess" />
</Page>
</template>
<style scoped>
/* 订单状态 tag 描边样式 */
:deep(.order-status-tag.ant-tag) {
background-color: transparent !important;
border: 2px solid currentColor;
}
</style>