mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [input-number] Fix decrease and increase disabled (#10787)
This commit is contained in:
@@ -106,13 +106,10 @@ const data = reactive<Data>({
|
||||
const { formItem } = useFormItem()
|
||||
|
||||
const minDisabled = computed(
|
||||
() =>
|
||||
isNumber(props.modelValue) &&
|
||||
ensurePrecision(props.modelValue, -1)! < props.min
|
||||
() => isNumber(props.modelValue) && props.modelValue <= props.min
|
||||
)
|
||||
const maxDisabled = computed(
|
||||
() =>
|
||||
isNumber(props.modelValue) && ensurePrecision(props.modelValue)! > props.max
|
||||
() => isNumber(props.modelValue) && props.modelValue >= props.max
|
||||
)
|
||||
|
||||
const numPrecision = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user