zydx-plus 1.19.101 → 1.19.103

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.19.101",
3
+ "version": "1.19.103",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  <button class="but" @click="complete">{{ butText }}</button>
22
22
  </div>
23
23
  <div class="enclosure" v-if="uploadAttData.length > 0 && enclosureShow">
24
- <p v-if="editorShow">附件列表:</p>
24
+ <p v-if="editorShow" :style="enclosureStyle">{{ enclosureText }}</p>
25
25
  <div class="enclosure-list" v-for="(item,index) in uploadAttData">
26
26
  <div class="enclosure-item">
27
27
  <span>{{ index + 1 }}. {{ (item.name)? item.name : item.annexName }}</span>
@@ -107,6 +107,10 @@ export default {
107
107
  type: String,
108
108
  default: ''
109
109
  },
110
+ enclosureText: {
111
+ type: String,
112
+ default: '附件列表:'
113
+ },
110
114
  titleStyle: {
111
115
  type: Object,
112
116
  default: {
@@ -115,6 +119,14 @@ export default {
115
119
  'color': '#000'
116
120
  }
117
121
  },
122
+ enclosureStyle: {
123
+ type: Object,
124
+ default: {
125
+ 'font-size': '16px',
126
+ 'font-weight': 'bold',
127
+ 'color': '#000'
128
+ }
129
+ },
118
130
  readOnly: {
119
131
  type: Boolean,
120
132
  default: true
@@ -164,7 +176,7 @@ export default {
164
176
  default: true
165
177
  }
166
178
  },
167
- emits: ['see','del','complete','update:data'],
179
+ emits: ['see','del','complete','update:data','enclosureSuccess'],
168
180
  watch:{
169
181
  data(e) {
170
182
  this.editor.commands.setContent(json2html({node: "root",child: (e.html === undefined)? [] : e.html}))
@@ -273,6 +285,7 @@ export default {
273
285
  if(v === 'uploadAtt') {
274
286
  r.data.annex.active = true
275
287
  this.uploadAttData.push(r.data.annex)
288
+ this.$emit('enclosureSuccess', r.data.annex)
276
289
  }else {
277
290
  const url = this.uploadImage.url + r.data
278
291
  const html = [
package/src/index.js CHANGED
@@ -57,7 +57,7 @@ function install(app) {
57
57
  }
58
58
 
59
59
  export default {
60
- version: '1.19.101',
60
+ version: '1.19.103',
61
61
  install,
62
62
  Calendar,
63
63
  Message,