zydx-plus 1.33.347 → 1.33.348

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.33.347",
3
+ "version": "1.33.348",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -86,7 +86,7 @@ export default {
86
86
  },
87
87
  dragTextShow: {
88
88
  type: Boolean,
89
- default: false
89
+ default: true
90
90
  },
91
91
  minimize: {
92
92
  type: Boolean,
@@ -298,6 +298,8 @@ export default {
298
298
 
299
299
  .down-text-cont {
300
300
  display: inline-block;
301
+ position: relative;
302
+ z-index: 10000;
301
303
  }
302
304
 
303
305
  .down-text-cont img {
@@ -312,8 +314,8 @@ export default {
312
314
  line-height: 30px;
313
315
  font-size: 14px;
314
316
  color: #999;
315
- padding: 0 10px;
316
317
  text-align: center;
318
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
317
319
  }
318
320
 
319
321
  .drag-down {
@@ -45,12 +45,12 @@ export function butJson(editor, data) {
45
45
  name: '摘 要',
46
46
  key: 'abstractMenu',
47
47
  menuKeys: [],
48
- html: `<p class="abstract" data-signId="abstract"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;font-family: SimSun;">摘要:</span><span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi">摘要内容...</span></p>`
48
+ html: `<p class="abstract" data-signId="abstract"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;font-family: SimSun;">摘要:</span> <span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi"> 摘要内容...</span></p>`
49
49
  }, {
50
50
  name: '关键词',
51
51
  key: 'keywordMenu',
52
52
  menuKeys: [],
53
- html: `<p class="keyword" data-signId="keyword"><span style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;font-family: SimSun;">关键词:</span><span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi">关键词内容...</span></p>`
53
+ html: `<p class="keyword" data-signId="keyword"><span contenteditable="false" style="color: rgb(0, 0, 0);font-size: 14px;font-weight: 700;font-family: SimSun;">关键词:</span> <span style="color: rgb(0, 0, 0);font-size: 12px;font-family: KaiTi"> 关键词内容...</span></p>`
54
54
  }, {
55
55
  name: '落 款',
56
56
  key: 'paragraphMenu',
@@ -349,7 +349,8 @@ export default {
349
349
  'shortcut', 'pageMargin', 'paragraph',
350
350
  'outlineMenu', 'alignmentMode', 'titleMenu',
351
351
  'textMenu', 'color', 'interposition'],
352
- bubbleData: {}
352
+ bubbleData: {},
353
+ htmlJson: []
353
354
  }
354
355
  },
355
356
  props: {
@@ -535,8 +536,10 @@ export default {
535
536
  },
536
537
  mounted() {
537
538
  const _this = this
538
- if (_this.html[_this.html.length - 1]?.type === 'interpositionData') {
539
- this.interpositionData = _this.html[_this.html.length - 1].data
539
+ _this.htmlJson=_this.html
540
+ if (_this.htmlJson[_this.htmlJson.length - 1]?.type === 'interpositionData') {
541
+ this.interpositionData = _this.htmlJson[_this.htmlJson.length - 1].data
542
+ _this.htmlJson.splice(_this.htmlJson.length - 1,1)
540
543
  }
541
544
  let dataHtml = json2html({node: "root", child: (_this.html === undefined || _this.html === null) ? [] : _this.html})
542
545
  if (dataHtml[0]?.tag === 'sign') {
@@ -1844,6 +1847,7 @@ export default {
1844
1847
  },
1845
1848
 
1846
1849
  async butTap(data, key, childKey) {
1850
+ console.log(data, key, childKey)
1847
1851
  // 快捷排版
1848
1852
  if (data.key === 'shortcut') {
1849
1853
  const menusHtml = butJson(this.editor, this.menusText)[data.key].menuKeys
@@ -1873,6 +1877,7 @@ export default {
1873
1877
  // 摘要
1874
1878
  if (key.key === 'abstractMenu') {
1875
1879
  const html = menusHtml.filter(item => item.key == key.key)[0].html
1880
+ console.log('html',html)
1876
1881
  const r = await this.signIdData('abstract')
1877
1882
  if (r === -1) this.editor.chain().focus().insertContentAt(this.selection(), html).run()
1878
1883
  }
@@ -2025,7 +2030,7 @@ export default {
2025
2030
  }
2026
2031
  // 插入
2027
2032
  if (data.key === 'interposition') {
2028
- const menusHtml = butJson(this.editor, this.menusText)[data.key].menuKeys
2033
+ // const menusHtml = butJson(this.editor, this.menusText)[data.key].menuKeys
2029
2034
  // 添加图片
2030
2035
  if (key.key === 'group-image') {
2031
2036
  if (childKey.key === 'insertImage') {
@@ -2613,7 +2618,6 @@ export default {
2613
2618
  </script>
2614
2619
 
2615
2620
  <style scoped>
2616
- @import "../../tipBox/src/zydxStyle.css";
2617
2621
 
2618
2622
  :deep(.ProseMirror-separator) {
2619
2623
  display: none !important;
@@ -3048,7 +3052,7 @@ li {
3048
3052
  }
3049
3053
 
3050
3054
  .menu-one {
3051
- //max-width: 557px;
3055
+ //max-width: 557px;
3052
3056
  min-width: 300px;
3053
3057
  width: max-content;
3054
3058
  padding: 10px;
@@ -3089,6 +3093,14 @@ li {
3089
3093
  align-items: center;
3090
3094
  color: #CCCCCC;
3091
3095
  }
3096
+ @keyframes linkDown {
3097
+ 0% {
3098
+ opacity: 0;
3099
+ }
3100
+ 100% {
3101
+ opacity: 1;
3102
+ }
3103
+ }
3092
3104
 
3093
3105
  .tip-box {
3094
3106
  width: 744px;
@@ -3122,4 +3134,52 @@ li {
3122
3134
  .tip-boxContent {
3123
3135
  overflow-y: auto;
3124
3136
  }
3137
+
3138
+ .tip-title {
3139
+ margin-bottom: 20px;
3140
+ font-size: 18px;
3141
+ font-weight: 700;
3142
+ flex-shrink: 0;
3143
+ display: flex;
3144
+ align-items: flex-end;
3145
+ justify-content: center;
3146
+ flex-wrap: wrap;
3147
+ overflow: hidden;
3148
+ }
3149
+
3150
+ .tip-boxContent {
3151
+ max-height: 600px;
3152
+ }
3153
+
3154
+ .tip-btnBox {
3155
+ margin-top: 20px;
3156
+ flex-shrink: 0;
3157
+ display: flex;
3158
+ justify-content: center;
3159
+ align-items: flex-start;
3160
+ font-size: 12px;
3161
+ }
3162
+
3163
+ .tip-btnBox > div {
3164
+ width: 60px;
3165
+ line-height: 20px;
3166
+ margin-right: 10px;
3167
+ border-radius: 3px;
3168
+ border: 1px solid #000000;
3169
+ cursor: pointer;
3170
+ text-align: center;
3171
+ }
3172
+
3173
+ .tip-popupWindowSearch {
3174
+ position: fixed;
3175
+ top: 0;
3176
+ left: 0;
3177
+ right: 0;
3178
+ bottom: 0;
3179
+ background-color: rgba(0, 0, 0, 0.2);
3180
+ z-index: 20000;
3181
+ display: flex;
3182
+ align-items: center;
3183
+ }
3184
+
3125
3185
  </style>
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.347',
86
+ version: '1.33.348',
87
87
  install,
88
88
  Calendar,
89
89
  Message,