zydx-plus 1.35.626 → 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.626",
3
+ "version": "1.35.628",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -252,6 +252,9 @@ export default {
252
252
  </script>
253
253
 
254
254
  <style scoped>
255
+ .choice-list{
256
+ text-indent: 27px;
257
+ }
255
258
  .list-cont-input{
256
259
  width: 100%;
257
260
  height: 30px;
@@ -263,7 +266,8 @@ export default {
263
266
  height: 100%;
264
267
  border: none;
265
268
  outline: none;
266
- padding: 0 30px 0 10px;
269
+ /* padding: 0 30px 0 10px; */
270
+ padding: 0 30px 0 0;
267
271
  box-sizing: border-box;
268
272
  }
269
273
  .list-cont-input img{
@@ -138,7 +138,18 @@ export default {
138
138
  },
139
139
  customButTap(e,d) {
140
140
  if(e.key === 'option') d.open = !d.open
141
- if(e.butStart) e.active = !e.active
141
+ if(e.single) {
142
+ if(!e.active) {
143
+ this.value.forEach(x => {
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)
147
+ })
148
+ }
149
+ e.active = !e.active
150
+ }else {
151
+ if(e.butStart) e.active = !e.active
152
+ }
142
153
  if(e.active) {
143
154
  if(e.key === 'disabled') {
144
155
  this.disabledFun(true)
@@ -248,7 +259,7 @@ export default {
248
259
  this.$emit('changeAll', this.value)
249
260
  },
250
261
  ques(v) {
251
- return v.indexOf('101') > -1
262
+ return v?.indexOf('101') > -1
252
263
  },
253
264
  styleText(v) {
254
265
  if (!v || v === 'null') return
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.626',
90
+ version: '1.35.628',
91
91
  install,
92
92
  Calendar,
93
93
  Message,