zydx-plus 1.32.200 → 1.32.202

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.32.200",
3
+ "version": "1.32.202",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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 === ''? '按住可拖动弹窗': title }}</span>
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: true
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 t = await this.signIdData('subject') // 判断是否有题目
727
- const b = await this.signIdData('author') // 判断是否有作者
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 (t === -1) {
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('author'), html).run()
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: 1123px;
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: 1123px;
1067
+ min-height: 700px;
1058
1068
  }
1059
1069
  .loading-back{
1060
1070
  position: absolute;
@@ -558,7 +558,9 @@ export default {
558
558
  padding: 2px 5px;
559
559
  cursor: pointer;
560
560
  min-width: 60px;
561
- height: 21px;
561
+ height: 20px;
562
+ display: inline-block;
563
+ line-height: 16px;
562
564
  }
563
565
  .but-f{
564
566
  float: left;
package/src/index.js CHANGED
@@ -77,7 +77,7 @@ function install(app) {
77
77
  }
78
78
 
79
79
  export default {
80
- version: '1.32.200',
80
+ version: '1.32.202',
81
81
  install,
82
82
  Calendar,
83
83
  Message,