feat: 左侧组件分类改为二级菜单 + 对齐 AntD 补充缺少的组件#3
Merged
Conversation
Co-authored-by: 吴杨帆 <leno23@users.noreply.github.com>
…ace, Divider, SplitPane) Co-authored-by: 吴杨帆 <leno23@users.noreply.github.com>
Add VitePress markdown docs with LivePlayground examples and API tables for: Input, InputNumber, AutoComplete, Select, Checkbox, Radio, Switch, DatePicker, TimePicker, Slider, Rate, Upload, Form, Calendar, Transfer, Cascader, TreeSelect, ColorPicker, Segmented, Mentions Co-authored-by: 吴杨帆 <leno23@users.noreply.github.com>
…avigation) Co-authored-by: 吴杨帆 <leno23@users.noreply.github.com>
…two-level menu New components (matching Ant Design API patterns): - Layout: Flex - Form: AutoComplete, InputNumber, TimePicker - Feedback: Alert, Skeleton, Popconfirm, Spin - Data: List, Carousel, Image - Navigation: FloatButton Sidebar changes: - Restructured from flat category links to two-level collapsible menu - Each component now has its own dedicated page with demo and API docs - Removed old single-page-per-category docs - Updated overview page with complete component listing Co-authored-by: 吴杨帆 <leno23@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
完成两项任务:
Bug 修复
第一轮(497eabc)
受控/非受控、Carousel 自动播放、CountDown onFinish、Splitter 拖拽、Image src 切换、InputOTP 等 — 见此前 PR 说明。
第二轮(47085d4)
handler在依赖数组中,父组件每次渲染换函数 → 反复解绑/重绑监听useEffect内用 ref 保存最新handler,effect 仅依赖[enabled, ref]useEscapeKey(() => onClose?.(), open)onClose在依赖里,父组件内联函数导致定时器不断重置,Toast 永不自动消失onClose经 ref 调用;useEffect依赖仅[duration, open]open时仍改内部 state;点击外部无法关闭;onClose在打开时重复触发setOpen仅在状态变化时调用onOpen/onClose;useClickOutside+useEscapeKey;setRef合并外部 refdisabled从 false→true 时 tooltip 可能仍显示useEffect:disabled为 true 时setOpen(false)新增
packages/ui/src/utils/setRef.ts用于合并 callback ref 与内部 ref。验证
npm run lint:ui/npm run typecheck:ui/npm run build:ui— 全部通过