mirror of
https://github.com/doocs/md.git
synced 2024-10-31 00:07:50 +08:00
parent
7ea21044b0
commit
2470c22d87
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<router-view />
|
<router-view></router-view>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -290,11 +290,12 @@
|
|||||||
>发布
|
>发布
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<resetDialog
|
|
||||||
|
<reset-dialog
|
||||||
:showResetConfirm="showResetConfirm"
|
:showResetConfirm="showResetConfirm"
|
||||||
@confirm="confirmReset"
|
@confirm="confirmReset"
|
||||||
@close="cancelReset"
|
@close="cancelReset"
|
||||||
/>
|
></reset-dialog>
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -303,7 +304,7 @@ import { setFontSize, setColorWithCustomTemplate } from '@/assets/scripts/util'
|
|||||||
import { solveWeChatImage, solveHtml } from '@/assets/scripts/converter'
|
import { solveWeChatImage, solveHtml } from '@/assets/scripts/converter'
|
||||||
import DEFAULT_CSS_CONTENT from '@/assets/example/theme-css.txt'
|
import DEFAULT_CSS_CONTENT from '@/assets/example/theme-css.txt'
|
||||||
import config from '@/assets/scripts/config'
|
import config from '@/assets/scripts/config'
|
||||||
import resetDialog from './resetDialog'
|
import ResetDialog from './ResetDialog'
|
||||||
import { mapState, mapMutations } from 'vuex'
|
import { mapState, mapMutations } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -327,7 +328,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
resetDialog,
|
ResetDialog,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
effect() {
|
effect() {
|
@ -375,8 +375,8 @@
|
|||||||
</el-link>
|
</el-link>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="formCustomSave"
|
<el-button type="primary" @click="formCustomSave">
|
||||||
>保存配置
|
保存配置
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -386,7 +386,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { checkImage, removeLeft } from '../../assets/scripts/util'
|
import { checkImage, removeLeft } from '@/assets/scripts/util'
|
||||||
import CodeMirror from 'codemirror/lib/codemirror'
|
import CodeMirror from 'codemirror/lib/codemirror'
|
||||||
|
|
||||||
export default {
|
export default {
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: `Loading`,
|
name: `RunLoading`,
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
@ -23,7 +23,7 @@
|
|||||||
@show-dialog-upload-img="dialogUploadImgVisible = true"
|
@show-dialog-upload-img="dialogUploadImgVisible = true"
|
||||||
@startCopy=";(isCoping = true), (backLight = true)"
|
@startCopy=";(isCoping = true), (backLight = true)"
|
||||||
@endCopy="endCopy"
|
@endCopy="endCopy"
|
||||||
/>
|
></editor-header>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="main-body">
|
<el-main class="main-body">
|
||||||
<el-row class="main-section">
|
<el-row class="main-section">
|
||||||
@ -84,32 +84,34 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
||||||
<upload-img-dialog
|
<upload-img-dialog
|
||||||
v-model="dialogUploadImgVisible"
|
v-model="dialogUploadImgVisible"
|
||||||
@close="dialogUploadImgVisible = false"
|
@close="dialogUploadImgVisible = false"
|
||||||
@beforeUpload="beforeUpload"
|
@beforeUpload="beforeUpload"
|
||||||
@uploadImage="uploadImage"
|
@uploadImage="uploadImage"
|
||||||
@uploaded="uploaded"
|
@uploaded="uploaded"
|
||||||
/>
|
></upload-img-dialog>
|
||||||
<about-dialog v-model="aboutDialogVisible" />
|
<about-dialog v-model="aboutDialogVisible"></about-dialog>
|
||||||
<insert-form-dialog v-model="dialogFormVisible" />
|
<insert-form-dialog v-model="dialogFormVisible"></insert-form-dialog>
|
||||||
|
|
||||||
<right-click-menu
|
<right-click-menu
|
||||||
v-model="rightClickMenuVisible"
|
v-model="rightClickMenuVisible"
|
||||||
:left="mouseLeft"
|
:left="mouseLeft"
|
||||||
:top="mouseTop"
|
:top="mouseTop"
|
||||||
@menuTick="onMenuEvent"
|
@menuTick="onMenuEvent"
|
||||||
@closeMenu="closeRightClickMenu"
|
@closeMenu="closeRightClickMenu"
|
||||||
/>
|
></right-click-menu>
|
||||||
<loading></loading>
|
<run-loading></run-loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import editorHeader from '@/components/CodemirrorEditor/header'
|
import EditorHeader from '@/components/CodemirrorEditor/EditorHeader'
|
||||||
import aboutDialog from '@/components/CodemirrorEditor/aboutDialog'
|
import AboutDialog from '@/components/CodemirrorEditor/AboutDialog'
|
||||||
import insertFormDialog from '@/components/CodemirrorEditor/insertForm'
|
import InsertFormDialog from '@/components/CodemirrorEditor/InsertFormDialog'
|
||||||
import rightClickMenu from '@/components/CodemirrorEditor/rightClickMenu'
|
import RightClickMenu from '@/components/CodemirrorEditor/RightClickMenu'
|
||||||
import uploadImgDialog from '@/components/CodemirrorEditor/uploadImgDialog'
|
import UploadImgDialog from '@/components/CodemirrorEditor/UploadImgDialog'
|
||||||
import Loading from '@/components/Loading'
|
import RunLoading from '@/components/RunLoading'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
css2json,
|
css2json,
|
||||||
@ -145,12 +147,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
Loading,
|
RunLoading,
|
||||||
editorHeader,
|
EditorHeader,
|
||||||
aboutDialog,
|
AboutDialog,
|
||||||
insertFormDialog,
|
InsertFormDialog,
|
||||||
rightClickMenu,
|
RightClickMenu,
|
||||||
uploadImgDialog,
|
UploadImgDialog,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
|
Loading…
Reference in New Issue
Block a user