Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
million
Commits
ac291e18
Commit
ac291e18
authored
Feb 16, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f405b1ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
allDay.vue
src/components/trip/block/allDay.vue
+22
-4
index.vue
src/components/trip/block/index.vue
+13
-0
No files found.
src/components/trip/block/allDay.vue
View file @
ac291e18
...
@@ -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
()
{},
...
...
src/components/trip/block/index.vue
View file @
ac291e18
<
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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment