fix: 订单状态Tag使用CSS实现描边样式

This commit is contained in:
小蟑螂
2026-03-27 21:25:31 +08:00
parent 79dd1b5a5d
commit dea51d1e89
2 changed files with 19 additions and 4 deletions
@@ -411,7 +411,7 @@ onMounted(async () => {
<template #orderStatus="{ row }: { row: any }">
<Tag
:color="row.orderStatus?.color || 'blue'"
variant="outlined"
class="order-status-tag"
>
{{ row.statusName || '未知状态' }}
</Tag>
@@ -435,3 +435,11 @@ 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>