🔢 feat(user-edit): replace add-quota input with Semi-UI InputNumber

Summary:
• Imported InputNumber from @douyinfe/semi-ui.
• Swapped plain Input for InputNumber in “Add Quota” modal.
• Added UX tweaks: full-width styling, showClear, step = 500 000.
• Initialized addQuotaLocal to an empty string so the field starts blank.
• Adjusted state handling and kept quota calculation logic unchanged.

This improves numeric input accuracy and overall user experience without breaking existing functionality.
This commit is contained in:
t0ng7u
2025-07-05 00:03:12 +08:00
parent 8945a3a2dd
commit 3049ad47e5
3 changed files with 8 additions and 7 deletions

View File

@@ -1199,7 +1199,7 @@
"添加用户": "Add user",
"角色": "Role",
"已绑定的 Telegram 账户": "Bound Telegram account",
"新额度": "New quota",
"新额度": "New quota: ",
"需要添加的额度(支持负数)": "Need to add quota (supports negative numbers)",
"此项只读,需要用户通过个人设置页面的相关绑定按钮进行绑定,不可直接修改": "Read-only, user's personal settings, and cannot be modified directly",
"请输入新的密码,最短 8 位": "Please enter a new password, at least 8 characterss",