Skip to content

Commit a4f23bf

Browse files
committed
图书详情页
1 parent 64c972c commit a4f23bf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/guide/dev/book-detail.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -493,28 +493,28 @@
493493
<template>
494494
<div class="detail-bottom">
495495
<div class="detail-btn-wrapper">
496-
<BaseButton
496+
<van-button
497497
:custom-class="isInShelf ? 'detail-btn-remove' : 'detail-btn-shelf'"
498498
round
499-
:text="isInShelf ? '移出书架' : '加入书架'"
500499
@click="handleShelf"
501-
/>
500+
>
501+
{{isInShelf ? '移出书架' : '加入书架'}}
502+
</van-button>
502503
</div>
503504
<div class="detail-btn-wrapper">
504-
<BaseButton
505+
<van-button
505506
custom-class="detail-btn-read"
506507
round
507-
text="阅读"
508508
@click="() => readBook()"
509-
/>
509+
>
510+
阅读
511+
</van-button>
510512
</div>
511513
</div>
512514
</template>
513515
514516
<script>
515-
import BaseButton from '../base/BaseButton'
516517
export default {
517-
components: { BaseButton },
518518
props: {
519519
isInShelf: Boolean
520520
},

0 commit comments

Comments
 (0)