Commit ac291e18 authored by youjie's avatar youjie

no message

parent f405b1ec
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<div class="block-item"> <div class="block-item">
<!-- transition-prev="scale" <!-- transition-prev="scale"
transition-next="scale" --> transition-next="scale" -->
<!-- transition-prev="slide-right"
transition-next="slide-left" -->
<q-carousel v-model="slide" <q-carousel v-model="slide"
transition-prev="slide-right" transition-prev="slide-right"
transition-next="slide-left" transition-next="slide-left"
...@@ -11,8 +13,7 @@ ...@@ -11,8 +13,7 @@
control-type="regular" control-type="regular"
:arrows="day.details.length>0?false:false" :arrows="day.details.length>0?false:false"
control-text-color="primary" control-text-color="primary"
thumbnails ref="carousel"
infinite
> >
<template v-for="(x, i) in day.details"> <template v-for="(x, i) in day.details">
<q-carousel-slide :name="i" class="column no-wrap"> <q-carousel-slide :name="i" class="column no-wrap">
...@@ -98,7 +99,24 @@ ...@@ -98,7 +99,24 @@
</div> </div>
</q-carousel-slide> </q-carousel-slide>
</template> </template>
<template v-slot:control>
<template v-if="day.details.length>1">
<q-carousel-control
position="top-right"
:offset="[18,88]"
class="q-gutter-xs"
>
<q-btn
push round dense color="primary" text-color="while" icon="arrow_left"
@click="$refs.carousel.previous()"
/>
<q-btn
push round dense color="primary" text-color="while" icon="arrow_right"
@click="$refs.carousel.next()"
/>
</q-carousel-control>
</template>
</template>
</q-carousel> </q-carousel>
</div> </div>
</template> </template>
...@@ -111,7 +129,7 @@ ...@@ -111,7 +129,7 @@
data() { data() {
return { return {
slide: 0, slide: 0,
lorem: '' autoplay: 0,
} }
}, },
mounted() {}, mounted() {},
......
<style scoped> <style scoped>
@import url('../../../assets/trip/block/index.css'); @import url('../../../assets/trip/block/index.css');
.fz15{
font-size: 15px;
}
.fz28{
font-size: 28px;
}
</style> </style>
<template> <template>
<div class="trip-box"> <div class="trip-box">
...@@ -21,6 +27,13 @@ ...@@ -21,6 +27,13 @@
</template> </template>
<template v-else> <template v-else>
<div :id="`days_${i}`"> <div :id="`days_${i}`">
<div class="bg-grey-3 q-px-lg q-py-md">
<div>
<div class="fz28 text-red"><span class="fz28" style="font-weight: bold;"><span v-if='item.dayNum<10'>0</span>{{item.dayNum}}</span></div>
<!-- <p>{{item.dateTime}}</p> -->
</div>
<div class="fz15 q-py-sm text-grey-8" v-html="item.title"></div>
</div>
<allDay :day='item' :isDirect="isDirect"></allDay> <allDay :day='item' :isDirect="isDirect"></allDay>
</div> </div>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment