zydx-plus 1.32.200 → 1.32.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<span @mousedown.stop="mousedown"
|
|
5
5
|
@mousemove.stop="mousemove"
|
|
6
6
|
@mouseup.stop="mouseup"
|
|
7
|
-
@mouseleave.stop="mousemove" :style="{'text-align': title === ''? 'center':'left'}">{{ title
|
|
7
|
+
@mouseleave.stop="mousemove" :style="{'text-align': title === ''? 'center':'left'}">{{ title }}</span>
|
|
8
8
|
<div class="drag-i">
|
|
9
9
|
<i class="disconnect" v-if="disconnectShow" @click.stop="disconnect"></i>
|
|
10
10
|
<i class="enlarge" v-if="enlargeShow" @click.stop="enlarge"></i>
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
dragTextShow: {
|
|
81
81
|
type: Boolean,
|
|
82
|
-
default:
|
|
82
|
+
default: false
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
watch: {
|
|
@@ -723,17 +723,13 @@ export default {
|
|
|
723
723
|
// 文献
|
|
724
724
|
if (data.key === 'literatureMenu') {
|
|
725
725
|
const html = butJson(this.editor, this.menusText)[data.key].html
|
|
726
|
-
const
|
|
727
|
-
const
|
|
726
|
+
const b = await this.signIdData('paragraph')
|
|
727
|
+
const last = this.editor.state.selection.$anchor.path[0].content.size
|
|
728
728
|
const r = await this.signIdData('literature')
|
|
729
729
|
if (b === -1) {
|
|
730
|
-
if (
|
|
731
|
-
if (r === -1) this.editor.chain().focus().insertContentAt(this.selection(), html).run()
|
|
732
|
-
} else {
|
|
733
|
-
if (r === -1) this.editor.chain().focus().insertContentAt(this.selectionPath('subject'), html).run()
|
|
734
|
-
}
|
|
730
|
+
if (r === -1) this.editor.chain().focus().insertContentAt(last, html).run()
|
|
735
731
|
} else {
|
|
736
|
-
if (r === -1) this.editor.chain().focus().insertContentAt(this.selectionPath('
|
|
732
|
+
if (r === -1) this.editor.chain().focus().insertContentAt(this.selectionPath('paragraph',b - 1), html).run()
|
|
737
733
|
}
|
|
738
734
|
}
|
|
739
735
|
// 添加标注
|
|
@@ -1035,6 +1031,20 @@ li {
|
|
|
1035
1031
|
.editor-content {
|
|
1036
1032
|
margin: 10px;
|
|
1037
1033
|
border: 1px solid rgba(204, 204, 204, 1);
|
|
1034
|
+
max-height: 900px;
|
|
1035
|
+
overflow: auto;
|
|
1036
|
+
}
|
|
1037
|
+
.editor-content::-webkit-scrollbar {
|
|
1038
|
+
display: none;
|
|
1039
|
+
}
|
|
1040
|
+
/** 火狐浏览器 **/
|
|
1041
|
+
.editor-content {
|
|
1042
|
+
scrollbar-width: none;
|
|
1043
|
+
}
|
|
1044
|
+
/** IE 与微软浏览器 **/
|
|
1045
|
+
.editor-content {
|
|
1046
|
+
-ms-overflow-style: none;
|
|
1047
|
+
overflow: -moz-scrollbars-none;
|
|
1038
1048
|
}
|
|
1039
1049
|
.editor-content-show{
|
|
1040
1050
|
position: fixed;
|
|
@@ -1045,7 +1055,7 @@ li {
|
|
|
1045
1055
|
|
|
1046
1056
|
.editing {
|
|
1047
1057
|
width: 794px;
|
|
1048
|
-
min-height:
|
|
1058
|
+
min-height: 700px;
|
|
1049
1059
|
margin: 0 auto;
|
|
1050
1060
|
position: relative;
|
|
1051
1061
|
}
|
|
@@ -1054,7 +1064,7 @@ li {
|
|
|
1054
1064
|
padding: 100px;
|
|
1055
1065
|
box-sizing: border-box;
|
|
1056
1066
|
width: 794px;
|
|
1057
|
-
min-height:
|
|
1067
|
+
min-height: 700px;
|
|
1058
1068
|
}
|
|
1059
1069
|
.loading-back{
|
|
1060
1070
|
position: absolute;
|