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
bedd2bb3
Commit
bedd2bb3
authored
Jul 07, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 错题解释组件
parent
9a443144
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
0 deletions
+77
-0
index.vue
src/components/wrong-explanation/index.vue
+48
-0
readme.md
src/components/wrong-explanation/readme.md
+29
-0
No files found.
src/components/wrong-explanation/index.vue
0 → 100644
View file @
bedd2bb3
<
template
>
<view
class=
"card"
>
<u-card
title=
"答错了"
padding=
"10"
:thumb=
"thumb"
>
<view
class=
"u-flex content"
slot=
"body"
>
<view
class=
"lists"
>
正确答案:
{{
answer
}}
</view>
<view
class=
"lists"
>
解释说明:
{{
explain
}}
</view>
</view>
</u-card>
</view>
</
template
>
<
script
>
export
default
{
name
:
'answerSheet'
,
props
:
{
answer
:
{
type
:
String
,
default
:
''
,
},
explain
:
{
type
:
String
,
default
:
''
,
},
},
data
()
{
return
{
thumb
:
'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'
,
}
},
created
()
{},
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
>
.card
{
.content
{
flex-flow
:
column
;
width
:
100%
;
padding-bottom
:
20rpx
;
.lists
{
width
:
100%
;
text-align
:
left
;
padding
:
10rpx
0
0rpx
40rpx
;
line-height
:
50rpx
;
}
}
}
</
style
>
src/components/wrong-explanation/readme.md
0 → 100644
View file @
bedd2bb3
## 错题解释
## API
### Props
| 属性名 | 类型 | 默认值 | 可选值 | 说明 |
| :-----: | :----: | :----: | :----: | :------: |
| answer | String | - | - | 正确答案 |
| explain | String | - | - | 解释说明 |
## 组件用法
### 基础用法
```
html
<wrong-explanation
answer=
"A"
explain=
"无"
></wrong-explanation>
```
```
javascript
import
wrongExplanation
from
'@/components/wrong-explanation/index.vue'
export
default
{
components
:
{
answerSheet
,
},
data
()
{},
methods
:
{},
}
```
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