refactor:edit color
This commit is contained in:
parent
3faa705000
commit
2c1d2e26a0
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ function calculateDaysUntilExpire(expireDate: Date): number {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<template v-if="calculateDaysUntilExpire(expirationDate) <= 90">
|
<template v-if="calculateDaysUntilExpire(expirationDate) <= 90">
|
||||||
<q-badge color="red" class="text-weight-bold">
|
<q-badge
|
||||||
|
:color="calculateDaysUntilExpire(expirationDate) > 0 ? 'orange' : 'red'"
|
||||||
|
class="text-weight-bold"
|
||||||
|
>
|
||||||
{{
|
{{
|
||||||
calculateDaysUntilExpire(expirationDate) > 0
|
calculateDaysUntilExpire(expirationDate) > 0
|
||||||
? 'จะครบกำหนดในอีก'
|
? 'จะครบกำหนดในอีก'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue