fix: 修复物料设置组件 RangeSetter 在设置最大值与最小值引发问题 (#175)

This commit is contained in:
alwayrun 2024-05-28 14:49:46 +08:00 committed by sudoooooo
parent 89b69a9fa1
commit eb6ba7a1a5

View File

@ -56,8 +56,8 @@ const maxModelValue = computed(() => {
const handleRangeChange = (eventType: 'max' | 'min', value: number) => { const handleRangeChange = (eventType: 'max' | 'min', value: number) => {
const key = props.formConfig.key const key = props.formConfig.key
const initMinValue = props.formConfig.value.min.value const initMinValue = minModelValue.value
const initMaxValue = props.formConfig.value.max.value const initMaxValue = maxModelValue.value
if ( if (
(eventType === 'max' && value < initMinValue) || (eventType === 'max' && value < initMinValue) ||