meixioacomponent 2.0.35 → 2.0.36
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
|
@@ -122,27 +122,29 @@ export default {
|
|
|
122
122
|
},
|
|
123
123
|
|
|
124
124
|
onChange(currentValue, ChangeSource) {
|
|
125
|
-
|
|
126
|
-
if (
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
this.$nextTick(()=>{
|
|
126
|
+
if (this.max) {
|
|
127
|
+
if (currentValue >= this.max) {
|
|
128
|
+
this.module = this.max;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
129
131
|
}
|
|
130
|
-
}
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
if (typeof this.min === 'number') {
|
|
134
|
+
if (this.module < this.min) {
|
|
135
|
+
this.module = this.min;
|
|
136
|
+
}
|
|
137
|
+
} else if (!currentValue) {
|
|
138
|
+
this.$nextTick(() => {
|
|
139
|
+
this.module = this.$props.defaultValue;
|
|
140
|
+
})
|
|
135
141
|
}
|
|
136
|
-
} else if (!currentValue) {
|
|
137
|
-
this.$nextTick(() => {
|
|
138
|
-
this.module = this.$props.defaultValue;
|
|
139
|
-
})
|
|
140
|
-
}
|
|
141
142
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
if (this.controls) {
|
|
144
|
+
this.$emit('onChange', this.module);
|
|
145
|
+
this.privateValue = this.module;
|
|
146
|
+
}
|
|
147
|
+
})
|
|
146
148
|
|
|
147
149
|
//
|
|
148
150
|
},
|