zydx-plus 1.35.627 → 1.35.628

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.35.627",
3
+ "version": "1.35.628",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -102,10 +102,6 @@ export default {
102
102
  isLook: { // 题库资源中,查看试题true,创建试题false(新版题库类资源-选择题编辑状态时,试题选项只在编辑框中显示此时isLook: false)
103
103
  type: Boolean,
104
104
  default: true
105
- },
106
- single: { // 后排按钮单选
107
- type: Boolean,
108
- default: false
109
105
  }
110
106
  },
111
107
  watch: {
@@ -142,12 +138,12 @@ export default {
142
138
  },
143
139
  customButTap(e,d) {
144
140
  if(e.key === 'option') d.open = !d.open
145
- if(this.single) {
141
+ if(e.single) {
146
142
  if(!e.active) {
147
143
  this.value.forEach(x => {
148
- x.customBut.forEach(y => {
149
- y.active = false
150
- })
144
+ // 把x.customBut里single是true的active设置成false
145
+ const singleBut = x.customBut.filter(y => y.single)
146
+ if(singleBut) singleBut.forEach(y => y.active = false)
151
147
  })
152
148
  }
153
149
  e.active = !e.active
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.627',
90
+ version: '1.35.628',
91
91
  install,
92
92
  Calendar,
93
93
  Message,