Commit 2dd69ba6 authored by Damon's avatar Damon

refactor: css

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