npmapps 1.0.25 → 1.0.27
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/PUBLISH.md +268 -0
- package/app/.codegraph/daemon.pid +6 -0
- package/app/.eslintrc.js +19 -0
- package/app/README.md +24 -0
- package/app/babel.config.js +5 -0
- package/app/devtool-windows-amd64.zip +0 -0
- package/app/docs/superpowers/plans/2026-05-29-quill-editor.md +836 -0
- package/app/docs/superpowers/specs/2026-05-29-quill-editor-design.md +210 -0
- package/app/docs/superpowers/specs/2026-06-06-lazy-cascader-design.md +400 -0
- package/app/jsconfig.json +19 -0
- package/app/package-lock.json +21347 -0
- package/app/package.json +63 -0
- package/app/postcss.config.js +10 -0
- package/app/public/favicon.ico +0 -0
- package/app/public/index.html +17 -0
- package/app/public//344/270/200/351/224/256/351/273/221/346/232/227.html +136 -0
- package/app/src/App.vue +110 -0
- package/app/src/assets/bpmn-camunda.jpg +0 -0
- package/app/src/assets/css/diagram.less +17 -0
- package/app/src/assets/icon/Icon.less +31 -0
- package/app/src/assets/icon/font/app-codes.css +26 -0
- package/app/src/assets/icon/font/app.eot +0 -0
- package/app/src/assets/icon/font/app.svg +60 -0
- package/app/src/assets/icon/font/app.ttf +0 -0
- package/app/src/assets/icon/font/app.woff +0 -0
- package/app/src/assets/icon/font/app.woff2 +0 -0
- package/app/src/assets/icon/font/config.json +248 -0
- package/app/src/assets/icon/font/source/raw/align-bottom-tool.svg +30 -0
- package/app/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +85 -0
- package/app/src/assets/icon/font/source/raw/align-left-tool.svg +84 -0
- package/app/src/assets/icon/font/source/raw/align-right-tool.svg +80 -0
- package/app/src/assets/icon/font/source/raw/align-top-tool.svg +84 -0
- package/app/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +89 -0
- package/app/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +95 -0
- package/app/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +99 -0
- package/app/src/assets/icon/font/source/raw/set-color-tool.svg +111 -0
- package/app/src/assets/icon/font/source/symbols/align-bottom-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-left-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-right-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-top-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/set-color-tool.svg +63 -0
- package/app/src/assets/logo.png +0 -0
- package/app/src/components/EllTable/README.md +70 -0
- package/app/src/components/EllTable/article.md +184 -0
- package/app/src/components/EllTable/index.js +213 -0
- package/app/src/components/FormulaEditor/FunctionSelector.vue +123 -0
- package/app/src/components/FormulaEditor/OperatorSelector.vue +184 -0
- package/app/src/components/FormulaEditor/ParameterSelector.vue +123 -0
- package/app/src/components/FormulaEditor/api.js +69 -0
- package/app/src/components/FormulaEditor/index.vue +435 -0
- package/app/src/components/HelloWorld.vue +58 -0
- package/app/src/components/PageHeader/index.vue +158 -0
- package/app/src/components/Splitter/README.md +144 -0
- package/app/src/components/Splitter/example.vue +88 -0
- package/app/src/components/Splitter/index.vue +203 -0
- package/app/src/components/diagram/ToolBar.vue +357 -0
- package/app/src/components/diagram/customTranslate/customTranslate.js +12 -0
- package/app/src/components/diagram/customTranslate/translationsGerman.js +241 -0
- package/app/src/components/diagram/index.vue +261 -0
- package/app/src/components/diagram/xmlData.js +29 -0
- package/app/src/directives/filldown.js +155 -0
- package/app/src/directives/filldownTable.js +291 -0
- package/app/src/main.js +40 -0
- package/app/src/router/index.js +63 -0
- package/app/src/store/index.js +23 -0
- package/app/src/utils/winBox.js +23 -0
- package/app/src/views/Extend/A.vue +12 -0
- package/app/src/views/Extend/B.vue +10 -0
- package/app/src/views/Extend/MagicalComponentsForELFormItem.vue +87 -0
- package/app/src/views/Extend/index.vue +59 -0
- package/app/src/views/Extend/tableMouseHorizontalWheel.vue +193 -0
- package/app/src/views/Home.vue +37 -0
- package/app/src/views/RouterJump.vue +155 -0
- package/app/src/views/css.vue +57 -0
- package/app/src/views/cssComponents/EllipsisText.vue +83 -0
- package/app/src/views/cssComponents/HoverCard.vue +79 -0
- package/app/src/views/cssComponents/TableHover.vue +140 -0
- package/app/src/views/cssComponents/inputSlo.vue +52 -0
- package/app/src/views/cssComponents/tableFixed.vue +158 -0
- package/app/src/views/echarts/echart-dome.vue +82 -0
- package/app/src/views/echarts/index.vue +118 -0
- package/app/src/views/echarts/pei3d.vue +667 -0
- package/app/src/views/element/bpmn/index.vue +18 -0
- package/app/src/views/element/components/attendanceCycle/index.vue +131 -0
- package/app/src/views/element/components/attendanceGroup/index.vue +147 -0
- package/app/src/views/element/components/attendancePersonnel/index.vue +158 -0
- package/app/src/views/element/components/companyCalendar/index.vue +147 -0
- package/app/src/views/element/components/shift/index.vue +147 -0
- package/app/src/views/element/components/shiftRotationSystem/index.vue +147 -0
- package/app/src/views/element/elTableJsx/columnManagement.vue +340 -0
- package/app/src/views/element/elTableJsx/dialogInput.vue +71 -0
- package/app/src/views/element/elTableJsx/elTableJsx.vue +1826 -0
- package/app/src/views/element/elTableJsx/formTable.vue +598 -0
- package/app/src/views/element/elTableJsx/index.vue +29 -0
- package/app/src/views/element/elTableJsx/simpleTable.vue +192 -0
- package/app/src/views/element/elTableJsx.zip +0 -0
- package/app/src/views/element/index.vue +44 -0
- package/app/src/views/element/lazyCascader/LazyCascader.vue +302 -0
- package/app/src/views/element/lazyCascader/data.js +205 -0
- package/app/src/views/element/lazyCascader/index.vue +315 -0
- package/app/src/views/element/quillEditor/README.md +163 -0
- package/app/src/views/element/quillEditor/example.vue +314 -0
- package/app/src/views/element/quillEditor/index.vue +409 -0
- package/app/src/views/element/quillEditor/toolbar.js +122 -0
- package/app/vue.config.js +15 -0
- package/package.json +1 -1
- package/app/wujie-vue3-child/.claude/settings.local.json +0 -8
- package/app/wujie-vue3-child/.vscode/extensions.json +0 -3
- package/app/wujie-vue3-child/PROJECT_MEMORY.md +0 -427
- package/app/wujie-vue3-child/README.md +0 -5
- package/app/wujie-vue3-child/index.html +0 -13
- package/app/wujie-vue3-child/package-lock.json +0 -5744
- package/app/wujie-vue3-child/package.json +0 -28
- package/app/wujie-vue3-child/public/vite.svg +0 -1
- package/app/wujie-vue3-child/src/App.vue +0 -130
- package/app/wujie-vue3-child/src/assets/vue.svg +0 -1
- package/app/wujie-vue3-child/src/components/HelloWorld.vue +0 -43
- package/app/wujie-vue3-child/src/components/SmartAnchorTabs/index.jsx +0 -224
- package/app/wujie-vue3-child/src/components/SmartAnchorTabs/style.css +0 -154
- package/app/wujie-vue3-child/src/components/tags-view.vue +0 -193
- package/app/wujie-vue3-child/src/components/tags-view1.vue +0 -131
- package/app/wujie-vue3-child/src/directives/aiLoading.js +0 -182
- package/app/wujie-vue3-child/src/hooks/useClickOutside.js +0 -11
- package/app/wujie-vue3-child/src/hooks/useTableDragSort.js +0 -28
- package/app/wujie-vue3-child/src/main.js +0 -18
- package/app/wujie-vue3-child/src/router/index.js +0 -104
- package/app/wujie-vue3-child/src/store/tagsViewStroe.js +0 -34
- package/app/wujie-vue3-child/src/style.css +0 -171
- package/app/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.jsx +0 -108
- package/app/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.module.scss +0 -97
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/README.md +0 -836
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/REFLEX_EXAMPLES.md +0 -728
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.jsx +0 -687
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.module.scss +0 -560
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.jsx +0 -570
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.module.scss +0 -330
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.jsx +0 -378
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.module.scss +0 -228
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.jsx +0 -399
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.module.scss +0 -252
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.jsx +0 -585
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.module.scss +0 -331
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.jsx +0 -392
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.module.scss +0 -39
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/README.md +0 -248
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/SelectorTrigger.jsx +0 -194
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/index.jsx +0 -1459
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/mockData.js +0 -301
- package/app/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.jsx +0 -182
- package/app/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.module.scss +0 -28
- package/app/wujie-vue3-child/src/views/aiCoach/index.jsx +0 -375
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.jsx +0 -121
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.module.scss +0 -76
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/DonutChart/index.jsx +0 -104
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.jsx +0 -75
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.module.scss +0 -12
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.jsx +0 -62
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.module.scss +0 -43
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.jsx +0 -29
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.module.scss +0 -5
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.jsx +0 -58
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.module.scss +0 -85
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.jsx +0 -92
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.module.scss +0 -56
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.jsx +0 -40
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.module.scss +0 -53
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsDonut.jsx +0 -106
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsRankBar.jsx +0 -132
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.jsx +0 -176
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.module.scss +0 -96
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.jsx +0 -162
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.module.scss +0 -16
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.jsx +0 -29
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.module.scss +0 -25
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.jsx +0 -106
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.module.scss +0 -164
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.jsx +0 -182
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.module.scss +0 -203
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.jsx +0 -145
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.module.scss +0 -126
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.jsx +0 -67
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.module.scss +0 -105
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.jsx +0 -81
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.module.scss +0 -47
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.jsx +0 -64
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.module.scss +0 -85
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.jsx +0 -39
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.module.scss +0 -44
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.jsx +0 -83
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.module.scss +0 -101
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/index.jsx +0 -50
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/index.module.scss +0 -25
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/index.jsx +0 -196
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/index.module.scss +0 -41
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.jsx +0 -183
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.module.scss +0 -115
- package/app/wujie-vue3-child/src/views/child-to-parent.vue +0 -117
- package/app/wujie-vue3-child/src/views/home.vue +0 -53
- package/app/wujie-vue3-child/src/views/jsx/btnSelect/btnSelect.vue +0 -169
- package/app/wujie-vue3-child/src/views/jsx/btnSelect/index.vue +0 -69
- package/app/wujie-vue3-child/src/views/jsx/com.vue +0 -44
- package/app/wujie-vue3-child/src/views/jsx/dialog.jsx +0 -66
- package/app/wujie-vue3-child/src/views/jsx/index.vue +0 -72
- package/app/wujie-vue3-child/src/views/jsx/props.vue +0 -33
- package/app/wujie-vue3-child/src/views/parent-to-child.vue +0 -225
- package/app/wujie-vue3-child/src/views/phone-code.vue +0 -318
- package/app/wujie-vue3-child/src/views/router-jump.vue +0 -123
- package/app/wujie-vue3-child/src/views/test.vue +0 -192
- package/app/wujie-vue3-child/vite.config.js +0 -15
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.ai-loading-parent {
|
|
7
|
-
position: relative;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ai-loading-mask {
|
|
11
|
-
position: absolute;
|
|
12
|
-
inset: 0;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
background-color: rgba(255, 255, 255, 0.7);
|
|
17
|
-
z-index: 99;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ai-loading-content {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
padding: 8px 16px;
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
background-color: rgba(255, 255, 255, 0.9);
|
|
27
|
-
box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
|
|
28
|
-
font-size: 12px;
|
|
29
|
-
color: #606266;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ai-loading-spinner {
|
|
33
|
-
width: 14px;
|
|
34
|
-
height: 14px;
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
border: 2px solid #dcdfe6;
|
|
37
|
-
border-top-color: #606266;
|
|
38
|
-
animation: ai-loading-spin 1s linear infinite;
|
|
39
|
-
margin-bottom: 4px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ai-loading-bars {
|
|
43
|
-
width: 20px;
|
|
44
|
-
aspect-ratio: 1;
|
|
45
|
-
--c: linear-gradient(#606266 0 0);
|
|
46
|
-
--r1: radial-gradient(farthest-side at bottom,#606266 93%,#0000);
|
|
47
|
-
--r2: radial-gradient(farthest-side at top,#606266 93%,#0000);
|
|
48
|
-
background:
|
|
49
|
-
var(--c),var(--r1),var(--r2),
|
|
50
|
-
var(--c),var(--r1),var(--r2),
|
|
51
|
-
var(--c),var(--r1),var(--r2);
|
|
52
|
-
background-repeat: no-repeat;
|
|
53
|
-
animation: ai-loading-bars 1s infinite alternate;
|
|
54
|
-
margin-bottom: 4px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ai-loading-text {
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
animation: ai-loading-text-pulse 1.4s ease-in-out infinite;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* v-aiLoading 演示用自定义遮罩样式示例
|
|
63
|
-
* 在 AiCoach 页面「AI Loading 用例」Tab 中使用 class: 'ai-loading-demo-mask'
|
|
64
|
-
* 你可以参考这里的写法,按需覆盖背景色、文字颜色等
|
|
65
|
-
*/
|
|
66
|
-
.ai-loading-demo-mask {
|
|
67
|
-
background-color: rgba(0, 0, 0, 0.3);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ai-loading-mask-gradient {
|
|
71
|
-
background-image: linear-gradient(135deg, #f5f7ff 0%, #f0f9ff 50%, #fff7f7 100%);
|
|
72
|
-
background-size: 200% 200%;
|
|
73
|
-
animation: ai-loading-gradient 4s ease infinite;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.ai-loading-demo-card {
|
|
77
|
-
position: relative;
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.ai-loading-demo-card::before {
|
|
82
|
-
content: "";
|
|
83
|
-
position: absolute;
|
|
84
|
-
inset: 0;
|
|
85
|
-
border-radius: 4px;
|
|
86
|
-
padding: 1px;
|
|
87
|
-
background: conic-gradient(
|
|
88
|
-
from 0deg,
|
|
89
|
-
#ff7e67,
|
|
90
|
-
#ffb967,
|
|
91
|
-
#67c1ff,
|
|
92
|
-
#ff7e67
|
|
93
|
-
);
|
|
94
|
-
-webkit-mask:
|
|
95
|
-
linear-gradient(#000 0 0) content-box,
|
|
96
|
-
linear-gradient(#000 0 0);
|
|
97
|
-
-webkit-mask-composite: xor;
|
|
98
|
-
mask-composite: exclude;
|
|
99
|
-
opacity: 0;
|
|
100
|
-
animation: none;
|
|
101
|
-
pointer-events: none;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ai-loading-demo-card--active::before {
|
|
105
|
-
opacity: 1;
|
|
106
|
-
animation: ai-loading-border-rotate 3s linear infinite;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@keyframes ai-loading-spin {
|
|
110
|
-
from {
|
|
111
|
-
transform: rotate(0deg);
|
|
112
|
-
}
|
|
113
|
-
to {
|
|
114
|
-
transform: rotate(360deg);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@keyframes ai-loading-bars {
|
|
119
|
-
0%,25% {
|
|
120
|
-
background-size: 5px 0,5px 4px,5px 4px,5px 0,5px 4px,5px 4px,5px 0,5px 4px,5px 4px;
|
|
121
|
-
background-position: 0 50%,0 calc(50% - 2px),0 calc(50% + 2px),50% 50%,50% calc(50% - 2px),50% calc(50% + 2px),100% 50%,100% calc(50% - 2px),100% calc(50% + 2px);
|
|
122
|
-
}
|
|
123
|
-
50% {
|
|
124
|
-
background-size: 5px 100%,5px 4px,5px 4px,5px 0,5px 4px,5px 4px,5px 0,5px 4px,5px 4px;
|
|
125
|
-
background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(50% - 2px),50% calc(50% + 2px),100% 50%,100% calc(50% - 2px),100% calc(50% + 2px);
|
|
126
|
-
}
|
|
127
|
-
75% {
|
|
128
|
-
background-size: 5px 100%,5px 4px,5px 4px,5px 100%,5px 4px,5px 4px,5px 0,5px 4px,5px 4px;
|
|
129
|
-
background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(0% - 2px),50% calc(100% + 2px),100% 50%,100% calc(50% - 2px),100% calc(50% + 2px);
|
|
130
|
-
}
|
|
131
|
-
95%,100% {
|
|
132
|
-
background-size: 5px 100%,5px 4px, 5px 4px,5px 100%,5px 4px,5px 4px,5px 100%,5px 4px,5px 4px;
|
|
133
|
-
background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(0% - 2px),50% calc(100% + 2px),100% 50%,100% calc(0% - 2px),100% calc(100% + 2px);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@keyframes ai-loading-gradient {
|
|
138
|
-
0% {
|
|
139
|
-
background-position: 0% 50%;
|
|
140
|
-
}
|
|
141
|
-
50% {
|
|
142
|
-
background-position: 100% 50%;
|
|
143
|
-
}
|
|
144
|
-
100% {
|
|
145
|
-
background-position: 0% 50%;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@keyframes ai-loading-text-pulse {
|
|
150
|
-
0% {
|
|
151
|
-
opacity: 0.6;
|
|
152
|
-
transform: translateY(0);
|
|
153
|
-
}
|
|
154
|
-
50% {
|
|
155
|
-
opacity: 1;
|
|
156
|
-
transform: translateY(-1px);
|
|
157
|
-
}
|
|
158
|
-
100% {
|
|
159
|
-
opacity: 0.6;
|
|
160
|
-
transform: translateY(0);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@keyframes ai-loading-border-rotate {
|
|
165
|
-
from {
|
|
166
|
-
transform: rotate(0deg);
|
|
167
|
-
}
|
|
168
|
-
to {
|
|
169
|
-
transform: rotate(360deg);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { defineComponent, ref, h } from 'vue'
|
|
3
|
-
import styles from './index.module.scss'
|
|
4
|
-
import { Expand, DeleteFilled } from '@element-plus/icons-vue'
|
|
5
|
-
import draggable from 'vuedraggable'
|
|
6
|
-
import _ from 'lodash'
|
|
7
|
-
export default defineComponent({
|
|
8
|
-
// 折叠展开组件 - 列表展示
|
|
9
|
-
name: 'CollapseExpand',
|
|
10
|
-
props: {
|
|
11
|
-
collapseList: {
|
|
12
|
-
type: Array,
|
|
13
|
-
default: () => [],
|
|
14
|
-
},
|
|
15
|
-
draggableDisabled: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: false,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
emits: ['update:collapseList'],
|
|
21
|
-
setup(props, { emit, attrs, slots }) {
|
|
22
|
-
|
|
23
|
-
const newCollapseList = ref(_.cloneDeep(props.collapseList))
|
|
24
|
-
const dragEnd = (e) => {
|
|
25
|
-
console.log(e)
|
|
26
|
-
attrs.dragEnd && attrs.dragEnd(e, newCollapseList.value)
|
|
27
|
-
emit('update:collapseList', newCollapseList.value)
|
|
28
|
-
}
|
|
29
|
-
const handleDelete = (item) => {
|
|
30
|
-
newCollapseList.value = newCollapseList.value.filter((i) => i.id !== item.id)
|
|
31
|
-
emit('update:collapseList', newCollapseList.value)
|
|
32
|
-
}
|
|
33
|
-
return () => (
|
|
34
|
-
<div class={styles.collapseExpand}>
|
|
35
|
-
<el-collapse
|
|
36
|
-
{...attrs}
|
|
37
|
-
>
|
|
38
|
-
<draggable
|
|
39
|
-
v-model={newCollapseList.value}
|
|
40
|
-
item-key="id"
|
|
41
|
-
class="list"
|
|
42
|
-
ghost-class="ghost"
|
|
43
|
-
disabled={props.draggableDisabled}
|
|
44
|
-
onEnd={dragEnd}
|
|
45
|
-
animation={attrs.animation || 100}
|
|
46
|
-
handle=".drag-icon"
|
|
47
|
-
>
|
|
48
|
-
{{
|
|
49
|
-
item: (({ element: item, index }) => (
|
|
50
|
-
<el-collapse-item class={[styles.item,
|
|
51
|
-
index === 0 ?
|
|
52
|
-
styles.firstItem : '',
|
|
53
|
-
index === props.collapseList.length - 1 ?
|
|
54
|
-
styles.lastItem : '']}
|
|
55
|
-
key={item.id}
|
|
56
|
-
name={item.id}>
|
|
57
|
-
{{
|
|
58
|
-
// 自定义标题栏
|
|
59
|
-
title: () => (
|
|
60
|
-
attrs.title ? attrs.title(item) :
|
|
61
|
-
<div class={[styles.header]}>
|
|
62
|
-
<div class={[styles.headerLeft]}>
|
|
63
|
-
<div>
|
|
64
|
-
<el-icon style={{ cursor: 'grab' }} class={'drag-icon'} size={20}><Expand /></el-icon>
|
|
65
|
-
</div>
|
|
66
|
-
<div class={[styles.headerContent]}>
|
|
67
|
-
<div class={[styles.title]}>{item.title}</div>
|
|
68
|
-
{/* 目标描述 */}
|
|
69
|
-
<div class={[styles.goal]}>
|
|
70
|
-
{item.goal}
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
{/* 阻止冒泡避免触发折叠 */}
|
|
75
|
-
<el-popconfirm
|
|
76
|
-
title="确认删除吗?"
|
|
77
|
-
confirm-button-text="确定"
|
|
78
|
-
cancel-button-text="取消"
|
|
79
|
-
onConfirm={(e) => {
|
|
80
|
-
handleDelete(item)
|
|
81
|
-
e.stopPropagation()
|
|
82
|
-
}}
|
|
83
|
-
>
|
|
84
|
-
{{
|
|
85
|
-
reference: () => (
|
|
86
|
-
<el-icon onClick={(e) => e.stopPropagation()} style={{ marginRight: '8px' }}><DeleteFilled /></el-icon>
|
|
87
|
-
)
|
|
88
|
-
}}
|
|
89
|
-
|
|
90
|
-
</el-popconfirm>
|
|
91
|
-
</div>
|
|
92
|
-
),
|
|
93
|
-
// 展开的内容区域
|
|
94
|
-
default: () => (
|
|
95
|
-
<div>
|
|
96
|
-
{item.item ? item.item(item) : null}
|
|
97
|
-
</div>
|
|
98
|
-
)
|
|
99
|
-
}}
|
|
100
|
-
</el-collapse-item>
|
|
101
|
-
))
|
|
102
|
-
}}
|
|
103
|
-
</draggable>
|
|
104
|
-
</el-collapse>
|
|
105
|
-
</div>
|
|
106
|
-
)
|
|
107
|
-
},
|
|
108
|
-
})
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
.collapseExpand {
|
|
2
|
-
:global(.el-collapse .el-collapse-item__header) {
|
|
3
|
-
padding-left: 10px;
|
|
4
|
-
}
|
|
5
|
-
.header {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
width: 100%;
|
|
9
|
-
align-items: center;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.headerLeft {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
|
|
16
|
-
.headerContent {
|
|
17
|
-
margin-left: 10px;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-items: flex-start;
|
|
21
|
-
|
|
22
|
-
.title,
|
|
23
|
-
.goal {
|
|
24
|
-
display: flex;
|
|
25
|
-
height: 16px;
|
|
26
|
-
font-size: 14px;
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
line-height: 16px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.goal {
|
|
32
|
-
margin-top: 5px;
|
|
33
|
-
color: #999;
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.item {
|
|
41
|
-
position: relative;
|
|
42
|
-
padding-left: 12px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/* 画竖线 */
|
|
47
|
-
.item::before {
|
|
48
|
-
content: '';
|
|
49
|
-
position: absolute;
|
|
50
|
-
left: 0px;
|
|
51
|
-
top: 0;
|
|
52
|
-
bottom: 0;
|
|
53
|
-
width: 2px;
|
|
54
|
-
background-color: #FC6506;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.firstItem::before {
|
|
58
|
-
content: '';
|
|
59
|
-
position: absolute;
|
|
60
|
-
left: 0px;
|
|
61
|
-
top: 24px;
|
|
62
|
-
bottom: 0;
|
|
63
|
-
width: 2px;
|
|
64
|
-
background-color: #FC6506;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.lastItem::before {
|
|
68
|
-
content: '';
|
|
69
|
-
position: absolute;
|
|
70
|
-
left: 0px;
|
|
71
|
-
top: 0;
|
|
72
|
-
bottom: 24px;
|
|
73
|
-
width: 2px;
|
|
74
|
-
height: 24px;
|
|
75
|
-
background-color: #FC6506;
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/* 每个 item 的标题前加圆点 */
|
|
80
|
-
:global(.el-collapse-item__header) {
|
|
81
|
-
position: relative;
|
|
82
|
-
padding-left: 24px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:global(.el-collapse-item__header)::before {
|
|
86
|
-
content: '';
|
|
87
|
-
position: absolute;
|
|
88
|
-
left: -15px;
|
|
89
|
-
top: 50%;
|
|
90
|
-
transform: translateY(-50%);
|
|
91
|
-
width: 8px;
|
|
92
|
-
height: 8px;
|
|
93
|
-
background-color: #FC6506;
|
|
94
|
-
border-radius: 50%;
|
|
95
|
-
z-index: 1;
|
|
96
|
-
}
|
|
97
|
-
}
|