-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7011c84
commit f70faf0
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script setup lang="ts"> | ||
import { PollStatus } from '@/enums/poll' | ||
const props = defineProps<{ | ||
pollStatus: PollStatus | ||
}>() | ||
</script> | ||
<template> | ||
<div class="stamp"> | ||
<div | ||
class="icon" | ||
:class="{ | ||
approve: props.pollStatus === PollStatus.Approved, | ||
reject: props.pollStatus === PollStatus.Rejected, | ||
'need-modify': props.pollStatus === PollStatus.NeedModify | ||
}" | ||
></div> | ||
</div> | ||
</template> | ||
<style lang="scss" scoped> | ||
.stamp { | ||
@apply flex items-center justify-center absolute -right-10 -top-15; | ||
.icon { | ||
@apply h-38 w-38 z-1 opacity-25; | ||
} | ||
} | ||
.approve { | ||
@apply i-solar-check-circle-bold bg-green-500; | ||
} | ||
.reject { | ||
@apply i-solar-close-circle-bold bg-red-500; | ||
} | ||
.need-modify { | ||
@apply i-solar-text-circle-bold bg-yellow-500; | ||
} | ||
</style> |