refactor: ts+echarts+resize方式简化

Former-commit-id: 0a85c26f3c27843cd4e20b367e62d1f9b40370d9
This commit is contained in:
haoxr
2023-01-25 18:53:14 +08:00
parent 235fea1070
commit 8c5537c49e
6 changed files with 283 additions and 456 deletions

View File

@@ -20,7 +20,7 @@ const date: Date = new Date();
const greetings = computed(() => {
if (date.getHours() >= 6 && date.getHours() < 8) {
return '晨起披衣出草堂,轩窗已自喜微凉🌅!';
} else if (date.getHours() >= 8 && date.getHours() < 18) {
} else if (date.getHours() >= 8 && date.getHours() < 12) {
return '上午好🌞!';
} else if (date.getHours() >= 12 && date.getHours() < 18) {
return '下午好☕!';
@@ -209,5 +209,8 @@ const greetings = computed(() => {
display: flex;
justify-content: space-between;
}
.svg-icon {
fill: currentColor !important;
}
}
</style>