@kaiyinchem/ky-uniui 1.0.34 → 1.0.35
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.
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
|
|
102
102
|
// 如果输入的不是倍数,自动调整成最小的数值
|
|
103
103
|
if (this.multiple) {
|
|
104
|
-
if (count % min !== 0) {
|
|
104
|
+
if ((Number((count % min).toFixed(3)) % min) !== 0) {
|
|
105
105
|
this.count = min
|
|
106
106
|
this.$toast('请输入规格的倍数')
|
|
107
107
|
}
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
return
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
if (this.multiple && this.count % min !== 0) {
|
|
131
|
+
if (this.multiple && (Number((this.count % min).toFixed(3)) % min) !== 0) {
|
|
132
132
|
this.count = min
|
|
133
133
|
this.$toast('只能是规格的倍数')
|
|
134
134
|
this.emit()
|