Skip to content

Commit 28d7a73

Browse files
committed
添加重置参数按钮
1 parent 945a7be commit 28d7a73

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

www/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ <h1 class="title">思源映射查看器</h1>
4343
<span class="name">字体粗细: {{ fontWeight }}</span>
4444
<input type="range" min="200" max="900" step="50" v-model="fontWeight">
4545
</label>
46+
<button @click="onResetOptionsClick">重置参数</button>
4647
</div>
4748
</template>
4849
<div class="search-result">

www/js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ createApp({
9696
}
9797
return 'black'
9898
},
99+
onResetOptionsClick() {
100+
this.fontSize = 160
101+
this.fontWeight = 400
102+
},
99103
onExampleTextClick(text) {
100104
this.input = text
101105
},

0 commit comments

Comments
 (0)