Skip to content

Commit

Permalink
chore: rename component (doocs#176)
Browse files Browse the repository at this point in the history
- 命名风格统一大驼峰
- 统一组件风格,打开闭合标签
  • Loading branch information
YangFong authored Aug 8, 2022
1 parent 7ea2104 commit 2470c22
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div id="app">
<router-view />
<router-view></router-view>
</div>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,12 @@
>发布
</el-button>
</div>
<resetDialog

<reset-dialog
:showResetConfirm="showResetConfirm"
@confirm="confirmReset"
@close="cancelReset"
/>
></reset-dialog>
</el-container>
</template>

Expand All @@ -303,7 +304,7 @@ import { setFontSize, setColorWithCustomTemplate } from '@/assets/scripts/util'
import { solveWeChatImage, solveHtml } from '@/assets/scripts/converter'
import DEFAULT_CSS_CONTENT from '@/assets/example/theme-css.txt'
import config from '@/assets/scripts/config'
import resetDialog from './resetDialog'
import ResetDialog from './ResetDialog'
import { mapState, mapMutations } from 'vuex'
export default {
Expand All @@ -327,7 +328,7 @@ export default {
}
},
components: {
resetDialog,
ResetDialog,
},
computed: {
effect() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@
</el-link>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="formCustomSave"
>保存配置
<el-button type="primary" @click="formCustomSave">
保存配置
</el-button>
</el-form-item>
</el-form>
Expand All @@ -386,7 +386,7 @@
</template>

<script>
import { checkImage, removeLeft } from '../../assets/scripts/util'
import { checkImage, removeLeft } from '@/assets/scripts/util'
import CodeMirror from 'codemirror/lib/codemirror'
export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<script>
export default {
name: `Loading`,
name: `RunLoading`,
data() {
return {
loading: true,
Expand Down
38 changes: 20 additions & 18 deletions src/views/CodemirrorEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@show-dialog-upload-img="dialogUploadImgVisible = true"
@startCopy=";(isCoping = true), (backLight = true)"
@endCopy="endCopy"
/>
></editor-header>
</el-header>
<el-main class="main-body">
<el-row class="main-section">
Expand Down Expand Up @@ -84,32 +84,34 @@
</el-row>
</el-main>
</el-container>

<upload-img-dialog
v-model="dialogUploadImgVisible"
@close="dialogUploadImgVisible = false"
@beforeUpload="beforeUpload"
@uploadImage="uploadImage"
@uploaded="uploaded"
/>
<about-dialog v-model="aboutDialogVisible" />
<insert-form-dialog v-model="dialogFormVisible" />
></upload-img-dialog>
<about-dialog v-model="aboutDialogVisible"></about-dialog>
<insert-form-dialog v-model="dialogFormVisible"></insert-form-dialog>

<right-click-menu
v-model="rightClickMenuVisible"
:left="mouseLeft"
:top="mouseTop"
@menuTick="onMenuEvent"
@closeMenu="closeRightClickMenu"
/>
<loading></loading>
></right-click-menu>
<run-loading></run-loading>
</div>
</template>
<script>
import editorHeader from '@/components/CodemirrorEditor/header'
import aboutDialog from '@/components/CodemirrorEditor/aboutDialog'
import insertFormDialog from '@/components/CodemirrorEditor/insertForm'
import rightClickMenu from '@/components/CodemirrorEditor/rightClickMenu'
import uploadImgDialog from '@/components/CodemirrorEditor/uploadImgDialog'
import Loading from '@/components/Loading'
import EditorHeader from '@/components/CodemirrorEditor/EditorHeader'
import AboutDialog from '@/components/CodemirrorEditor/AboutDialog'
import InsertFormDialog from '@/components/CodemirrorEditor/InsertFormDialog'
import RightClickMenu from '@/components/CodemirrorEditor/RightClickMenu'
import UploadImgDialog from '@/components/CodemirrorEditor/UploadImgDialog'
import RunLoading from '@/components/RunLoading'
import {
css2json,
Expand Down Expand Up @@ -145,12 +147,12 @@ export default {
}
},
components: {
Loading,
editorHeader,
aboutDialog,
insertFormDialog,
rightClickMenu,
uploadImgDialog,
RunLoading,
EditorHeader,
AboutDialog,
InsertFormDialog,
RightClickMenu,
UploadImgDialog,
},
computed: {
...mapState({
Expand Down

0 comments on commit 2470c22

Please sign in to comment.