fix 81427
This commit is contained in:
+28
-24
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<a-config-provider :locale="locale">
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<!-- <template v-for="item in data">
|
<!-- <template v-for="item in data">
|
||||||
<insert-text :title="item.title" :key="item.title" :list="item.list" />
|
<insert-text :title="item.title" :key="item.title" :list="item.list" />
|
||||||
@@ -49,6 +50,7 @@
|
|||||||
<!-- <insert-table-row />-->
|
<!-- <insert-table-row />-->
|
||||||
<!-- <hello-world />-->
|
<!-- <hello-world />-->
|
||||||
</div>
|
</div>
|
||||||
|
</a-config-provider>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@@ -72,6 +74,7 @@
|
|||||||
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'
|
||||||
|
import zh_CN from 'ant-design-vue/lib/locale/zh_CN'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -126,7 +129,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
isDisplay: false,
|
isDisplay: false,
|
||||||
num: 0
|
num: 0,
|
||||||
|
locale: zh_CN
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -148,45 +152,45 @@
|
|||||||
const oTextPr9 = oHeading1Style6.GetParaPr()
|
const oTextPr9 = oHeading1Style6.GetParaPr()
|
||||||
oTextPr9.SetSpacingAfter(10)
|
oTextPr9.SetSpacingAfter(10)
|
||||||
|
|
||||||
var oHeading1Style = oDocument.CreateStyle("Heading 1");
|
var oHeading1Style = oDocument.CreateStyle('Heading 1')
|
||||||
const oTextPr = oHeading1Style.GetTextPr();
|
const oTextPr = oHeading1Style.GetTextPr()
|
||||||
oTextPr.SetFontFamily("黑体");
|
oTextPr.SetFontFamily('黑体')
|
||||||
oTextPr.SetFontSize(21)
|
oTextPr.SetFontSize(21)
|
||||||
oTextPr.SetColor(0, 0, 0);
|
oTextPr.SetColor(0, 0, 0)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
var oHeading1Style1 = oDocument.CreateStyle("Heading 2");
|
var oHeading1Style1 = oDocument.CreateStyle('Heading 2')
|
||||||
const oTextPr1 = oHeading1Style1.GetTextPr();
|
const oTextPr1 = oHeading1Style1.GetTextPr()
|
||||||
oTextPr1.SetFontFamily("黑体");
|
oTextPr1.SetFontFamily('黑体')
|
||||||
oTextPr1.SetFontSize(21)
|
oTextPr1.SetFontSize(21)
|
||||||
oTextPr1.SetColor(0, 0, 0);
|
oTextPr1.SetColor(0, 0, 0)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
var oHeading1Style2 = oDocument.CreateStyle("Heading 3");
|
var oHeading1Style2 = oDocument.CreateStyle('Heading 3')
|
||||||
const oTextPr2 = oHeading1Style2.GetTextPr();
|
const oTextPr2 = oHeading1Style2.GetTextPr()
|
||||||
oTextPr2.SetFontFamily("黑体");
|
oTextPr2.SetFontFamily('黑体')
|
||||||
oTextPr2.SetFontSize(21)
|
oTextPr2.SetFontSize(21)
|
||||||
oTextPr2.SetColor(0, 0, 0);
|
oTextPr2.SetColor(0, 0, 0)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
var oHeading1Style3 = oDocument.CreateStyle("Heading 4");
|
var oHeading1Style3 = oDocument.CreateStyle('Heading 4')
|
||||||
const oTextPr3 = oHeading1Style3.GetTextPr();
|
const oTextPr3 = oHeading1Style3.GetTextPr()
|
||||||
oTextPr3.SetFontFamily("黑体");
|
oTextPr3.SetFontFamily('黑体')
|
||||||
oTextPr3.SetFontSize(21)
|
oTextPr3.SetFontSize(21)
|
||||||
// oTextPr3.SetColor(0, 0, 0);
|
// oTextPr3.SetColor(0, 0, 0);
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
var oHeading1Style4 = oDocument.CreateStyle("Heading 5");
|
var oHeading1Style4 = oDocument.CreateStyle('Heading 5')
|
||||||
const oTextPr4 = oHeading1Style4.GetTextPr();
|
const oTextPr4 = oHeading1Style4.GetTextPr()
|
||||||
oTextPr4.SetFontFamily("黑体");
|
oTextPr4.SetFontFamily('黑体')
|
||||||
oTextPr4.SetFontSize(21)
|
oTextPr4.SetFontSize(21)
|
||||||
oTextPr4.SetColor(0, 0, 0);
|
oTextPr4.SetColor(0, 0, 0)
|
||||||
//
|
//
|
||||||
var oHeading1Style5 = oDocument.CreateStyle("Heading 6");
|
var oHeading1Style5 = oDocument.CreateStyle('Heading 6')
|
||||||
const oTextPr5 = oHeading1Style5.GetTextPr();
|
const oTextPr5 = oHeading1Style5.GetTextPr()
|
||||||
oTextPr5.SetFontFamily("黑体");
|
oTextPr5.SetFontFamily('黑体')
|
||||||
oTextPr5.SetFontSize(21)
|
oTextPr5.SetFontSize(21)
|
||||||
oTextPr5.SetColor(0, 0, 0);
|
oTextPr5.SetColor(0, 0, 0)
|
||||||
|
|
||||||
|
|
||||||
var oNormalStyle = oDocument.GetDefaultStyle('numbering')
|
var oNormalStyle = oDocument.GetDefaultStyle('numbering')
|
||||||
|
|||||||
@@ -548,11 +548,13 @@ export default {
|
|||||||
beforeUpload (file) {
|
beforeUpload (file) {
|
||||||
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png'
|
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png'
|
||||||
if (!isJpgOrPng) {
|
if (!isJpgOrPng) {
|
||||||
this.$message.error('You can only upload JPG file!')
|
this.$message.error('只能上传图片')
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
const isLt2M = file.size / 1024 / 1024 < 2
|
const isLt2M = file.size / 1024 / 1024 < 2
|
||||||
if (!isLt2M) {
|
if (!isLt2M) {
|
||||||
this.$message.error('Image must smaller than 2MB!')
|
this.$message.error('图片大小不能超过2MB')
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
return isJpgOrPng && isLt2M
|
return isJpgOrPng && isLt2M
|
||||||
},
|
},
|
||||||
@@ -654,4 +656,11 @@ export default {
|
|||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-upload-select-picture-card {
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user