zydx-plus 1.32.221 → 1.32.223

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.221",
3
+ "version": "1.32.223",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -636,6 +636,7 @@ export default {
636
636
  },
637
637
  // 整理按钮
638
638
  organizeButton() {
639
+ this.butData = []
639
640
  this.toolbar.forEach(item => {
640
641
  let obj = butJson(this.editor, this.menusText)[item.key === undefined ? item : item.key]
641
642
  if (obj) {
@@ -329,7 +329,11 @@ export default {
329
329
  })
330
330
  }else {
331
331
  this.uploadFile(file,this.uploadImage).then(r => {
332
- this.imgHtml(r.data)
332
+ if (r.code === '200') {
333
+ this.imgHtml(r.data)
334
+ }else {
335
+ this.uploadImage.onFailed(r)
336
+ }
333
337
  })
334
338
  }
335
339
  }else {
@@ -19,7 +19,7 @@
19
19
  @click="choiceTap(item,index)"
20
20
  :disabled="!item.choice"
21
21
  :style="{border: !item.choice?'1px solid #ccc': '1px solid #000'}">
22
- {{ choiceState? '选择题目' : item.choice?'撤销选择': '选择题目' }}
22
+ {{ choiceState? choiceText.choice : item.choice?choiceText.cancel: choiceText.choice }}
23
23
  </button>
24
24
  </b>
25
25
  <b :style="{right: -item.right + 'px', top: item.top + 'px'}" v-if="collapse" ref="b">
@@ -131,6 +131,13 @@ export default {
131
131
  type: Boolean,
132
132
  default: false
133
133
  },
134
+ choiceText: {
135
+ type: Object,
136
+ default: {
137
+ choice: '选择题目',
138
+ cancel: '撤销选择'
139
+ }
140
+ },
134
141
  titleText: {
135
142
  type: String,
136
143
  default: '材料'
package/src/index.js CHANGED
@@ -79,7 +79,7 @@ function install(app) {
79
79
  }
80
80
 
81
81
  export default {
82
- version: '1.32.221',
82
+ version: '1.32.223',
83
83
  install,
84
84
  Calendar,
85
85
  Message,