meixioacomponent 2.0.34 → 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,20 +122,31 @@ export default {
|
|
|
122
122
|
},
|
|
123
123
|
|
|
124
124
|
onChange(currentValue, ChangeSource) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
this.$nextTick(()=>{
|
|
126
|
+
if (this.max) {
|
|
127
|
+
if (currentValue >= this.max) {
|
|
128
|
+
this.module = this.max;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
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
|
+
})
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (this.controls) {
|
|
144
|
+
this.$emit('onChange', this.module);
|
|
145
|
+
this.privateValue = this.module;
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
//
|
|
139
150
|
},
|
|
140
151
|
|
|
141
152
|
onBlue() {
|
|
@@ -150,20 +161,20 @@ export default {
|
|
|
150
161
|
components: {BaseStoreSelect},
|
|
151
162
|
watch: {
|
|
152
163
|
min: {
|
|
153
|
-
handler(newVal){
|
|
164
|
+
handler(newVal) {
|
|
154
165
|
if (this.module < newVal) {
|
|
155
166
|
this.onChange(newVal);
|
|
156
167
|
}
|
|
157
168
|
},
|
|
158
|
-
deep:true
|
|
169
|
+
deep: true
|
|
159
170
|
},
|
|
160
171
|
max: {
|
|
161
|
-
handler
|
|
172
|
+
handler(newVal) {
|
|
162
173
|
if (this.module > newVal) {
|
|
163
174
|
this.onChange(newVal);
|
|
164
175
|
}
|
|
165
176
|
},
|
|
166
|
-
deep:true
|
|
177
|
+
deep: true
|
|
167
178
|
}
|
|
168
179
|
}
|
|
169
180
|
}
|