weifuwu 0.87.0 → 0.89.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.
Files changed (392) hide show
  1. package/README.md +111 -135
  2. package/dist/client/components/ActionSheet/ActionSheet.d.ts +1 -1
  3. package/dist/client/components/AiChat/AiChat.d.ts +3 -4
  4. package/dist/client/components/ChatInput/ChatInput.d.ts +5 -0
  5. package/dist/client/components/CitationCard/CitationCard.d.ts +1 -1
  6. package/dist/client/components/Command/Command.d.ts +1 -1
  7. package/dist/client/components/ContextMenu/ContextMenu.d.ts +1 -1
  8. package/dist/client/components/DatePicker/DatePicker.d.ts +1 -1
  9. package/dist/client/components/Dropdown/Dropdown.d.ts +1 -1
  10. package/dist/client/components/Editor/model/html.d.ts +10 -0
  11. package/dist/client/components/ImageCropper/ImageCropper.d.ts +6 -2
  12. package/dist/client/components/Menu/Menu.d.ts +1 -1
  13. package/dist/client/components/NavMenu/NavMenu.d.ts +1 -1
  14. package/dist/client/components/Popconfirm/Popconfirm.d.ts +1 -1
  15. package/dist/client/components/SlideCanvas/SlideCanvas.d.ts +1 -1
  16. package/dist/client/components/Tour/Tour.d.ts +1 -1
  17. package/dist/client/components/TreeSelect/TreeSelect.d.ts +1 -1
  18. package/dist/client/components/index.js +41 -41
  19. package/dist/client/components/style.css +298 -644
  20. package/dist/client/layout/weifuwu-layout.css +286 -640
  21. package/dist/client/vdom/browser/Browser.d.ts +2 -0
  22. package/dist/client/vdom/commands.d.ts +4 -1
  23. package/dist/client/vdom/context/UIContext.d.ts +8 -0
  24. package/dist/client/vdom/core/diff/attrs.d.ts +10 -2
  25. package/dist/client/vdom/core/field/attributes.d.ts +12 -0
  26. package/dist/client/vdom/core/field/events.d.ts +8 -0
  27. package/dist/client/vdom/core/field/input-sync.d.ts +14 -0
  28. package/dist/client/vdom/core/field/key.d.ts +3 -0
  29. package/dist/client/vdom/core/field/props.d.ts +13 -1
  30. package/dist/client/vdom/core/field/ref.d.ts +6 -0
  31. package/dist/client/vdom/core/field/style.d.ts +7 -1
  32. package/dist/client/vdom/core/node/component.d.ts +3 -4
  33. package/dist/client/vdom/core/node/native.d.ts +6 -1
  34. package/dist/client/vdom/core/patch/index.d.ts +24 -1
  35. package/dist/client/vdom/core/patch/processors.d.ts +8 -1
  36. package/dist/client/vdom/core/protocol.d.ts +45 -0
  37. package/dist/client/vdom/core/router.d.ts +7 -0
  38. package/dist/client/vdom/core/ssr/absorb.d.ts +31 -4
  39. package/dist/client/vdom/core/transform/index.d.ts +6 -6
  40. package/dist/client/vdom/core/v2/cycle.d.ts +54 -0
  41. package/dist/client/vdom/core/v2/diff.d.ts +80 -0
  42. package/dist/client/vdom/core/v2/integrate.d.ts +24 -0
  43. package/dist/client/vdom/core/v2/render.d.ts +28 -0
  44. package/dist/client/vdom/core/v2/schedule.d.ts +33 -0
  45. package/dist/client/vdom/core/v2/serve.d.ts +4 -0
  46. package/dist/client/vdom/core/v2/spy.d.ts +21 -0
  47. package/dist/client/vdom/core/v2/ssr.d.ts +14 -0
  48. package/dist/client/vdom/core/vnode.d.ts +9 -6
  49. package/dist/client/vdom/dev/error-counter.d.ts +27 -0
  50. package/dist/client/vdom/dev/render-health.d.ts +60 -0
  51. package/dist/client/vdom/hooks/chat.d.ts +32 -5
  52. package/dist/client/vdom/hooks/drag-media.d.ts +3 -1
  53. package/dist/client/vdom/hooks/env.d.ts +32 -0
  54. package/dist/client/vdom/hooks/popup-manager.d.ts +21 -0
  55. package/dist/client/vdom/hooks/popup.d.ts +4 -1
  56. package/dist/client/vdom/hooks/stable.d.ts +4 -0
  57. package/dist/client/vdom/hooks/use-observable.d.ts +13 -0
  58. package/dist/client/vdom/index.d.ts +14 -6
  59. package/dist/client/vdom/index.js +4 -7
  60. package/dist/client/vdom/jsx-runtime.js +1 -1
  61. package/dist/client/vdom/middlewares/api.d.ts +8 -0
  62. package/dist/client/vdom/middlewares/auth-i18n.d.ts +7 -0
  63. package/dist/client/vdom/middlewares/ws.d.ts +41 -1
  64. package/dist/client/vdom/observable/index.d.ts +13 -0
  65. package/dist/client/vdom/observable/observable.d.ts +26 -0
  66. package/dist/client/vdom/observable/operators.d.ts +76 -0
  67. package/dist/client/vdom/observable/sources.d.ts +54 -0
  68. package/dist/client/vdom/observable/types.d.ts +45 -0
  69. package/dist/client/vdom/store.d.ts +17 -2
  70. package/dist/client/vdom/testing.js +2 -2
  71. package/dist/server/ai/agent.d.ts +18 -0
  72. package/dist/server/ai/client.d.ts +14 -2
  73. package/dist/server/ai/contracts.d.ts +2 -2
  74. package/dist/server/ai/sse.d.ts +6 -0
  75. package/dist/server/core/collect.d.ts +31 -0
  76. package/dist/server/core/error-counter.d.ts +11 -0
  77. package/dist/server/core/hub.d.ts +2 -0
  78. package/dist/server/core/router.d.ts +12 -9
  79. package/dist/server/db/contracts.d.ts +24 -0
  80. package/dist/server/db/memory-redis.d.ts +3 -4
  81. package/dist/server/db/memory-sql.d.ts +20 -4
  82. package/dist/server/db/postgres-server.d.ts +2 -0
  83. package/dist/server/db/query.d.ts +21 -0
  84. package/dist/server/db/redis-server.d.ts +4 -2
  85. package/dist/server/db/sql-parser.d.ts +2 -1
  86. package/dist/server/email/index.d.ts +2 -0
  87. package/dist/server/index.d.ts +4 -1
  88. package/dist/server/index.js +3927 -1982
  89. package/dist/server/messager/index.d.ts +21 -2
  90. package/dist/server/middleware/compress.d.ts +25 -0
  91. package/dist/server/ui/index.d.ts +8 -1
  92. package/dist/server/user/index.d.ts +4 -0
  93. package/dist/shared/router/chain.d.ts +9 -0
  94. package/dist/shared/router/context.d.ts +35 -0
  95. package/dist/shared/router/ctx-fields.d.ts +20 -0
  96. package/dist/shared/router/pipeline.d.ts +70 -0
  97. package/dist/shared/router/trie.d.ts +11 -3
  98. package/dist/shared/router/types.d.ts +23 -0
  99. package/docs/style-guide.md +44 -41
  100. package/package.json +13 -10
  101. package/content/apps/admin.md +0 -55
  102. package/content/apps/agent-platform.md +0 -35
  103. package/content/apps/auth.md +0 -49
  104. package/content/apps/multi.md +0 -44
  105. package/content/apps/todo.md +0 -51
  106. package/content/backend/ai.md +0 -28
  107. package/content/backend/auth.md +0 -20
  108. package/content/backend/email.md +0 -23
  109. package/content/backend/graphql.md +0 -23
  110. package/content/backend/http.md +0 -23
  111. package/content/backend/limit.md +0 -23
  112. package/content/backend/middleware.md +0 -17
  113. package/content/backend/queue.md +0 -23
  114. package/content/backend/redis.md +0 -26
  115. package/content/backend/router.md +0 -23
  116. package/content/backend/schedule.md +0 -23
  117. package/content/backend/sql.md +0 -27
  118. package/content/backend/sse.md +0 -26
  119. package/content/backend/ws.md +0 -26
  120. package/content/capabilities/app-node.md +0 -21
  121. package/content/capabilities/data.md +0 -21
  122. package/content/capabilities/events.md +0 -21
  123. package/content/capabilities/hooks.md +0 -22
  124. package/content/capabilities/i18n.md +0 -21
  125. package/content/capabilities/popup.md +0 -21
  126. package/content/capabilities/render-only.md +0 -23
  127. package/content/capabilities/router.md +0 -22
  128. package/content/capabilities/self-id.md +0 -21
  129. package/content/capabilities/store.md +0 -21
  130. package/content/capabilities/theme.md +0 -21
  131. package/content/capabilities/two-phase.md +0 -21
  132. package/content/components/accordion.md +0 -50
  133. package/content/components/actionsheet.md +0 -46
  134. package/content/components/affix.md +0 -51
  135. package/content/components/aichat.md +0 -57
  136. package/content/components/alert.md +0 -52
  137. package/content/components/alertgroup.md +0 -45
  138. package/content/components/anchor.md +0 -52
  139. package/content/components/app.md +0 -37
  140. package/content/components/approvalcard.md +0 -56
  141. package/content/components/appshell.md +0 -50
  142. package/content/components/aspectratio.md +0 -47
  143. package/content/components/authpage.md +0 -61
  144. package/content/components/autocomplete-v2.md +0 -40
  145. package/content/components/autocomplete.md +0 -56
  146. package/content/components/avatar.md +0 -51
  147. package/content/components/avatargroup.md +0 -47
  148. package/content/components/backtop.md +0 -53
  149. package/content/components/badge.md +0 -55
  150. package/content/components/breadcrumb.md +0 -49
  151. package/content/components/button.md +0 -63
  152. package/content/components/calendar-v2.md +0 -40
  153. package/content/components/calendar.md +0 -50
  154. package/content/components/card.md +0 -58
  155. package/content/components/carousel.md +0 -52
  156. package/content/components/cascader-v2.md +0 -39
  157. package/content/components/cascader.md +0 -54
  158. package/content/components/chart.md +0 -53
  159. package/content/components/chatinput.md +0 -63
  160. package/content/components/checkbox.md +0 -51
  161. package/content/components/checkboxgroup.md +0 -52
  162. package/content/components/citationcard.md +0 -48
  163. package/content/components/codeblock.md +0 -48
  164. package/content/components/codeeditor.md +0 -47
  165. package/content/components/collapse.md +0 -49
  166. package/content/components/colorpicker.md +0 -50
  167. package/content/components/command.md +0 -50
  168. package/content/components/confirm.md +0 -57
  169. package/content/components/contextmenu.md +0 -48
  170. package/content/components/copybutton.md +0 -51
  171. package/content/components/datepicker.md +0 -52
  172. package/content/components/descriptions-v2.md +0 -39
  173. package/content/components/descriptions.md +0 -52
  174. package/content/components/diffview-v2.md +0 -39
  175. package/content/components/diffview.md +0 -50
  176. package/content/components/divider.md +0 -48
  177. package/content/components/drawer.md +0 -55
  178. package/content/components/dropdown.md +0 -53
  179. package/content/components/editor.md +0 -49
  180. package/content/components/emptystate.md +0 -51
  181. package/content/components/exportcsv.md +0 -38
  182. package/content/components/field.md +0 -54
  183. package/content/components/filepreview-office.md +0 -37
  184. package/content/components/filepreview.md +0 -49
  185. package/content/components/filetree.md +0 -56
  186. package/content/components/fileupload-v2.md +0 -39
  187. package/content/components/fileupload.md +0 -57
  188. package/content/components/floatbutton.md +0 -52
  189. package/content/components/form-v2.md +0 -41
  190. package/content/components/form.md +0 -60
  191. package/content/components/grid.md +0 -51
  192. package/content/components/highlight-v2.md +0 -39
  193. package/content/components/highlight.md +0 -46
  194. package/content/components/hovercard.md +0 -51
  195. package/content/components/icon.md +0 -50
  196. package/content/components/imagecropper.md +0 -45
  197. package/content/components/img.md +0 -56
  198. package/content/components/infinitescroll-v2.md +0 -40
  199. package/content/components/infinitescroll.md +0 -54
  200. package/content/components/input.md +0 -65
  201. package/content/components/inputnumber.md +0 -58
  202. package/content/components/inview.md +0 -56
  203. package/content/components/jsonschemaform.md +0 -53
  204. package/content/components/jsonviewer-v2.md +0 -39
  205. package/content/components/jsonviewer.md +0 -49
  206. package/content/components/kanban.md +0 -46
  207. package/content/components/label.md +0 -48
  208. package/content/components/layout.md +0 -54
  209. package/content/components/layoutcontent.md +0 -43
  210. package/content/components/layoutheader.md +0 -43
  211. package/content/components/layoutsider.md +0 -43
  212. package/content/components/link.md +0 -52
  213. package/content/components/list.md +0 -44
  214. package/content/components/loading.md +0 -45
  215. package/content/components/logviewer-v2.md +0 -39
  216. package/content/components/logviewer.md +0 -53
  217. package/content/components/markdown.md +0 -51
  218. package/content/components/markdowneditor.md +0 -47
  219. package/content/components/math.md +0 -42
  220. package/content/components/mentions-v2.md +0 -39
  221. package/content/components/mentions.md +0 -52
  222. package/content/components/menu.md +0 -56
  223. package/content/components/menubar.md +0 -44
  224. package/content/components/messagebubble.md +0 -50
  225. package/content/components/modal.md +0 -59
  226. package/content/components/navmenu.md +0 -47
  227. package/content/components/notification.md +0 -51
  228. package/content/components/pageheader.md +0 -53
  229. package/content/components/pagination.md +0 -49
  230. package/content/components/paragraph.md +0 -45
  231. package/content/components/passwordinput.md +0 -57
  232. package/content/components/pininput-v2.md +0 -39
  233. package/content/components/pininput.md +0 -50
  234. package/content/components/pipeline.md +0 -49
  235. package/content/components/popconfirm.md +0 -58
  236. package/content/components/popover.md +0 -61
  237. package/content/components/progressbar.md +0 -50
  238. package/content/components/prompttemplate.md +0 -49
  239. package/content/components/qrcode.md +0 -50
  240. package/content/components/radiogroup.md +0 -53
  241. package/content/components/rate.md +0 -53
  242. package/content/components/reasoningblock.md +0 -47
  243. package/content/components/relationgraph.md +0 -52
  244. package/content/components/resizable.md +0 -53
  245. package/content/components/result.md +0 -49
  246. package/content/components/scrollbar.md +0 -49
  247. package/content/components/searchinput.md +0 -51
  248. package/content/components/segmentedcontrol.md +0 -59
  249. package/content/components/select-searchable.md +0 -47
  250. package/content/components/select.md +0 -66
  251. package/content/components/sessionlist.md +0 -52
  252. package/content/components/sheetgrid.md +0 -44
  253. package/content/components/skeleton.md +0 -55
  254. package/content/components/slidecanvas.md +0 -44
  255. package/content/components/slider.md +0 -62
  256. package/content/components/sortablelist.md +0 -39
  257. package/content/components/space.md +0 -52
  258. package/content/components/sparkline.md +0 -52
  259. package/content/components/statcard-countdown.md +0 -39
  260. package/content/components/statcard.md +0 -56
  261. package/content/components/steps.md +0 -48
  262. package/content/components/switch.md +0 -50
  263. package/content/components/tabbar.md +0 -45
  264. package/content/components/table-v2.md +0 -40
  265. package/content/components/table.md +0 -66
  266. package/content/components/tabs.md +0 -56
  267. package/content/components/tag.md +0 -51
  268. package/content/components/tagsinput-v2.md +0 -39
  269. package/content/components/tagsinput.md +0 -54
  270. package/content/components/text.md +0 -45
  271. package/content/components/textarea.md +0 -57
  272. package/content/components/themeswitch.md +0 -69
  273. package/content/components/timeline.md +0 -50
  274. package/content/components/title.md +0 -45
  275. package/content/components/toast.md +0 -52
  276. package/content/components/toggle-togglegroup.md +0 -52
  277. package/content/components/togglegroup.md +0 -47
  278. package/content/components/toolcallcard.md +0 -51
  279. package/content/components/tooltip.md +0 -50
  280. package/content/components/tour.md +0 -50
  281. package/content/components/transfer.md +0 -52
  282. package/content/components/tree-v2.md +0 -39
  283. package/content/components/tree.md +0 -59
  284. package/content/components/treeselect.md +0 -54
  285. package/content/components/typography.md +0 -51
  286. package/content/components/videoplayer.md +0 -52
  287. package/content/components/virtuallist.md +0 -52
  288. package/content/components/virtualtable-v2.md +0 -39
  289. package/content/components/virtualtable.md +0 -55
  290. package/content/components/watermark.md +0 -53
  291. package/content/components/wave.md +0 -43
  292. package/content/guides/ai-chat-family.md +0 -24
  293. package/content/guides/choose.md +0 -67
  294. package/content/guides/component-model.md +0 -32
  295. package/content/guides/component-standards.md +0 -123
  296. package/content/guides/components-guide.md +0 -813
  297. package/content/guides/custom-component.md +0 -321
  298. package/content/guides/data-guide.md +0 -281
  299. package/content/guides/file-preview-family.md +0 -18
  300. package/content/guides/frontend.md +0 -968
  301. package/content/guides/layout-choice.md +0 -64
  302. package/content/guides/layout-guide.md +0 -241
  303. package/content/guides/middleware.md +0 -459
  304. package/content/guides/mobile-guide.md +0 -105
  305. package/content/guides/page-building.md +0 -98
  306. package/content/guides/production.md +0 -37
  307. package/content/guides/quality.md +0 -60
  308. package/content/guides/realtime-guide.md +0 -296
  309. package/content/guides/render-only.md +0 -44
  310. package/content/guides/saas-guide.md +0 -253
  311. package/content/guides/server-guide.md +0 -359
  312. package/content/guides/start.md +0 -41
  313. package/content/guides/styling.md +0 -154
  314. package/content/guides/ui-dom-guide.md +0 -157
  315. package/content/index.json +0 -4344
  316. package/content/index.md +0 -181
  317. package/content/layout/align.md +0 -20
  318. package/content/layout/anchor.md +0 -19
  319. package/content/layout/app-shell.md +0 -23
  320. package/content/layout/border.md +0 -20
  321. package/content/layout/center.md +0 -19
  322. package/content/layout/cluster.md +0 -19
  323. package/content/layout/container.md +0 -19
  324. package/content/layout/fill.md +0 -19
  325. package/content/layout/grid.md +0 -19
  326. package/content/layout/hidden.md +0 -22
  327. package/content/layout/layer.md +0 -19
  328. package/content/layout/position.md +0 -22
  329. package/content/layout/row.md +0 -23
  330. package/content/layout/safe-area.md +0 -20
  331. package/content/layout/scroll.md +0 -21
  332. package/content/layout/spacing.md +0 -22
  333. package/content/layout/split.md +0 -19
  334. package/content/layout/stack.md +0 -19
  335. package/content/layout/surface.md +0 -23
  336. package/content/layout/text.md +0 -22
  337. package/content/patterns/app-shell.md +0 -34
  338. package/content/patterns/dashboard.md +0 -36
  339. package/content/patterns/data-screen.md +0 -30
  340. package/content/patterns/detail-page.md +0 -31
  341. package/content/patterns/docs.md +0 -34
  342. package/content/patterns/focus-task.md +0 -34
  343. package/content/patterns/landing.md +0 -35
  344. package/content/patterns/list-page.md +0 -32
  345. package/content/patterns/mobile.md +0 -31
  346. package/content/patterns/settings-page.md +0 -33
  347. package/content/patterns/workspace.md +0 -32
  348. package/dist/cli/content-sync.test.d.ts +0 -1
  349. package/dist/cli/docs-cli.test.d.ts +0 -1
  350. package/dist/cli/docs.d.ts +0 -2
  351. package/dist/cli/docs.mjs +0 -10961
  352. package/dist/client/vdom/core/build.d.ts +0 -36
  353. package/dist/client/vdom/core/diff/children.d.ts +0 -29
  354. package/dist/client/vdom/core/diff/index.d.ts +0 -22
  355. package/dist/client/vdom/core/diff/output.d.ts +0 -30
  356. package/dist/client/vdom/core/diff/same.d.ts +0 -22
  357. package/dist/client/vdom/core/serve.d.ts +0 -75
  358. package/dist/client/vdom/core/ssr/index.d.ts +0 -25
  359. package/examples/apps/admin/README.md +0 -23
  360. package/examples/apps/admin/api.ts +0 -27
  361. package/examples/apps/admin/app.tsx +0 -144
  362. package/examples/apps/admin/main.tsx +0 -8
  363. package/examples/apps/admin/server.ts +0 -37
  364. package/examples/apps/auth/README.md +0 -23
  365. package/examples/apps/auth/api.ts +0 -49
  366. package/examples/apps/auth/app.tsx +0 -137
  367. package/examples/apps/auth/main.tsx +0 -8
  368. package/examples/apps/auth/server.ts +0 -37
  369. package/examples/apps/multi/README.md +0 -23
  370. package/examples/apps/multi/app.tsx +0 -83
  371. package/examples/apps/multi/main.tsx +0 -8
  372. package/examples/apps/multi/server.ts +0 -33
  373. package/examples/apps/todo/README.md +0 -23
  374. package/examples/apps/todo/api.ts +0 -26
  375. package/examples/apps/todo/app.tsx +0 -128
  376. package/examples/apps/todo/main.tsx +0 -9
  377. package/examples/apps/todo/server.ts +0 -39
  378. package/examples/hello-world/README.md +0 -9
  379. package/examples/hello-world/client.ts +0 -14
  380. package/examples/hello-world/routes.tsx +0 -26
  381. package/examples/hello-world/server.ts +0 -46
  382. package/examples/patterns/AppShell.tsx +0 -224
  383. package/examples/patterns/Dashboard.tsx +0 -153
  384. package/examples/patterns/DataScreen.tsx +0 -104
  385. package/examples/patterns/DetailPage.tsx +0 -79
  386. package/examples/patterns/Docs.tsx +0 -105
  387. package/examples/patterns/FocusTask.tsx +0 -67
  388. package/examples/patterns/Landing.tsx +0 -90
  389. package/examples/patterns/ListPage.tsx +0 -77
  390. package/examples/patterns/Mobile.tsx +0 -154
  391. package/examples/patterns/SettingsPage.tsx +0 -98
  392. package/examples/patterns/SplitWorkspace.tsx +0 -113
@@ -1,53 +0,0 @@
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 填充具体步骤)
@@ -1,63 +0,0 @@
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 填充具体步骤)
@@ -1,51 +0,0 @@
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 填充具体步骤)
@@ -1,52 +0,0 @@
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 填充具体步骤)
@@ -1,48 +0,0 @@
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 填充具体步骤)
@@ -1,48 +0,0 @@
1
- # CodeBlock · components
2
-
3
- ## 概述
4
-
5
- 代码块:语言标签 + 复制按钮 + 横向滚动
6
-
7
- ## 典型场景
8
-
9
- - 页面模式:workspace、docs(复制即用蓝本——examples/patterns/)
10
- - 数据展示——列表页、详情页、信息呈现
11
-
12
- ## API
13
-
14
- | prop | 类型 | 必填 | 说明 |
15
- |------|------|------|------|
16
- | `code` | `string` | 是 | |
17
- | `lang` | `string` | 否 | |
18
- | `title` | `string` | 否 | |
19
-
20
- ## 用法示例
21
-
22
- ```tsx
23
- <CodeBlock lang="ts" title="示例.ts" code={...} />
24
- {/* 复制按钮 + 语言标签 + 横向滚动 */}
25
- ```
26
-
27
- ## 纪律/坑
28
-
29
- > 三层一致(§6.3):条件渲染 false 是空洞占位——数组项 key 由业务声明
30
-
31
- ## 关系
32
-
33
- - ↑ 用于页面模式:[workspace](../patterns/workspace.md) · [docs](../patterns/docs.md)
34
- - ↑ 用于应用:(暂无)
35
- - → 后端能力:(暂无)
36
-
37
- ## 文件位置
38
-
39
- | 文件 | 路径 |
40
- |------|------|
41
- | 源码 | `src/client/components/CodeBlock/CodeBlock.ts` |
42
- | 样式 | `src/client/components/CodeBlock/CodeBlock.css` |
43
- | 测试 | `src/client/components/CodeBlock/CodeBlock.test.ts` |
44
- | demo | `apps/showcase/src/demos/DemoCodeBlock.tsx`(P1 拆分) |
45
-
46
- ## 验证
47
-
48
- > agent-browser 走查:打开 `/components/display/codeblock` ——(P1 填充具体步骤)
@@ -1,47 +0,0 @@
1
- # CodeEditor · components
2
-
3
- ## 概述
4
-
5
- 轻量代码编辑器——textarea + 行号 + Tab 缩进(零依赖,不引 Monaco)
6
-
7
- ## 典型场景
8
-
9
- - office 文档/代码/内容编辑——xlsx/pptx/代码/公式/裁剪
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `value` | `string` | 是 | |
16
- | `onChange` | `(value: string) => void` | 否 | |
17
- | `lang` | `'ts' \| 'tsx' \| 'js' \| 'css' \| 'json' \| 'md' \| 'text'` | 否 | |
18
- | `rows` | `number` | 否 | |
19
- | `readOnly` | `boolean` | 否 | |
20
- | `placeholder` | `string` | 否 | |
21
- | `className` | `string` | 否 | |
22
-
23
- ## 用法示例
24
-
25
- > (P1 迁移 CODE 字符串)
26
-
27
- ## 纪律/坑
28
-
29
- > 内容编辑:textarea value 走 property(attribute 只是 defaultValue);受控输入纪律
30
-
31
- ## 关系
32
-
33
- - ↑ 用于页面模式:(暂无)
34
- - ↑ 用于应用:(暂无)
35
- - → 后端能力:(暂无)
36
-
37
- ## 文件位置
38
-
39
- | 文件 | 路径 |
40
- |------|------|
41
- | 源码 | `src/client/components/CodeEditor/CodeEditor.ts` |
42
- | 样式 | `src/client/components/CodeEditor/CodeEditor.css` |
43
- | 测试 | `src/client/components/CodeEditor/CodeEditor.test.ts` |
44
-
45
- ## 验证
46
-
47
- > agent-browser 走查:打开 `/components/editor/codeeditor` ——(P1 填充具体步骤)
@@ -1,49 +0,0 @@
1
- # Collapse · components
2
-
3
- ## 概述
4
-
5
- 行内折叠:异步 loading + extra 操作区(区别于 Accordion)
6
-
7
- ## 典型场景
8
-
9
- - 页面导航——侧栏、页头、标签页、步骤、分页
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `items` | `CollapseItem[]` | 否 | |
16
- | `active` | `string[]` | 否 | 受控展开 keys |
17
- | `onChange` | `(keys: string[]) => void` | 否 | |
18
- | `multiple` | `boolean` | 否 | false = 手风琴互斥(同一时间只开一个);默认 true 多开 |
19
- | `className` | `string` | 否 | |
20
-
21
- ## 用法示例
22
-
23
- ```tsx
24
- <Collapse items={[{key:'1',title:'标题',content:'内容',loading}]}
25
- active={['1']} />
26
- ```
27
-
28
- ## 纪律/坑
29
-
30
- - 受控纪律(§5.2):受控 activeKeys 必须配回调——缺回调静默不可点(console.warn 防护)
31
-
32
- ## 关系
33
-
34
- - ↑ 用于页面模式:(暂无)
35
- - ↑ 用于应用:(暂无)
36
- - → 后端能力:(暂无)
37
-
38
- ## 文件位置
39
-
40
- | 文件 | 路径 |
41
- |------|------|
42
- | 源码 | `src/client/components/Collapse/Collapse.ts` |
43
- | 样式 | `src/client/components/Collapse/Collapse.css` |
44
- | 测试 | `src/client/components/Collapse/Collapse.test.ts` |
45
- | demo | `apps/showcase/src/demos/DemoCollapse.tsx`(P1 拆分) |
46
-
47
- ## 验证
48
-
49
- > agent-browser 走查:打开 `/components/navigation/collapse` ——(P1 填充具体步骤)
@@ -1,50 +0,0 @@
1
- # ColorPicker · components
2
-
3
- ## 概述
4
-
5
- 颜色选择:预设色板 + hex 输入(Popover 弹层)
6
-
7
- ## 典型场景
8
-
9
- - 浮层交互——弹窗、下拉、气泡、抽屉、命令面板
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `value` | `string` | 否 | 受控颜色值(hex,如 #4f6ef7) |
16
- | `onChange` | `(value: string) => void` | 否 | |
17
- | `colors` | `string[]` | 否 | 预设色板(默认内置 10 色) |
18
- | `size` | `'sm' \| 'md' \| 'lg'` | 否 | |
19
- | `disabled` | `boolean` | 否 | |
20
- | `showInput` | `boolean` | 否 | 显示 hex 输入框(自由输入) |
21
-
22
- ## 用法示例
23
-
24
- ```tsx
25
- <ColorPicker value={color} showInput
26
- onChange={setColor} />
27
- ```
28
-
29
- ## 纪律/坑
30
-
31
- > 弹窗纪律(§5.4):浮层必须 createPortal 渲染(#__wf_portal)——禁 absolute 相对父容器(overflow/transform 裁剪);统一走 ctx.ui.usePopup
32
-
33
- ## 关系
34
-
35
- - ↑ 用于页面模式:(暂无)
36
- - ↑ 用于应用:(暂无)
37
- - → 后端能力:(暂无)
38
-
39
- ## 文件位置
40
-
41
- | 文件 | 路径 |
42
- |------|------|
43
- | 源码 | `src/client/components/ColorPicker/ColorPicker.ts` |
44
- | 样式 | `src/client/components/ColorPicker/ColorPicker.css` |
45
- | 测试 | `src/client/components/ColorPicker/ColorPicker.test.ts` |
46
- | demo | `apps/showcase/src/demos/DemoColorPicker.tsx`(P1 拆分) |
47
-
48
- ## 验证
49
-
50
- > agent-browser 走查:打开 `/components/overlay/colorpicker` ——(P1 填充具体步骤)
@@ -1,50 +0,0 @@
1
- # Command · components
2
-
3
- ## 概述
4
-
5
- 命令面板:⌘K 全局快捷键 + 键盘流(shadcn Command)
6
-
7
- ## 典型场景
8
-
9
- - 浮层交互——弹窗、下拉、气泡、抽屉、命令面板
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `open` | `boolean` | 否 | |
16
- | `onOpenChange` | `(open: boolean) => void` | 否 | |
17
- | `items` | `CommandItem[]` | 否 | |
18
- | `placeholder` | `string` | 否 | |
19
- | `emptyText` | `string` | 否 | |
20
- | `globalShortcut` | `string \| null` | 否 | 全局快捷键,如 'mod+k'(cmd/ctrl + k);null 关闭全局监听 |
21
-
22
- ## 用法示例
23
-
24
- ```tsx
25
- <Command items={items} open={open}
26
- onOpenChange={setOpen} />
27
- ```
28
-
29
- ## 纪律/坑
30
-
31
- > 弹窗纪律(§5.4):浮层必须 createPortal 渲染(#__wf_portal)——禁 absolute 相对父容器(overflow/transform 裁剪);统一走 ctx.ui.usePopup
32
-
33
- ## 关系
34
-
35
- - ↑ 用于页面模式:(暂无)
36
- - ↑ 用于应用:(暂无)
37
- - → 后端能力:(暂无)
38
-
39
- ## 文件位置
40
-
41
- | 文件 | 路径 |
42
- |------|------|
43
- | 源码 | `src/client/components/Command/Command.ts` |
44
- | 样式 | `src/client/components/Command/Command.css` |
45
- | 测试 | `src/client/components/Command/Command.test.ts` |
46
- | demo | `apps/showcase/src/demos/DemoCommand.tsx`(P1 拆分) |
47
-
48
- ## 验证
49
-
50
- > agent-browser 走查:打开 `/components/overlay/command` ——(P1 填充具体步骤)
@@ -1,57 +0,0 @@
1
- # Confirm · components
2
-
3
- ## 概述
4
-
5
- 确认对话框,Promise 化 await 调用
6
-
7
- ## 典型场景
8
-
9
- - 操作反馈/结果页/确认——保存成功、删除确认、空态/加载态
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `open` | `boolean` | 否 | |
16
- | `title` | `string` | 否 | |
17
- | `message` | `any` | 否 | 提示内容(文本或任意 VNode) |
18
- | `confirmText` | `string` | 否 | |
19
- | `cancelText` | `string` | 否 | |
20
- | `variant` | `'primary' \| 'danger'` | 否 | |
21
- | `width` | `string` | 否 | 对话框宽度,如 '500px'、'80%',默认 Modal 的 400px |
22
- | `maskClosable` | `boolean` | 否 | 遮罩点击是否取消(默认 false:危险操作防误触;显式传 true 可恢复) |
23
- | `onConfirm` | `() => void` | 否 | |
24
- | `onCancel` | `() => void` | 否 | |
25
- | `onClose` | `() => void` | 否 | Modal 关闭回调(Escape/遮罩——onCancel 缺省时兜底——命令式兼容) |
26
-
27
- ## 用法示例
28
-
29
- ```tsx
30
- const ok = await ctx.confirm?.('确定删除?', {
31
- confirmText: '删除',
32
- variant: 'danger',
33
- })
34
- if (ok) { /* 执行 */ }
35
- ```
36
-
37
- ## 纪律/坑
38
-
39
- > 退场动画(§8):exit 类必须挂载(animationend 驱动)+ reduced-motion 降级
40
-
41
- ## 关系
42
-
43
- - ↑ 用于页面模式:(暂无)
44
- - ↑ 用于应用:(暂无)
45
- - → 后端能力:(暂无)
46
-
47
- ## 文件位置
48
-
49
- | 文件 | 路径 |
50
- |------|------|
51
- | 源码 | `src/client/components/Confirm/Confirm.ts` |
52
- | 测试 | `src/client/components/Confirm/Confirm.test.ts` |
53
- | demo | `apps/showcase/src/demos/DemoConfirm.tsx`(P1 拆分) |
54
-
55
- ## 验证
56
-
57
- > agent-browser 走查:打开 `/components/feedback/confirm` ——(P1 填充具体步骤)
@@ -1,48 +0,0 @@
1
- # ContextMenu · components
2
-
3
- ## 概述
4
-
5
- 右键菜单:光标定位 + 方向键 + danger 变体(shadcn)
6
-
7
- ## 典型场景
8
-
9
- - 浮层交互——弹窗、下拉、气泡、抽屉、命令面板
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `items` | `ContextMenuItem[]` | 否 | |
16
- | `children` | `any` | 是 | |
17
- | `className` | `string` | 否 | |
18
-
19
- ## 用法示例
20
-
21
- ```tsx
22
- <ContextMenu items={[{key:'edit',label:'编辑'}]}>
23
- <div>右键区域</div>
24
- </ContextMenu>
25
- ```
26
-
27
- ## 纪律/坑
28
-
29
- - portal 槽豁免;右键 + 触屏长按双通道
30
-
31
- ## 关系
32
-
33
- - ↑ 用于页面模式:(暂无)
34
- - ↑ 用于应用:(暂无)
35
- - → 后端能力:(暂无)
36
-
37
- ## 文件位置
38
-
39
- | 文件 | 路径 |
40
- |------|------|
41
- | 源码 | `src/client/components/ContextMenu/ContextMenu.ts` |
42
- | 样式 | `src/client/components/ContextMenu/ContextMenu.css` |
43
- | 测试 | `src/client/components/ContextMenu/ContextMenu.test.ts` |
44
- | demo | `apps/showcase/src/demos/DemoContextMenu.tsx`(P1 拆分) |
45
-
46
- ## 验证
47
-
48
- > agent-browser 走查:打开 `/components/overlay/contextmenu` ——(P1 填充具体步骤)
@@ -1,51 +0,0 @@
1
- # CopyButton · components
2
-
3
- ## 概述
4
-
5
- 复制按钮:clipboard + execCommand 降级 + 成功状态机
6
-
7
- ## 典型场景
8
-
9
- - 基础元素(按钮/图标/文本/卡片/标签)——任意页面的构成单元
10
-
11
- ## API
12
-
13
- | prop | 类型 | 必填 | 说明 |
14
- |------|------|------|------|
15
- | `value` | `string` | 是 | 要复制的文本 |
16
- | `label` | `string` | 否 | 按钮文字(默认仅图标) |
17
- | `size` | `'sm' \| 'md' \| 'lg'` | 否 | |
18
- | `variant` | `'ghost' \| 'secondary' \| 'default'` | 否 | |
19
- | `iconOnly` | `boolean` | 否 | 仅图标(无文字) |
20
- | `successText` | `string` | 否 | 成功提示文字(默认「已复制」) |
21
- | `onCopied` | `() => void` | 否 | |
22
- | `className` | `string` | 否 | |
23
-
24
- ## 用法示例
25
-
26
- ```tsx
27
- <CopyButton value="https://..." label="复制" />
28
- ```
29
-
30
- ## 纪律/坑
31
-
32
- > 浏览器纪律(§5.5):组件能力经 ctx.browser / ctx.ui.useXXX——禁裸 window/document
33
-
34
- ## 关系
35
-
36
- - ↑ 用于页面模式:(暂无)
37
- - ↑ 用于应用:(暂无)
38
- - → 后端能力:(暂无)
39
-
40
- ## 文件位置
41
-
42
- | 文件 | 路径 |
43
- |------|------|
44
- | 源码 | `src/client/components/CopyButton/CopyButton.ts` |
45
- | 样式 | `src/client/components/CopyButton/CopyButton.css` |
46
- | 测试 | `src/client/components/CopyButton/CopyButton.test.ts` |
47
- | demo | `apps/showcase/src/demos/DemoCopyButton.tsx`(P1 拆分) |
48
-
49
- ## 验证
50
-
51
- > agent-browser 走查:打开 `/components/core/copybutton` ——(P1 填充具体步骤)