meixioacomponent 2.0.33 → 2.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.
- package/lib/meixioacomponent.common.js +46 -37
- package/lib/meixioacomponent.umd.js +44 -35
- package/lib/meixioacomponent.umd.min.js +2 -2
- package/package.json +1 -1
- package/packages/components/base/baseNumberInput/index.vue +21 -12
- package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +2 -0
package/package.json
CHANGED
|
@@ -122,20 +122,29 @@ export default {
|
|
|
122
122
|
},
|
|
123
123
|
|
|
124
124
|
onChange(currentValue, ChangeSource) {
|
|
125
|
-
if (
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
if (this.max) {
|
|
126
|
+
if (currentValue >= this.max) {
|
|
127
|
+
this.module = this.max;
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
128
130
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
|
|
132
|
+
if (typeof this.min === 'number') {
|
|
133
|
+
if (this.module < this.min) {
|
|
134
|
+
this.module = this.min;
|
|
135
|
+
}
|
|
133
136
|
} else if (!currentValue) {
|
|
134
137
|
this.$nextTick(() => {
|
|
135
138
|
this.module = this.$props.defaultValue;
|
|
136
139
|
})
|
|
137
140
|
}
|
|
138
|
-
|
|
141
|
+
|
|
142
|
+
if (this.controls) {
|
|
143
|
+
this.$emit('onChange', this.module);
|
|
144
|
+
this.privateValue = this.module;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
//
|
|
139
148
|
},
|
|
140
149
|
|
|
141
150
|
onBlue() {
|
|
@@ -150,20 +159,20 @@ export default {
|
|
|
150
159
|
components: {BaseStoreSelect},
|
|
151
160
|
watch: {
|
|
152
161
|
min: {
|
|
153
|
-
handler(newVal){
|
|
162
|
+
handler(newVal) {
|
|
154
163
|
if (this.module < newVal) {
|
|
155
164
|
this.onChange(newVal);
|
|
156
165
|
}
|
|
157
166
|
},
|
|
158
|
-
deep:true
|
|
167
|
+
deep: true
|
|
159
168
|
},
|
|
160
169
|
max: {
|
|
161
|
-
handler
|
|
170
|
+
handler(newVal) {
|
|
162
171
|
if (this.module > newVal) {
|
|
163
172
|
this.onChange(newVal);
|
|
164
173
|
}
|
|
165
174
|
},
|
|
166
|
-
deep:true
|
|
175
|
+
deep: true
|
|
167
176
|
}
|
|
168
177
|
}
|
|
169
178
|
}
|