Skip to content

Commit

Permalink
添加重置参数按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 5, 2024
1 parent 945a7be commit 28d7a73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h1 class="title">思源映射查看器</h1>
<span class="name">字体粗细: {{ fontWeight }}</span>
<input type="range" min="200" max="900" step="50" v-model="fontWeight">
</label>
<button @click="onResetOptionsClick">重置参数</button>
</div>
</template>
<div class="search-result">
Expand Down
4 changes: 4 additions & 0 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ createApp({
}
return 'black'
},
onResetOptionsClick() {
this.fontSize = 160
this.fontWeight = 400
},
onExampleTextClick(text) {
this.input = text
},
Expand Down

0 comments on commit 28d7a73

Please sign in to comment.