Skip to content

Commit

Permalink
feat(manage): add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Dec 10, 2023
1 parent a5e3ea5 commit 43d63fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
14 changes: 8 additions & 6 deletions pages/manage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ function setAutoArrangeScopeLength(newVal: TArrange) {
userStore.changeAutoArrange(newVal);
}
const showAutoArrangePreview = ref(false);
const showArrangeScope = ref(false);
const arrangeScope = computed(() => {
let maxDate = dayjs('2000-01-01');
let maxDate = dayjs();
for (const arrangement of arrangementList.value) {
const d = dayjs(arrangement.date);
maxDate = maxDate > d ? maxDate : d;
Expand Down Expand Up @@ -123,7 +123,7 @@ const calendarAttr = computed(() => {
});
}
if (showAutoArrangePreview.value) {
if (showArrangeScope.value) {
res.push({
highlight: {
start: { fillMode: 'outline', color: 'blue' },
Expand Down Expand Up @@ -401,7 +401,7 @@ onMounted(async () => {
</UiDropdownMenuCheckboxItem>
</UiDropdownMenuContent>
</UiDropdownMenu>
<UiToggle class="basis-1/6 shadow-none" @click="showAutoArrangePreview = !showAutoArrangePreview">
<UiToggle v-model:pressed="showArrangeScope" class="basis-1/6 shadow-none" variant="outline">
预览
</UiToggle>
</div>
Expand Down Expand Up @@ -446,7 +446,8 @@ onMounted(async () => {
</UiCard>
<UiCard class="basis-1/2 relative pt-4">
<UiCardHeader class="flex flex-row align-top">
<UiCardTitle>
<UiCardTitle class="flex flex-row">
<span class="icon-[tabler--list-details] mr-2" />
{{ `${date.getMonth() + 1}-${date.getDate()}` }} 排歌表
</UiCardTitle>
<div class="ml-auto flex items-center space-x-2">
Expand Down Expand Up @@ -537,7 +538,8 @@ onMounted(async () => {
<UiCard class="basis-1/2 relative pt-4">
<UiCardHeader class="items-start gap-4 space-y-0 flex-row">
<div class="space-y-1">
<UiCardTitle>
<UiCardTitle class="flex flex-row">
<span class="icon-[tabler--list] mr-2" />
总歌单
</UiCardTitle>
</div>
Expand Down
9 changes: 6 additions & 3 deletions pages/manage/review.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ onMounted(async () => {
<div class="flex flex-row gap-5 h-screen p-5">
<UiCard class="basis-1/4 pt-4 relative">
<UiCardHeader>
<UiCardTitle class="flex">
<UiCardTitle class="flex flex-row">
<span class="icon-[tabler--help-square] mr-2" />
待审核
<UiBadge variant="secondary" class="ml-2 self-center">
{{ unsetList.length }}
Expand Down Expand Up @@ -210,7 +211,8 @@ onMounted(async () => {
</UiCard>
<UiCard class="basis-1/2 pt-4">
<UiCardHeader class="items-start gap-4 space-y-0 flex-row">
<UiCardTitle>
<UiCardTitle class="flex flex-row">
<span class="icon-[tabler--headphones] mr-2" />
歌曲试听
</UiCardTitle>
<div v-if="selectedSong" class="ml-auto h-4">
Expand Down Expand Up @@ -255,7 +257,8 @@ onMounted(async () => {
<UiCard class="basis-1/4 pt-4">
<UiCardHeader class="items-start gap-4 space-y-0 flex-row">
<div class="space-y-1">
<UiCardTitle>
<UiCardTitle class="flex flex-row">
<span class="icon-[tabler--square-check] mr-2" />
已审核
</UiCardTitle>
</div>
Expand Down

0 comments on commit 43d63fe

Please sign in to comment.