mirror of
https://github.com/doocs/md.git
synced 2024-10-31 00:07:50 +08:00
parent
bbf47a5002
commit
aa7dbbd3e4
@ -42,16 +42,16 @@
|
|||||||
</span>
|
</span>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item @click.native="refClick">
|
<el-dropdown-item @click.native="refClick">
|
||||||
<i class="el-icon-upload2" size="medium"></i>
|
<i class="el-icon-upload2"></i>
|
||||||
导入 .md
|
导入 .md
|
||||||
<input hidden type="file" ref="fileInput" accept=".md" />
|
<input hidden type="file" ref="fileInput" accept=".md" />
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item @click.native="$emit('download')">
|
<el-dropdown-item @click.native="$emit('download')">
|
||||||
<i class="el-icon-download" size="medium"></i>
|
<i class="el-icon-download"></i>
|
||||||
导出 .md
|
导出 .md
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item @click.native="$emit('export')">
|
<el-dropdown-item @click.native="$emit('export')">
|
||||||
<i class="el-icon-document" size="medium"></i>
|
<i class="el-icon-document"></i>
|
||||||
导出 .html
|
导出 .html
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item divided @click.native="themeChanged">
|
<el-dropdown-item divided @click.native="themeChanged">
|
||||||
@ -63,7 +63,6 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
格式<i class="el-icon-arrow-down el-icon--right"></i>
|
格式<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
@ -113,23 +112,21 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
编辑<i class="el-icon-arrow-down el-icon--right"></i>
|
编辑<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
</span>
|
</span>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item @click.native="$emit('show-dialog-upload-img')">
|
<el-dropdown-item @click.native="$emit('show-dialog-upload-img')">
|
||||||
<i class="el-icon-upload" size="medium"></i>
|
<i class="el-icon-upload"></i>
|
||||||
上传图片
|
上传图片
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item @click.native="$emit('show-dialog-form')">
|
<el-dropdown-item @click.native="$emit('show-dialog-form')">
|
||||||
<i class="el-icon-s-grid" size="medium"></i>
|
<i class="el-icon-s-grid"></i>
|
||||||
插入表格
|
插入表格
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
样式<i class="el-icon-arrow-down el-icon--right"></i>
|
样式<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
@ -259,7 +256,6 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
帮助<i class="el-icon-arrow-down el-icon--right"></i>
|
帮助<i class="el-icon-arrow-down el-icon--right"></i>
|
||||||
@ -273,26 +269,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right-side">
|
<div class="right-side">
|
||||||
<el-button
|
<el-button plain size="medium" :type="btnType" @click="copy">
|
||||||
:type="btnType"
|
复制
|
||||||
plain
|
|
||||||
size="medium"
|
|
||||||
@click="copy"
|
|
||||||
placement="bottom-start"
|
|
||||||
>复制
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button plain size="medium" :type="btnType" @click="prePost">
|
||||||
:type="btnType"
|
发布
|
||||||
plain
|
|
||||||
size="medium"
|
|
||||||
@click="prePost"
|
|
||||||
placement="bottom-start"
|
|
||||||
>发布
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<reset-dialog
|
<reset-dialog
|
||||||
:showResetConfirm="showResetConfirm"
|
:show-reset-confirm="showResetConfirm"
|
||||||
@confirm="confirmReset"
|
@confirm="confirmReset"
|
||||||
@close="cancelReset"
|
@close="cancelReset"
|
||||||
></reset-dialog>
|
></reset-dialog>
|
||||||
@ -430,7 +416,7 @@ export default {
|
|||||||
this.$emit(`refresh`)
|
this.$emit(`refresh`)
|
||||||
},
|
},
|
||||||
// 复制到微信公众号
|
// 复制到微信公众号
|
||||||
copy(e) {
|
copy() {
|
||||||
this.$emit(`startCopy`)
|
this.$emit(`startCopy`)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let clipboardDiv = document.getElementById(`output`)
|
let clipboardDiv = document.getElementById(`output`)
|
||||||
|
Loading…
Reference in New Issue
Block a user