Skip to content

Commit

Permalink
fix(stepper): stepper输入小数
Browse files Browse the repository at this point in the history
  • Loading branch information
fennghuang committed Sep 26, 2023
1 parent 58ca278 commit 6799cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stepper/stepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default defineComponent({
};
const updateValue = (value: TdStepperProps['value']) => {
stepperValue.value = formatNumber(`${value}`, !integer.value);
stepperValue.value = Number(formatNumber(`${value}`, !integer.value));
};
const plusValue = () => {
Expand All @@ -121,7 +121,7 @@ export default defineComponent({
const handleInput = (e: Event) => {
const value = formatNumber((e.target as HTMLTextAreaElement).value, !integer.value);
stepperValue.value = value;
stepperValue.value = Number(value);
};
const handleChange = () => {
Expand Down

0 comments on commit 6799cdb

Please sign in to comment.