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.
- package/app/wujie-wk/dev.log +1979 -0
- package/app/wujie-wk/t.html +90 -0
- package/app/wujie-wk/wujie-react-child/README.md +126 -0
- package/app/wujie-wk/wujie-react-child/eslint.config.js +28 -0
- package/app/wujie-wk/wujie-react-child/index.html +13 -0
- package/app/wujie-wk/wujie-react-child/package-lock.json +4344 -0
- package/app/wujie-wk/wujie-react-child/package.json +32 -0
- package/app/wujie-wk/wujie-react-child/public/vite.svg +1 -0
- package/app/wujie-wk/wujie-react-child/src/App.css +0 -0
- package/app/wujie-wk/wujie-react-child/src/App.tsx +72 -0
- package/app/wujie-wk/wujie-react-child/src/assets/react.svg +1 -0
- package/app/wujie-wk/wujie-react-child/src/components/FeatureCards.css +63 -0
- package/app/wujie-wk/wujie-react-child/src/components/FeatureCards.tsx +112 -0
- package/app/wujie-wk/wujie-react-child/src/components/LightCard/index.tsx +36 -0
- package/app/wujie-wk/wujie-react-child/src/components/LightCard/style.css +20 -0
- package/app/wujie-wk/wujie-react-child/src/hooks/use3DCard.ts +53 -0
- package/app/wujie-wk/wujie-react-child/src/hooks/useLightCard.ts +141 -0
- package/app/wujie-wk/wujie-react-child/src/index.css +0 -0
- package/app/wujie-wk/wujie-react-child/src/main.tsx +8 -0
- package/app/wujie-wk/wujie-react-child/src/pages/ChildToParent/index.css +55 -0
- package/app/wujie-wk/wujie-react-child/src/pages/ChildToParent/index.tsx +88 -0
- package/app/wujie-wk/wujie-react-child/src/pages/Css.tsx +28 -0
- package/app/wujie-wk/wujie-react-child/src/pages/Home.tsx +72 -0
- package/app/wujie-wk/wujie-react-child/src/pages/ParentToChild.css +85 -0
- package/app/wujie-wk/wujie-react-child/src/pages/ParentToChild.tsx +119 -0
- package/app/wujie-wk/wujie-react-child/src/pages/RouterJump/index.css +61 -0
- package/app/wujie-wk/wujie-react-child/src/pages/RouterJump/index.tsx +87 -0
- package/app/wujie-wk/wujie-react-child/src/router/index.tsx +63 -0
- package/app/wujie-wk/wujie-react-child/src/types/wujie.d.ts +26 -0
- package/app/wujie-wk/wujie-react-child/src/vite-env.d.ts +1 -0
- package/app/wujie-wk/wujie-react-child/tsconfig.app.json +26 -0
- package/app/wujie-wk/wujie-react-child/tsconfig.json +7 -0
- package/app/wujie-wk/wujie-react-child/tsconfig.node.json +24 -0
- package/app/wujie-wk/wujie-react-child/vite.config.ts +10 -0
- package/app/wujie-wk/wujie-vue2-child/.eslintrc.js +19 -0
- package/app/wujie-wk/wujie-vue2-child/README.md +24 -0
- package/app/wujie-wk/wujie-vue2-child/babel.config.js +5 -0
- package/app/wujie-wk/wujie-vue2-child/docs/superpowers/plans/2026-05-29-quill-editor.md +836 -0
- package/app/wujie-wk/wujie-vue2-child/docs/superpowers/specs/2026-05-29-quill-editor-design.md +210 -0
- package/app/wujie-wk/wujie-vue2-child/jsconfig.json +19 -0
- package/app/wujie-wk/wujie-vue2-child/package-lock.json +21333 -0
- package/app/wujie-wk/wujie-vue2-child/package.json +63 -0
- package/app/wujie-wk/wujie-vue2-child/postcss.config.js +10 -0
- package/app/wujie-wk/wujie-vue2-child/public/favicon.ico +0 -0
- package/app/wujie-wk/wujie-vue2-child/public/index.html +17 -0
- package/app/wujie-wk/wujie-vue2-child/public/rili.jpg +0 -0
- package/app/wujie-wk/wujie-vue2-child/public//344/270/200/351/224/256/351/273/221/346/232/227.html +136 -0
- package/app/wujie-wk/wujie-vue2-child/src/App.vue +110 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/bpmn-camunda.jpg +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/css/diagram.less +17 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/Icon.less +31 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app-codes.css +26 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.eot +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.svg +60 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.ttf +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff2 +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/config.json +248 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-bottom-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +85 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-left-tool.svg +84 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-right-tool.svg +80 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-top-tool.svg +84 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +89 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +95 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +99 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/set-color-tool.svg +111 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-bottom-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-left-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-right-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-top-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +30 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/set-color-tool.svg +63 -0
- package/app/wujie-wk/wujie-vue2-child/src/assets/logo.png +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/README.md +70 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/article.md +184 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/index.js +213 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CalendarSkeleton.vue +147 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CodeBlock.vue +199 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/MonthSelect.vue +376 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/README.md +485 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/example.vue +1747 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/index.vue +2720 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/mockData.js +475 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/recruitmentAdapter.js +51 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/utils.js +202 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/FunctionSelector.vue +123 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/OperatorSelector.vue +184 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/ParameterSelector.vue +123 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/api.js +69 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/index.vue +435 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/HelloWorld.vue +58 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/PageHeader/index.vue +158 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/README.md +144 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/example.vue +84 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/index.vue +203 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/diagram/ToolBar.vue +357 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/customTranslate.js +12 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/translationsGerman.js +241 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/diagram/index.vue +261 -0
- package/app/wujie-wk/wujie-vue2-child/src/components/diagram/xmlData.js +29 -0
- package/app/wujie-wk/wujie-vue2-child/src/directives/filldown.js +155 -0
- package/app/wujie-wk/wujie-vue2-child/src/directives/filldownTable.js +291 -0
- package/app/wujie-wk/wujie-vue2-child/src/main.js +40 -0
- package/app/wujie-wk/wujie-vue2-child/src/router/index.js +72 -0
- package/app/wujie-wk/wujie-vue2-child/src/store/index.js +23 -0
- package/app/wujie-wk/wujie-vue2-child/src/utils/winBox.js +23 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/Extend/A.vue +12 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/Extend/B.vue +10 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/Extend/MagicalComponentsForELFormItem.vue +78 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/Extend/index.vue +59 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/Extend/tableMouseHorizontalWheel.vue +184 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/Home.vue +27 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/RouterJump.vue +145 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/calendar/index.vue +19 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/css.vue +57 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/EllipsisText.vue +73 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/HoverCard.vue +69 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/TableHover.vue +130 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/inputSlo.vue +42 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/tableFixed.vue +148 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/echarts/echart-dome.vue +73 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/echarts/index.vue +118 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/echarts/pei3d.vue +658 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/bpmn/index.vue +15 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceCycle/index.vue +131 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceGroup/index.vue +147 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendancePersonnel/index.vue +158 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/components/companyCalendar/index.vue +147 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shift/index.vue +147 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shiftRotationSystem/index.vue +147 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/columnManagement.vue +340 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/dialogInput.vue +71 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/elTableJsx.vue +1826 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/formTable.vue +595 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/index.vue +29 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/simpleTable.vue +189 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx.zip +0 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/index.vue +39 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/README.md +163 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/example.vue +307 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/index.vue +409 -0
- package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/toolbar.js +122 -0
- package/app/wujie-wk/wujie-vue2-child/vue.config.js +15 -0
- package/app/wujie-wk/wujie-vue3-child/.claude/settings.local.json +8 -0
- package/app/wujie-wk/wujie-vue3-child/.vscode/extensions.json +3 -0
- package/app/wujie-wk/wujie-vue3-child/PROJECT_MEMORY.md +427 -0
- package/app/wujie-wk/wujie-vue3-child/README.md +5 -0
- package/app/wujie-wk/wujie-vue3-child/index.html +13 -0
- package/app/wujie-wk/wujie-vue3-child/package-lock.json +5744 -0
- package/app/wujie-wk/wujie-vue3-child/package.json +28 -0
- package/app/wujie-wk/wujie-vue3-child/public/vite.svg +1 -0
- package/app/wujie-wk/wujie-vue3-child/src/App.vue +130 -0
- package/app/wujie-wk/wujie-vue3-child/src/assets/vue.svg +1 -0
- package/app/wujie-wk/wujie-vue3-child/src/components/HelloWorld.vue +43 -0
- package/app/wujie-wk/wujie-vue3-child/src/components/SmartAnchorTabs/index.jsx +224 -0
- package/app/wujie-wk/wujie-vue3-child/src/components/SmartAnchorTabs/style.css +154 -0
- package/app/wujie-wk/wujie-vue3-child/src/components/tags-view.vue +193 -0
- package/app/wujie-wk/wujie-vue3-child/src/components/tags-view1.vue +131 -0
- package/app/wujie-wk/wujie-vue3-child/src/directives/aiLoading.js +182 -0
- package/app/wujie-wk/wujie-vue3-child/src/hooks/useClickOutside.js +11 -0
- package/app/wujie-wk/wujie-vue3-child/src/hooks/useTableDragSort.js +28 -0
- package/app/wujie-wk/wujie-vue3-child/src/main.js +18 -0
- package/app/wujie-wk/wujie-vue3-child/src/router/index.js +104 -0
- package/app/wujie-wk/wujie-vue3-child/src/store/tagsViewStroe.js +34 -0
- package/app/wujie-wk/wujie-vue3-child/src/style.css +171 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.jsx +108 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.module.scss +97 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/README.md +836 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/REFLEX_EXAMPLES.md +728 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.jsx +687 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.module.scss +560 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.jsx +570 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.module.scss +330 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.jsx +378 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.module.scss +228 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.jsx +399 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.module.scss +252 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.jsx +585 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.module.scss +331 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.jsx +392 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.module.scss +39 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/README.md +248 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/SelectorTrigger.jsx +194 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/index.jsx +1459 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/mockData.js +301 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.jsx +182 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.module.scss +28 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/index.jsx +375 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.jsx +121 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.module.scss +76 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/DonutChart/index.jsx +104 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.jsx +75 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.module.scss +12 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.jsx +62 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.module.scss +43 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.jsx +29 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.module.scss +5 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.jsx +58 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.module.scss +85 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.jsx +92 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.module.scss +56 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.jsx +40 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.module.scss +53 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsDonut.jsx +106 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsRankBar.jsx +132 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.jsx +176 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.module.scss +96 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.jsx +162 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.module.scss +16 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.jsx +29 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.module.scss +25 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.jsx +106 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.module.scss +164 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.jsx +182 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.module.scss +203 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.jsx +145 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.module.scss +126 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.jsx +67 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.module.scss +105 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.jsx +81 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.module.scss +47 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.jsx +64 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.module.scss +85 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.jsx +39 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.module.scss +44 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.jsx +83 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.module.scss +101 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/index.jsx +50 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/reportDetail/index.module.scss +25 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/index.jsx +196 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/index.module.scss +41 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.jsx +183 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.module.scss +115 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/child-to-parent.vue +117 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/home.vue +53 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/jsx/btnSelect/btnSelect.vue +169 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/jsx/btnSelect/index.vue +69 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/jsx/com.vue +44 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/jsx/dialog.jsx +66 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/jsx/index.vue +72 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/jsx/props.vue +33 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/parent-to-child.vue +225 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/phone-code.vue +318 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/router-jump.vue +123 -0
- package/app/wujie-wk/wujie-vue3-child/src/views/test.vue +192 -0
- package/app/wujie-wk/wujie-vue3-child/vite.config.js +15 -0
- package/app/wujie-wk/wujie-vue3-child copy/.vscode/extensions.json +3 -0
- package/app/wujie-wk/wujie-vue3-child copy/README.md +5 -0
- package/app/wujie-wk/wujie-vue3-child copy/index.html +13 -0
- package/app/wujie-wk/wujie-vue3-child copy/package-lock.json +4617 -0
- package/app/wujie-wk/wujie-vue3-child copy/package.json +22 -0
- package/app/wujie-wk/wujie-vue3-child copy/public/vite.svg +1 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/App.vue +124 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/assets/vue.svg +1 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/components/HelloWorld.vue +43 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/main.js +12 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/router/index.js +84 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/style.css +4 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/views/child-to-parent.vue +117 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/views/home.vue +53 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/views/parent-to-child.vue +225 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/views/phone-code.vue +318 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/views/router-jump.vue +115 -0
- package/app/wujie-wk/wujie-vue3-child copy/src/views/test.vue +192 -0
- package/app/wujie-wk/wujie-vue3-child copy/vite.config.js +10 -0
- package/app/wujie-wk/wujie-vue3-main/.vscode/extensions.json +3 -0
- package/app/wujie-wk/wujie-vue3-main/README.md +154 -0
- package/app/wujie-wk/wujie-vue3-main/index.html +13 -0
- package/app/wujie-wk/wujie-vue3-main/package-lock.json +4736 -0
- package/app/wujie-wk/wujie-vue3-main/package.json +25 -0
- package/app/wujie-wk/wujie-vue3-main/public/vite.svg +1 -0
- package/app/wujie-wk/wujie-vue3-main/src/App.vue +879 -0
- package/app/wujie-wk/wujie-vue3-main/src/assets/vue.svg +1 -0
- package/app/wujie-wk/wujie-vue3-main/src/components/HelloWorld.vue +43 -0
- package/app/wujie-wk/wujie-vue3-main/src/components/WujieReact/index.vue +20 -0
- package/app/wujie-wk/wujie-vue3-main/src/components/WujieVue2/index.vue +8 -0
- package/app/wujie-wk/wujie-vue3-main/src/components/WujieVue3/index.vue +8 -0
- package/app/wujie-wk/wujie-vue3-main/src/components/WujieVue3Copy/index.vue +8 -0
- package/app/wujie-wk/wujie-vue3-main/src/main.js +23 -0
- package/app/wujie-wk/wujie-vue3-main/src/router/index.js +88 -0
- package/app/wujie-wk/wujie-vue3-main/src/store/useMicroAppStore.js +66 -0
- package/app/wujie-wk/wujie-vue3-main/src/style.css +3 -0
- package/app/wujie-wk/wujie-vue3-main/src/views/home.vue +103 -0
- package/app/wujie-wk/wujie-vue3-main/src/views/router-jump.vue +159 -0
- package/app/wujie-wk/wujie-vue3-main/src/views/test.vue +125 -0
- package/app/wujie-wk/wujie-vue3-main/src/views/vue3-child-msg.vue +108 -0
- package/app/wujie-wk/wujie-vue3-main/vite.config.js +12 -0
- package/package.json +1 -1
- package/app/check-import-case.js +0 -344
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// 主页
|
|
2
|
+
<template>
|
|
3
|
+
<div class="home-container">
|
|
4
|
+
<h1 class="home-title">vue3子应用主页</h1>
|
|
5
|
+
<div class="home-content">
|
|
6
|
+
<p class="welcome-text">欢迎使用无界微前端框架</p>
|
|
7
|
+
<el-button @click="jumpToChild">跳转到测试页面</el-button>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { useRoute, useRouter } from 'vue-router'
|
|
14
|
+
|
|
15
|
+
// 可以在这里添加组件逻辑
|
|
16
|
+
// 获取路由参数
|
|
17
|
+
const router = useRouter()
|
|
18
|
+
const route = useRoute()
|
|
19
|
+
const jumpToChild = () => {
|
|
20
|
+
router.push('/test'+ '?name=123' )
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped>
|
|
25
|
+
.home-container {
|
|
26
|
+
padding: 2rem;
|
|
27
|
+
max-width: 1200px;
|
|
28
|
+
margin: 0 auto;
|
|
29
|
+
min-height: 80vh;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.home-title {
|
|
33
|
+
color: #2c3e50;
|
|
34
|
+
font-size: 2.5rem;
|
|
35
|
+
margin-bottom: 2rem;
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.home-content {
|
|
40
|
+
background-color: #f8f9fa;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
padding: 2rem;
|
|
43
|
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.welcome-text {
|
|
47
|
+
font-size: 1.2rem;
|
|
48
|
+
color: #666;
|
|
49
|
+
text-align: center;
|
|
50
|
+
line-height: 1.6;
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
53
|
+
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<script lang="jsx">
|
|
2
|
+
import { defineComponent, ref, computed, watch } from "vue";
|
|
3
|
+
import { ArrowDown } from "@element-plus/icons-vue";
|
|
4
|
+
export default defineComponent({
|
|
5
|
+
name: "BtnSelect",
|
|
6
|
+
props: {
|
|
7
|
+
options: { type: Array, default: () => [] },
|
|
8
|
+
modelValue: { type: [String, Number, Array, Object, Boolean], default: null },
|
|
9
|
+
multiple: { type: Boolean, default: false },
|
|
10
|
+
searchable: { type: Boolean, default: false },
|
|
11
|
+
label: { type: String, default: "" },
|
|
12
|
+
optionKeys: { type: Object, default: () => ({ label: "label", value: "value" }) },
|
|
13
|
+
maxLabelCount: { type: Number, default: 3 },
|
|
14
|
+
disabled: { type: Boolean, default: false },
|
|
15
|
+
collapseTags: { type: Boolean, default: false },
|
|
16
|
+
itemRender: { type: Function, default: null },
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue", "change"],
|
|
19
|
+
setup(props, { emit }) {
|
|
20
|
+
const keyword = ref("");
|
|
21
|
+
const internal = ref(props.multiple ? ([]).concat(props.modelValue || []) : props.modelValue);
|
|
22
|
+
watch(
|
|
23
|
+
() => props.modelValue,
|
|
24
|
+
(v) => {
|
|
25
|
+
internal.value = props.multiple ? ([]).concat(v || []) : v;
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
const isChecked = (val) => {
|
|
30
|
+
const cur = internal.value;
|
|
31
|
+
return Array.isArray(cur) ? cur.includes(val) : cur === val;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const toggle = (val) => {
|
|
35
|
+
const list = props.options || [];
|
|
36
|
+
const { label: labelKey, value: valueKey } = props.optionKeys || { label: "label", value: "value" };
|
|
37
|
+
const found = list.find((i) => i[valueKey] === val);
|
|
38
|
+
if (found && found.disabled) return;
|
|
39
|
+
if (props.multiple) {
|
|
40
|
+
const set = new Set(internal.value || []);
|
|
41
|
+
if (set.has(val)) set.delete(val);
|
|
42
|
+
else set.add(val);
|
|
43
|
+
const next = Array.from(set);
|
|
44
|
+
internal.value = next;
|
|
45
|
+
emit("update:modelValue", next);
|
|
46
|
+
emit("change", next);
|
|
47
|
+
} else {
|
|
48
|
+
internal.value = val;
|
|
49
|
+
emit("update:modelValue", val);
|
|
50
|
+
emit("change", val);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const filtered = computed(() => {
|
|
55
|
+
const list = props.options || [];
|
|
56
|
+
const { label: labelKey, value: valueKey } = props.optionKeys || { label: "label", value: "value" };
|
|
57
|
+
if (!props.searchable || !keyword.value) return list;
|
|
58
|
+
const k = String(keyword.value).toLowerCase();
|
|
59
|
+
return list.filter((o) => String(o[labelKey]).toLowerCase().includes(k));
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const displayMeta = computed(() => {
|
|
63
|
+
const list = props.options || [];
|
|
64
|
+
const { label: labelKey, value: valueKey } = props.optionKeys || { label: "label", value: "value" };
|
|
65
|
+
if (props.multiple) {
|
|
66
|
+
const vals = internal.value || [];
|
|
67
|
+
if (!vals.length) return { text: props.label || "请选择", rest: 0 };
|
|
68
|
+
const labels = vals.map((v) => {
|
|
69
|
+
const o = list.find((i) => i[valueKey] === v);
|
|
70
|
+
return o ? o[labelKey] : v;
|
|
71
|
+
});
|
|
72
|
+
if (props.collapseTags) {
|
|
73
|
+
const first = labels[0];
|
|
74
|
+
const rest = labels.length - 1;
|
|
75
|
+
return { text: `${props.label ? props.label + ":" : ""}${first}`, rest };
|
|
76
|
+
}
|
|
77
|
+
if (labels.length > props.maxLabelCount) return { text: (props.label ? props.label + ":" : "") + labels.slice(0, props.maxLabelCount).join("、") + ` 等${labels.length}项`, rest: 0 };
|
|
78
|
+
return { text: (props.label ? props.label + ":" : "") + labels.join("、"), rest: 0 };
|
|
79
|
+
} else {
|
|
80
|
+
const v = internal.value;
|
|
81
|
+
if (v === undefined || v === null || v === "") return { text: props.label || "请选择", rest: 0 };
|
|
82
|
+
const o = list.find((i) => i[valueKey] === v);
|
|
83
|
+
const text = o ? o[labelKey] : String(v);
|
|
84
|
+
return { text: props.label ? `${props.label}:${text}` : text, rest: 0 };
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
const clear = () => {
|
|
89
|
+
if (props.disabled) return;
|
|
90
|
+
internal.value = props.multiple ? [] : null;
|
|
91
|
+
emit("update:modelValue", internal.value);
|
|
92
|
+
emit("change", internal.value);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const hasValue = computed(() => (Array.isArray(internal.value) ? internal.value.length > 0 : internal.value !== null && internal.value !== undefined && internal.value !== "") );
|
|
96
|
+
|
|
97
|
+
return () => (
|
|
98
|
+
<el-dropdown hideOnClick={props.multiple ? false : true} disabled={props.disabled}>
|
|
99
|
+
{{
|
|
100
|
+
default: () => (
|
|
101
|
+
<el-button>
|
|
102
|
+
<span style="display:inline-flex;align-items:center;gap:6px;">
|
|
103
|
+
<span>{displayMeta.value.text}</span>
|
|
104
|
+
{props.collapseTags && displayMeta.value.rest > 0 ? (
|
|
105
|
+
<span style="display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:rgba(64,158,255,0.15);color:#409EFF;font-size:12px;line-height:18px;">{`+${displayMeta.value.rest}`}</span>
|
|
106
|
+
) : null}
|
|
107
|
+
{hasValue.value ? (
|
|
108
|
+
<span
|
|
109
|
+
title="清除"
|
|
110
|
+
style="display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:rgba(0,0,0,0.06);cursor:pointer;margin-left:4px;"
|
|
111
|
+
onClick={(e) => {
|
|
112
|
+
e.stopPropagation();
|
|
113
|
+
clear();
|
|
114
|
+
}}
|
|
115
|
+
>
|
|
116
|
+
×
|
|
117
|
+
</span>
|
|
118
|
+
) : (
|
|
119
|
+
<span style="margin-left:4px;opacity:0.7;">
|
|
120
|
+
<el-icon><ArrowDown /></el-icon>
|
|
121
|
+
</span>
|
|
122
|
+
)}
|
|
123
|
+
</span>
|
|
124
|
+
</el-button>
|
|
125
|
+
),
|
|
126
|
+
dropdown: () => (
|
|
127
|
+
<el-dropdown-menu>
|
|
128
|
+
{props.searchable ? (
|
|
129
|
+
<div style="padding:8px 12px;">
|
|
130
|
+
<el-input
|
|
131
|
+
modelValue={keyword.value}
|
|
132
|
+
onUpdate:modelValue={(v) => {
|
|
133
|
+
keyword.value = v;
|
|
134
|
+
}}
|
|
135
|
+
clearable={true}
|
|
136
|
+
placeholder="搜索"
|
|
137
|
+
size="small"
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
) : null}
|
|
141
|
+
{filtered.value.map((opt) => (
|
|
142
|
+
<el-dropdown-item
|
|
143
|
+
key={opt[(props.optionKeys || {}).value || "value"]}
|
|
144
|
+
command={opt[(props.optionKeys || {}).value || "value"]}
|
|
145
|
+
disabled={Boolean(opt.disabled)}
|
|
146
|
+
onClick={() => toggle(opt[(props.optionKeys || {}).value || "value"])}
|
|
147
|
+
style={isChecked(opt[(props.optionKeys || {}).value || "value"]) ? "background: rgba(64,158,255,0.08);" : ""}
|
|
148
|
+
>
|
|
149
|
+
{props.itemRender ? (
|
|
150
|
+
props.itemRender(opt, {
|
|
151
|
+
checked: isChecked(opt[(props.optionKeys || {}).value || "value"]),
|
|
152
|
+
})
|
|
153
|
+
) : (
|
|
154
|
+
<div style="display:flex;align-items:center;justify-content:space-between;min-width:180px;">
|
|
155
|
+
<span>{opt[(props.optionKeys || {}).label || "label"]}</span>
|
|
156
|
+
{isChecked(opt[(props.optionKeys || {}).value || "value"]) ? <span style="color:#67C23A;">✓ 已选</span> : null}
|
|
157
|
+
</div>
|
|
158
|
+
)}
|
|
159
|
+
</el-dropdown-item>
|
|
160
|
+
))}
|
|
161
|
+
{!filtered.value.length ? <el-dropdown-item disabled={true}>无数据</el-dropdown-item> : null}
|
|
162
|
+
</el-dropdown-menu>
|
|
163
|
+
),
|
|
164
|
+
}}
|
|
165
|
+
</el-dropdown>
|
|
166
|
+
);
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
</script>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script lang="jsx">
|
|
2
|
+
import { defineComponent, ref } from "vue";
|
|
3
|
+
import BtnSelect from "./btnSelect.vue";
|
|
4
|
+
|
|
5
|
+
export default defineComponent({
|
|
6
|
+
name: "BtnSelectView",
|
|
7
|
+
setup() {
|
|
8
|
+
const options = ref([
|
|
9
|
+
{ label: "选项一", value: "a" },
|
|
10
|
+
{ label: "选项二", value: "b" },
|
|
11
|
+
{ label: "选项三", value: "c" },
|
|
12
|
+
{ label: "禁用项", value: "d", disabled: true },
|
|
13
|
+
]);
|
|
14
|
+
const singleValue = ref(null);
|
|
15
|
+
const multiValue = ref([]);
|
|
16
|
+
const searchValue = ref(null);
|
|
17
|
+
return () => (
|
|
18
|
+
<>
|
|
19
|
+
<div style="display:flex; gap:16px; align-items:center; flex-wrap:wrap;">
|
|
20
|
+
<span>按钮下拉框(普通)</span>
|
|
21
|
+
<BtnSelect
|
|
22
|
+
label="名称"
|
|
23
|
+
options={options.value}
|
|
24
|
+
modelValue={singleValue.value}
|
|
25
|
+
onUpdate:modelValue={(v) => {
|
|
26
|
+
singleValue.value = v;
|
|
27
|
+
}}
|
|
28
|
+
/>
|
|
29
|
+
<span>按钮下拉框(多选)</span>
|
|
30
|
+
<BtnSelect
|
|
31
|
+
label="名称"
|
|
32
|
+
options={options.value}
|
|
33
|
+
multiple={true}
|
|
34
|
+
modelValue={multiValue.value}
|
|
35
|
+
onUpdate:modelValue={(v) => {
|
|
36
|
+
multiValue.value = v;
|
|
37
|
+
}}
|
|
38
|
+
/>
|
|
39
|
+
<span>按钮下拉框(带搜索)</span>
|
|
40
|
+
<BtnSelect
|
|
41
|
+
label="名称"
|
|
42
|
+
options={options.value}
|
|
43
|
+
searchable={true}
|
|
44
|
+
multiple={true}
|
|
45
|
+
collapseTags={true}
|
|
46
|
+
itemRender={(opt, { checked }) => (
|
|
47
|
+
<div style="display:flex;align-items:center;justify-content:space-between;min-width:200px;">
|
|
48
|
+
<span>
|
|
49
|
+
{opt.label}
|
|
50
|
+
{opt.disabled ? <span style="margin-left:8px;color:#F56C6C;">禁用</span> : null}
|
|
51
|
+
</span>
|
|
52
|
+
{checked ? (
|
|
53
|
+
<span style="color:#67C23A;">✓ 已选</span>
|
|
54
|
+
) : (
|
|
55
|
+
<span style="color:#909399;">点击选择</span>
|
|
56
|
+
)}
|
|
57
|
+
</div>
|
|
58
|
+
)}
|
|
59
|
+
modelValue={searchValue.value}
|
|
60
|
+
onUpdate:modelValue={(v) => {
|
|
61
|
+
searchValue.value = v;
|
|
62
|
+
}}
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</>
|
|
66
|
+
);
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
</script>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script lang="jsx">
|
|
2
|
+
import { defineComponent, Fragment } from 'vue'
|
|
3
|
+
import { ElButton } from 'element-plus'
|
|
4
|
+
import { useRouter, useRoute } from 'vue-router'
|
|
5
|
+
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: 'ComView',
|
|
8
|
+
setup(props, { slots, emit ,attrs}) {
|
|
9
|
+
console.log(props, 'props');
|
|
10
|
+
console.log(attrs, 'attrs');
|
|
11
|
+
const router = useRouter()
|
|
12
|
+
console.log(router, 'router');
|
|
13
|
+
const goHome = () => {
|
|
14
|
+
router.push('/')
|
|
15
|
+
}
|
|
16
|
+
const route = useRoute()
|
|
17
|
+
console.log(route, 'route');
|
|
18
|
+
|
|
19
|
+
return () => (
|
|
20
|
+
<>
|
|
21
|
+
<div>ComView</div>
|
|
22
|
+
<div>props: {attrs.count}</div>
|
|
23
|
+
<ElButton
|
|
24
|
+
type="primary"
|
|
25
|
+
onClick={() => {
|
|
26
|
+
attrs.dialog.close()
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
close dialog
|
|
30
|
+
</ElButton>
|
|
31
|
+
<ElButton
|
|
32
|
+
type="primary"
|
|
33
|
+
onClick={() => {
|
|
34
|
+
goHome()
|
|
35
|
+
attrs.dialog.close()
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
go home
|
|
39
|
+
</ElButton>
|
|
40
|
+
</>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
</script>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent, ref, h, render } from 'vue'
|
|
2
|
+
import { ElDialog, ElButton } from 'element-plus'
|
|
3
|
+
|
|
4
|
+
export const openDialog = (options = {}, appContext) => {
|
|
5
|
+
const {
|
|
6
|
+
props = {},
|
|
7
|
+
events = {},
|
|
8
|
+
slots = {}
|
|
9
|
+
} = options
|
|
10
|
+
|
|
11
|
+
const container = document.createElement('div')
|
|
12
|
+
document.body.appendChild(container)
|
|
13
|
+
|
|
14
|
+
let vnode
|
|
15
|
+
const visible = ref(true)
|
|
16
|
+
const DialogHost = defineComponent({
|
|
17
|
+
name: 'FunctionDialogHost',
|
|
18
|
+
setup(props,{expose}) {
|
|
19
|
+
const handleSlot = () => {
|
|
20
|
+
const slotList = {}
|
|
21
|
+
for (const slotName in slots) {
|
|
22
|
+
if (slots.hasOwnProperty(slotName)) {
|
|
23
|
+
const slot = slots[slotName]
|
|
24
|
+
if (slot) {
|
|
25
|
+
slotList[slotName] = slot()
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return slotList
|
|
30
|
+
}
|
|
31
|
+
const cleanup = () => {
|
|
32
|
+
try {
|
|
33
|
+
render(null, container)
|
|
34
|
+
} catch {}
|
|
35
|
+
if (container && container.parentNode) {
|
|
36
|
+
container.parentNode.removeChild(container)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// 返回 JSX 渲染函数
|
|
41
|
+
return () => (
|
|
42
|
+
<ElDialog
|
|
43
|
+
modelValue={visible.value}
|
|
44
|
+
onUpdate:modelValue={(v) => { visible.value = v }}
|
|
45
|
+
{...props}
|
|
46
|
+
{...events}
|
|
47
|
+
destroyOnClose={true}
|
|
48
|
+
onClosed={cleanup}
|
|
49
|
+
>
|
|
50
|
+
{handleSlot()}
|
|
51
|
+
</ElDialog>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
vnode = h(DialogHost)
|
|
56
|
+
if (appContext) vnode.appContext = appContext
|
|
57
|
+
render(vnode, container)
|
|
58
|
+
const close = () => {
|
|
59
|
+
visible.value = false
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
close,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default openDialog
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script lang="jsx">
|
|
2
|
+
import { defineComponent, ref, h, Fragment, getCurrentInstance } from "vue";
|
|
3
|
+
import PropsView from "./props.vue";
|
|
4
|
+
import openDialog from "./dialog.jsx";
|
|
5
|
+
import ComView from "./com.vue";
|
|
6
|
+
import BtnSelect from "./btnSelect/index.vue";
|
|
7
|
+
export default defineComponent({
|
|
8
|
+
name: "JsxView",
|
|
9
|
+
setup() {
|
|
10
|
+
const count = ref(0);
|
|
11
|
+
const propsViewRef = ref(null);
|
|
12
|
+
const countAdd = () => {
|
|
13
|
+
propsViewRef.value.countAdd();
|
|
14
|
+
};
|
|
15
|
+
const comCount = ref(0);
|
|
16
|
+
const open = () => {
|
|
17
|
+
const { appContext } = getCurrentInstance() || {};
|
|
18
|
+
let dialog = {};
|
|
19
|
+
const options = {
|
|
20
|
+
props: {
|
|
21
|
+
title: "hello dialog",
|
|
22
|
+
},
|
|
23
|
+
events: {
|
|
24
|
+
onClose: () => {
|
|
25
|
+
console.log("close11");
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
slots: {
|
|
29
|
+
default: () => <ComView count={comCount.value} dialog={dialog} />,
|
|
30
|
+
title: () => <div>title slot</div>,
|
|
31
|
+
footer: () => <div>footer slot</div>,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
dialog.close = openDialog(options, appContext).close;
|
|
35
|
+
};
|
|
36
|
+
const activeTab = ref("btnSelect");
|
|
37
|
+
return () => (
|
|
38
|
+
<>
|
|
39
|
+
<el-tabs v-model={activeTab.value} type="border-card">
|
|
40
|
+
<el-tab-pane label="首页" name="first"> <div>
|
|
41
|
+
123
|
|
42
|
+
<span>
|
|
43
|
+
<el-button type="primary" onClick={open}>
|
|
44
|
+
open dialog
|
|
45
|
+
</el-button>
|
|
46
|
+
<el-button type="primary" onClick={countAdd}>
|
|
47
|
+
props countAdd
|
|
48
|
+
</el-button>
|
|
49
|
+
<div>count: {count.value}</div>
|
|
50
|
+
<PropsView
|
|
51
|
+
ref={propsViewRef}
|
|
52
|
+
msg="hello props"
|
|
53
|
+
onMyEvent={() => {
|
|
54
|
+
count.value++;
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
{{
|
|
58
|
+
default: () => <div>default slot</div>,
|
|
59
|
+
}}
|
|
60
|
+
</PropsView>
|
|
61
|
+
</span>
|
|
62
|
+
</div></el-tab-pane>
|
|
63
|
+
<el-tab-pane label="按钮下拉框" name="btnSelect">
|
|
64
|
+
<BtnSelect />
|
|
65
|
+
</el-tab-pane>
|
|
66
|
+
</el-tabs>
|
|
67
|
+
|
|
68
|
+
</>
|
|
69
|
+
);
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
</script>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script lang="jsx">
|
|
2
|
+
import { defineComponent, ref, h, Fragment } from 'vue'
|
|
3
|
+
|
|
4
|
+
export default defineComponent({
|
|
5
|
+
name: 'PropsView',
|
|
6
|
+
emits: ['myEvent'],
|
|
7
|
+
setup(props, { attrs, emit ,slots ,expose }) {
|
|
8
|
+
console.log(props, 'props');
|
|
9
|
+
console.log(attrs, 'attrs');
|
|
10
|
+
console.log(emit, 'emit');
|
|
11
|
+
console.log(slots, 'slots');
|
|
12
|
+
console.log(expose, 'expose');
|
|
13
|
+
const count = ref(0);
|
|
14
|
+
const countAdd = () => {
|
|
15
|
+
count.value++;
|
|
16
|
+
}
|
|
17
|
+
expose({
|
|
18
|
+
countAdd,
|
|
19
|
+
})
|
|
20
|
+
return () => <>
|
|
21
|
+
<div>
|
|
22
|
+
{attrs.msg}
|
|
23
|
+
<div>props count: {count.value}</div>
|
|
24
|
+
{slots.default()}
|
|
25
|
+
<el-button type="primary" onClick={() => {
|
|
26
|
+
console.log('myEvent');
|
|
27
|
+
|
|
28
|
+
emit('myEvent')
|
|
29
|
+
}}>countAdd</el-button>
|
|
30
|
+
</div></>
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
</script>
|