Commit 7059c899 authored by Damon's avatar Damon

docs: 答案解释组件文档更新

parent 2f7f9c8e
## 错题解释 ## 答案解释
## API ## API
...@@ -14,16 +14,14 @@ ...@@ -14,16 +14,14 @@
### 基础用法 ### 基础用法
```html ```html
<wrong-explanation answer="A" explain="无"></wrong-explanation> <answer-explanation answer="A" explain="无"></answer-explanation>
``` ```
```javascript ```javascript
import wrongExplanation from '@/components/wrong-explanation/index.vue' import answerExplanation from '@/components/answer-explanation/index.vue'
export default { export default {
components: { components: {
answerSheet, answerExplanation,
}, }
data() {},
methods: {},
} }
``` ```
...@@ -4,18 +4,11 @@ ...@@ -4,18 +4,11 @@
<view> <view>
<text class="title">{{title}}</text> <text class="title">{{title}}</text>
</view> </view>
<view style="margin-top: 200rpx; width: 100%;">
<answer-explanation answer="A" explain="无"></answer-explanation>
</view>
</view> </view>
</template> </template>
<script> <script>
import answerExplanation from '@/components/answer-explanation/index.vue'
export default { export default {
components: {
answerExplanation
},
data() { data() {
return { return {
title: 'Hello' title: 'Hello'
......
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