修复样式污染

This commit is contained in:
gyq 2024-10-15 09:16:07 +08:00
parent 9e269a690c
commit b391a7da80
1 changed files with 15 additions and 14 deletions

View File

@ -69,8 +69,10 @@
</el-table-column> </el-table-column>
<el-table-column label="库存" prop="number"> <el-table-column label="库存" prop="number">
<template v-slot="scope"> <template v-slot="scope">
<span v-if="!scope.row.isStock" :class="[scope.row.stockNumber <= warnLine ? 'colorStyle' : '']"> <span v-if="!scope.row.isStock"
<span v-if="scope.row.stockNumber < 0" style="font-weight: 700;color: #999;font-size: 14px;">-</span> :class="[scope.row.stockNumber <= warnLine ? 'colorStyle' : '']">
<span v-if="scope.row.stockNumber < 0"
style="font-weight: 700;color: #999;font-size: 14px;">-</span>
<span> <span>
<span> {{ Math.abs(scope.row.stockNumber) }}</span> <span> {{ Math.abs(scope.row.stockNumber) }}</span>
<span> {{ scope.row.unitName }}</span> <span> {{ scope.row.unitName }}</span>
@ -399,6 +401,12 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
::v-deep .cell {
display: flex;
align-items: center;
/* flex-direction: row-reverse; */
}
.shop_info { .shop_info {
display: flex; display: flex;
align-items: center; align-items: center;
@ -435,10 +443,3 @@ export default {
font-weight: 700; font-weight: 700;
} }
</style> </style>
<style>
.cell {
display: flex;
align-items: center;
/* flex-direction: row-reverse; */
}
</style>