zydx-plus 1.32.291 → 1.32.292

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.291",
3
+ "version": "1.32.292",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -244,3 +244,8 @@ input[name='check'] {
244
244
  .padd{
245
245
  padding-bottom: 24px;
246
246
  }
247
+ .buts-disabled{
248
+ color: #797979 !important;
249
+ cursor: not-allowed;
250
+ border: 1px solid #797979 !important;
251
+ }
@@ -10,7 +10,7 @@
10
10
  v-html="item.title"></em><em v-if="scoreShow">({{ item.score }}分)</em>
11
11
  <i class="subject-but" ref="subject">
12
12
  <b :style="{right: -item.right + 'px', top: item.top + 'px'}" ref="b">
13
- <button class="but" v-for="(it) in item.customBut" :class="{'buts-actives': it.active}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
13
+ <button class="but" :disabled="it.disabled" v-for="(it) in item.customBut" :class="{'buts-actives': it.active,'buts-disabled': it.disabled}" @click="customButTap(it,item)">{{ it.active? it.nameActive: it.name }}</button>
14
14
  </b>
15
15
  </i>
16
16
  </span>
@@ -122,8 +122,23 @@ export default {
122
122
  customButTap(e,d) {
123
123
  if(e.key === 'option') d.open = !d.open
124
124
  if(e.butStart) e.active = !e.active
125
+ if(e.active) {
126
+ if(e.key === 'disabled') {
127
+ this.disabledFun(true)
128
+ e.disabled = false
129
+ }
130
+ }else {
131
+ this.disabledFun(false)
132
+ }
125
133
  this.$emit('butChange',e,d)
126
134
  },
135
+ disabledFun(e) {
136
+ this.value.forEach(x => {
137
+ x.customBut.forEach(y => {
138
+ if(y.key === 'disabled') y.disabled = e
139
+ })
140
+ })
141
+ },
127
142
  annexHtml(x) {
128
143
  return json2html({node: "root", child: typeof x === 'string' ? JSON.parse(x) : x})
129
144
  },
package/src/index.js CHANGED
@@ -81,7 +81,7 @@ function install(app) {
81
81
  }
82
82
 
83
83
  export default {
84
- version: '1.32.291',
84
+ version: '1.32.292',
85
85
  install,
86
86
  Calendar,
87
87
  Message,