|
@@ -50,7 +50,7 @@
|
|
},
|
|
},
|
|
inputValue(newVal, oldVal) {
|
|
inputValue(newVal, oldVal) {
|
|
console.log(newVal,oldVal,this.index,'111')
|
|
console.log(newVal,oldVal,this.index,'111')
|
|
- if (+newVal !== +oldVal) {
|
|
|
|
|
|
+ if (+newVal !== +oldVal && this.max >= +newVal && this.min <= +newVal) {
|
|
this.$emit("change", newVal, this.index);
|
|
this.$emit("change", newVal, this.index);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -126,7 +126,7 @@
|
|
display: flex;
|
|
display: flex;
|
|
/* #endif */
|
|
/* #endif */
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
- width: 100px;
|
|
|
|
|
|
+ width: 120px;
|
|
}
|
|
}
|
|
|
|
|
|
.uni-numbox__value {
|
|
.uni-numbox__value {
|
|
@@ -136,6 +136,7 @@
|
|
line-height: $box-height;
|
|
line-height: $box-height;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size: $uni-font-size-lg;
|
|
font-size: $uni-font-size-lg;
|
|
|
|
+ margin: 0 10px;
|
|
}
|
|
}
|
|
|
|
|
|
.uni-numbox__minus {
|
|
.uni-numbox__minus {
|