Closed eiinu closed 4 months ago
在这次更新中,主要对input.taro.vue
文件中的几个函数进行了优化和调整。具体来说,updateValue
函数在发出更新事件前增加了对值变化的检查,onFocus
和onBlur
函数的行为被简化,clear
函数不再发出change
事件。
文件路径 | 变更摘要 |
---|---|
src/packages/__VUE/input/input.taro.vue |
1. updateValue 函数在发出更新事件前检查props.formatter(value) 的结果是否不同于原始value 。2. onFocus 函数不再发出update:modelValue 事件。3. onBlur 函数不再直接操作value 变量,并在更新值后发出update:modelValue 事件。4. clear 函数不再发出change 事件。 |
在代码的世界里, 变更如春风般细腻, 函数优化如花绽放, 事件简化如水流淌。 代码兔子在欢唱, 每个更新都闪亮。
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.98%. Comparing base (
87f044d
) to head (649fa88
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
此 PR 存在无法覆盖到的场景,不能合并,需要重新设计方案。
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
这个 PR 是否已自测:
Summary by CodeRabbit
新功能
错误修复
update:modelValue
事件的问题。update:modelValue
事件。change
事件的问题。