feat(input): 适配鸿蒙、小程序、H5、RN; 鸿蒙下无法隐藏密码Icon#2338
feat(input): 适配鸿蒙、小程序、H5、RN; 鸿蒙下无法隐藏密码Icon#2338xiaoyatong merged 2 commits intojdf2e:dev-harmonyfrom
Conversation
|
修复一下 冲突~ |
# Conflicts: # packages/nutui-taro-demo-rn/scripts/taro/adapted.js # packages/nutui-taro-demo-rn/src/app.config.ts
Walkthrough这些更改主要集中在更新 Taro Demo 项目中的输入组件和样例展示。它们包括增加新属性、改进样式、重构组件结构和导入路径。具体改动包括添加新导出项、修改配置信息、引入新版本号和增强组件的样式和功能。 Changes
Sequence Diagram(s)忽略生成 Sequence Diagram,因为更改内容过于简单或多样,不适合用流程图表示。 Poem
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (23)
Files skipped from review due to trivial changes (7)
Additional context usedBiome
Additional comments not posted (19)
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
fixed |
| console.log('eeeeee', e.detail.value) | ||
| handleInput((e.currentTarget || e.detail).value) |
There was a problem hiding this comment.
在输入事件处理函数中添加了日志输出,这对于调试是有帮助的,但在生产环境中应考虑去除或使用更合适的日志级别。
- console.log('eeeeee', e.detail.value)
+ // TODO: Remove debug logs before production or adjust log levelCommittable suggestion was skipped due to low confidence.
| formatter={formatter} | ||
| formatTrigger="onBlur" | ||
| placeholder="在失焦时执行格式化" | ||
| placeholderTextColor="#757575" |
There was a problem hiding this comment.
Tip
Codebase Verification
重复添加 placeholderTextColor 属性确实存在于多个 demo 文件中。
src/packages/input/demos/taro/demo10.tsx包含了两次相同的placeholderTextColor属性。
请检查这些重复添加是否是有意为之,以便在不同场景中进行配置。如果不是,请移除多余的属性。
Analysis chain
重复添加 placeholderTextColor 属性。请确保这是有意为之,用于不同场景的配置。
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the usage of `placeholderTextColor` across different demo files.
fd 'demo*.tsx' src/packages/input/demos/taro --exec rg 'placeholderTextColor'
Length of output: 77
Script:
#!/bin/bash
# Description: Verify the usage of `placeholderTextColor` across different demo files.
fd 'demo*.tsx' src/packages/input/demos/taro -x rg 'placeholderTextColor' {}
Length of output: 78
Script:
#!/bin/bash
# Description: Verify the usage of `placeholderTextColor` across the entire repository.
rg 'placeholderTextColor'
Length of output: 1771
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
Summary by CodeRabbit
新功能
Input组件添加placeholderTextColor属性,允许自定义占位符文本颜色。样式
Input组件的样式,包括使用ScrollView和View组件替换<div>元素,改进布局和样式。文档
Input组件版本号至3.0.0。修复
重构
Demo组件以替代简单的按钮元素。Input组件的事件处理和条件渲染逻辑,增强跨平台兼容性。