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>
</template>
<script>
import Vue from 'vue'
import {SEPARATOR_TYPE} from '@/pages/page1/common/utils'
import InsertTableRow from './components/InsertTableRow.vue'
import InsertGuideText from './components/InsertGuideText.vue'
import FirstLevelListing from './components/FirstLevelListing.vue'
import AddFootnote from './components/AddFootnote.vue'
import InsertImage from './components/InsertImage.vue'
import HelloWorld from './components/HelloWorld.vue'
import Init from './saicComponents/Init'
import contentOne from './saicComponents/Content'
import SaicFunc from './saicComponents/SaicFunc'
import SaicTable from './saicComponents/SaicTable'
import SaicImg from './components/InsertImage'
import InsertNotes from './saicComponents/InsertNotes'
import SaicExample from './saicComponents/SaicExample'
import SaicFile from './saicComponents/SaicFile'
import RevisInformation from './saicComponents/RevisInformation'
import Appendix from './saicComponents/Appendix'
import chapterData from './saicComponents/chapterData'
import Chapter from './saicComponents/Chapter'
import _axios from '@/plugins/axios2'
import Vue from 'vue'
import {SEPARATOR_TYPE} from '@/pages/page1/common/utils'
import InsertTableRow from './components/InsertTableRow.vue'
import InsertGuideText from './components/InsertGuideText.vue'
import FirstLevelListing from './components/FirstLevelListing.vue'
import AddFootnote from './components/AddFootnote.vue'
import InsertImage from './components/InsertImage.vue'
import HelloWorld from './components/HelloWorld.vue'
import Init from './saicComponents/Init'
import contentOne from './saicComponents/Content'
import SaicFunc from './saicComponents/SaicFunc'
import SaicTable from './saicComponents/SaicTable'
import SaicImg from './components/InsertImage'
import InsertNotes from './saicComponents/InsertNotes'
import SaicExample from './saicComponents/SaicExample'
import SaicFile from './saicComponents/SaicFile'
import RevisInformation from './saicComponents/RevisInformation'
import Appendix from './saicComponents/Appendix'
import chapterData from './saicComponents/chapterData'
import Chapter from './saicComponents/Chapter'
import _axios from '@/plugins/axios2'
export default {
export default {
components: {
InsertTableRow,
InsertGuideText,
@@ -256,42 +256,46 @@ export default {
}, 1000)
}
}
}
}
</script>
<style lang="less">
#app {
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: left;
color: #2c3e50;
padding: 10px;
}
}
#app {
#app {
height: 100%;
overflow: hidden;
}
overflow: auto;
}
* {
* {
user-select: none;
}
}
h1, h2, h3, h4, h5 {
h1, h2, h3, h4, h5 {
color: rgba(0, 0, 0, .85);
font-weight: 500;
}
}
body {
body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif,
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-variant: tabular-nums;
}
}
.ant-btn-group {
display: block!important;
}
</style>
<style scoped>
.ant-drawer-index {
.ant-drawer-index {
width: 210px;
height: 40px;
text-align: center;
@@ -304,15 +308,15 @@ body {
transform: translate(-50%, -50%);
border-radius: 6px;
z-index: 10;
}
}
.ant-drawer-text {
.ant-drawer-text {
width: 10px;
display: inline-block;
color: #ffff00;
}
}
.app-header {
.app-header {
width: 100%;
height: 46px;
position: fixed;
@@ -324,11 +328,11 @@ body {
background: #f1f1f1;
z-index: 100;
border-bottom: 1px #e8e8e8 solid;
}
}
.app-header-button {
.app-header-button {
background: #66b1ff;
border-color: #66b1ff;
color: #FFF;
}
}
</style>
@@ -602,6 +602,7 @@
oParagraph.SetFontFamily("黑体");
oParagraph.SetSpacingAfter(33,false)
oParagraph.SetNumbering(oNumLvl);
oParagraph.AddText('XXX')
oDocument.InsertContent([oParagraph])
let GetNext = oParagraph.GetNext()
GetNext.Delete()
@@ -34,7 +34,7 @@
<!-- </a-dropdown>-->
</a-button-group>
<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(3,false)">无题三</a-button>
<a-button @click="insertBarOne(4,false)">无题四</a-button>