Skip to content

Commit

Permalink
fix: fix minor bug in Format Rules field
Browse files Browse the repository at this point in the history
Signed-off-by: yuda <[email protected]>
  • Loading branch information
yuda110 committed Dec 18, 2024
1 parent b82144c commit 1f67e32
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,15 @@ const handleUpdateField = (val: string) => {
type="number"
:min="0"
placeholder="3000"
:invalid="!rule.number?.length"
:invalid="Number.isNaN(rule.number)"
@update:value="handleFormatRuleInput(idx, 'number', $event)"
/>
>
<template v-if="state.type === _FORMAT_RULE_TYPE.percentThreshold"
#input-right
>
%
</template>
</p-text-input>
</p-field-group>
</div>
<div class="right-part">
Expand Down

0 comments on commit 1f67e32

Please sign in to comment.