1.添加无题一

2.自定义编辑器自动换行
3.标题带出XXX名称
This commit is contained in:
范强强
2023-09-06 09:50:56 +08:00
parent b74f441e27
commit ba8c879dec
3 changed files with 267 additions and 262 deletions
+46 -42
View File
@@ -51,29 +51,29 @@
</div> </div>
</template> </template>
<script> <script>
import Vue from 'vue' import Vue from 'vue'
import {SEPARATOR_TYPE} from '@/pages/page1/common/utils' import {SEPARATOR_TYPE} from '@/pages/page1/common/utils'
import InsertTableRow from './components/InsertTableRow.vue' import InsertTableRow from './components/InsertTableRow.vue'
import InsertGuideText from './components/InsertGuideText.vue' import InsertGuideText from './components/InsertGuideText.vue'
import FirstLevelListing from './components/FirstLevelListing.vue' import FirstLevelListing from './components/FirstLevelListing.vue'
import AddFootnote from './components/AddFootnote.vue' import AddFootnote from './components/AddFootnote.vue'
import InsertImage from './components/InsertImage.vue' import InsertImage from './components/InsertImage.vue'
import HelloWorld from './components/HelloWorld.vue' import HelloWorld from './components/HelloWorld.vue'
import Init from './saicComponents/Init' import Init from './saicComponents/Init'
import contentOne from './saicComponents/Content' import contentOne from './saicComponents/Content'
import SaicFunc from './saicComponents/SaicFunc' import SaicFunc from './saicComponents/SaicFunc'
import SaicTable from './saicComponents/SaicTable' import SaicTable from './saicComponents/SaicTable'
import SaicImg from './components/InsertImage' import SaicImg from './components/InsertImage'
import InsertNotes from './saicComponents/InsertNotes' import InsertNotes from './saicComponents/InsertNotes'
import SaicExample from './saicComponents/SaicExample' import SaicExample from './saicComponents/SaicExample'
import SaicFile from './saicComponents/SaicFile' import SaicFile from './saicComponents/SaicFile'
import RevisInformation from './saicComponents/RevisInformation' import RevisInformation from './saicComponents/RevisInformation'
import Appendix from './saicComponents/Appendix' import Appendix from './saicComponents/Appendix'
import chapterData from './saicComponents/chapterData' import chapterData from './saicComponents/chapterData'
import Chapter from './saicComponents/Chapter' import Chapter from './saicComponents/Chapter'
import _axios from '@/plugins/axios2' import _axios from '@/plugins/axios2'
export default { export default {
components: { components: {
InsertTableRow, InsertTableRow,
InsertGuideText, InsertGuideText,
@@ -256,42 +256,46 @@ export default {
}, 1000) }, 1000)
} }
} }
} }
</script> </script>
<style lang="less"> <style lang="less">
#app { #app {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-align: left; text-align: left;
color: #2c3e50; color: #2c3e50;
padding: 10px; padding: 10px;
} }
#app { #app {
height: 100%; height: 100%;
overflow: hidden; overflow: auto;
} }
* { * {
user-select: none; user-select: none;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
color: rgba(0, 0, 0, .85); color: rgba(0, 0, 0, .85);
font-weight: 500; font-weight: 500;
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif,
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-variant: tabular-nums; font-variant: tabular-nums;
} }
.ant-btn-group {
display: block!important;
}
</style> </style>
<style scoped> <style scoped>
.ant-drawer-index { .ant-drawer-index {
width: 210px; width: 210px;
height: 40px; height: 40px;
text-align: center; text-align: center;
@@ -304,15 +308,15 @@ body {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
border-radius: 6px; border-radius: 6px;
z-index: 10; z-index: 10;
} }
.ant-drawer-text { .ant-drawer-text {
width: 10px; width: 10px;
display: inline-block; display: inline-block;
color: #ffff00; color: #ffff00;
} }
.app-header { .app-header {
width: 100%; width: 100%;
height: 46px; height: 46px;
position: fixed; position: fixed;
@@ -324,11 +328,11 @@ body {
background: #f1f1f1; background: #f1f1f1;
z-index: 100; z-index: 100;
border-bottom: 1px #e8e8e8 solid; border-bottom: 1px #e8e8e8 solid;
} }
.app-header-button { .app-header-button {
background: #66b1ff; background: #66b1ff;
border-color: #66b1ff; border-color: #66b1ff;
color: #FFF; color: #FFF;
} }
</style> </style>
@@ -602,6 +602,7 @@
oParagraph.SetFontFamily("黑体"); oParagraph.SetFontFamily("黑体");
oParagraph.SetSpacingAfter(33,false) oParagraph.SetSpacingAfter(33,false)
oParagraph.SetNumbering(oNumLvl); oParagraph.SetNumbering(oNumLvl);
oParagraph.AddText('XXX')
oDocument.InsertContent([oParagraph]) oDocument.InsertContent([oParagraph])
let GetNext = oParagraph.GetNext() let GetNext = oParagraph.GetNext()
GetNext.Delete() GetNext.Delete()
@@ -34,7 +34,7 @@
<!-- </a-dropdown>--> <!-- </a-dropdown>-->
</a-button-group> </a-button-group>
<a-button-group style="margin-bottom: 10px"> <a-button-group style="margin-bottom: 10px">
<!-- <a-button @click="insertBarOne(1,false)">无题一</a-button>--> <a-button @click="insertBarOne(1,false)">无题一</a-button>
<a-button @click="insertBarOne(2,false)">无题二</a-button> <a-button @click="insertBarOne(2,false)">无题二</a-button>
<a-button @click="insertBarOne(3,false)">无题三</a-button> <a-button @click="insertBarOne(3,false)">无题三</a-button>
<a-button @click="insertBarOne(4,false)">无题四</a-button> <a-button @click="insertBarOne(4,false)">无题四</a-button>