npmapps 1.0.24 → 1.0.26
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/.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/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 -293
- 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,183 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, nextTick, watch, Teleport } from 'vue'
|
|
2
|
-
import styles from './index.module.scss'
|
|
3
|
-
import { Close } from '@element-plus/icons-vue'
|
|
4
|
-
export default defineComponent({
|
|
5
|
-
// 输入列组件
|
|
6
|
-
name: 'InputColumn',
|
|
7
|
-
props: {
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
setup(props, { attrs }) {
|
|
13
|
-
const showInput = ref(false)
|
|
14
|
-
|
|
15
|
-
const inputColumnnRef = ref(null)
|
|
16
|
-
const textareaRef = ref(null)
|
|
17
|
-
const aiGenerateRef = ref(null)
|
|
18
|
-
const showAiGenerate = ref(false)
|
|
19
|
-
const aiGenerateValue = ref('你好,我想咨询一下关于高品质跑步机的选购问题。 你好,我想咨询一下关于高品质跑步机的选购问题。')
|
|
20
|
-
const onClickOutside = (element, handler) => {
|
|
21
|
-
const listener = (e) => {
|
|
22
|
-
if (!element || element.contains(e.target)) return;
|
|
23
|
-
handler(e);
|
|
24
|
-
};
|
|
25
|
-
document.addEventListener('click', listener, false);
|
|
26
|
-
// 返回取消函数,想停就调它
|
|
27
|
-
return () => document.removeEventListener('click', listener, false);
|
|
28
|
-
}
|
|
29
|
-
watch(() => showInput.value, (newVal) => {
|
|
30
|
-
console.log(attrs, 'attrs');
|
|
31
|
-
|
|
32
|
-
if (newVal) {
|
|
33
|
-
const cell = inputColumnnRef.value.parentNode
|
|
34
|
-
if (!cell) return
|
|
35
|
-
const column = cell.parentNode
|
|
36
|
-
console.log(column, 'column');
|
|
37
|
-
if (!column) return
|
|
38
|
-
const elTable__cell = column.parentNode
|
|
39
|
-
if (!elTable__cell) return
|
|
40
|
-
const width = elTable__cell.offsetWidth
|
|
41
|
-
const rect = elTable__cell.getBoundingClientRect() // 相对于视口
|
|
42
|
-
const x = rect.left + window.scrollX
|
|
43
|
-
const y = rect.top + window.scrollY
|
|
44
|
-
nextTick(() => {
|
|
45
|
-
const textarea = textareaRef.value
|
|
46
|
-
if (!textarea) return
|
|
47
|
-
textarea.style.width = `${width}px`
|
|
48
|
-
document.body.style.position = 'relative'
|
|
49
|
-
textarea.style.top = `${y}px`
|
|
50
|
-
textarea.style.left = `${x}px`
|
|
51
|
-
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
watch(() => textareaRef.value, (newVal, _, onCleanup) => {
|
|
59
|
-
if (newVal) {
|
|
60
|
-
setTimeout(() => {
|
|
61
|
-
const removeClickOutside = onClickOutside(newVal, () => {
|
|
62
|
-
showInput.value = false
|
|
63
|
-
showAiGenerate.value = false
|
|
64
|
-
})
|
|
65
|
-
onCleanup(() => {
|
|
66
|
-
removeClickOutside()
|
|
67
|
-
})
|
|
68
|
-
const elTextareaInner = textareaRef.value.querySelector('.el-textarea__inner')
|
|
69
|
-
if (elTextareaInner) {
|
|
70
|
-
elTextareaInner.focus()
|
|
71
|
-
}
|
|
72
|
-
}, 0)
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
watch(() => showAiGenerate.value, async (newVal) => {
|
|
79
|
-
if (newVal) {
|
|
80
|
-
await nextTick()
|
|
81
|
-
const width = textareaRef.value.offsetWidth
|
|
82
|
-
const rect = textareaRef.value.getBoundingClientRect() // 相对于视口
|
|
83
|
-
const left = rect.left
|
|
84
|
-
if (left > width) {
|
|
85
|
-
aiGenerateRef.value.style.left = `${-width}px`
|
|
86
|
-
} else {
|
|
87
|
-
aiGenerateRef.value.style.left = `${width}px`
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
return () => {
|
|
94
|
-
return <div class={[styles.inputColumn]}>
|
|
95
|
-
<div ref={inputColumnnRef} >
|
|
96
|
-
{
|
|
97
|
-
showInput.value && (
|
|
98
|
-
<Teleport to="body">
|
|
99
|
-
<div class={[styles.inputColumnTextarea]} ref={textareaRef}>
|
|
100
|
-
<div>
|
|
101
|
-
<el-input maxlength={500} type="textarea" rows={4} v-model={attrs.scope.row[attrs.tableColumn.prop]} />
|
|
102
|
-
<div class={[styles.aiGenerateBtnContainer]}>
|
|
103
|
-
{
|
|
104
|
-
!attrs.tableColumn.noAiGenerate ?(
|
|
105
|
-
<span class={[styles.aiGenerateBtn]} onClick={() => {
|
|
106
|
-
showAiGenerate.value = true
|
|
107
|
-
}}>
|
|
108
|
-
AI润色
|
|
109
|
-
</span>
|
|
110
|
-
)
|
|
111
|
-
:
|
|
112
|
-
<span> </span>
|
|
113
|
-
}
|
|
114
|
-
<span>
|
|
115
|
-
{attrs.scope.row[attrs.tableColumn.prop].length}/<span style={{ color: '#999' }}>500</span>
|
|
116
|
-
</span>
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
{
|
|
120
|
-
showAiGenerate.value &&
|
|
121
|
-
|
|
122
|
-
<div class={[styles.aiGenerate]} ref={aiGenerateRef}>
|
|
123
|
-
<div class={[styles.header]}>
|
|
124
|
-
<div class={[styles.title]}>
|
|
125
|
-
AI生成
|
|
126
|
-
</div>
|
|
127
|
-
<el-icon class={[styles.close]} onClick={(e) => {
|
|
128
|
-
showAiGenerate.value = false
|
|
129
|
-
e.stopPropagation()
|
|
130
|
-
}}>
|
|
131
|
-
<Close />
|
|
132
|
-
</el-icon>
|
|
133
|
-
</div>
|
|
134
|
-
<el-scrollbar>
|
|
135
|
-
<div class={[styles.content]}>
|
|
136
|
-
{aiGenerateValue.value || 'AI润色后的脚本'}
|
|
137
|
-
</div>
|
|
138
|
-
</el-scrollbar>
|
|
139
|
-
<div class={[styles.footer]} >
|
|
140
|
-
<span onClick={(e) => {
|
|
141
|
-
attrs.scope.row[attrs.tableColumn.prop] = aiGenerateValue.value
|
|
142
|
-
showAiGenerate.value = false
|
|
143
|
-
e.stopPropagation()
|
|
144
|
-
}}>
|
|
145
|
-
一键使用
|
|
146
|
-
</span>
|
|
147
|
-
<span onClick={(e) => {
|
|
148
|
-
e.stopPropagation()
|
|
149
|
-
}}>
|
|
150
|
-
重新生成
|
|
151
|
-
</span>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
}
|
|
155
|
-
</div>
|
|
156
|
-
</Teleport >
|
|
157
|
-
)}
|
|
158
|
-
<div onClick={(e) => {
|
|
159
|
-
console.log(e.target, attrs.scope.row[attrs.tableColumn.prop], '点击了输入框');
|
|
160
|
-
showInput.value = true
|
|
161
|
-
// e.stopPropagation()
|
|
162
|
-
}}>
|
|
163
|
-
{
|
|
164
|
-
attrs.scope.row[attrs.tableColumn.prop] ?
|
|
165
|
-
(attrs.tableColumn.tag ?
|
|
166
|
-
<div class={[styles.tagContainer]} title={attrs.scope.row[attrs.tableColumn.prop]}>
|
|
167
|
-
|
|
168
|
-
{attrs.scope.row[attrs.tableColumn.prop].split(attrs.tableColumn.split).map((item, index) => (
|
|
169
|
-
item.trim() ? <div class={[styles.tag]} key={index}>{item}</div> : null
|
|
170
|
-
))}
|
|
171
|
-
</div>
|
|
172
|
-
:
|
|
173
|
-
<div class={[styles.inputColumnTextareaValue]} title={attrs.scope.row[attrs.tableColumn.prop]}>{attrs.scope.row[attrs.tableColumn.prop]}111</div>
|
|
174
|
-
)
|
|
175
|
-
:
|
|
176
|
-
<div class={[styles.inputColumnTextareaValue]}>{attrs.tableColumn.placeholder || '请输入'}</div>
|
|
177
|
-
}
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
})
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
.inputColumn {
|
|
2
|
-
.inputColumnTextareaValue {
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
display: -webkit-box;
|
|
5
|
-
-webkit-box-orient: vertical;
|
|
6
|
-
-webkit-line-clamp: 2;
|
|
7
|
-
/* 想几行就写几 */
|
|
8
|
-
text-overflow: ellipsis;
|
|
9
|
-
word-break: break-all;
|
|
10
|
-
/* 可选,英文长单词截断 */
|
|
11
|
-
line-height: 18px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.tagContainer {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-wrap: wrap;
|
|
17
|
-
gap: 4px;
|
|
18
|
-
.tag {
|
|
19
|
-
padding: 2px 8px;
|
|
20
|
-
background-color: #F5F5F5;
|
|
21
|
-
border-radius: 4px;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.inputColumnTextarea {
|
|
29
|
-
border: 1px solid #D9D9D9;
|
|
30
|
-
background-color: #fff;
|
|
31
|
-
border-radius: 8px;
|
|
32
|
-
|
|
33
|
-
.aiGenerateBtnContainer {
|
|
34
|
-
background-color: #fff;
|
|
35
|
-
padding: 0 10px 6px;
|
|
36
|
-
display: flex;
|
|
37
|
-
justify-content: space-between;
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
|
|
40
|
-
.aiGenerateBtn {
|
|
41
|
-
color: #4F8BFF;
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:global {
|
|
47
|
-
.el-textarea__inner {
|
|
48
|
-
box-shadow: none;
|
|
49
|
-
border-radius: 8px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.el-textarea {
|
|
53
|
-
box-shadow: none;
|
|
54
|
-
border-radius: 8px;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: 0;
|
|
61
|
-
left: 0;
|
|
62
|
-
z-index: 999999;
|
|
63
|
-
|
|
64
|
-
.aiGenerate {
|
|
65
|
-
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
|
|
66
|
-
border-radius: 8px;
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: 0;
|
|
69
|
-
left: -100%;
|
|
70
|
-
z-index: 999999;
|
|
71
|
-
background-color: #F2F4FA;
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 100%;
|
|
74
|
-
padding: 10px;
|
|
75
|
-
box-sizing: border-box;
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: column;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
|
|
80
|
-
.header {
|
|
81
|
-
display: flex;
|
|
82
|
-
justify-content: space-between;
|
|
83
|
-
align-items: center;
|
|
84
|
-
font-size: 12px;
|
|
85
|
-
color: #222222;
|
|
86
|
-
font-weight: bold;
|
|
87
|
-
|
|
88
|
-
.close {
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.content {
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
color: #222222;
|
|
96
|
-
flex: 1;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.footer {
|
|
100
|
-
display: flex;
|
|
101
|
-
height: 12px;
|
|
102
|
-
gap: 10px;
|
|
103
|
-
|
|
104
|
-
span {
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
font-size: 12px;
|
|
107
|
-
color: #4F8BFF;
|
|
108
|
-
|
|
109
|
-
&:hover {
|
|
110
|
-
color: #3A73E8;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="child-to-parent">
|
|
3
|
-
<h1>子应用消息发送</h1>
|
|
4
|
-
<div class="form-container">
|
|
5
|
-
<div class="form-item">
|
|
6
|
-
<label>标题:</label>
|
|
7
|
-
<input type="text" v-model="formData.title" placeholder="请输入标题">
|
|
8
|
-
</div>
|
|
9
|
-
<div class="form-item">
|
|
10
|
-
<label>消息:</label>
|
|
11
|
-
<input type="text" v-model="formData.message" placeholder="请输入消息内容">
|
|
12
|
-
</div>
|
|
13
|
-
<div class="form-item">
|
|
14
|
-
<label>类型:</label>
|
|
15
|
-
<select v-model="formData.type">
|
|
16
|
-
<option value="success">成功</option>
|
|
17
|
-
<option value="warning">警告</option>
|
|
18
|
-
<option value="error">错误</option>
|
|
19
|
-
<option value="info">信息</option>
|
|
20
|
-
</select>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-item">
|
|
23
|
-
<label>持续时间:</label>
|
|
24
|
-
<input type="number" v-model="formData.duration" placeholder="持续时间(ms)">
|
|
25
|
-
</div>
|
|
26
|
-
<button class="submit-btn" @click="sendToParent">发送消息</button>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script setup>
|
|
32
|
-
import { reactive } from 'vue'
|
|
33
|
-
|
|
34
|
-
const formData = reactive({
|
|
35
|
-
title: 'vue3子应用测试title',
|
|
36
|
-
message: 'vue3子应用测试消息',
|
|
37
|
-
type: 'success',
|
|
38
|
-
duration: 3000
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
const sendToParent = () => {
|
|
42
|
-
window.$wujie?.bus.$emit('child-event', {
|
|
43
|
-
message: formData.message,
|
|
44
|
-
type: formData.type,
|
|
45
|
-
duration: formData.duration,
|
|
46
|
-
title: formData.title
|
|
47
|
-
},'vue3子应用')
|
|
48
|
-
}
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style scoped>
|
|
52
|
-
.child-to-parent {
|
|
53
|
-
padding: 20px;
|
|
54
|
-
max-width: 600px;
|
|
55
|
-
margin: 0 auto;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
h1 {
|
|
59
|
-
color: #333;
|
|
60
|
-
margin-bottom: 30px;
|
|
61
|
-
text-align: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.form-container {
|
|
65
|
-
background: #fff;
|
|
66
|
-
padding: 24px;
|
|
67
|
-
border-radius: 8px;
|
|
68
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.form-item {
|
|
72
|
-
margin-bottom: 20px;
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
label {
|
|
78
|
-
width: 100px;
|
|
79
|
-
text-align: right;
|
|
80
|
-
padding-right: 12px;
|
|
81
|
-
color: #606266;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
input, select {
|
|
85
|
-
flex: 1;
|
|
86
|
-
height: 36px;
|
|
87
|
-
line-height: 36px;
|
|
88
|
-
padding: 0 12px;
|
|
89
|
-
border: 1px solid #dcdfe6;
|
|
90
|
-
border-radius: 4px;
|
|
91
|
-
transition: border-color 0.2s;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
input:focus, select:focus {
|
|
95
|
-
outline: none;
|
|
96
|
-
border-color: #409eff;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.submit-btn {
|
|
100
|
-
width: 100%;
|
|
101
|
-
height: 40px;
|
|
102
|
-
background-color: #409eff;
|
|
103
|
-
color: white;
|
|
104
|
-
border: none;
|
|
105
|
-
border-radius: 4px;
|
|
106
|
-
cursor: pointer;
|
|
107
|
-
transition: background-color 0.3s;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.submit-btn:hover {
|
|
111
|
-
background-color: #66b1ff;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.submit-btn:active {
|
|
115
|
-
background-color: #3a8ee6;
|
|
116
|
-
}
|
|
117
|
-
</style>
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,169 +0,0 @@
|
|
|
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>
|