Skip to content

Commit

Permalink
fix: 修复物料设置组件 RangeSetter 在设置最大值与最小值引发问题 (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
alwayrun authored May 28, 2024
1 parent 8c0563c commit 08feb06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/materials/setters/widgets/RangeSetter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 08feb06

Please sign in to comment.