mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: reset complete
This commit is contained in:
parent
fe4d7f259a
commit
bdd95111c1
@ -15,7 +15,7 @@
|
|||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- 页面重置 -->
|
<!-- 页面重置 -->
|
||||||
<el-tooltip class="header__item" :effect="effect" content="重置页面" placement="bottom-start">
|
<el-tooltip class="header__item" :effect="effect" content="重置页面" placement="bottom-start">
|
||||||
<i class="el-icon-refresh" size="medium" @click="reset"></i>
|
<i class="el-icon-refresh" size="medium" @click="showResetConfirm = true"></i>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- 插入表格 -->
|
<!-- 插入表格 -->
|
||||||
<el-tooltip class="header__item header__item_last" :effect="effect" content="插入表格" placement="bottom-start">
|
<el-tooltip class="header__item header__item_last" :effect="effect" content="插入表格" placement="bottom-start">
|
||||||
@ -216,9 +216,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 重置页面
|
// 重置页面
|
||||||
reset() {
|
|
||||||
this.showResetConfirm = true;
|
|
||||||
},
|
|
||||||
confirmReset() {
|
confirmReset() {
|
||||||
localStorage.clear()
|
localStorage.clear()
|
||||||
this.clearEditorToDefault();
|
this.clearEditorToDefault();
|
||||||
@ -229,6 +226,9 @@ export default {
|
|||||||
this.colorChanged(this.config.colorOption[1].value)
|
this.colorChanged(this.config.colorOption[1].value)
|
||||||
this.sizeChanged(this.config.sizeOption[2].value)
|
this.sizeChanged(this.config.sizeOption[2].value)
|
||||||
this.$emit('cssChanged')
|
this.$emit('cssChanged')
|
||||||
|
this.selectFont = this.currentFont;
|
||||||
|
this.selectSize = this.currentSize;
|
||||||
|
this.selectColor = this.currentColor;
|
||||||
this.showResetConfirm = false;
|
this.showResetConfirm = false;
|
||||||
},
|
},
|
||||||
cancelReset() {
|
cancelReset() {
|
||||||
@ -250,9 +250,9 @@ export default {
|
|||||||
'setHtml', 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions'])
|
'setHtml', 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions'])
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.selectFont = this.currentFont
|
this.selectFont = this.currentFont;
|
||||||
this.selectSize = this.currentSize
|
this.selectSize = this.currentSize;
|
||||||
this.selectColor = this.currentColor
|
this.selectColor = this.currentColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user