Skip to content

Conversation

@wangshunnn
Copy link
Collaborator

Refactor

  • picker 表单组件重构:基于 picker-view 组件重构,移除之前依赖的 @ant-design/react-native

PR Diff

  • 主要改动在 picker 组件文件夹:packages/webpack-plugin/lib/runtime/components/react/mpx-picker
  • 另外基于 mpx-portal 封装了可扩展的弹窗管理器 hooks:packages/webpack-plugin/lib/runtime/components/react/mpx-popup/index.tsx,方便 picker 实现类似微信的半弹层效果,未来其他内部 RN 组件可以扩展复用。
  • Lint: 增加 jsx lint,修复了存量 jsx lint 问题

Preview

1. 普通选择器:mode = selector Snipaste_2025-02-18_16-14-52
2. 多列选择器:mode = multiSelector Snipaste_2025-02-18_16-14-52
3. 时间选择器:mode = time Snipaste_2025-02-18_16-14-52
4. 日期选择器:mode = date Snipaste_2025-02-18_16-14-52
5. 省市区选择器:mode = region Snipaste_2025-02-18_16-14-52

@wangshunnn wangshunnn changed the title Refactor: RN Pikcer 重构(移除 @ant-design) Refactor: RN Picker 重构(移除 @ant-design) Feb 24, 2025
@wangshunnn wangshunnn requested a review from hiyuki February 24, 2025 12:31
@hiyuki hiyuki merged commit 0055574 into didi:master Apr 2, 2025
3 checks passed
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.

2 participants