患者1.2
This commit is contained in:
@@ -102,9 +102,9 @@ function equal(value1, value2) {
|
||||
isDisabled: function (type) {
|
||||
var _a = this.data, disabled = _a.disabled, disablePlus = _a.disablePlus, disableMinus = _a.disableMinus, currentValue = _a.currentValue, max = _a.max, min = _a.min;
|
||||
if (type === 'plus') {
|
||||
return disabled || disablePlus || currentValue >= max;
|
||||
return disabled || disablePlus || +currentValue >= +max;
|
||||
}
|
||||
return disabled || disableMinus || currentValue <= min;
|
||||
return disabled || disableMinus || +currentValue <= +min;
|
||||
},
|
||||
onFocus: function (event) {
|
||||
this.$emit('focus', event.detail);
|
||||
@@ -112,6 +112,7 @@ function equal(value1, value2) {
|
||||
onBlur: function (event) {
|
||||
var value = this.format(event.detail.value);
|
||||
this.setData({ currentValue: value });
|
||||
this.emitChange(value);
|
||||
this.$emit('blur', __assign(__assign({}, event.detail), { value: value }));
|
||||
},
|
||||
// filter illegal characters
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
<slot name="minus" />
|
||||
</view>
|
||||
<input
|
||||
always-embed="{{ false }}"
|
||||
type="{{ integer ? 'number' : 'digit' }}"
|
||||
class="input-class {{ utils.bem('stepper__input', { disabled: disabled || disableInput }) }}"
|
||||
style="{{ computed.inputStyle({ buttonSize, inputWidth }) }}"
|
||||
|
||||
Reference in New Issue
Block a user