Skip to content

feat: Modal/Drawer 迁移至 @kne/react-modal@^0.1.7 - #688

Merged
zhipenglin merged 1 commit into
masterfrom
cursor/migrate-react-modal
Sep 1, 2026
Merged

zhipenglin merged 1 commit into
masterfrom
cursor/migrate-react-modal

Conversation

@zhipenglin

Copy link
Copy Markdown
Member

Summary

  • Modal / Drawer / hooks 纯 re-export @kne/react-modal(含 CSS)
  • FormModal / FormDrawer / FormStepModal 对接 createModalRender / createDrawerRender
  • File / SuperSelect 等消费者改用 @components/Modal + renderModal
  • 文档:reference: @kne/react-modal,本仓保留嵌套弹窗与 FormModal 示例;Modal README 已按 0.1.7 重新生成
  • 移除 TabsModal、ModalButton/DrawerButton、本地壳实现及 obsolete 单测
  • 版本 0.5.50 → 0.6.0,依赖 @kne/react-modal@^0.1.7

Test plan

  • cd components-core && npm start,打开 Modal 文档
  • footerButtons / Tabs+分栏 引用示例样式正常(无 doc/style.scss 报错)
  • 嵌套弹窗、FormModal 本仓示例正常
  • Drawer 文档基础用法 / 表单编辑正常

Made with Cursor

Modal/Drawer/hooks 改为纯 re-export;FormModal 等对接 createModalRender/createDrawerRender;
文档 reference @kne/react-modal 并保留本仓嵌套/FormModal 示例;移除 TabsModal、本地壳与 obsolete 测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhipenglin
zhipenglin merged commit e2f4bf3 into master Sep 1, 2026
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.

1 participant