forms/numberStep/CNumberStep.vue | ●●●●● patch | view | raw | blame | history |
forms/numberStep/CNumberStep.vue
@@ -77,14 +77,15 @@ handleChange(val) { // 奇偶修正模式 if (this.correct) { const lastValue = this.itemRes.formData[this.itemRes.name]; const lastValue = this.itemRes.formData[this.itemRes.name] || this.range[0]; let nextValue = val; if ( (this.correct === 'odd' && nextValue % 2 === 0) || (this.correct === 'even' && nextValue % 2 === 1) ) { // 增加 if (lastValue < nextValue) { if (lastValue <= nextValue) { nextValue++; } // 减小