weifuwu 0.85.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -45
- package/content/apps/admin.md +55 -0
- package/content/apps/agent-platform.md +35 -0
- package/content/apps/auth.md +49 -0
- package/content/apps/multi.md +44 -0
- package/content/apps/todo.md +51 -0
- package/content/backend/ai.md +28 -0
- package/content/backend/auth.md +20 -0
- package/content/backend/email.md +23 -0
- package/content/backend/graphql.md +23 -0
- package/content/backend/http.md +23 -0
- package/content/backend/limit.md +23 -0
- package/content/backend/middleware.md +17 -0
- package/content/backend/queue.md +23 -0
- package/content/backend/redis.md +26 -0
- package/content/backend/router.md +23 -0
- package/content/backend/schedule.md +23 -0
- package/content/backend/sql.md +27 -0
- package/content/backend/sse.md +26 -0
- package/content/backend/ws.md +26 -0
- package/content/capabilities/app-node.md +21 -0
- package/content/capabilities/data.md +21 -0
- package/content/capabilities/events.md +21 -0
- package/content/capabilities/hooks.md +22 -0
- package/content/capabilities/i18n.md +21 -0
- package/content/capabilities/popup.md +21 -0
- package/content/capabilities/render-only.md +23 -0
- package/content/capabilities/router.md +22 -0
- package/content/capabilities/self-id.md +21 -0
- package/content/capabilities/store.md +21 -0
- package/content/capabilities/theme.md +21 -0
- package/content/capabilities/two-phase.md +21 -0
- package/content/components/accordion.md +50 -0
- package/content/components/actionsheet.md +46 -0
- package/content/components/affix.md +51 -0
- package/content/components/aichat.md +57 -0
- package/content/components/alert.md +52 -0
- package/content/components/alertgroup.md +45 -0
- package/content/components/anchor.md +52 -0
- package/content/components/app.md +37 -0
- package/content/components/approvalcard.md +56 -0
- package/content/components/appshell.md +50 -0
- package/content/components/aspectratio.md +47 -0
- package/content/components/authpage.md +61 -0
- package/content/components/autocomplete-v2.md +40 -0
- package/content/components/autocomplete.md +56 -0
- package/content/components/avatar.md +51 -0
- package/content/components/avatargroup.md +47 -0
- package/content/components/backtop.md +53 -0
- package/content/components/badge.md +55 -0
- package/content/components/breadcrumb.md +49 -0
- package/content/components/button.md +63 -0
- package/content/components/calendar-v2.md +40 -0
- package/content/components/calendar.md +50 -0
- package/content/components/card.md +58 -0
- package/content/components/carousel.md +52 -0
- package/content/components/cascader-v2.md +39 -0
- package/content/components/cascader.md +54 -0
- package/content/components/chart.md +53 -0
- package/content/components/chatinput.md +63 -0
- package/content/components/checkbox.md +51 -0
- package/content/components/checkboxgroup.md +52 -0
- package/content/components/citationcard.md +48 -0
- package/content/components/codeblock.md +48 -0
- package/content/components/codeeditor.md +47 -0
- package/content/components/collapse.md +49 -0
- package/content/components/colorpicker.md +50 -0
- package/content/components/command.md +50 -0
- package/content/components/confirm.md +57 -0
- package/content/components/contextmenu.md +48 -0
- package/content/components/copybutton.md +51 -0
- package/content/components/datepicker.md +52 -0
- package/content/components/descriptions-v2.md +39 -0
- package/content/components/descriptions.md +52 -0
- package/content/components/diffview-v2.md +39 -0
- package/content/components/diffview.md +50 -0
- package/content/components/divider.md +48 -0
- package/content/components/drawer.md +55 -0
- package/content/components/dropdown.md +53 -0
- package/content/components/editor.md +49 -0
- package/content/components/emptystate.md +51 -0
- package/content/components/exportcsv.md +38 -0
- package/content/components/field.md +54 -0
- package/content/components/filepreview-office.md +37 -0
- package/content/components/filepreview.md +49 -0
- package/content/components/filetree.md +56 -0
- package/content/components/fileupload-v2.md +39 -0
- package/content/components/fileupload.md +57 -0
- package/content/components/floatbutton.md +52 -0
- package/content/components/form-v2.md +41 -0
- package/content/components/form.md +60 -0
- package/content/components/grid.md +51 -0
- package/content/components/highlight-v2.md +39 -0
- package/content/components/highlight.md +46 -0
- package/content/components/hovercard.md +51 -0
- package/content/components/icon.md +50 -0
- package/content/components/imagecropper.md +45 -0
- package/content/components/img.md +56 -0
- package/content/components/infinitescroll-v2.md +40 -0
- package/content/components/infinitescroll.md +54 -0
- package/content/components/input.md +65 -0
- package/content/components/inputnumber.md +58 -0
- package/content/components/inview.md +56 -0
- package/content/components/jsonschemaform.md +53 -0
- package/content/components/jsonviewer-v2.md +39 -0
- package/content/components/jsonviewer.md +49 -0
- package/content/components/kanban.md +46 -0
- package/content/components/label.md +48 -0
- package/content/components/layout.md +54 -0
- package/content/components/layoutcontent.md +43 -0
- package/content/components/layoutheader.md +43 -0
- package/content/components/layoutsider.md +43 -0
- package/content/components/link.md +52 -0
- package/content/components/list.md +44 -0
- package/content/components/loading.md +45 -0
- package/content/components/logviewer-v2.md +39 -0
- package/content/components/logviewer.md +53 -0
- package/content/components/markdown.md +51 -0
- package/content/components/markdowneditor.md +47 -0
- package/content/components/math.md +42 -0
- package/content/components/mentions-v2.md +39 -0
- package/content/components/mentions.md +52 -0
- package/content/components/menu.md +56 -0
- package/content/components/menubar.md +44 -0
- package/content/components/messagebubble.md +50 -0
- package/content/components/modal.md +59 -0
- package/content/components/navmenu.md +47 -0
- package/content/components/notification.md +51 -0
- package/content/components/pageheader.md +53 -0
- package/content/components/pagination.md +49 -0
- package/content/components/paragraph.md +45 -0
- package/content/components/passwordinput.md +57 -0
- package/content/components/pininput-v2.md +39 -0
- package/content/components/pininput.md +50 -0
- package/content/components/pipeline.md +49 -0
- package/content/components/popconfirm.md +58 -0
- package/content/components/popover.md +61 -0
- package/content/components/progressbar.md +50 -0
- package/content/components/prompttemplate.md +49 -0
- package/content/components/qrcode.md +50 -0
- package/content/components/radiogroup.md +53 -0
- package/content/components/rate.md +53 -0
- package/content/components/reasoningblock.md +47 -0
- package/content/components/relationgraph.md +52 -0
- package/content/components/resizable.md +53 -0
- package/content/components/result.md +49 -0
- package/content/components/scrollbar.md +49 -0
- package/content/components/searchinput.md +51 -0
- package/content/components/segmentedcontrol.md +59 -0
- package/content/components/select-searchable.md +47 -0
- package/content/components/select.md +66 -0
- package/content/components/sessionlist.md +52 -0
- package/content/components/sheetgrid.md +44 -0
- package/content/components/skeleton.md +55 -0
- package/content/components/slidecanvas.md +44 -0
- package/content/components/slider.md +62 -0
- package/content/components/sortablelist.md +39 -0
- package/content/components/space.md +52 -0
- package/content/components/sparkline.md +52 -0
- package/content/components/statcard-countdown.md +39 -0
- package/content/components/statcard.md +56 -0
- package/content/components/steps.md +48 -0
- package/content/components/switch.md +50 -0
- package/content/components/tabbar.md +45 -0
- package/content/components/table-v2.md +40 -0
- package/content/components/table.md +66 -0
- package/content/components/tabs.md +56 -0
- package/content/components/tag.md +51 -0
- package/content/components/tagsinput-v2.md +39 -0
- package/content/components/tagsinput.md +54 -0
- package/content/components/text.md +45 -0
- package/content/components/textarea.md +57 -0
- package/content/components/themeswitch.md +69 -0
- package/content/components/timeline.md +50 -0
- package/content/components/title.md +45 -0
- package/content/components/toast.md +52 -0
- package/content/components/toggle-togglegroup.md +52 -0
- package/content/components/togglegroup.md +47 -0
- package/content/components/toolcallcard.md +51 -0
- package/content/components/tooltip.md +50 -0
- package/content/components/tour.md +50 -0
- package/content/components/transfer.md +52 -0
- package/content/components/tree-v2.md +39 -0
- package/content/components/tree.md +59 -0
- package/content/components/treeselect.md +54 -0
- package/content/components/typography.md +51 -0
- package/content/components/videoplayer.md +52 -0
- package/content/components/virtuallist.md +52 -0
- package/content/components/virtualtable-v2.md +39 -0
- package/content/components/virtualtable.md +55 -0
- package/content/components/watermark.md +53 -0
- package/content/components/wave.md +43 -0
- package/content/guides/ai-chat-family.md +24 -0
- package/content/guides/choose.md +67 -0
- package/content/guides/component-model.md +32 -0
- package/content/guides/component-standards.md +123 -0
- package/{docs/components.md → content/guides/components-guide.md} +153 -7
- package/{docs/custom-components.md → content/guides/custom-component.md} +70 -55
- package/{docs/data.md → content/guides/data-guide.md} +5 -2
- package/content/guides/file-preview-family.md +18 -0
- package/{docs → content/guides}/frontend.md +122 -52
- package/content/guides/layout-choice.md +64 -0
- package/{docs/layout.md → content/guides/layout-guide.md} +12 -8
- package/{docs/frontend-middleware.md → content/guides/middleware.md} +34 -3
- package/{docs/mobile.md → content/guides/mobile-guide.md} +20 -24
- package/content/guides/page-building.md +98 -0
- package/content/guides/production.md +37 -0
- package/content/guides/quality.md +60 -0
- package/{docs/realtime.md → content/guides/realtime-guide.md} +6 -3
- package/content/guides/render-only.md +44 -0
- package/{docs/saas.md → content/guides/saas-guide.md} +8 -5
- package/{docs/server.md → content/guides/server-guide.md} +5 -2
- package/content/guides/start.md +41 -0
- package/{docs → content/guides}/styling.md +5 -1
- package/{docs/frontend-ui-dom.md → content/guides/ui-dom-guide.md} +7 -1
- package/content/index.json +4344 -0
- package/content/index.md +181 -0
- package/content/layout/align.md +20 -0
- package/content/layout/anchor.md +19 -0
- package/content/layout/app-shell.md +23 -0
- package/content/layout/border.md +20 -0
- package/content/layout/center.md +19 -0
- package/content/layout/cluster.md +19 -0
- package/content/layout/container.md +19 -0
- package/content/layout/fill.md +19 -0
- package/content/layout/grid.md +19 -0
- package/content/layout/hidden.md +22 -0
- package/content/layout/layer.md +19 -0
- package/content/layout/position.md +22 -0
- package/content/layout/row.md +23 -0
- package/content/layout/safe-area.md +20 -0
- package/content/layout/scroll.md +21 -0
- package/content/layout/spacing.md +22 -0
- package/content/layout/split.md +19 -0
- package/content/layout/stack.md +19 -0
- package/content/layout/surface.md +23 -0
- package/content/layout/text.md +22 -0
- package/content/patterns/app-shell.md +34 -0
- package/content/patterns/dashboard.md +36 -0
- package/content/patterns/data-screen.md +30 -0
- package/content/patterns/detail-page.md +31 -0
- package/content/patterns/docs.md +34 -0
- package/content/patterns/focus-task.md +34 -0
- package/content/patterns/landing.md +35 -0
- package/content/patterns/list-page.md +32 -0
- package/content/patterns/mobile.md +31 -0
- package/content/patterns/settings-page.md +33 -0
- package/content/patterns/workspace.md +32 -0
- package/dist/cli/apps-typecheck.test.d.ts +11 -0
- package/dist/cli/docs.d.ts +2 -0
- package/dist/cli/docs.mjs +10961 -0
- package/dist/cli/home-flash.test.d.ts +1 -0
- package/dist/{components → client/components}/Accordion/Accordion.d.ts +1 -1
- package/dist/client/components/ActionSheet/ActionSheet.d.ts +37 -0
- package/dist/{components → client/components}/Affix/Affix.d.ts +1 -1
- package/dist/{components → client/components}/AiChat/AiChat.d.ts +3 -3
- package/dist/{components → client/components}/Alert/Alert.d.ts +1 -1
- package/dist/{components → client/components}/AlertGroup/AlertGroup.d.ts +1 -1
- package/dist/{components → client/components}/Anchor/Anchor.d.ts +1 -1
- package/dist/client/components/AppShell/AppShell.d.ts +55 -0
- package/dist/{components → client/components}/ApprovalCard/ApprovalCard.d.ts +2 -2
- package/dist/{components → client/components}/AspectRatio/AspectRatio.d.ts +1 -1
- package/dist/{components → client/components}/AuthPage/AuthPage.d.ts +2 -2
- package/dist/{components → client/components}/AutoComplete/AutoComplete.d.ts +1 -1
- package/dist/{components → client/components}/Avatar/Avatar.d.ts +1 -1
- package/dist/{components → client/components}/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/{components → client/components}/BackTop/BackTop.d.ts +1 -1
- package/dist/{components → client/components}/Badge/Badge.d.ts +1 -1
- package/dist/{components → client/components}/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/{components → client/components}/Button/Button.d.ts +1 -1
- package/dist/{components → client/components}/Calendar/Calendar.d.ts +1 -1
- package/dist/{components → client/components}/Card/Card.d.ts +1 -1
- package/dist/{components → client/components}/Carousel/Carousel.d.ts +1 -1
- package/dist/{components → client/components}/Cascader/Cascader.d.ts +1 -1
- package/dist/{components → client/components}/Chart/Chart.d.ts +1 -1
- package/dist/{components → client/components}/Chart/chart-utils.d.ts +5 -1
- package/dist/{components → client/components}/ChatInput/ChatInput.d.ts +7 -7
- package/dist/{components → client/components}/Checkbox/Checkbox.d.ts +1 -1
- package/dist/{components → client/components}/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/{components → client/components}/CitationCard/CitationCard.d.ts +3 -3
- package/dist/{components → client/components}/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/client/components/CodeEditor/CodeEditor.d.ts +18 -0
- package/dist/{components → client/components}/Collapse/Collapse.d.ts +1 -1
- package/dist/{components → client/components}/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/{components → client/components}/Command/Command.d.ts +1 -1
- package/dist/{components → client/components}/Confirm/Confirm.d.ts +2 -7
- package/dist/{components → client/components}/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/{components → client/components}/CopyButton/CopyButton.d.ts +1 -1
- package/dist/{components → client/components}/DatePicker/DatePicker.d.ts +2 -2
- package/dist/{components → client/components}/Descriptions/Descriptions.d.ts +1 -1
- package/dist/{components → client/components}/DiffView/DiffView.d.ts +1 -1
- package/dist/{components → client/components}/Divider/Divider.d.ts +1 -1
- package/dist/{components → client/components}/Drawer/Drawer.d.ts +1 -1
- package/dist/{components → client/components}/Dropdown/Dropdown.d.ts +1 -1
- package/dist/client/components/Editor/Editor.d.ts +14 -0
- package/dist/client/components/Editor/edit-events.d.ts +27 -0
- package/dist/client/components/Editor/model/apply.d.ts +23 -0
- package/dist/client/components/Editor/model/diff.d.ts +25 -0
- package/dist/client/components/Editor/model/dom.d.ts +27 -0
- package/dist/client/components/Editor/model/history.d.ts +21 -0
- package/dist/client/components/Editor/model/html.d.ts +16 -0
- package/dist/client/components/Editor/model/inverse.d.ts +20 -0
- package/dist/client/components/Editor/model/types.d.ts +116 -0
- package/dist/client/components/Editor/tools/table.d.ts +10 -0
- package/dist/{components → client/components}/Editor/tools/toolbar.d.ts +2 -2
- package/dist/client/components/Editor/tools/types.d.ts +40 -0
- package/dist/{components → client/components}/EmptyState/EmptyState.d.ts +1 -1
- package/dist/client/components/ExportCSV/ExportCSV.d.ts +30 -0
- package/dist/{components → client/components}/Field/Field.d.ts +1 -1
- package/dist/client/components/FilePreview/FilePreview.d.ts +42 -0
- package/dist/client/components/FilePreview/markdown.d.ts +23 -0
- package/dist/client/components/FileTree/FileTree.d.ts +57 -0
- package/dist/{components → client/components}/FileUpload/FileUpload.d.ts +1 -1
- package/dist/{components → client/components}/FloatButton/FloatButton.d.ts +1 -1
- package/dist/{components → client/components}/Form/Form.d.ts +1 -1
- package/dist/{components → client/components}/Grid/Grid.d.ts +1 -1
- package/dist/{components → client/components}/Highlight/Highlight.d.ts +1 -1
- package/dist/{components → client/components}/HoverCard/HoverCard.d.ts +5 -4
- package/dist/{components → client/components}/Icon/Icon.d.ts +2 -2
- package/dist/client/components/ImageCropper/ImageCropper.d.ts +17 -0
- package/dist/{components → client/components}/Img/Img.d.ts +1 -1
- package/dist/{components → client/components}/InView/InView.d.ts +1 -1
- package/dist/{components → client/components}/InfiniteScroll/InfiniteScroll.d.ts +1 -1
- package/dist/{components → client/components}/Input/Input.d.ts +1 -1
- package/dist/{components → client/components}/InputNumber/InputNumber.d.ts +1 -1
- package/dist/{components → client/components}/JSONViewer/JSONViewer.d.ts +1 -1
- package/dist/{components → client/components}/JsonSchemaForm/JsonSchemaForm.d.ts +3 -3
- package/dist/{components → client/components}/Kanban/Kanban.d.ts +1 -1
- package/dist/{components → client/components}/Label/Label.d.ts +1 -1
- package/dist/{components → client/components}/Layout/Layout.d.ts +1 -1
- package/dist/{components → client/components}/Link/Link.d.ts +1 -1
- package/dist/{components → client/components}/List/List.d.ts +1 -1
- package/dist/{components → client/components}/Loading/Loading.d.ts +1 -1
- package/dist/{components → client/components}/LogViewer/LogViewer.d.ts +1 -1
- package/dist/{components → client/components}/Markdown/Markdown.d.ts +1 -1
- package/dist/client/components/MarkdownEditor/MarkdownEditor.d.ts +18 -0
- package/dist/client/components/Math/Math.d.ts +15 -0
- package/dist/{components → client/components}/Mentions/Mentions.d.ts +1 -1
- package/dist/{components → client/components}/Menu/Menu.d.ts +1 -1
- package/dist/{components → client/components}/Menubar/Menubar.d.ts +1 -1
- package/dist/{components → client/components}/MessageBubble/MessageBubble.d.ts +1 -1
- package/dist/{components → client/components}/Modal/Modal.d.ts +1 -1
- package/dist/{components → client/components}/NavMenu/NavMenu.d.ts +2 -2
- package/dist/{components → client/components}/Notification/Notification.d.ts +7 -2
- package/dist/client/components/OfficeEditor/ai/ai-bridge.d.ts +39 -0
- package/dist/client/components/OfficeEditor/model/apply.d.ts +25 -0
- package/dist/client/components/OfficeEditor/model/types.d.ts +224 -0
- package/dist/{components → client/components}/PageHeader/PageHeader.d.ts +1 -1
- package/dist/{components → client/components}/Pagination/Pagination.d.ts +1 -1
- package/dist/{components → client/components}/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/{components → client/components}/PinInput/PinInput.d.ts +1 -1
- package/dist/{components → client/components}/Pipeline/Pipeline.d.ts +1 -1
- package/dist/{components → client/components}/Popconfirm/Popconfirm.d.ts +2 -2
- package/dist/{components → client/components}/Popover/Popover.d.ts +5 -4
- package/dist/{components → client/components}/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/client/components/PromptTemplate/PromptTemplate.d.ts +37 -0
- package/dist/{components → client/components}/QRCode/QRCode.d.ts +1 -1
- package/dist/{components → client/components}/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/{components → client/components}/Rate/Rate.d.ts +1 -1
- package/dist/{components → client/components}/ReasoningBlock/ReasoningBlock.d.ts +3 -3
- package/dist/client/components/RelationGraph/RelationGraph.d.ts +59 -0
- package/dist/{components → client/components}/Resizable/Resizable.d.ts +1 -1
- package/dist/{components → client/components}/Result/Result.d.ts +1 -1
- package/dist/{components → client/components}/Scrollbar/Scrollbar.d.ts +1 -1
- package/dist/{components → client/components}/SearchInput/SearchInput.d.ts +1 -1
- package/dist/{components → client/components}/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/{components → client/components}/Select/Select.d.ts +1 -1
- package/dist/{components → client/components}/SessionList/SessionList.d.ts +3 -3
- package/dist/client/components/SheetGrid/SheetGrid.d.ts +30 -0
- package/dist/{components → client/components}/Skeleton/Skeleton.d.ts +1 -1
- package/dist/client/components/SlideCanvas/SlideCanvas.d.ts +28 -0
- package/dist/client/components/Slider/Slider.d.ts +27 -0
- package/dist/client/components/SortableList/SortableList.d.ts +23 -0
- package/dist/{components → client/components}/Space/Space.d.ts +1 -1
- package/dist/{components → client/components}/Sparkline/Sparkline.d.ts +1 -1
- package/dist/{components → client/components}/StatCard/StatCard.d.ts +1 -1
- package/dist/{components → client/components}/Steps/Steps.d.ts +1 -1
- package/dist/{components → client/components}/Switch/Switch.d.ts +1 -1
- package/dist/client/components/TabBar/TabBar.d.ts +35 -0
- package/dist/{components → client/components}/Table/Table.d.ts +7 -1
- package/dist/client/components/Tabs/Tabs.d.ts +22 -0
- package/dist/{components → client/components}/Tag/Tag.d.ts +1 -1
- package/dist/{components → client/components}/TagsInput/TagsInput.d.ts +1 -1
- package/dist/{components → client/components}/Textarea/Textarea.d.ts +1 -1
- package/dist/{components → client/components}/ThemeSwitch/ThemeSwitch.d.ts +1 -1
- package/dist/{components → client/components}/Timeline/Timeline.d.ts +1 -1
- package/dist/{components → client/components}/Toast/Toast.d.ts +1 -1
- package/dist/{components → client/components}/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/{components → client/components}/ToolCallCard/ToolCallCard.d.ts +2 -2
- package/dist/{components → client/components}/Tooltip/Tooltip.d.ts +4 -3
- package/dist/{components → client/components}/Tour/Tour.d.ts +1 -1
- package/dist/{components → client/components}/Transfer/Transfer.d.ts +1 -1
- package/dist/{components → client/components}/Tree/Tree.d.ts +5 -1
- package/dist/{components → client/components}/TreeSelect/TreeSelect.d.ts +5 -1
- package/dist/{components → client/components}/Typography/Typography.d.ts +1 -1
- package/dist/client/components/VideoPlayer/VideoPlayer.d.ts +25 -0
- package/dist/{components → client/components}/VirtualList/VirtualList.d.ts +1 -1
- package/dist/{components → client/components}/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/{components → client/components}/Watermark/Watermark.d.ts +1 -1
- package/dist/client/components/Wave/Wave.d.ts +15 -0
- package/dist/{components → client/components}/index.d.ts +48 -2
- package/dist/client/components/index.js +57 -0
- package/dist/{components → client/components}/style.css +3554 -1896
- package/dist/{layout → client/layout}/weifuwu-layout.css +60 -6
- package/dist/client/office/docx.d.ts +33 -0
- package/dist/client/office/pptx.d.ts +24 -0
- package/dist/client/office/xlsx.d.ts +25 -0
- package/dist/client/office/xml-serialize.d.ts +18 -0
- package/dist/client/office/xml.d.ts +21 -0
- package/dist/client/office/zip.d.ts +21 -0
- package/dist/client/vdom/browser/Browser.d.ts +73 -0
- package/dist/client/vdom/browser/create-client-browser.d.ts +11 -0
- package/dist/client/vdom/commands.d.ts +19 -0
- package/dist/client/vdom/context/UIContext.d.ts +61 -0
- package/dist/client/vdom/context/data.d.ts +17 -0
- package/dist/client/vdom/core/async-guard.d.ts +20 -0
- package/dist/client/vdom/core/build.d.ts +36 -0
- package/dist/client/vdom/core/command/create.d.ts +25 -0
- package/dist/client/vdom/core/command/index.d.ts +15 -0
- package/dist/client/vdom/core/command/insert.d.ts +32 -0
- package/dist/client/vdom/core/command/lifecycle.d.ts +47 -0
- package/dist/client/vdom/core/command/props.d.ts +22 -0
- package/dist/client/vdom/core/diff/attrs.d.ts +10 -0
- package/dist/client/vdom/core/diff/children.d.ts +29 -0
- package/dist/client/vdom/core/diff/cleanup.d.ts +44 -0
- package/dist/client/vdom/core/diff/index.d.ts +22 -0
- package/dist/client/vdom/core/diff/output.d.ts +30 -0
- package/dist/client/vdom/core/diff/same.d.ts +22 -0
- package/dist/client/vdom/core/field/attributes.d.ts +15 -0
- package/dist/client/vdom/core/field/events.d.ts +54 -0
- package/dist/client/vdom/core/field/index.d.ts +19 -0
- package/dist/client/vdom/core/field/key.d.ts +16 -0
- package/dist/client/vdom/core/field/props.d.ts +15 -0
- package/dist/client/vdom/core/field/ref.d.ts +38 -0
- package/dist/client/vdom/core/field/style.d.ts +17 -0
- package/dist/client/vdom/core/node/children.d.ts +20 -0
- package/dist/client/vdom/core/node/component.d.ts +93 -0
- package/dist/client/vdom/core/node/fragment.d.ts +14 -0
- package/dist/client/vdom/core/node/hole.d.ts +22 -0
- package/dist/client/vdom/core/node/index.d.ts +35 -0
- package/dist/client/vdom/core/node/keyed.d.ts +64 -0
- package/dist/client/vdom/core/node/native.d.ts +20 -0
- package/dist/client/vdom/core/node/portal.d.ts +11 -0
- package/dist/client/vdom/core/patch/fields.d.ts +15 -0
- package/dist/client/vdom/core/patch/index.d.ts +51 -0
- package/dist/client/vdom/core/patch/processors.d.ts +75 -0
- package/dist/client/vdom/core/patch/state-machine.d.ts +38 -0
- package/dist/client/vdom/core/patch/verify.d.ts +17 -0
- package/dist/client/vdom/core/router.d.ts +31 -0
- package/dist/client/vdom/core/serve.d.ts +75 -0
- package/dist/client/vdom/core/ssr/absorb.d.ts +53 -0
- package/dist/client/vdom/core/ssr/html.d.ts +32 -0
- package/dist/client/vdom/core/ssr/index.d.ts +25 -0
- package/dist/client/vdom/core/transform/component.d.ts +23 -0
- package/dist/client/vdom/core/transform/element.d.ts +21 -0
- package/dist/client/vdom/core/transform/fragment.d.ts +21 -0
- package/dist/client/vdom/core/transform/hole.d.ts +13 -0
- package/dist/client/vdom/core/transform/index.d.ts +46 -0
- package/dist/client/vdom/core/transform/states.d.ts +22 -0
- package/dist/client/vdom/core/transform/table.d.ts +28 -0
- package/dist/client/vdom/core/transform/text.d.ts +10 -0
- package/dist/client/vdom/core/vnode.d.ts +45 -0
- package/dist/client/vdom/dev/effect-guard.d.ts +8 -0
- package/dist/client/vdom/hooks/ai-stream.d.ts +46 -0
- package/dist/client/vdom/hooks/basic.d.ts +42 -0
- package/dist/client/vdom/hooks/chat.d.ts +91 -0
- package/dist/client/vdom/hooks/controlled.d.ts +27 -0
- package/dist/client/vdom/hooks/drag-media.d.ts +52 -0
- package/dist/client/vdom/hooks/env.d.ts +119 -0
- package/dist/client/vdom/hooks/input.d.ts +43 -0
- package/dist/client/vdom/hooks/observe.d.ts +60 -0
- package/dist/client/vdom/hooks/popup-manager.d.ts +92 -0
- package/dist/client/vdom/hooks/popup.d.ts +52 -0
- package/dist/client/vdom/hooks/stable.d.ts +45 -0
- package/dist/client/vdom/index.d.ts +67 -0
- package/dist/client/vdom/index.js +8 -0
- package/dist/client/vdom/jsx-runtime.d.ts +28 -0
- package/dist/client/vdom/jsx-runtime.js +1 -0
- package/dist/client/vdom/middlewares/api.d.ts +38 -0
- package/dist/client/vdom/middlewares/auth-i18n.d.ts +66 -0
- package/dist/client/vdom/middlewares/ws.d.ts +37 -0
- package/dist/client/vdom/store.d.ts +49 -0
- package/dist/client/vdom/testing.d.ts +46 -0
- package/dist/client/vdom/testing.js +2 -0
- package/dist/dev/index.d.ts +12 -0
- package/dist/dev/index.js +4 -4
- package/dist/{ai → server/ai}/contracts.d.ts +1 -1
- package/dist/{ai → server/ai}/index.d.ts +2 -2
- package/dist/{ai → server/ai}/types.d.ts +1 -1
- package/dist/{core → server/core}/router.d.ts +2 -4
- package/dist/{db → server/db}/contracts.d.ts +1 -1
- package/dist/server/db/postgres-server.d.ts +37 -0
- package/dist/server/db/redis-server.d.ts +32 -0
- package/dist/server/db/server.d.ts +30 -0
- package/dist/server/db/test-servers.d.ts +21 -0
- package/dist/{email → server/email}/contracts.d.ts +1 -1
- package/dist/{index.js → server/index.js} +3147 -2462
- package/dist/{ui → server/ui}/index.d.ts +2 -2
- package/dist/{user → server/user}/token.d.ts +1 -1
- package/dist/shared/router/trie.d.ts +61 -0
- package/docs/components-map.md +16 -4
- package/docs/style-guide.md +14 -2
- package/examples/apps/admin/README.md +23 -0
- package/examples/apps/admin/api.ts +27 -0
- package/examples/apps/admin/app.tsx +144 -0
- package/examples/apps/admin/main.tsx +8 -0
- package/examples/apps/admin/server.ts +37 -0
- package/examples/apps/auth/README.md +23 -0
- package/examples/apps/auth/api.ts +49 -0
- package/examples/apps/auth/app.tsx +137 -0
- package/examples/apps/auth/main.tsx +8 -0
- package/examples/apps/auth/server.ts +37 -0
- package/examples/apps/multi/README.md +23 -0
- package/examples/apps/multi/app.tsx +83 -0
- package/examples/apps/multi/main.tsx +8 -0
- package/examples/apps/multi/server.ts +33 -0
- package/examples/apps/todo/README.md +23 -0
- package/examples/apps/todo/api.ts +26 -0
- package/examples/apps/todo/app.tsx +128 -0
- package/examples/apps/todo/main.tsx +9 -0
- package/examples/apps/todo/server.ts +39 -0
- package/examples/hello-world/README.md +9 -0
- package/examples/hello-world/client.ts +14 -0
- package/examples/hello-world/routes.tsx +26 -0
- package/examples/hello-world/server.ts +46 -0
- package/examples/patterns/AppShell.tsx +224 -0
- package/examples/patterns/Dashboard.tsx +153 -0
- package/examples/patterns/DataScreen.tsx +104 -0
- package/examples/patterns/DetailPage.tsx +79 -0
- package/examples/patterns/Docs.tsx +105 -0
- package/examples/patterns/FocusTask.tsx +67 -0
- package/examples/patterns/Landing.tsx +90 -0
- package/examples/patterns/ListPage.tsx +77 -0
- package/examples/patterns/Mobile.tsx +154 -0
- package/examples/patterns/SettingsPage.tsx +98 -0
- package/examples/patterns/SplitWorkspace.tsx +113 -0
- package/package.json +61 -29
- package/dist/components/Editor/Editor.d.ts +0 -13
- package/dist/components/Editor/tools/format.d.ts +0 -11
- package/dist/components/Editor/tools/table.d.ts +0 -7
- package/dist/components/Editor/tools/types.d.ts +0 -15
- package/dist/components/Slider/Slider.d.ts +0 -19
- package/dist/components/Tabs/Tabs.d.ts +0 -12
- package/dist/components/index.js +0 -15
- package/dist/ui-dom/Confirm.d.ts +0 -8
- package/dist/ui-dom/Notification.d.ts +0 -8
- package/dist/ui-dom/Toast.d.ts +0 -8
- package/dist/ui-dom/ai.d.ts +0 -59
- package/dist/ui-dom/browser.d.ts +0 -10
- package/dist/ui-dom/debug.d.ts +0 -21
- package/dist/ui-dom/hooks/chat.d.ts +0 -11
- package/dist/ui-dom/hooks/events.d.ts +0 -30
- package/dist/ui-dom/hooks/external.d.ts +0 -20
- package/dist/ui-dom/hooks/index.d.ts +0 -29
- package/dist/ui-dom/hooks/input.d.ts +0 -33
- package/dist/ui-dom/hooks/media.d.ts +0 -17
- package/dist/ui-dom/hooks/popup.d.ts +0 -30
- package/dist/ui-dom/hooks/stable.d.ts +0 -35
- package/dist/ui-dom/hooks/types.d.ts +0 -77
- package/dist/ui-dom/i18n.d.ts +0 -31
- package/dist/ui-dom/index.d.ts +0 -47
- package/dist/ui-dom/index.js +0 -41
- package/dist/ui-dom/jsx-runtime.d.ts +0 -4
- package/dist/ui-dom/jsx-runtime.js +0 -1
- package/dist/ui-dom/locale/en_US.d.ts +0 -55
- package/dist/ui-dom/locale/zh_CN.d.ts +0 -55
- package/dist/ui-dom/middleware/api.d.ts +0 -91
- package/dist/ui-dom/middleware/auth.d.ts +0 -30
- package/dist/ui-dom/middleware/ws.d.ts +0 -33
- package/dist/ui-dom/motion.d.ts +0 -8
- package/dist/ui-dom/popup-tracker.d.ts +0 -36
- package/dist/ui-dom/popup.d.ts +0 -42
- package/dist/ui-dom/store.d.ts +0 -24
- package/dist/ui-dom/testing.d.ts +0 -68
- package/dist/ui-dom/testing.js +0 -7
- package/dist/ui-dom/types.d.ts +0 -632
- package/dist/ui-dom/use-chat.d.ts +0 -95
- package/dist/ui-dom/vdom3/README.d.ts +0 -32
- package/dist/ui-dom/vdom3/app.d.ts +0 -20
- package/dist/ui-dom/vdom3/audit.d.ts +0 -29
- package/dist/ui-dom/vdom3/build.d.ts +0 -20
- package/dist/ui-dom/vdom3/commands.d.ts +0 -21
- package/dist/ui-dom/vdom3/comp-index.d.ts +0 -18
- package/dist/ui-dom/vdom3/delegate.d.ts +0 -48
- package/dist/ui-dom/vdom3/events.d.ts +0 -17
- package/dist/ui-dom/vdom3/index.d.ts +0 -42
- package/dist/ui-dom/vdom3/jsx.d.ts +0 -32
- package/dist/ui-dom/vdom3/record.d.ts +0 -16
- package/dist/ui-dom/vdom3/registry.d.ts +0 -30
- package/dist/ui-dom/vdom3/render.d.ts +0 -39
- package/dist/ui-dom/vdom3/replay.d.ts +0 -28
- package/dist/ui-dom/vdom3/root.d.ts +0 -24
- package/dist/ui-dom/vdom3/router.d.ts +0 -31
- package/dist/ui-dom/vdom3/scheduler.d.ts +0 -23
- package/dist/ui-dom/vdom3/ssr.d.ts +0 -27
- package/dist/ui-dom/vdom3/sync.d.ts +0 -22
- package/dist/ui-dom/vdom3/types.d.ts +0 -173
- package/dist/ui-dom/vdom3/ui.d.ts +0 -16
- package/dist/ui-dom/vdom3.js +0 -41
- package/dist/ui-dom/vnode.d.ts +0 -13
- /package/dist/{make-executable-schema.test.d.ts → cli/content-sync.test.d.ts} +0 -0
- /package/dist/{ui-dom/testing.test.d.ts → cli/docs-cli.test.d.ts} +0 -0
- /package/dist/{components → client/components}/CodeBlock/highlight.d.ts +0 -0
- /package/dist/{components → client/components}/DatePicker/calendar-utils.d.ts +0 -0
- /package/dist/{components → client/components}/DiffView/diff-utils.d.ts +0 -0
- /package/dist/{components → client/components}/Markdown/parser.d.ts +0 -0
- /package/dist/{components → client/components}/Pipeline/dag-utils.d.ts +0 -0
- /package/dist/{components → client/components}/QRCode/qr.d.ts +0 -0
- /package/dist/{components → client/components}/Sparkline/sparkline-utils.d.ts +0 -0
- /package/dist/{ai → server/ai}/agent.d.ts +0 -0
- /package/dist/{ai → server/ai}/client.d.ts +0 -0
- /package/dist/{ai → server/ai}/sse.d.ts +0 -0
- /package/dist/{core → server/core}/serve.d.ts +0 -0
- /package/dist/{core → server/core}/ws.d.ts +0 -0
- /package/dist/{db → server/db}/errors.d.ts +0 -0
- /package/dist/{db → server/db}/memory-redis.d.ts +0 -0
- /package/dist/{db → server/db}/memory-sql.d.ts +0 -0
- /package/dist/{db → server/db}/postgres/connection.d.ts +0 -0
- /package/dist/{db → server/db}/postgres/pool.d.ts +0 -0
- /package/dist/{db → server/db}/postgres/protocol.d.ts +0 -0
- /package/dist/{db → server/db}/postgres/schema.d.ts +0 -0
- /package/dist/{db → server/db}/query-builder.d.ts +0 -0
- /package/dist/{db → server/db}/query.d.ts +0 -0
- /package/dist/{db → server/db}/redis/client.d.ts +0 -0
- /package/dist/{db → server/db}/redis/commands.d.ts +0 -0
- /package/dist/{db → server/db}/redis/connection.d.ts +0 -0
- /package/dist/{db → server/db}/redis/pipeline.d.ts +0 -0
- /package/dist/{db → server/db}/redis/pool.d.ts +0 -0
- /package/dist/{db → server/db}/redis/resp.d.ts +0 -0
- /package/dist/{db → server/db}/redis/subscriber.d.ts +0 -0
- /package/dist/{db → server/db}/sql-parser.d.ts +0 -0
- /package/dist/{email → server/email}/index.d.ts +0 -0
- /package/dist/{email → server/email}/smtp.d.ts +0 -0
- /package/dist/{graphql.d.ts → server/graphql.d.ts} +0 -0
- /package/dist/{index.d.ts → server/index.d.ts} +0 -0
- /package/dist/{make-executable-schema.d.ts → server/make-executable-schema.d.ts} +0 -0
- /package/dist/{messager → server/messager}/index.d.ts +0 -0
- /package/dist/{middleware → server/middleware}/cors.d.ts +0 -0
- /package/dist/{middleware → server/middleware}/rate-limit.d.ts +0 -0
- /package/dist/{middleware → server/middleware}/static.d.ts +0 -0
- /package/dist/{postgres → server/postgres}/client.d.ts +0 -0
- /package/dist/{postgres → server/postgres}/index.d.ts +0 -0
- /package/dist/{postgres → server/postgres}/types.d.ts +0 -0
- /package/dist/{queue → server/queue}/index.d.ts +0 -0
- /package/dist/{redis → server/redis}/client.d.ts +0 -0
- /package/dist/{redis → server/redis}/index.d.ts +0 -0
- /package/dist/{redis → server/redis}/types.d.ts +0 -0
- /package/dist/{request.d.ts → server/request.d.ts} +0 -0
- /package/dist/{response.d.ts → server/response.d.ts} +0 -0
- /package/dist/{scheduler → server/scheduler}/cron.d.ts +0 -0
- /package/dist/{scheduler → server/scheduler}/index.d.ts +0 -0
- /package/dist/{types.d.ts → server/types.d.ts} +0 -0
- /package/dist/{ui → server/ui}/html-safe.d.ts +0 -0
- /package/dist/{user → server/user}/index.d.ts +0 -0
- /package/dist/{user → server/user}/password.d.ts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Breadcrumb · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
面包屑导航,支持 aria-current
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 页面模式:docs(复制即用蓝本——examples/patterns/)
|
|
10
|
+
- 页面导航——侧栏、页头、标签页、步骤、分页
|
|
11
|
+
|
|
12
|
+
## API
|
|
13
|
+
|
|
14
|
+
| prop | 类型 | 必填 | 说明 |
|
|
15
|
+
|------|------|------|------|
|
|
16
|
+
| `items` | `BreadcrumbItem[]` | 是 | |
|
|
17
|
+
|
|
18
|
+
## 用法示例
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
<Breadcrumb items={[
|
|
22
|
+
{ label: '首页', href: '/' },
|
|
23
|
+
{ label: '用户管理' },
|
|
24
|
+
{ label: '编辑' },
|
|
25
|
+
]} />
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 纪律/坑
|
|
29
|
+
|
|
30
|
+
> 键盘可达(P1):方向键导航焦点跟随(roving tabindex);受控 props 配回调
|
|
31
|
+
|
|
32
|
+
## 关系
|
|
33
|
+
|
|
34
|
+
- ↑ 用于页面模式:[docs](../patterns/docs.md)
|
|
35
|
+
- ↑ 用于应用:(暂无)
|
|
36
|
+
- → 后端能力:(暂无)
|
|
37
|
+
|
|
38
|
+
## 文件位置
|
|
39
|
+
|
|
40
|
+
| 文件 | 路径 |
|
|
41
|
+
|------|------|
|
|
42
|
+
| 源码 | `src/client/components/Breadcrumb/Breadcrumb.ts` |
|
|
43
|
+
| 样式 | `src/client/components/Breadcrumb/Breadcrumb.css` |
|
|
44
|
+
| 测试 | `src/client/components/Breadcrumb/Breadcrumb.test.ts` |
|
|
45
|
+
| demo | `apps/showcase/src/demos/DemoBreadcrumb.tsx`(P1 拆分) |
|
|
46
|
+
|
|
47
|
+
## 验证
|
|
48
|
+
|
|
49
|
+
> agent-browser 走查:打开 `/components/navigation/breadcrumb` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Button · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
4 variants × 3 sizes + loading + block + disabled
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 页面模式:app-shell、workspace、focus-task、docs、landing、list-page、detail-page、settings-page(复制即用蓝本——examples/patterns/)
|
|
10
|
+
- 应用模板:todo、auth、multi(examples/apps/ 完整可跑)
|
|
11
|
+
- 基础元素(按钮/图标/文本/卡片/标签)——任意页面的构成单元
|
|
12
|
+
|
|
13
|
+
## API
|
|
14
|
+
|
|
15
|
+
| prop | 类型 | 必填 | 说明 |
|
|
16
|
+
|------|------|------|------|
|
|
17
|
+
| `variant` | `'primary' \| 'secondary' \| 'ghost' \| 'danger' \| 'danger-ghost'` | 否 | |
|
|
18
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | 否 | |
|
|
19
|
+
| `block` | `boolean` | 否 | |
|
|
20
|
+
| `loading` | `boolean` | 否 | |
|
|
21
|
+
| `disabled` | `boolean` | 否 | |
|
|
22
|
+
| `type` | `'button' \| 'submit'` | 否 | |
|
|
23
|
+
| `title` | `string` | 否 | |
|
|
24
|
+
| `id` | `string` | 否 | 透传 DOM id(测试定位/锚点) |
|
|
25
|
+
| `class` | `string` | 否 | 透传原生 class(覆盖默认 wf-btn 组合) |
|
|
26
|
+
| `onClick` | `(e: MouseEvent) => void` | 否 | |
|
|
27
|
+
| `children` | `any` | 否 | |
|
|
28
|
+
|
|
29
|
+
## 用法示例
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
<Button variant="primary" onClick={...}>Primary</Button>
|
|
33
|
+
<Button variant="secondary" />
|
|
34
|
+
<Button variant="ghost" />
|
|
35
|
+
<Button variant="danger" />
|
|
36
|
+
<Button size="sm" /><Button size="md" /><Button size="lg" />
|
|
37
|
+
<Button loading>Loading</Button>
|
|
38
|
+
<Button disabled />
|
|
39
|
+
<Button block />
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 纪律/坑
|
|
43
|
+
|
|
44
|
+
> 浏览器纪律(§5.5):组件能力经 ctx.browser / ctx.ui.useXXX——禁裸 window/document
|
|
45
|
+
|
|
46
|
+
## 关系
|
|
47
|
+
|
|
48
|
+
- ↑ 用于页面模式:[app-shell](../patterns/app-shell.md) · [workspace](../patterns/workspace.md) · [focus-task](../patterns/focus-task.md) · [docs](../patterns/docs.md) · [landing](../patterns/landing.md) · [list-page](../patterns/list-page.md) · [detail-page](../patterns/detail-page.md) · [settings-page](../patterns/settings-page.md)
|
|
49
|
+
- ↑ 用于应用:[todo](../apps/todo.md) · [auth](../apps/auth.md) · [multi](../apps/multi.md)
|
|
50
|
+
- → 后端能力:(暂无)
|
|
51
|
+
|
|
52
|
+
## 文件位置
|
|
53
|
+
|
|
54
|
+
| 文件 | 路径 |
|
|
55
|
+
|------|------|
|
|
56
|
+
| 源码 | `src/client/components/Button/Button.ts` |
|
|
57
|
+
| 样式 | `src/client/components/Button/Button.css` |
|
|
58
|
+
| 测试 | `src/client/components/Button/Button.test.ts` |
|
|
59
|
+
| demo | `apps/showcase/src/demos/DemoButton.tsx`(P1 拆分) |
|
|
60
|
+
|
|
61
|
+
## 验证
|
|
62
|
+
|
|
63
|
+
> agent-browser 走查:打开 `/components/core/button` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Calendar 事件 · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
事件标记 + 日期选择交互(变体覆盖)
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 复杂数据交互——穿梭、树、级联、看板、流水线
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
> props 提取降级(接口格式特殊)——见源码:`—`
|
|
14
|
+
|
|
15
|
+
## 用法示例
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
<Calendar month={5} year={2025} selectedDate="2025-06-10"
|
|
19
|
+
events={[{date:'2025-06-10',title:'需求评审'}]} onSelectDate={d => set(d)} />
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 纪律/坑
|
|
23
|
+
|
|
24
|
+
> (该分类暂无通用纪律——组件级事故见源码注释)
|
|
25
|
+
|
|
26
|
+
## 关系
|
|
27
|
+
|
|
28
|
+
- ↑ 用于页面模式:(暂无)
|
|
29
|
+
- ↑ 用于应用:(暂无)
|
|
30
|
+
- → 后端能力:(暂无)
|
|
31
|
+
|
|
32
|
+
## 文件位置
|
|
33
|
+
|
|
34
|
+
| 文件 | 路径 |
|
|
35
|
+
|------|------|
|
|
36
|
+
| demo | `apps/showcase/src/demos/DemoCalendarEvents.tsx`(P1 拆分) |
|
|
37
|
+
|
|
38
|
+
## 验证
|
|
39
|
+
|
|
40
|
+
> agent-browser 走查:打开 `/components/advanced/calendar-v2` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Calendar · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
月历:事件点 + 月切换 + 日期选择(antd/EP Calendar)
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 复杂数据交互——穿梭、树、级联、看板、流水线
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
| prop | 类型 | 必填 | 说明 |
|
|
14
|
+
|------|------|------|------|
|
|
15
|
+
| `events` | `CalendarEvent[]` | 否 | |
|
|
16
|
+
| `month` | `number` | 否 | 受控年月:month 0-11,year 四位数 |
|
|
17
|
+
| `year` | `number` | 否 | |
|
|
18
|
+
| `onMonthChange` | `(month: number, year: number) => void` | 否 | |
|
|
19
|
+
| `onSelectDate` | `(date: string) => void` | 否 | |
|
|
20
|
+
| `selectedDate` | `string` | 否 | |
|
|
21
|
+
|
|
22
|
+
## 用法示例
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
<Calendar month={5} year={2025}
|
|
26
|
+
events={events} selectedDate="2025-06-10" />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 纪律/坑
|
|
30
|
+
|
|
31
|
+
- 受控纪律:受控 month/value 必须配回调——缺回调静默不可点(console.warn 防护)
|
|
32
|
+
|
|
33
|
+
## 关系
|
|
34
|
+
|
|
35
|
+
- ↑ 用于页面模式:(暂无)
|
|
36
|
+
- ↑ 用于应用:(暂无)
|
|
37
|
+
- → 后端能力:(暂无)
|
|
38
|
+
|
|
39
|
+
## 文件位置
|
|
40
|
+
|
|
41
|
+
| 文件 | 路径 |
|
|
42
|
+
|------|------|
|
|
43
|
+
| 源码 | `src/client/components/Calendar/Calendar.ts` |
|
|
44
|
+
| 样式 | `src/client/components/Calendar/Calendar.css` |
|
|
45
|
+
| 测试 | `src/client/components/Calendar/Calendar.test.ts` |
|
|
46
|
+
| demo | `apps/showcase/src/demos/DemoCalendar.tsx`(P1 拆分) |
|
|
47
|
+
|
|
48
|
+
## 验证
|
|
49
|
+
|
|
50
|
+
> agent-browser 走查:打开 `/components/advanced/calendar` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Card · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
容器,支持 default/outlined/clickable
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 页面模式:app-shell、focus-task、dashboard、data-screen、landing、list-page、detail-page(复制即用蓝本——examples/patterns/)
|
|
10
|
+
- 应用模板:auth、multi(examples/apps/ 完整可跑)
|
|
11
|
+
- 基础元素(按钮/图标/文本/卡片/标签)——任意页面的构成单元
|
|
12
|
+
|
|
13
|
+
## API
|
|
14
|
+
|
|
15
|
+
| prop | 类型 | 必填 | 说明 |
|
|
16
|
+
|------|------|------|------|
|
|
17
|
+
| `variant` | `'default' \| 'outlined'` | 否 | |
|
|
18
|
+
| `outlined` | `boolean` | 否 | 便捷:outlined = variant 'outlined' |
|
|
19
|
+
| `padding` | `'sm' \| 'md' \| 'lg'` | 否 | |
|
|
20
|
+
| `clickable` | `boolean` | 否 | |
|
|
21
|
+
| `hover` | `boolean` | 否 | hover 抬升(阴影 + 上移),适合可点击/可悬停的卡片 |
|
|
22
|
+
| `active` | `boolean` | 否 | 选中态(边框高亮 + 品牌浅底),适合选择卡片 |
|
|
23
|
+
| `onClick` | `() => void` | 否 | |
|
|
24
|
+
| `className` | `string` | 否 | |
|
|
25
|
+
| `id` | `string` | 否 | id 属性(锚点定位——AgentDetail Tab 导航用) |
|
|
26
|
+
| `style` | `Record<string, string>` | 否 | |
|
|
27
|
+
| `children` | `any` | 否 | |
|
|
28
|
+
|
|
29
|
+
## 用法示例
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
<Card>默认卡片</Card>
|
|
33
|
+
<Card variant="outlined">线框</Card>
|
|
34
|
+
<Card clickable>可点击</Card>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## 纪律/坑
|
|
38
|
+
|
|
39
|
+
> 浏览器纪律(§5.5):组件能力经 ctx.browser / ctx.ui.useXXX——禁裸 window/document
|
|
40
|
+
|
|
41
|
+
## 关系
|
|
42
|
+
|
|
43
|
+
- ↑ 用于页面模式:[app-shell](../patterns/app-shell.md) · [focus-task](../patterns/focus-task.md) · [dashboard](../patterns/dashboard.md) · [data-screen](../patterns/data-screen.md) · [landing](../patterns/landing.md) · [list-page](../patterns/list-page.md) · [detail-page](../patterns/detail-page.md)
|
|
44
|
+
- ↑ 用于应用:[auth](../apps/auth.md) · [multi](../apps/multi.md)
|
|
45
|
+
- → 后端能力:(暂无)
|
|
46
|
+
|
|
47
|
+
## 文件位置
|
|
48
|
+
|
|
49
|
+
| 文件 | 路径 |
|
|
50
|
+
|------|------|
|
|
51
|
+
| 源码 | `src/client/components/Card/Card.ts` |
|
|
52
|
+
| 样式 | `src/client/components/Card/Card.css` |
|
|
53
|
+
| 测试 | `src/client/components/Card/Card.test.ts` |
|
|
54
|
+
| demo | `apps/showcase/src/demos/DemoCardShowcase.tsx`(P1 拆分) |
|
|
55
|
+
|
|
56
|
+
## 验证
|
|
57
|
+
|
|
58
|
+
> agent-browser 走查:打开 `/components/core/card` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Carousel · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
轮播:箭头/圆点/循环 + 自动播放(三库共识)
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 大数据列表/表格/树——千级+数据量的性能场景
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
| prop | 类型 | 必填 | 说明 |
|
|
14
|
+
|------|------|------|------|
|
|
15
|
+
| `children` | `any[]` | 是 | |
|
|
16
|
+
| `autoplay` | `boolean` | 否 | 自动播放 |
|
|
17
|
+
| `interval` | `number` | 否 | 自动播放间隔(ms),默认 3000 |
|
|
18
|
+
| `showArrows` | `boolean` | 否 | |
|
|
19
|
+
| `showDots` | `boolean` | 否 | |
|
|
20
|
+
| `loop` | `boolean` | 否 | 循环播放(尾 → 头),默认 true |
|
|
21
|
+
| `className` | `string` | 否 | |
|
|
22
|
+
|
|
23
|
+
## 用法示例
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
<Carousel autoplay interval={3000}>
|
|
27
|
+
{slides.map(s => <div>{s}</div>)}
|
|
28
|
+
</Carousel>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 纪律/坑
|
|
32
|
+
|
|
33
|
+
- 小尺寸 button 固定 min/max-height(§5.6):圆点 8x45 竖条事故
|
|
34
|
+
|
|
35
|
+
## 关系
|
|
36
|
+
|
|
37
|
+
- ↑ 用于页面模式:(暂无)
|
|
38
|
+
- ↑ 用于应用:(暂无)
|
|
39
|
+
- → 后端能力:(暂无)
|
|
40
|
+
|
|
41
|
+
## 文件位置
|
|
42
|
+
|
|
43
|
+
| 文件 | 路径 |
|
|
44
|
+
|------|------|
|
|
45
|
+
| 源码 | `src/client/components/Carousel/Carousel.ts` |
|
|
46
|
+
| 样式 | `src/client/components/Carousel/Carousel.css` |
|
|
47
|
+
| 测试 | `src/client/components/Carousel/Carousel.test.ts` |
|
|
48
|
+
| demo | `apps/showcase/src/demos/DemoCarousel.tsx`(P1 拆分) |
|
|
49
|
+
|
|
50
|
+
## 验证
|
|
51
|
+
|
|
52
|
+
> agent-browser 走查:打开 `/components/virtual/carousel` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Cascader 禁用/错误 · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
disabled + error 校验态(状态矩阵覆盖)
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 复杂数据交互——穿梭、树、级联、看板、流水线
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
> props 提取降级(接口格式特殊)——见源码:`—`
|
|
14
|
+
|
|
15
|
+
## 用法示例
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
<Cascader options={regions} disabled error="地区必填" />
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 纪律/坑
|
|
22
|
+
|
|
23
|
+
> (该分类暂无通用纪律——组件级事故见源码注释)
|
|
24
|
+
|
|
25
|
+
## 关系
|
|
26
|
+
|
|
27
|
+
- ↑ 用于页面模式:(暂无)
|
|
28
|
+
- ↑ 用于应用:(暂无)
|
|
29
|
+
- → 后端能力:(暂无)
|
|
30
|
+
|
|
31
|
+
## 文件位置
|
|
32
|
+
|
|
33
|
+
| 文件 | 路径 |
|
|
34
|
+
|------|------|
|
|
35
|
+
| demo | `apps/showcase/src/demos/DemoCascaderDis.tsx`(P1 拆分) |
|
|
36
|
+
|
|
37
|
+
## 验证
|
|
38
|
+
|
|
39
|
+
> agent-browser 走查:打开 `/components/advanced/cascader-v2` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Cascader · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
级联选择:多列面板逐级推进(antd/EP Cascader)
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 复杂数据交互——穿梭、树、级联、看板、流水线
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
| prop | 类型 | 必填 | 说明 |
|
|
14
|
+
|------|------|------|------|
|
|
15
|
+
| `options` | `CascaderOption[]` | 否 | |
|
|
16
|
+
| `value` | `string[]` | 否 | 选中路径(数组,如 ['zj','hz','xh']) |
|
|
17
|
+
| `onChange` | `(value: string[]) => void` | 否 | |
|
|
18
|
+
| `placeholder` | `string` | 否 | |
|
|
19
|
+
| `disabled` | `boolean` | 否 | |
|
|
20
|
+
| `error` | `string` | 否 | |
|
|
21
|
+
| `label` | `string` | 否 | |
|
|
22
|
+
| `showSearch` | `boolean` | 否 | 显示搜索框(面板内,关键词时扁平过滤结果列表) |
|
|
23
|
+
| `searchPlaceholder` | `string` | 否 | 搜索占位符 |
|
|
24
|
+
|
|
25
|
+
## 用法示例
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
<Cascader options={regions}
|
|
29
|
+
value={['zj','hz']} onChange={setPath} />
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 纪律/坑
|
|
33
|
+
|
|
34
|
+
- 受控纪律:受控 value 必须配回调——缺回调静默不可点
|
|
35
|
+
- 多选(multiple)已裁剪(低频——单选+搜索已够,见 components-cuts.md)
|
|
36
|
+
|
|
37
|
+
## 关系
|
|
38
|
+
|
|
39
|
+
- ↑ 用于页面模式:(暂无)
|
|
40
|
+
- ↑ 用于应用:(暂无)
|
|
41
|
+
- → 后端能力:(暂无)
|
|
42
|
+
|
|
43
|
+
## 文件位置
|
|
44
|
+
|
|
45
|
+
| 文件 | 路径 |
|
|
46
|
+
|------|------|
|
|
47
|
+
| 源码 | `src/client/components/Cascader/Cascader.ts` |
|
|
48
|
+
| 样式 | `src/client/components/Cascader/Cascader.css` |
|
|
49
|
+
| 测试 | `src/client/components/Cascader/Cascader.test.ts` |
|
|
50
|
+
| demo | `apps/showcase/src/demos/DemoCascader.tsx`(P1 拆分) |
|
|
51
|
+
|
|
52
|
+
## 验证
|
|
53
|
+
|
|
54
|
+
> agent-browser 走查:打开 `/components/advanced/cascader` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Chart · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
SVG 图表:line/bar/pie/radar/gauge/scatter——零依赖自绘
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 应用模板:admin(examples/apps/ 完整可跑)
|
|
10
|
+
- 数据看板/统计报表——指标卡、图表、趋势
|
|
11
|
+
|
|
12
|
+
## API
|
|
13
|
+
|
|
14
|
+
| prop | 类型 | 必填 | 说明 |
|
|
15
|
+
|------|------|------|------|
|
|
16
|
+
| `type` | `ChartType` | 否 | |
|
|
17
|
+
| `data` | `DataPoint[]` | 是 | |
|
|
18
|
+
| `options` | `ChartOptions` | 否 | |
|
|
19
|
+
| `title` | `string` | 否 | |
|
|
20
|
+
| `area` | `boolean` | 否 | |
|
|
21
|
+
| `className` | `string` | 否 | |
|
|
22
|
+
|
|
23
|
+
## 用法示例
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
<Chart type="line" data={data} title="标题" />
|
|
27
|
+
<Chart type="bar" data={data} />
|
|
28
|
+
<Chart type="pie" data={data} />
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 纪律/坑
|
|
33
|
+
|
|
34
|
+
> 图表自研 SVG:数据点 label 为轴名;交互 tooltip 经 usePopup(视口夹紧)
|
|
35
|
+
|
|
36
|
+
## 关系
|
|
37
|
+
|
|
38
|
+
- ↑ 用于页面模式:(暂无)
|
|
39
|
+
- ↑ 用于应用:[admin](../apps/admin.md)
|
|
40
|
+
- → 后端能力:(暂无)
|
|
41
|
+
|
|
42
|
+
## 文件位置
|
|
43
|
+
|
|
44
|
+
| 文件 | 路径 |
|
|
45
|
+
|------|------|
|
|
46
|
+
| 源码 | `src/client/components/Chart/Chart.ts` |
|
|
47
|
+
| 样式 | `src/client/components/Chart/Chart.css` |
|
|
48
|
+
| 测试 | `src/client/components/Chart/Chart.test.ts` |
|
|
49
|
+
| demo | `apps/showcase/src/demos/DemoChart.tsx`(P1 拆分) |
|
|
50
|
+
|
|
51
|
+
## 验证
|
|
52
|
+
|
|
53
|
+
> agent-browser 走查:打开 `/components/viz/chart` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# ChatInput · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
独立聊天输入条(AiChat 抽取):单行/多行 + streaming 停止 + IME 安全——不自带聊天逻辑
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- AI 对话/工具调用/审批/提示词——agent 场景全链路
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
| prop | 类型 | 必填 | 说明 |
|
|
14
|
+
|------|------|------|------|
|
|
15
|
+
| `value` | `string` | 是 | 受控值(共享输入态——ChatInput 不持有聊天逻辑) |
|
|
16
|
+
| `onChange` | `(v: string) => void` | 是 | 值变化(IME 安全:组合期间不触发) |
|
|
17
|
+
| `onSend` | `(text: string) => void` | 是 | 发送(Enter 或按钮)——入参为当前输入文本(trim 后非空才触发) |
|
|
18
|
+
| `streaming` | `boolean` | 否 | 流式状态——true 时按钮变「停止」 |
|
|
19
|
+
| `onStop` | `() => void` | 否 | 停止回调(streaming 时按钮触发) |
|
|
20
|
+
| `error` | `string \| null` | 否 | 错误——非流式时显示「重试」按钮 |
|
|
21
|
+
| `onRetry` | `() => void` | 否 | 重试回调 |
|
|
22
|
+
| `disabled` | `boolean` | 否 | 禁用(输入 + 按钮) |
|
|
23
|
+
| `multiline` | `boolean` | 否 | 多行 textarea(Enter 发送 / Shift+Enter 换行);默认 false = 单行 input |
|
|
24
|
+
| `labels` | `Partial<ChatInputLabels>` | 否 | 标签(i18n 覆盖) |
|
|
25
|
+
| `actions` | `VNode \| null` | 否 | 扩展位(附件/知识库/模型选择等) |
|
|
26
|
+
| `onControl` | `(handle: ChatInputControl) => void` | 否 | 外部程序化控制(@ 补全等场景)——mount 期回调上抛稳定 handle({ setKeyword, setValue })—— |
|
|
27
|
+
|
|
28
|
+
## 用法示例
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
<ChatInput value={input} onChange={v => input = v}
|
|
32
|
+
onSend={text => send(text)} // 回车/按钮触发(trim 后非空)
|
|
33
|
+
streaming={streaming} // 流式 → 按钮变「停止」
|
|
34
|
+
onStop={() => stop()}
|
|
35
|
+
multiline // 多行 textarea(Shift+Enter 换行)
|
|
36
|
+
actions={<button>附件</button>} // 扩展位插槽
|
|
37
|
+
/>
|
|
38
|
+
|
|
39
|
+
// 纯输入层:不自带聊天逻辑(useChat 组合在消费方)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 纪律/坑
|
|
43
|
+
|
|
44
|
+
> AI 协议纪律:消息流事件驱动(useChat 订阅)——高频 notify 由写者控制频率
|
|
45
|
+
|
|
46
|
+
## 关系
|
|
47
|
+
|
|
48
|
+
- ↑ 用于页面模式:(暂无)
|
|
49
|
+
- ↑ 用于应用:(暂无)
|
|
50
|
+
- → 后端能力:(暂无)
|
|
51
|
+
|
|
52
|
+
## 文件位置
|
|
53
|
+
|
|
54
|
+
| 文件 | 路径 |
|
|
55
|
+
|------|------|
|
|
56
|
+
| 源码 | `src/client/components/ChatInput/ChatInput.ts` |
|
|
57
|
+
| 样式 | `src/client/components/ChatInput/ChatInput.css` |
|
|
58
|
+
| 测试 | `src/client/components/ChatInput/ChatInput.test.ts` |
|
|
59
|
+
| demo | `apps/showcase/src/demos/DemoChatInput.tsx`(P1 拆分) |
|
|
60
|
+
|
|
61
|
+
## 验证
|
|
62
|
+
|
|
63
|
+
> agent-browser 走查:打开 `/components/ai/chatinput` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Checkbox · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
带 label 的复选框,支持 checked/disabled
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 页面模式:focus-task(复制即用蓝本——examples/patterns/)
|
|
10
|
+
- 应用模板:todo(examples/apps/ 完整可跑)
|
|
11
|
+
- 表单输入/搜索/筛选——查询区、编辑表单、设置页
|
|
12
|
+
|
|
13
|
+
## API
|
|
14
|
+
|
|
15
|
+
| prop | 类型 | 必填 | 说明 |
|
|
16
|
+
|------|------|------|------|
|
|
17
|
+
| `label` | `string` | 否 | |
|
|
18
|
+
| `checked` | `boolean` | 否 | |
|
|
19
|
+
| `disabled` | `boolean` | 否 | |
|
|
20
|
+
| `onChange` | `(checked: boolean) => void` | 否 | |
|
|
21
|
+
|
|
22
|
+
## 用法示例
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
<Checkbox label="同意"
|
|
26
|
+
checked={agree}
|
|
27
|
+
onChange={v => agree = v} />
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 纪律/坑
|
|
31
|
+
|
|
32
|
+
> 受控输入纪律(§5.3):输入期间 value 走内部态(useControlledInput)——依赖回流会重挂 input 丢焦点;IME composition 门控
|
|
33
|
+
|
|
34
|
+
## 关系
|
|
35
|
+
|
|
36
|
+
- ↑ 用于页面模式:[focus-task](../patterns/focus-task.md)
|
|
37
|
+
- ↑ 用于应用:[todo](../apps/todo.md)
|
|
38
|
+
- → 后端能力:(暂无)
|
|
39
|
+
|
|
40
|
+
## 文件位置
|
|
41
|
+
|
|
42
|
+
| 文件 | 路径 |
|
|
43
|
+
|------|------|
|
|
44
|
+
| 源码 | `src/client/components/Checkbox/Checkbox.ts` |
|
|
45
|
+
| 样式 | `src/client/components/Checkbox/Checkbox.css` |
|
|
46
|
+
| 测试 | `src/client/components/Checkbox/Checkbox.test.ts` |
|
|
47
|
+
| demo | `apps/showcase/src/demos/DemoCheckbox.tsx`(P1 拆分) |
|
|
48
|
+
|
|
49
|
+
## 验证
|
|
50
|
+
|
|
51
|
+
> agent-browser 走查:打开 `/components/input/checkbox` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# CheckboxGroup · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
复选框组:数组受控 + 栅格列数(antd Checkbox.Group)
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- 表单输入/搜索/筛选——查询区、编辑表单、设置页
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
| prop | 类型 | 必填 | 说明 |
|
|
14
|
+
|------|------|------|------|
|
|
15
|
+
| `options` | `CheckboxGroupOption[]` | 否 | |
|
|
16
|
+
| `value` | `string[]` | 否 | 受控选中值 |
|
|
17
|
+
| `onChange` | `(value: string[]) => void` | 否 | |
|
|
18
|
+
| `columns` | `1 \| 2 \| 3 \| 4` | 否 | 栅格列数(1-4) |
|
|
19
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | 否 | |
|
|
20
|
+
| `disabled` | `boolean` | 否 | |
|
|
21
|
+
| `label` | `string` | 否 | 组标题(可选) |
|
|
22
|
+
| `className` | `string` | 否 | |
|
|
23
|
+
|
|
24
|
+
## 用法示例
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
<CheckboxGroup options={[{value:'a',label:'A'}]}
|
|
28
|
+
value={selected} onChange={setSelected} />
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 纪律/坑
|
|
32
|
+
|
|
33
|
+
> 受控输入纪律(§5.3):输入期间 value 走内部态(useControlledInput)——依赖回流会重挂 input 丢焦点;IME composition 门控
|
|
34
|
+
|
|
35
|
+
## 关系
|
|
36
|
+
|
|
37
|
+
- ↑ 用于页面模式:(暂无)
|
|
38
|
+
- ↑ 用于应用:(暂无)
|
|
39
|
+
- → 后端能力:(暂无)
|
|
40
|
+
|
|
41
|
+
## 文件位置
|
|
42
|
+
|
|
43
|
+
| 文件 | 路径 |
|
|
44
|
+
|------|------|
|
|
45
|
+
| 源码 | `src/client/components/CheckboxGroup/CheckboxGroup.ts` |
|
|
46
|
+
| 样式 | `src/client/components/CheckboxGroup/CheckboxGroup.css` |
|
|
47
|
+
| 测试 | `src/client/components/CheckboxGroup/CheckboxGroup.test.ts` |
|
|
48
|
+
| demo | `apps/showcase/src/demos/DemoCheckboxGroup.tsx`(P1 拆分) |
|
|
49
|
+
|
|
50
|
+
## 验证
|
|
51
|
+
|
|
52
|
+
> agent-browser 走查:打开 `/components/input/checkboxgroup` ——(P1 填充具体步骤)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# CitationCard · components
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
RAG 引用来源:折叠「引用 N 条」+ 条目列表(序号/标题/来源/片段/链接)+ 溢出 +N
|
|
6
|
+
|
|
7
|
+
## 典型场景
|
|
8
|
+
|
|
9
|
+
- AI 对话/工具调用/审批/提示词——agent 场景全链路
|
|
10
|
+
|
|
11
|
+
## API
|
|
12
|
+
|
|
13
|
+
| prop | 类型 | 必填 | 说明 |
|
|
14
|
+
|------|------|------|------|
|
|
15
|
+
| `items` | `Citation[]` | 是 | |
|
|
16
|
+
| `label` | `string` | 否 | 折叠头文案(默认「引用来源」) |
|
|
17
|
+
| `maxVisible` | `number` | 否 | 折叠时最多显示条数(默认 3;溢出显示 +N 汇总条目) |
|
|
18
|
+
| `defaultExpanded` | `boolean` | 否 | 初始展开(默认折叠) |
|
|
19
|
+
| `onOpen` | `(citation: Citation) => void` | 否 | 点击条目回调(提供时不渲染链接,由调用方处理跳转/打开) |
|
|
20
|
+
|
|
21
|
+
## 用法示例
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
<CitationCard items={[{ id, title, source, snippet, url }]} maxVisible={3} />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## 纪律/坑
|
|
28
|
+
|
|
29
|
+
> AI 协议纪律:消息流事件驱动(useChat 订阅)——高频 notify 由写者控制频率
|
|
30
|
+
|
|
31
|
+
## 关系
|
|
32
|
+
|
|
33
|
+
- ↑ 用于页面模式:(暂无)
|
|
34
|
+
- ↑ 用于应用:(暂无)
|
|
35
|
+
- → 后端能力:(暂无)
|
|
36
|
+
|
|
37
|
+
## 文件位置
|
|
38
|
+
|
|
39
|
+
| 文件 | 路径 |
|
|
40
|
+
|------|------|
|
|
41
|
+
| 源码 | `src/client/components/CitationCard/CitationCard.ts` |
|
|
42
|
+
| 样式 | `src/client/components/CitationCard/CitationCard.css` |
|
|
43
|
+
| 测试 | `src/client/components/CitationCard/CitationCard.test.ts` |
|
|
44
|
+
| demo | `apps/showcase/src/demos/DemoCitationCard.tsx`(P1 拆分) |
|
|
45
|
+
|
|
46
|
+
## 验证
|
|
47
|
+
|
|
48
|
+
> agent-browser 走查:打开 `/components/ai/citationcard` ——(P1 填充具体步骤)
|