Skip to content

docs(input-number): only group the integer part in formatter demo - #8577

Open
lazerg wants to merge 1 commit into
vueComponent:mainfrom
lazerg:fix/input-number-formatter-decimal
Open

docs(input-number): only group the integer part in formatter demo#8577
lazerg wants to merge 1 commit into
vueComponent:mainfrom
lazerg:fix/input-number-formatter-decimal

Conversation

@lazerg

@lazerg lazerg commented Aug 7, 2026

Copy link
Copy Markdown

The formatter demo applies the thousands separator regex to the whole number, so the decimal part gets commas as well. 1.0445 renders as $ 1.0,445.

Split the value on the decimal point and group only the integer part, the way the antd demo and Statistic already do.

Fixes #8576

Change Log

Language Changelog
🇺🇸 English Fix the InputNumber formatter demo inserting separators inside the decimal part.
🇨🇳 Chinese 修复 InputNumber 格式化演示中小数部分被插入千分位分隔符的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

数字输入框,格式化展示问题

1 participant