Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
7f6cb361
Commit
7f6cb361
authored
Jul 15, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 试图详解组件样式修改
parent
8500fa15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
7 deletions
+31
-7
index.vue
src/components/answer-explanation/index.vue
+31
-7
No files found.
src/components/answer-explanation/index.vue
View file @
7f6cb361
<
template
>
<
template
>
<view
class=
"card"
>
<view
class=
"card"
>
<
u-card
:title=
"title"
padding=
"10"
margin=
"0"
:thumb=
"thumb
"
>
<
view
slot=
"head"
class=
"u-flex head
"
>
<view
class=
"
u-flex content"
slot=
"body"
>
<view
class=
"
blue"
></view
>
<view
class=
"lists"
>
正确答案:
{{
answer
}}
</view
>
<view
class=
"title"
>
<view
class=
"lists"
>
解释说明:
{{
explain
}}
</view>
{{
title
}}
</view>
</view>
</u-card>
</view>
<view
class=
"u-flex content"
slot=
"body"
>
<view
class=
"lists"
>
正确答案:
{{
answer
}}
</view>
<view
class=
"lists"
>
解释说明:
{{
explain
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -33,13 +37,30 @@ export default {
...
@@ -33,13 +37,30 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
thumb
:
'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'
,
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.card
{
.card
{
padding
:
20rpx
10rpx
20rpx
5rpx
;
border
:
2px
solid
#E8EBF3
;
border-radius
:
10rpx
;
.head
{
font-size
:
32rpx
;
font-weight
:
bold
;
padding
:
10rpx
0rpx
;
.blue
{
width
:
4rpx
;
height
:
34rpx
;
background
:
#2953FF
;
position
:
relative
;
left
:
-8rpx
;
}
.title
{
padding-left
:
25rpx
;
}
}
.content
{
.content
{
flex-flow
:
column
;
flex-flow
:
column
;
width
:
100%
;
width
:
100%
;
...
@@ -47,9 +68,12 @@ export default {
...
@@ -47,9 +68,12 @@ export default {
.lists
{
.lists
{
width
:
100%
;
width
:
100%
;
text-align
:
left
;
text-align
:
left
;
padding
:
10rpx
0
0rpx
4
0rpx
;
padding
:
10rpx
0
0rpx
3
0rpx
;
line-height
:
50rpx
;
line-height
:
50rpx
;
}
}
.lists
:nth-of-type
(
1
)
{
color
:
#2953FF
;
}
}
}
}
}
</
style
>
</
style
>
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