fiee-official-website/src/views/events-calendar/size1920/index.vue

79 lines
1.7 KiB
Vue

<template>
<div class="events-calendar-page">
<customDefaultPage>
<template #content>
<main class="p-[35px] max-w-[1200px] mx-auto">
<div class="title mb-[20px]">
{{ t('events_calendar.title') }}
</div>
<div class="search-container">
<n-date-picker
v-model:value="state.selectedDateValue"
type="date"
class="search-date-picker"
></n-date-picker>
<n-button
type="primary"
@click="handleSearch"
class="search-button"
>
{{ t('events_calendar.search.button') }}
</n-button>
</div>
</main>
</template>
</customDefaultPage>
</div>
</template>
<script setup>
import customDefaultPage from '@/components/customDefaultPage/index.vue'
import { reactive } from 'vue'
import { NDatePicker, NButton } from 'naive-ui'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const state = reactive({
selectedDateValue: null, //选中值
})
const handleSearch = () => {
// 搜索处理逻辑
// console.log('搜索:', state.selectedDateValue)
}
</script>
<style scoped lang="scss">
.title {
font-size: 40px;
color: #333;
}
.search-container {
margin-bottom: 20px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 10px;
}
.search-date-picker {
width: 14rem;
}
:deep(.n-date-picker) {
width: 14rem;
.n-input__input {
padding: 4px 0;
border-radius: 4px;
}
}
:deep(.n-button) {
padding: 20px 16px;
border-radius: 4px;
}
</style>