npmapps 1.1.4 → 1.1.6

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 (293) hide show
  1. package/app/wujie-wk/dev.log +1979 -0
  2. package/app/wujie-wk/t.html +90 -0
  3. package/app/wujie-wk/wujie-react-child/README.md +126 -0
  4. package/app/wujie-wk/wujie-react-child/eslint.config.js +28 -0
  5. package/app/wujie-wk/wujie-react-child/index.html +13 -0
  6. package/app/wujie-wk/wujie-react-child/package-lock.json +4344 -0
  7. package/app/wujie-wk/wujie-react-child/package.json +32 -0
  8. package/app/wujie-wk/wujie-react-child/public/vite.svg +1 -0
  9. package/app/wujie-wk/wujie-react-child/src/App.css +0 -0
  10. package/app/wujie-wk/wujie-react-child/src/App.tsx +72 -0
  11. package/app/wujie-wk/wujie-react-child/src/assets/react.svg +1 -0
  12. package/app/wujie-wk/wujie-react-child/src/components/FeatureCards.css +63 -0
  13. package/app/wujie-wk/wujie-react-child/src/components/FeatureCards.tsx +112 -0
  14. package/app/wujie-wk/wujie-react-child/src/components/LightCard/index.tsx +36 -0
  15. package/app/wujie-wk/wujie-react-child/src/components/LightCard/style.css +20 -0
  16. package/app/wujie-wk/wujie-react-child/src/hooks/use3DCard.ts +53 -0
  17. package/app/wujie-wk/wujie-react-child/src/hooks/useLightCard.ts +141 -0
  18. package/app/wujie-wk/wujie-react-child/src/index.css +0 -0
  19. package/app/wujie-wk/wujie-react-child/src/main.tsx +8 -0
  20. package/app/wujie-wk/wujie-react-child/src/pages/ChildToParent/index.css +55 -0
  21. package/app/wujie-wk/wujie-react-child/src/pages/ChildToParent/index.tsx +88 -0
  22. package/app/wujie-wk/wujie-react-child/src/pages/Css.tsx +28 -0
  23. package/app/wujie-wk/wujie-react-child/src/pages/Home.tsx +72 -0
  24. package/app/wujie-wk/wujie-react-child/src/pages/ParentToChild.css +85 -0
  25. package/app/wujie-wk/wujie-react-child/src/pages/ParentToChild.tsx +119 -0
  26. package/app/wujie-wk/wujie-react-child/src/pages/RouterJump/index.css +61 -0
  27. package/app/wujie-wk/wujie-react-child/src/pages/RouterJump/index.tsx +87 -0
  28. package/app/wujie-wk/wujie-react-child/src/router/index.tsx +63 -0
  29. package/app/wujie-wk/wujie-react-child/src/types/wujie.d.ts +26 -0
  30. package/app/wujie-wk/wujie-react-child/src/vite-env.d.ts +1 -0
  31. package/app/wujie-wk/wujie-react-child/tsconfig.app.json +26 -0
  32. package/app/wujie-wk/wujie-react-child/tsconfig.json +7 -0
  33. package/app/wujie-wk/wujie-react-child/tsconfig.node.json +24 -0
  34. package/app/wujie-wk/wujie-react-child/vite.config.ts +10 -0
  35. package/app/wujie-wk/wujie-vue2-child/.eslintrc.js +19 -0
  36. package/app/wujie-wk/wujie-vue2-child/README.md +24 -0
  37. package/app/wujie-wk/wujie-vue2-child/babel.config.js +5 -0
  38. package/app/wujie-wk/wujie-vue2-child/docs/superpowers/plans/2026-05-29-quill-editor.md +836 -0
  39. package/app/wujie-wk/wujie-vue2-child/docs/superpowers/specs/2026-05-29-quill-editor-design.md +210 -0
  40. package/app/wujie-wk/wujie-vue2-child/jsconfig.json +19 -0
  41. package/app/wujie-wk/wujie-vue2-child/package-lock.json +21333 -0
  42. package/app/wujie-wk/wujie-vue2-child/package.json +63 -0
  43. package/app/wujie-wk/wujie-vue2-child/postcss.config.js +10 -0
  44. package/app/wujie-wk/wujie-vue2-child/public/favicon.ico +0 -0
  45. package/app/wujie-wk/wujie-vue2-child/public/index.html +17 -0
  46. package/app/wujie-wk/wujie-vue2-child/public/rili.jpg +0 -0
  47. package/app/wujie-wk/wujie-vue2-child/public//344/270/200/351/224/256/351/273/221/346/232/227.html +136 -0
  48. package/app/wujie-wk/wujie-vue2-child/src/App.vue +110 -0
  49. package/app/wujie-wk/wujie-vue2-child/src/assets/bpmn-camunda.jpg +0 -0
  50. package/app/wujie-wk/wujie-vue2-child/src/assets/css/diagram.less +17 -0
  51. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/Icon.less +31 -0
  52. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app-codes.css +26 -0
  53. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.eot +0 -0
  54. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.svg +60 -0
  55. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.ttf +0 -0
  56. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff +0 -0
  57. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff2 +0 -0
  58. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/config.json +248 -0
  59. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-bottom-tool.svg +30 -0
  60. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +85 -0
  61. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-left-tool.svg +84 -0
  62. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-right-tool.svg +80 -0
  63. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-top-tool.svg +84 -0
  64. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +89 -0
  65. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +95 -0
  66. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +99 -0
  67. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/set-color-tool.svg +111 -0
  68. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-bottom-tool.svg +30 -0
  69. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +30 -0
  70. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-left-tool.svg +30 -0
  71. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-right-tool.svg +30 -0
  72. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-top-tool.svg +30 -0
  73. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +30 -0
  74. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +30 -0
  75. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +30 -0
  76. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/set-color-tool.svg +63 -0
  77. package/app/wujie-wk/wujie-vue2-child/src/assets/logo.png +0 -0
  78. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/README.md +70 -0
  79. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/article.md +184 -0
  80. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/index.js +213 -0
  81. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CalendarSkeleton.vue +147 -0
  82. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CodeBlock.vue +199 -0
  83. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/MonthSelect.vue +376 -0
  84. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/README.md +485 -0
  85. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/example.vue +1747 -0
  86. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/index.vue +2720 -0
  87. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/mockData.js +475 -0
  88. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/recruitmentAdapter.js +51 -0
  89. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/utils.js +202 -0
  90. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/FunctionSelector.vue +123 -0
  91. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/OperatorSelector.vue +184 -0
  92. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/ParameterSelector.vue +123 -0
  93. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/api.js +69 -0
  94. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/index.vue +435 -0
  95. package/app/wujie-wk/wujie-vue2-child/src/components/HelloWorld.vue +58 -0
  96. package/app/wujie-wk/wujie-vue2-child/src/components/PageHeader/index.vue +158 -0
  97. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/README.md +144 -0
  98. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/example.vue +84 -0
  99. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/index.vue +203 -0
  100. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/ToolBar.vue +357 -0
  101. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/customTranslate.js +12 -0
  102. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/translationsGerman.js +241 -0
  103. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/index.vue +261 -0
  104. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/xmlData.js +29 -0
  105. package/app/wujie-wk/wujie-vue2-child/src/directives/filldown.js +155 -0
  106. package/app/wujie-wk/wujie-vue2-child/src/directives/filldownTable.js +291 -0
  107. package/app/wujie-wk/wujie-vue2-child/src/main.js +40 -0
  108. package/app/wujie-wk/wujie-vue2-child/src/router/index.js +72 -0
  109. package/app/wujie-wk/wujie-vue2-child/src/store/index.js +23 -0
  110. package/app/wujie-wk/wujie-vue2-child/src/utils/winBox.js +23 -0
  111. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/A.vue +12 -0
  112. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/B.vue +10 -0
  113. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/MagicalComponentsForELFormItem.vue +78 -0
  114. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/index.vue +59 -0
  115. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/tableMouseHorizontalWheel.vue +184 -0
  116. package/app/wujie-wk/wujie-vue2-child/src/views/Home.vue +27 -0
  117. package/app/wujie-wk/wujie-vue2-child/src/views/RouterJump.vue +145 -0
  118. package/app/wujie-wk/wujie-vue2-child/src/views/calendar/index.vue +19 -0
  119. package/app/wujie-wk/wujie-vue2-child/src/views/css.vue +57 -0
  120. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/EllipsisText.vue +73 -0
  121. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/HoverCard.vue +69 -0
  122. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/TableHover.vue +130 -0
  123. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/inputSlo.vue +42 -0
  124. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/tableFixed.vue +148 -0
  125. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/echart-dome.vue +73 -0
  126. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/index.vue +118 -0
  127. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/pei3d.vue +658 -0
  128. package/app/wujie-wk/wujie-vue2-child/src/views/element/bpmn/index.vue +15 -0
  129. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceCycle/index.vue +131 -0
  130. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceGroup/index.vue +147 -0
  131. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendancePersonnel/index.vue +158 -0
  132. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/companyCalendar/index.vue +147 -0
  133. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shift/index.vue +147 -0
  134. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shiftRotationSystem/index.vue +147 -0
  135. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/columnManagement.vue +340 -0
  136. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/dialogInput.vue +71 -0
  137. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/elTableJsx.vue +1826 -0
  138. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/formTable.vue +595 -0
  139. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/index.vue +29 -0
  140. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/simpleTable.vue +189 -0
  141. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx.zip +0 -0
  142. package/app/wujie-wk/wujie-vue2-child/src/views/element/index.vue +39 -0
  143. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/README.md +163 -0
  144. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/example.vue +307 -0
  145. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/index.vue +409 -0
  146. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/toolbar.js +122 -0
  147. package/app/wujie-wk/wujie-vue2-child/vue.config.js +15 -0
  148. package/app/wujie-wk/wujie-vue3-child/.claude/settings.local.json +8 -0
  149. package/app/wujie-wk/wujie-vue3-child/.vscode/extensions.json +3 -0
  150. package/app/wujie-wk/wujie-vue3-child/PROJECT_MEMORY.md +427 -0
  151. package/app/wujie-wk/wujie-vue3-child/README.md +5 -0
  152. package/app/wujie-wk/wujie-vue3-child/index.html +13 -0
  153. package/app/wujie-wk/wujie-vue3-child/package-lock.json +5744 -0
  154. package/app/wujie-wk/wujie-vue3-child/package.json +28 -0
  155. package/app/wujie-wk/wujie-vue3-child/public/vite.svg +1 -0
  156. package/app/wujie-wk/wujie-vue3-child/src/App.vue +130 -0
  157. package/app/wujie-wk/wujie-vue3-child/src/assets/vue.svg +1 -0
  158. package/app/wujie-wk/wujie-vue3-child/src/components/HelloWorld.vue +43 -0
  159. package/app/wujie-wk/wujie-vue3-child/src/components/SmartAnchorTabs/index.jsx +224 -0
  160. package/app/wujie-wk/wujie-vue3-child/src/components/SmartAnchorTabs/style.css +154 -0
  161. package/app/wujie-wk/wujie-vue3-child/src/components/tags-view.vue +193 -0
  162. package/app/wujie-wk/wujie-vue3-child/src/components/tags-view1.vue +131 -0
  163. package/app/wujie-wk/wujie-vue3-child/src/directives/aiLoading.js +182 -0
  164. package/app/wujie-wk/wujie-vue3-child/src/hooks/useClickOutside.js +11 -0
  165. package/app/wujie-wk/wujie-vue3-child/src/hooks/useTableDragSort.js +28 -0
  166. package/app/wujie-wk/wujie-vue3-child/src/main.js +18 -0
  167. package/app/wujie-wk/wujie-vue3-child/src/router/index.js +104 -0
  168. package/app/wujie-wk/wujie-vue3-child/src/store/tagsViewStroe.js +34 -0
  169. package/app/wujie-wk/wujie-vue3-child/src/style.css +171 -0
  170. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.jsx +108 -0
  171. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.module.scss +97 -0
  172. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/README.md +836 -0
  173. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/REFLEX_EXAMPLES.md +728 -0
  174. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.jsx +687 -0
  175. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.module.scss +560 -0
  176. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.jsx +570 -0
  177. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.module.scss +330 -0
  178. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.jsx +378 -0
  179. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.module.scss +228 -0
  180. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.jsx +399 -0
  181. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.module.scss +252 -0
  182. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.jsx +585 -0
  183. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.module.scss +331 -0
  184. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.jsx +392 -0
  185. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.module.scss +39 -0
  186. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/README.md +248 -0
  187. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/SelectorTrigger.jsx +194 -0
  188. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/index.jsx +1459 -0
  189. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/mockData.js +301 -0
  190. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.jsx +182 -0
  191. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.module.scss +28 -0
  192. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/index.jsx +375 -0
  193. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.jsx +121 -0
  194. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.module.scss +76 -0
  195. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/DonutChart/index.jsx +104 -0
  196. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.jsx +75 -0
  197. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.module.scss +12 -0
  198. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.jsx +62 -0
  199. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.module.scss +43 -0
  200. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.jsx +29 -0
  201. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.module.scss +5 -0
  202. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.jsx +58 -0
  203. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.module.scss +85 -0
  204. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.jsx +92 -0
  205. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.module.scss +56 -0
  206. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.jsx +40 -0
  207. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.module.scss +53 -0
  208. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsDonut.jsx +106 -0
  209. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsRankBar.jsx +132 -0
  210. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.jsx +176 -0
  211. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.module.scss +96 -0
  212. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.jsx +162 -0
  213. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.module.scss +16 -0
  214. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.jsx +29 -0
  215. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.module.scss +25 -0
  216. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.jsx +106 -0
  217. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.module.scss +164 -0
  218. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.jsx +182 -0
  219. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.module.scss +203 -0
  220. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.jsx +145 -0
  221. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.module.scss +126 -0
  222. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.jsx +67 -0
  223. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.module.scss +105 -0
  224. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.jsx +81 -0
  225. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.module.scss +47 -0
  226. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.jsx +64 -0
  227. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.module.scss +85 -0
  228. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.jsx +39 -0
  229. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.module.scss +44 -0
  230. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.jsx +83 -0
  231. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.module.scss +101 -0
  232. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/index.jsx +50 -0
  233. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/index.module.scss +25 -0
  234. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/index.jsx +196 -0
  235. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/index.module.scss +41 -0
  236. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.jsx +183 -0
  237. package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.module.scss +115 -0
  238. package/app/wujie-wk/wujie-vue3-child/src/views/child-to-parent.vue +117 -0
  239. package/app/wujie-wk/wujie-vue3-child/src/views/home.vue +53 -0
  240. package/app/wujie-wk/wujie-vue3-child/src/views/jsx/btnSelect/btnSelect.vue +169 -0
  241. package/app/wujie-wk/wujie-vue3-child/src/views/jsx/btnSelect/index.vue +69 -0
  242. package/app/wujie-wk/wujie-vue3-child/src/views/jsx/com.vue +44 -0
  243. package/app/wujie-wk/wujie-vue3-child/src/views/jsx/dialog.jsx +66 -0
  244. package/app/wujie-wk/wujie-vue3-child/src/views/jsx/index.vue +72 -0
  245. package/app/wujie-wk/wujie-vue3-child/src/views/jsx/props.vue +33 -0
  246. package/app/wujie-wk/wujie-vue3-child/src/views/parent-to-child.vue +225 -0
  247. package/app/wujie-wk/wujie-vue3-child/src/views/phone-code.vue +318 -0
  248. package/app/wujie-wk/wujie-vue3-child/src/views/router-jump.vue +123 -0
  249. package/app/wujie-wk/wujie-vue3-child/src/views/test.vue +192 -0
  250. package/app/wujie-wk/wujie-vue3-child/vite.config.js +15 -0
  251. package/app/wujie-wk/wujie-vue3-child copy/.vscode/extensions.json +3 -0
  252. package/app/wujie-wk/wujie-vue3-child copy/README.md +5 -0
  253. package/app/wujie-wk/wujie-vue3-child copy/index.html +13 -0
  254. package/app/wujie-wk/wujie-vue3-child copy/package-lock.json +4617 -0
  255. package/app/wujie-wk/wujie-vue3-child copy/package.json +22 -0
  256. package/app/wujie-wk/wujie-vue3-child copy/public/vite.svg +1 -0
  257. package/app/wujie-wk/wujie-vue3-child copy/src/App.vue +124 -0
  258. package/app/wujie-wk/wujie-vue3-child copy/src/assets/vue.svg +1 -0
  259. package/app/wujie-wk/wujie-vue3-child copy/src/components/HelloWorld.vue +43 -0
  260. package/app/wujie-wk/wujie-vue3-child copy/src/main.js +12 -0
  261. package/app/wujie-wk/wujie-vue3-child copy/src/router/index.js +84 -0
  262. package/app/wujie-wk/wujie-vue3-child copy/src/style.css +4 -0
  263. package/app/wujie-wk/wujie-vue3-child copy/src/views/child-to-parent.vue +117 -0
  264. package/app/wujie-wk/wujie-vue3-child copy/src/views/home.vue +53 -0
  265. package/app/wujie-wk/wujie-vue3-child copy/src/views/parent-to-child.vue +225 -0
  266. package/app/wujie-wk/wujie-vue3-child copy/src/views/phone-code.vue +318 -0
  267. package/app/wujie-wk/wujie-vue3-child copy/src/views/router-jump.vue +115 -0
  268. package/app/wujie-wk/wujie-vue3-child copy/src/views/test.vue +192 -0
  269. package/app/wujie-wk/wujie-vue3-child copy/vite.config.js +10 -0
  270. package/app/wujie-wk/wujie-vue3-main/.vscode/extensions.json +3 -0
  271. package/app/wujie-wk/wujie-vue3-main/README.md +154 -0
  272. package/app/wujie-wk/wujie-vue3-main/index.html +13 -0
  273. package/app/wujie-wk/wujie-vue3-main/package-lock.json +4736 -0
  274. package/app/wujie-wk/wujie-vue3-main/package.json +25 -0
  275. package/app/wujie-wk/wujie-vue3-main/public/vite.svg +1 -0
  276. package/app/wujie-wk/wujie-vue3-main/src/App.vue +879 -0
  277. package/app/wujie-wk/wujie-vue3-main/src/assets/vue.svg +1 -0
  278. package/app/wujie-wk/wujie-vue3-main/src/components/HelloWorld.vue +43 -0
  279. package/app/wujie-wk/wujie-vue3-main/src/components/WujieReact/index.vue +20 -0
  280. package/app/wujie-wk/wujie-vue3-main/src/components/WujieVue2/index.vue +8 -0
  281. package/app/wujie-wk/wujie-vue3-main/src/components/WujieVue3/index.vue +8 -0
  282. package/app/wujie-wk/wujie-vue3-main/src/components/WujieVue3Copy/index.vue +8 -0
  283. package/app/wujie-wk/wujie-vue3-main/src/main.js +23 -0
  284. package/app/wujie-wk/wujie-vue3-main/src/router/index.js +88 -0
  285. package/app/wujie-wk/wujie-vue3-main/src/store/useMicroAppStore.js +66 -0
  286. package/app/wujie-wk/wujie-vue3-main/src/style.css +3 -0
  287. package/app/wujie-wk/wujie-vue3-main/src/views/home.vue +103 -0
  288. package/app/wujie-wk/wujie-vue3-main/src/views/router-jump.vue +159 -0
  289. package/app/wujie-wk/wujie-vue3-main/src/views/test.vue +125 -0
  290. package/app/wujie-wk/wujie-vue3-main/src/views/vue3-child-msg.vue +108 -0
  291. package/app/wujie-wk/wujie-vue3-main/vite.config.js +12 -0
  292. package/package.json +1 -1
  293. package/app/check-import-case.js +0 -344
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "wujie-react-child",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc -b && vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "@types/react-router-dom": "^5.3.3",
14
+ "antd": "^5.24.0",
15
+ "react": "^19.0.0",
16
+ "react-dom": "^19.0.0",
17
+ "react-router-dom": "^7.1.5"
18
+ },
19
+ "devDependencies": {
20
+ "@eslint/js": "^9.19.0",
21
+ "@types/react": "^19.0.8",
22
+ "@types/react-dom": "^19.0.3",
23
+ "@vitejs/plugin-react": "^4.3.4",
24
+ "eslint": "^9.19.0",
25
+ "eslint-plugin-react-hooks": "^5.0.0",
26
+ "eslint-plugin-react-refresh": "^0.4.18",
27
+ "globals": "^15.14.0",
28
+ "typescript": "~5.7.2",
29
+ "typescript-eslint": "^8.22.0",
30
+ "vite": "^6.1.0"
31
+ }
32
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
File without changes
@@ -0,0 +1,72 @@
1
+ // 导入必要的依赖和样式
2
+ import './App.css'
3
+ import { BrowserRouter, Routes, Route, useNavigate } from 'react-router-dom'
4
+ import { Menu } from 'antd'
5
+ import type { MenuProps } from 'antd'
6
+ import { useEffect, useState } from 'react'
7
+ import { routes,getMenuItems } from './router/index.tsx'
8
+ import type { WujieRouteJumpDataT } from './types/wujie'
9
+
10
+ // 应用内容组件
11
+ function AppContent() {
12
+ // 在组件挂载时初始化无界通信
13
+ useEffect(() => {
14
+ const wujie = window.$wujie;
15
+ if (wujie?.bus) {
16
+ // 监听其他应用发起的路由跳转事件
17
+ wujie.bus.$on('router-jump', (data: WujieRouteJumpDataT) => {
18
+ if (data.app === 'react-child') {
19
+ // 构建带查询参数的URL并进行导航
20
+ const queryString = data.query ? `?${new URLSearchParams(data.query as Record<string, string>).toString()}` : '';
21
+ navigate(`${data.path}${queryString}`);
22
+ }
23
+ });
24
+ // 向主应用发送加载完成事件
25
+ wujie.bus.$emit('loaded', 'react-child');
26
+ } else {
27
+ console.warn('无界实例未正确初始化');
28
+ }
29
+ }, []);
30
+
31
+ // 菜单当前选中项状态
32
+ const [current, setCurrent] = useState('home');
33
+ const navigate = useNavigate();
34
+
35
+ // 菜单点击事件处理
36
+ const onClick: MenuProps['onClick'] = (e) => {
37
+ setCurrent(e.key);
38
+ navigate(e.key === 'home' ? '/' : `/${e.key}`);
39
+ }
40
+
41
+ // 渲染导航菜单和路由内容
42
+ return (
43
+ <>
44
+ <Menu
45
+ onClick={onClick}
46
+ selectedKeys={[current]}
47
+ mode="horizontal"
48
+ items={getMenuItems()}
49
+ />
50
+ <Routes>
51
+ {routes.map(route => (
52
+ <Route
53
+ key={route.path}
54
+ path={route.path}
55
+ element={route.element}
56
+ />
57
+ ))}
58
+ </Routes>
59
+ </>
60
+ )
61
+ }
62
+
63
+ // 根组件
64
+ function App() {
65
+ return (
66
+ <BrowserRouter>
67
+ <AppContent />
68
+ </BrowserRouter>
69
+ )
70
+ }
71
+
72
+ export default App
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
@@ -0,0 +1,63 @@
1
+ .feature-cards-container {
2
+ padding: 24px;
3
+ }
4
+
5
+ .feature-card {
6
+ height: 100%;
7
+ border: none;
8
+ border-radius: 12px;
9
+ overflow: hidden;
10
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
11
+ }
12
+
13
+ .feature-card:hover {
14
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
15
+ }
16
+
17
+ .feature-content {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ text-align: center;
22
+ color: white;
23
+ }
24
+
25
+ .feature-icon {
26
+ font-size: 2.5rem;
27
+ margin-bottom: 16px;
28
+ }
29
+
30
+ .feature-content h3 {
31
+ margin: 0 0 8px;
32
+ font-size: 1.25rem;
33
+ font-weight: 600;
34
+ color: white;
35
+ }
36
+
37
+ .feature-content p {
38
+ margin: 0;
39
+ font-size: 0.875rem;
40
+ opacity: 0.9;
41
+ color: white;
42
+ }
43
+
44
+ /* 覆盖 Ant Design Card 的默认样式 */
45
+ .feature-card .ant-card-body {
46
+ padding: 24px;
47
+ height: 100%;
48
+ }
49
+
50
+ /* 响应式调整 */
51
+ @media (max-width: 768px) {
52
+ .feature-icon {
53
+ font-size: 2rem;
54
+ }
55
+
56
+ .feature-content h3 {
57
+ font-size: 1.1rem;
58
+ }
59
+
60
+ .feature-content p {
61
+ font-size: 0.8rem;
62
+ }
63
+ }
@@ -0,0 +1,112 @@
1
+ import React from 'react';
2
+ import { Card, Row, Col } from 'antd';
3
+ import { use3DCard } from '../hooks/use3DCard';
4
+ import {
5
+ AppstoreOutlined,
6
+ ApiOutlined,
7
+ DatabaseOutlined,
8
+ ScheduleOutlined,
9
+ RobotOutlined,
10
+ CloudServerOutlined,
11
+ CodeOutlined,
12
+ SettingOutlined
13
+ } from '@ant-design/icons';
14
+ import './FeatureCards.css';
15
+
16
+ const FeatureCards: React.FC = () => {
17
+ const card1Ref = use3DCard({ sensitivity: 25 });
18
+ const card2Ref = use3DCard({ sensitivity: 25 });
19
+ const card3Ref = use3DCard({ sensitivity: 25 });
20
+ const card4Ref = use3DCard({ sensitivity: 25 });
21
+ const card5Ref = use3DCard({ sensitivity: 25 });
22
+ const card6Ref = use3DCard({ sensitivity: 25 });
23
+ const card7Ref = use3DCard({ sensitivity: 25 });
24
+ const card8Ref = use3DCard({ sensitivity: 25 });
25
+
26
+ const features = [
27
+ {
28
+ icon: <AppstoreOutlined className="feature-icon" />,
29
+ title: '插件系统',
30
+ description: '增强机器人的能力',
31
+ ref: card1Ref,
32
+ gradient: 'linear-gradient(135deg, #FF6B6B, #FF8E53)'
33
+ },
34
+ {
35
+ icon: <ApiOutlined className="feature-icon" />,
36
+ title: '工作流',
37
+ description: '将想法转化为机器人技能',
38
+ ref: card2Ref,
39
+ gradient: 'linear-gradient(135deg, #4ECDC4, #556270)'
40
+ },
41
+ {
42
+ icon: <DatabaseOutlined className="feature-icon" />,
43
+ title: '长期记忆',
44
+ description: '持久化的数据存储能力',
45
+ ref: card3Ref,
46
+ gradient: 'linear-gradient(135deg, #6C5B7B, #C06C84)'
47
+ },
48
+ {
49
+ icon: <ScheduleOutlined className="feature-icon" />,
50
+ title: '定时任务',
51
+ description: '自动化的对话触发',
52
+ ref: card4Ref,
53
+ gradient: 'linear-gradient(135deg, #3494E6, #EC6EAD)'
54
+ },
55
+ {
56
+ icon: <RobotOutlined className="feature-icon" />,
57
+ title: 'AI 助手',
58
+ description: '智能对话与任务处理',
59
+ ref: card5Ref,
60
+ gradient: 'linear-gradient(135deg, #11998E, #38EF7D)'
61
+ },
62
+ {
63
+ icon: <CloudServerOutlined className="feature-icon" />,
64
+ title: '云端部署',
65
+ description: '灵活的部署选项',
66
+ ref: card6Ref,
67
+ gradient: 'linear-gradient(135deg, #F857A6, #FF5858)'
68
+ },
69
+ {
70
+ icon: <CodeOutlined className="feature-icon" />,
71
+ title: '开发工具',
72
+ description: '完整的开发支持',
73
+ ref: card7Ref,
74
+ gradient: 'linear-gradient(135deg, #5433FF, #20BDFF)'
75
+ },
76
+ {
77
+ icon: <SettingOutlined className="feature-icon" />,
78
+ title: '系统配置',
79
+ description: '灵活的系统设置',
80
+ ref: card8Ref,
81
+ gradient: 'linear-gradient(135deg, #A8E063, #56AB2F)'
82
+ }
83
+ ];
84
+
85
+ return (
86
+ <div className="feature-cards-container">
87
+ <Row gutter={[24, 24]}>
88
+ {features.map((feature, index) => (
89
+ <Col xs={24} sm={12} md={8} lg={6} key={index}>
90
+ <Card
91
+ ref={feature.ref}
92
+ className="feature-card"
93
+ style={{
94
+ background: feature.gradient,
95
+ transition: 'transform 0.3s ease'
96
+ }}
97
+ hoverable
98
+ >
99
+ <div className="feature-content">
100
+ {feature.icon}
101
+ <h3>{feature.title}</h3>
102
+ <p>{feature.description}</p>
103
+ </div>
104
+ </Card>
105
+ </Col>
106
+ ))}
107
+ </Row>
108
+ </div>
109
+ );
110
+ };
111
+
112
+ export default FeatureCards;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { useLightCard } from '../../hooks/useLightCard';
3
+ import './style.css';
4
+
5
+ const LightCard: React.FC = () => {
6
+ const cardRefs = [
7
+ useLightCard(),
8
+ useLightCard({ light: { color: '#ffffff', width: 100 } }),
9
+ useLightCard({ light: { color: '#ffeb3b', width: 80, blur: 50 } }),
10
+ useLightCard({ light: { color: '#4caf50', width: 70, blur: 45 } }),
11
+ useLightCard({ light: { color: '#2196f3', width: 90, blur: 55 } }),
12
+ useLightCard({ light: { color: '#9c27b0', width: 85, blur: 48 } }),
13
+ useLightCard({ light: { color: '#e91e63', width: 75, blur: 42 } }),
14
+ useLightCard({ light: { color: '#ff5722', width: 95, blur: 52 } }),
15
+ useLightCard({ light: { color: '#00bcd4', width: 88, blur: 47 } }),
16
+ useLightCard({ light: { color: '#8bc34a', width: 82, blur: 44 } }),
17
+ useLightCard({ light: { color: '#ffc107', width: 78, blur: 46 } }),
18
+ useLightCard({ light: { color: '#795548', width: 92, blur: 51 } }),
19
+ useLightCard({ light: { color: '#607d8b', width: 86, blur: 49 } }),
20
+ useLightCard({ light: { color: '#f44336', width: 73, blur: 43 } }),
21
+ useLightCard({ light: { color: '#009688', width: 87, blur: 50 } }),
22
+ useLightCard({ light: { color: '#673ab7', width: 83, blur: 45 } }),
23
+ useLightCard({ light: { color: '#3f51b5', width: 77, blur: 48 } }),
24
+ useLightCard({ light: { color: '#ff9800', width: 89, blur: 53 } })
25
+ ];
26
+
27
+ return (
28
+ <div className="light-card-container">
29
+ {cardRefs.map((ref, index) => (
30
+ <div key={index} className="light-card-item" ref={ref.cardRef}></div>
31
+ ))}
32
+ </div>
33
+ );
34
+ };
35
+
36
+ export default LightCard;
@@ -0,0 +1,20 @@
1
+ .light-card-container {
2
+ background: black;
3
+ width: 100%;
4
+ box-sizing: border-box;
5
+ min-height: 100vh;
6
+ padding: 40px;
7
+ display: grid;
8
+ grid-template-columns: repeat(6, 1fr);
9
+ gap: 20px;
10
+ justify-items: center;
11
+ }
12
+
13
+ .light-card-item {
14
+ position: relative;
15
+ width: 220px;
16
+ height: 220px;
17
+ background: #1c1c1f;
18
+ border: 1px solid rgba(255, 255, 255, 0.1);
19
+ transition: transform 0.3s ease;
20
+ }
@@ -0,0 +1,53 @@
1
+ import { useRef, useEffect } from 'react';
2
+
3
+ interface Use3DCardProps {
4
+ sensitivity?: number;
5
+ resetOnLeave?: boolean;
6
+ perspective?: number;
7
+ }
8
+
9
+ export const use3DCard = ({
10
+ sensitivity = 35,
11
+ resetOnLeave = true,
12
+ perspective = 1000
13
+ }: Use3DCardProps = {}) => {
14
+ const cardRef = useRef<HTMLDivElement>(null);
15
+
16
+ useEffect(() => {
17
+ const card = cardRef.current;
18
+ if (!card) return;
19
+
20
+ const handleMouseMove = (e: MouseEvent) => {
21
+ const rect = card.getBoundingClientRect();
22
+ const centerX = rect.left + rect.width / 2;
23
+ const centerY = rect.top + rect.height / 2;
24
+ const mouseX = e.clientX;
25
+ const mouseY = e.clientY;
26
+
27
+ const rotateX = ((mouseY - centerY) / sensitivity) * -1;
28
+ const rotateY = (mouseX - centerX) / sensitivity;
29
+
30
+ card.style.transform = `perspective(${perspective}px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
31
+ };
32
+
33
+ const handleMouseLeave = () => {
34
+ if (resetOnLeave) {
35
+ card.style.transform = 'perspective(1000px) rotateX(0) rotateY(0)';
36
+ }
37
+ };
38
+
39
+ card.addEventListener('mousemove', handleMouseMove);
40
+ if (resetOnLeave) {
41
+ card.addEventListener('mouseleave', handleMouseLeave);
42
+ }
43
+
44
+ return () => {
45
+ card.removeEventListener('mousemove', handleMouseMove);
46
+ if (resetOnLeave) {
47
+ card.removeEventListener('mouseleave', handleMouseLeave);
48
+ }
49
+ };
50
+ }, [sensitivity, resetOnLeave, perspective]);
51
+
52
+ return cardRef;
53
+ };
@@ -0,0 +1,141 @@
1
+ import { useRef, useEffect } from 'react';
2
+
3
+ /**
4
+ * 光效卡片配置接口
5
+ * @interface LightOptions
6
+ * @property {Object} light - 光效相关配置
7
+ * @property {number} light.width - 光效宽度(像素)
8
+ * @property {number} light.height - 光效高度(像素)
9
+ * @property {string} light.color - 光效颜色
10
+ * @property {number} light.blur - 模糊程度(像素)
11
+ */
12
+ interface LightOptions {
13
+ light?: {
14
+ width?: number;
15
+ height?: number;
16
+ color?: string;
17
+ blur?: number;
18
+ };
19
+ }
20
+
21
+ /**
22
+ * 光效卡片Hook
23
+ * 实现鼠标悬停时的光效和3D旋转效果
24
+ * @param {LightOptions} options - 光效配置选项
25
+ * @returns {Object} 返回包含cardRef的对象,用于绑定到DOM元素
26
+ */
27
+ export const useLightCard = (options: LightOptions = {}) => {
28
+ // 卡片DOM引用
29
+ const cardRef = useRef<HTMLDivElement>(null);
30
+ // 光效DOM引用
31
+ const lightRef = useRef<HTMLDivElement | null>(null);
32
+ // 保存卡片原始overflow样式
33
+ let cardOverflow = '';
34
+
35
+ useEffect(() => {
36
+ // 创建光效元素
37
+ lightRef.current = document.createElement('div');
38
+ // 解构配置参数,设置默认值
39
+ const { width = 60, height = 60, color = '#ff4132', blur = 40 } = options.light ?? {};
40
+
41
+ // 设置光效元素样式
42
+ if (lightRef.current) {
43
+ lightRef.current.style.position = 'absolute';
44
+ lightRef.current.style.width = `${width}px`;
45
+ lightRef.current.style.height = `${height}px`;
46
+ lightRef.current.style.background = color;
47
+ lightRef.current.style.filter = `blur(${blur}px)`;
48
+ }
49
+
50
+ // 设置卡片overflow为hidden,防止光效溢出
51
+ const setCardOverflowHidden = () => {
52
+ if (cardRef.current) {
53
+ cardOverflow = cardRef.current.style.overflow;
54
+ cardRef.current.style.overflow = 'hidden';
55
+ }
56
+ };
57
+
58
+ // 恢复卡片原始overflow样式
59
+ const restoreCardOverflow = () => {
60
+ if (cardRef.current) {
61
+ cardRef.current.style.overflow = cardOverflow;
62
+ }
63
+ };
64
+
65
+ // 添加光效元素到卡片
66
+ const addLight = () => {
67
+ if (cardRef.current && lightRef.current) {
68
+ cardRef.current.appendChild(lightRef.current);
69
+ }
70
+ };
71
+
72
+ // 从卡片移除光效元素
73
+ const removeLight = () => {
74
+ if (cardRef.current && lightRef.current) {
75
+ cardRef.current.removeChild(lightRef.current);
76
+ }
77
+ };
78
+
79
+ // 鼠标进入事件处理
80
+ const handleMouseEnter = () => {
81
+ addLight();
82
+ setCardOverflowHidden();
83
+ };
84
+
85
+ // 鼠标移动事件处理
86
+ const handleMouseMove = (e: MouseEvent) => {
87
+ const { clientX, clientY } = e;
88
+ if (cardRef.current && lightRef.current) {
89
+ // 获取卡片和光效元素的位置信息
90
+ const { x, y } = cardRef.current.getBoundingClientRect();
91
+ const { width, height } = lightRef.current.getBoundingClientRect();
92
+
93
+ // 更新光效元素位置,跟随鼠标移动
94
+ lightRef.current.style.left = `${clientX - x - width / 2}px`;
95
+ lightRef.current.style.top = `${clientY - y - height / 2}px`;
96
+
97
+ // 3D旋转效果参数
98
+ const maxXRotation = 10; // 最大X轴旋转角度
99
+ const maxYRotation = 10; // 最大Y轴旋转角度
100
+ const rangeX = 200 / 2; // X轴旋转范围
101
+ const rangeY = 200 / 2; // Y轴旋转范围
102
+
103
+ // 计算旋转角度
104
+ const rotateX = ((clientX - x - rangeY) / rangeY) * maxXRotation;
105
+ const rotateY = -1 * ((clientY - y - rangeX) / rangeX) * maxYRotation;
106
+
107
+ // 应用3D变换
108
+ cardRef.current.style.transform = `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
109
+ }
110
+ };
111
+
112
+ // 鼠标离开事件处理
113
+ const handleMouseLeave = () => {
114
+ removeLight();
115
+ restoreCardOverflow();
116
+ if (cardRef.current) {
117
+ // 重置3D变换
118
+ cardRef.current.style.transform = 'perspective(1000px) rotateX(0deg) rotateY(0deg)';
119
+ }
120
+ };
121
+
122
+ // 绑定事件监听
123
+ const card = cardRef.current;
124
+ if (card) {
125
+ card.addEventListener('mouseenter', handleMouseEnter);
126
+ card.addEventListener('mousemove', handleMouseMove);
127
+ card.addEventListener('mouseleave', handleMouseLeave);
128
+ }
129
+
130
+ // 清理函数:移除事件监听
131
+ return () => {
132
+ if (card) {
133
+ card.removeEventListener('mouseenter', handleMouseEnter);
134
+ card.removeEventListener('mousemove', handleMouseMove);
135
+ card.removeEventListener('mouseleave', handleMouseLeave);
136
+ }
137
+ };
138
+ }, [options.light]); // 依赖项:当light配置变化时重新执行
139
+
140
+ return { cardRef };
141
+ };
File without changes
@@ -0,0 +1,8 @@
1
+ // import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
+ import './index.css'
4
+ import App from './App.tsx'
5
+
6
+ createRoot(document.getElementById('root')!).render(
7
+ <App></App>
8
+ )
@@ -0,0 +1,55 @@
1
+ .child-to-parent {
2
+ padding: 20px;
3
+ max-width: 600px;
4
+ margin: 0 auto;
5
+ }
6
+
7
+ .child-to-parent h1 {
8
+ color: #333;
9
+ margin-bottom: 30px;
10
+ text-align: center;
11
+ }
12
+
13
+ .form-container {
14
+ background: #fff;
15
+ padding: 24px;
16
+ border-radius: 8px;
17
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
18
+ }
19
+
20
+ /* 自定义Ant Design组件样式 */
21
+ .form-container .ant-form-item-label > label {
22
+ color: #606266;
23
+ }
24
+
25
+ .form-container .ant-input,
26
+ .form-container .ant-select-selector,
27
+ .form-container .ant-input-number {
28
+ height: 36px;
29
+ border: 1px solid #dcdfe6;
30
+ border-radius: 4px;
31
+ transition: border-color 0.2s;
32
+ }
33
+
34
+ .form-container .ant-input:focus,
35
+ .form-container .ant-select-selector:focus,
36
+ .form-container .ant-input-number:focus {
37
+ border-color: #409eff;
38
+ box-shadow: none;
39
+ }
40
+
41
+ .form-container .ant-btn-primary {
42
+ height: 40px;
43
+ background-color: #409eff;
44
+ border: none;
45
+ border-radius: 4px;
46
+ transition: background-color 0.3s;
47
+ }
48
+
49
+ .form-container .ant-btn-primary:hover {
50
+ background-color: #66b1ff;
51
+ }
52
+
53
+ .form-container .ant-btn-primary:active {
54
+ background-color: #3a8ee6;
55
+ }