fix: 修复物料设置组件 RangeSetter 在设置最大值与最小值引发问题 (#175)
This commit is contained in:
parent
89b69a9fa1
commit
eb6ba7a1a5
@ -56,8 +56,8 @@ const maxModelValue = computed(() => {
|
||||
|
||||
const handleRangeChange = (eventType: 'max' | 'min', value: number) => {
|
||||
const key = props.formConfig.key
|
||||
const initMinValue = props.formConfig.value.min.value
|
||||
const initMaxValue = props.formConfig.value.max.value
|
||||
const initMinValue = minModelValue.value
|
||||
const initMaxValue = maxModelValue.value
|
||||
|
||||
if (
|
||||
(eventType === 'max' && value < initMinValue) ||
|
||||
|
Loading…
Reference in New Issue
Block a user