zydx-plus 1.32.301 → 1.32.302

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.301",
3
+ "version": "1.32.302",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -509,6 +509,11 @@
509
509
  {
510
510
  value: '2',
511
511
  label: '同学互评'
512
+ },
513
+ {
514
+ disable: true,
515
+ value: '3',
516
+ label: '系统评价'
512
517
  }
513
518
  ],
514
519
  reviewDemandOptions : [
@@ -33,6 +33,7 @@
33
33
  :class="{ 'custom-select-options': true, 'scroll': maxHeight > 0 }">
34
34
  <li v-for="(option, idx) in options"
35
35
  :key="idx"
36
+ :class="option.disable ? 'disable': ''"
36
37
  @click="handleClick(option)">{{ option.label }}</li>
37
38
  </ul>
38
39
  </template>
@@ -93,6 +94,9 @@ export default defineComponent({
93
94
  this.isOpen = !this.isOpen
94
95
  },
95
96
  handleClick: function (option) {
97
+ if(option.disable) {
98
+ return
99
+ }
96
100
  this.$emit('update:value', option.value)
97
101
  this.$emit('select', option)
98
102
  this.selected = option.label
@@ -260,4 +264,8 @@ export default defineComponent({
260
264
  .custom-select-options li:focus {
261
265
  color: v-bind(hover);
262
266
  }
267
+
268
+ .disable {
269
+ color: gray !important;
270
+ }
263
271
  </style>
package/src/index.js CHANGED
@@ -81,7 +81,7 @@ function install(app) {
81
81
  }
82
82
 
83
83
  export default {
84
- version: '1.32.301',
84
+ version: '1.32.302',
85
85
  install,
86
86
  Calendar,
87
87
  Message,