zydx-plus 1.32.206 → 1.32.208

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.206",
3
+ "version": "1.32.208",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -46,13 +46,13 @@ export function butJson (editor,data) {
46
46
  name: '添加作者',
47
47
  key: 'authorMenu',
48
48
  menuKeys: [],
49
- html: `<p contenteditable="false" class="author" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 14px;">${menusData(data,'authorMenu').text}</span></p>`
49
+ html: `<p class="author" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 14px;">${menusData(data,'authorMenu').text}</span></p>`
50
50
  },
51
51
  subjectMenu: {
52
52
  name: '添加题目',
53
53
  key: 'subjectMenu',
54
54
  menuKeys: [],
55
- html: `<p contenteditable="false" data-signId="subject" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 24px;">${menusData(data,'subjectMenu').text}</span></p>`
55
+ html: `<p data-signId="subject" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 24px;">${menusData(data,'subjectMenu').text}</span></p>`
56
56
  },
57
57
  paragraphMenu: {
58
58
  name: '添加落款',
@@ -30,9 +30,9 @@
30
30
  </div>
31
31
  <div class="enclosure-item en-but">
32
32
  <div style="display: inline-block; height: 21px;">
33
- <button class="but but-f" v-if="!item.name" @click="see(index)">查看</button>
34
- <button class="but but-f" v-if="!item.name" @click="download(index)">下载</button>
35
- <button class="but but-f" v-if="delShow" @click="del(index)">
33
+ <button class="buts but-f" v-if="!item.name" @click="see(index)">查看</button>
34
+ <button class="buts but-f" v-if="!item.name&&downloadShow" @click="download(index)">下载</button>
35
+ <button class="buts but-f" v-if="delShow" @click="del(index)">
36
36
  <span v-if="item.active">删除</span>
37
37
  <svg v-else xmlns="http://www.w3.org/2000/svg"
38
38
  width="14"
@@ -183,6 +183,10 @@ export default {
183
183
  type: Boolean,
184
184
  default: true
185
185
  },
186
+ downloadShow: {
187
+ type: Boolean,
188
+ default: true
189
+ },
186
190
  placeholder: {
187
191
  type: String,
188
192
  default: '请输入内容'
@@ -346,12 +350,17 @@ export default {
346
350
  const cla = this.randomId()
347
351
  const html = `<p class="imgCont ${cla}"><img src="${url}" alt="" /></p>`
348
352
  this.editor.chain().focus().insertContentAt(this.selection(),html).run()
349
- console.log(this.selection())
350
353
  if(this.selection() <= 6 && this.selection() > 2) this.selectionClass2(cla)
351
354
  if(this.selectionClass(cla)) {
352
355
  this.editor.chain().focus().insertContentAt(this.selection(), '<p></p>').run()
353
356
  }
354
357
  },
358
+ insertContent(v) {
359
+ for(let i=0; i< v.length; i++) {
360
+ let html = json2html(v[i])
361
+ this.editor.chain().focus().insertContentAt(this.selection(),html).run()
362
+ }
363
+ },
355
364
  // 查询class
356
365
  selectionClass(v) {
357
366
  const json = this.editor.getJSON()
@@ -497,7 +506,6 @@ export default {
497
506
  .ed-title{
498
507
  flex: 1;
499
508
  text-align: left;
500
- line-height: 22px;
501
509
  font-size: 16px;
502
510
  }
503
511
  .enclosure-list{
package/src/index.js CHANGED
@@ -77,7 +77,7 @@ function install(app) {
77
77
  }
78
78
 
79
79
  export default {
80
- version: '1.32.206',
80
+ version: '1.32.208',
81
81
  install,
82
82
  Calendar,
83
83
  Message,