chore: styles
This commit is contained in:
parent
5db8c5a79b
commit
72df2a9c00
@ -3,7 +3,7 @@
|
|||||||
// you can use this to manipulate the document head in any components,
|
// you can use this to manipulate the document head in any components,
|
||||||
// they will be rendered correctly in the html results with vite-ssg
|
// they will be rendered correctly in the html results with vite-ssg
|
||||||
useHead({
|
useHead({
|
||||||
title: '季节内台风预报系统',
|
title: '季节内逐日台风概率预报',
|
||||||
meta: [
|
meta: [
|
||||||
{
|
{
|
||||||
name: 'description',
|
name: 'description',
|
||||||
|
|||||||
@ -126,7 +126,7 @@ const isTargetDateDisabled = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 gap-3">
|
<div class="grid grid-cols-2 gap-3">
|
||||||
<div>
|
<div>
|
||||||
<Label for="temperature">发布日期</Label>
|
<Label for="temperature">初始日期</Label>
|
||||||
<Popover>
|
<Popover>
|
||||||
<PopoverTrigger as-child>
|
<PopoverTrigger as-child>
|
||||||
<Button
|
<Button
|
||||||
@ -151,7 +151,7 @@ const isTargetDateDisabled = computed(() => {
|
|||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Label for="top-p">目标预报日期</Label>
|
<Label for="top-p">预报日期</Label>
|
||||||
<Popover>
|
<Popover>
|
||||||
<PopoverTrigger as-child>
|
<PopoverTrigger as-child>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@ -26,11 +26,12 @@ function _useOptions() {
|
|||||||
autoPlayer.pause()
|
autoPlayer.pause()
|
||||||
}
|
}
|
||||||
if (options.castDayNo >= 29) {
|
if (options.castDayNo >= 29) {
|
||||||
autoPlayer.pause()
|
|
||||||
setTargetDate(castBeginDate.value!.add({ days: 1 }))
|
setTargetDate(castBeginDate.value!.add({ days: 1 }))
|
||||||
}
|
}
|
||||||
setTargetDate(castTargetDate.value!.add({ days: 1 }))
|
else {
|
||||||
castTargetDate.value = castTargetDate.value?.add({ days: 1 })
|
setTargetDate(castTargetDate.value!.add({ days: 1 }))
|
||||||
|
castTargetDate.value = castTargetDate.value?.add({ days: 1 })
|
||||||
|
}
|
||||||
}, interval, {
|
}, interval, {
|
||||||
immediate: false,
|
immediate: false,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -23,7 +23,7 @@ function flipDark() {
|
|||||||
>
|
>
|
||||||
<span class="i-mingcute-typhoon-fill size-6 px-5" @click="flipDark" />
|
<span class="i-mingcute-typhoon-fill size-6 px-5" @click="flipDark" />
|
||||||
<h1 class="text-xl font-semibold">
|
<h1 class="text-xl font-semibold">
|
||||||
季节内台风预报系统
|
季节内逐日台风概率预报
|
||||||
</h1>
|
</h1>
|
||||||
<div class="size-5">
|
<div class="size-5">
|
||||||
<!-- <Switch :checked="isDark" @update:checked="flipDark">
|
<!-- <Switch :checked="isDark" @update:checked="flipDark">
|
||||||
@ -50,8 +50,8 @@ function flipDark() {
|
|||||||
地图
|
地图
|
||||||
</Badge>
|
</Badge>
|
||||||
<Card v-if="options.castDayNo !== -1" class="absolute right-3 top-3 z-400 p-3">
|
<Card v-if="options.castDayNo !== -1" class="absolute right-3 top-3 z-400 p-3">
|
||||||
发布日期: <br>{{ castBeginDate }}<br>
|
初始日期 <br>{{ castBeginDate }}<br>
|
||||||
预报日期:<br> {{ castTargetDate }}
|
预报日期 <br> {{ castTargetDate }}
|
||||||
</Card>
|
</Card>
|
||||||
<div class="flex-1" />
|
<div class="flex-1" />
|
||||||
<RouterView />
|
<RouterView />
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import generateSitemap from 'vite-ssg-sitemap'
|
|||||||
import 'vitest/config'
|
import 'vitest/config'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: '/typhoon',
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@/': `${path.resolve(__dirname, 'src')}/`,
|
'@/': `${path.resolve(__dirname, 'src')}/`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user