Commit 2dd69ba6 authored by Damon's avatar Damon

refactor: css

parent 38d89ef9
......@@ -6,10 +6,10 @@
:current="swiperCurrent"
@change="swiperChange"
circular
>
<swiper-item v-for="(item, index) in swiperList" :key="index">
>
<swiper-item v-for="(item, index) in swiperList" :key="index" class="swiper-items">
<view class="u-flex subject">
<view class="title" v-if="item.title"><text>{{ titleType[item.type - 1] }}</text>{{ item.title }}</view>
<view class="title" v-if="item.title"><text class="title-type">{{ titleType[item.type - 1] }}</text>{{ item.title }}</view>
<view class="content">
<answer-sheet
ref="answerSheet"
......@@ -69,8 +69,8 @@ export default {
},
// 值为0禁止切换动画
swiperDuration: {
type: String,
default: "250"
type: Number,
default: 1000
},
// 分页需要传此数据
total: {
......@@ -262,7 +262,7 @@ export default {
height: 100%;
display: flex;
flex-direction: column;
swiper-item {
.swiper-items {
overflow: auto;
}
.subject {
......@@ -280,7 +280,7 @@ export default {
font-weight: bold;
width: 100%;
text-align: left;
text {
.title-type {
background: #9EA5BB;
color: #fff;
padding: 8rpx 20rpx;
......
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