升级uni-ui到最新版本1.4.20

This commit is contained in:
RuoYi
2022-08-02 10:20:10 +08:00
parent 9218925e83
commit 01ff1e617e
75 changed files with 3199 additions and 4025 deletions

View File

@@ -50,14 +50,14 @@
step: {
type: Number,
default: 1
},
background: {
type: String,
default: '#f5f5f5'
},
color: {
type: String,
default: '#333'
},
background: {
type: String,
default: '#f5f5f5'
},
color: {
type: String,
default: '#333'
},
disabled: {
type: Boolean,
@@ -75,7 +75,7 @@
},
modelValue(val) {
this.inputValue = +val;
}
}
},
created() {
if (this.value === 1) {
@@ -132,8 +132,8 @@
_onBlur(event) {
this.$emit('blur', event)
let value = event.detail.value;
if (!value) {
// this.inputValue = 0;
if (isNaN(value)) {
this.inputValue = this.min;
return;
}
value = +value;
@@ -146,6 +146,7 @@
this.inputValue = value.toFixed(String(scale).length - 1);
this.$emit("change", +this.inputValue);
this.$emit("input", +this.inputValue);
this.$emit("update:modelValue", +this.inputValue);
},
_onFocus(event) {
this.$emit('focus', event)
@@ -153,10 +154,10 @@
}
};
</script>
<style lang="scss" scoped>
$box-height: 26px;
$bg: #f5f5f5;
$br: 2px;
<style lang="scss" >
$box-height: 26px;
$bg: #f5f5f5;
$br: 2px;
$color: #333;
.uni-numbox {
@@ -166,21 +167,21 @@
flex-direction: row;
}
.uni-numbox-btns {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0 8px;
.uni-numbox-btns {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
padding: 0 8px;
background-color: $bg;
/* #ifdef H5 */
cursor: pointer;
/* #endif */
}
.uni-numbox__value {
.uni-numbox__value {
margin: 0 2px;
background-color: $bg;
width: 40px;
@@ -188,7 +189,7 @@
text-align: center;
font-size: 14px;
border-left-width: 0;
border-right-width: 0;
border-right-width: 0;
color: $color;
}
@@ -197,17 +198,17 @@
border-bottom-left-radius: $br;
}
.uni-numbox__plus {
border-top-right-radius: $br;
.uni-numbox__plus {
border-top-right-radius: $br;
border-bottom-right-radius: $br;
}
.uni-numbox--text {
// fix nvue
line-height: 20px;
.uni-numbox--text {
// fix nvue
line-height: 20px;
font-size: 20px;
font-weight: 300;
font-size: 20px;
font-weight: 300;
color: $color;
}
@@ -217,4 +218,4 @@
cursor: not-allowed;
/* #endif */
}
</style>
</style>