mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:49:19 +08:00
fix: 订单状态Tag使用CSS实现描边样式
This commit is contained in:
+10
-3
@@ -213,8 +213,7 @@ function handleModalSuccess() {
|
|||||||
<Tag
|
<Tag
|
||||||
v-if="row.color"
|
v-if="row.color"
|
||||||
:color="row.color"
|
:color="row.color"
|
||||||
variant="outlined"
|
class="order-status-tag font-bold"
|
||||||
class="font-bold"
|
|
||||||
>
|
>
|
||||||
{{ row.statusName }}
|
{{ row.statusName }}
|
||||||
</Tag>
|
</Tag>
|
||||||
@@ -225,7 +224,7 @@ function handleModalSuccess() {
|
|||||||
<template #autoStatistics="{ row }: { row: OrderStatusVO.Info }">
|
<template #autoStatistics="{ row }: { row: OrderStatusVO.Info }">
|
||||||
<Tag
|
<Tag
|
||||||
:color="row.autoStatistics === 1 ? 'green' : 'default'"
|
:color="row.autoStatistics === 1 ? 'green' : 'default'"
|
||||||
variant="outlined"
|
class="order-status-tag"
|
||||||
>
|
>
|
||||||
{{ row.autoStatistics === 1 ? '参与统计' : '不参与统计' }}
|
{{ row.autoStatistics === 1 ? '参与统计' : '不参与统计' }}
|
||||||
</Tag>
|
</Tag>
|
||||||
@@ -252,3 +251,11 @@ function handleModalSuccess() {
|
|||||||
/>
|
/>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</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 }">
|
<template #orderStatus="{ row }: { row: any }">
|
||||||
<Tag
|
<Tag
|
||||||
:color="row.orderStatus?.color || 'blue'"
|
:color="row.orderStatus?.color || 'blue'"
|
||||||
variant="outlined"
|
class="order-status-tag"
|
||||||
>
|
>
|
||||||
{{ row.statusName || '未知状态' }}
|
{{ row.statusName || '未知状态' }}
|
||||||
</Tag>
|
</Tag>
|
||||||
@@ -435,3 +435,11 @@ onMounted(async () => {
|
|||||||
<OrderFormModal ref="orderFormModalRef" @success="handleModalSuccess" />
|
<OrderFormModal ref="orderFormModalRef" @success="handleModalSuccess" />
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/* 订单状态 tag 描边样式 */
|
||||||
|
:deep(.order-status-tag.ant-tag) {
|
||||||
|
background-color: transparent !important;
|
||||||
|
border: 2px solid currentColor;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user