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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "2.0.35",
3
+ "version": "2.0.36",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -122,27 +122,29 @@ export default {
122
122
  },
123
123
 
124
124
  onChange(currentValue, ChangeSource) {
125
- if (this.max) {
126
- if (currentValue >= this.max) {
127
- this.module = this.max;
128
- return;
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
- if (typeof this.min === 'number') {
133
- if (this.module < this.min) {
134
- this.module = this.min;
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
- if (this.controls) {
143
- this.$emit('onChange', this.module);
144
- this.privateValue = this.module;
145
- }
143
+ if (this.controls) {
144
+ this.$emit('onChange', this.module);
145
+ this.privateValue = this.module;
146
+ }
147
+ })
146
148
 
147
149
  //
148
150
  },