fix: 🐛 修复 InputNumber 微信小程序设置了precision后无法输入小数点的问题 - #902
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough本次 PR 主要对 Changes
Sequence Diagram(s)sequenceDiagram
participant 用户
participant 组件 as wd-input-number组件
用户->>组件: 触发输入事件 (eventType = Input)
组件->>组件: 调用 updateValue(value, eventType)
组件->>组件: 检查是否以小数点结尾
alt 值以小数点结尾
组件->>组件: 直接更新值,不进行格式化
else 非小数点结尾
组件->>组件: 调用 doUpdate(value)进行更新
组件-->>用户: 触发更新完成事件
end
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (8)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for wot-design-uni ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Closes: #878
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
#878
💡 需求背景和解决方案
input-number在更新modelValue时,会对绑定值进行格式化,造成例如1.被格式化成1的现象。估在允许输入小数的场景下,对有且仅在末尾有一个小数点的数字直接更新,不进行格式化。☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
重构