rm nuxt compression, fix date picker width
This commit is contained in:
@@ -59,16 +59,17 @@
|
||||
el-option(:label="$t('event.each_2w')" value='2w' key='2w')
|
||||
//- el-option(:label="$t('event.each_month')" value='1m' key='1m')
|
||||
|
||||
v-date-picker.mb-2.mt-3(
|
||||
:mode='event.type === "multidate" ? "range" : event.type === "recurrent" ? "multiple" : "single"'
|
||||
:attributes='attributes'
|
||||
v-model='date'
|
||||
:locale='$i18n.locale'
|
||||
:from-page.sync='page'
|
||||
is-inline
|
||||
is-expanded
|
||||
:min-date='event.type !== "recurrent" && new Date()'
|
||||
)
|
||||
#picker.mx-auto
|
||||
v-date-picker.mb-2.mt-3(
|
||||
:mode='event.type === "multidate" ? "range" : event.type === "recurrent" ? "multiple" : "single"'
|
||||
:attributes='attributes'
|
||||
v-model='date'
|
||||
:locale='$i18n.locale'
|
||||
:from-page.sync='page'
|
||||
is-inline
|
||||
is-expanded
|
||||
:min-date='event.type !== "recurrent" && new Date()'
|
||||
)
|
||||
|
||||
div.text-center.mb-2(v-if='event.type === "recurrent"')
|
||||
span(v-if='event.recurrent.frequency !== "1m" && event.recurrent.frequency !== "2m"') {{whenPatterns}}
|
||||
@@ -419,3 +420,8 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
#picker {
|
||||
max-width: 400px;
|
||||
}
|
||||
</style>
|
||||
@@ -127,15 +127,6 @@ export default {
|
||||
error({ statusCode: 404, message: 'Event not found' })
|
||||
}
|
||||
},
|
||||
// async fetch ({ $axios, store }) {
|
||||
// try {
|
||||
// // const now = new Date()
|
||||
// // const events = await $axios.$get(`/event/${now.getMonth()}/${now.getFullYear()}`)
|
||||
// // return store.commit('setEvents', events)
|
||||
// } catch (e) {
|
||||
// console.error(e)
|
||||
// }
|
||||
// },
|
||||
computed: {
|
||||
...mapGetters(['filteredEvents']),
|
||||
...mapState(['settings']),
|
||||
@@ -199,6 +190,8 @@ export default {
|
||||
#eventDetail {
|
||||
background-color: white;
|
||||
margin-bottom: 30px;
|
||||
padding-top: 0px;
|
||||
|
||||
.head {
|
||||
z-index: 1;
|
||||
position: sticky;
|
||||
|
||||
Reference in New Issue
Block a user