From 76b12cc5e195efbb8f56fd88ac95e081a37af0dd Mon Sep 17 00:00:00 2001 From: ZhangAo Date: Fri, 28 Aug 2026 17:00:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(module-management):=20R2c=20=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E8=AE=BE=E8=AE=A1=E9=9D=A2=E6=9D=BF=20UI=20=E5=BD=92?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 字段库搜索/占位符/栅格宽度/文本域高度输入 → ui Input(change 载荷改为值) - 编辑方式切换 → ui RadioGroup;设计/数据视图切换 → ui Tabs(nav-only) - 帮助气泡 → ui Popover(hover),删除自绘 help-pop/.mm-edit__help 样式 - 属性面板折叠/展开钮 → ui Button;状态开关×4 → ui Switch - 分组名称内联编辑 → ui Input;确认/取消/齿轮/删除 → ui Button(type=ghost) - 删除废弃 .mm-fdesign__toggle、.mm-edit__mode-btn、.mm-edit__view-btn 样式 - 适配 .mm-edit__mode / .mm-edit__view-switch 为紧凑字号 - 所有 Button 覆写样式加 .button 后缀(确保覆盖 ui Button 默认尺寸) - 所有 Input 覆写样式加 .input-wrapper 后缀 - 替换 .mm-fdesign__span-control input[type=number] 为 .mm-fdesign__span-input.input-wrapper --- .../components/ModuleFormEditPanel.vue | 465 ++++++------------ 1 file changed, 142 insertions(+), 323 deletions(-) diff --git a/code/fms/fms-vue/src/views/system/module-management/components/ModuleFormEditPanel.vue b/code/fms/fms-vue/src/views/system/module-management/components/ModuleFormEditPanel.vue index 0c10cc45..8a0719c5 100644 --- a/code/fms/fms-vue/src/views/system/module-management/components/ModuleFormEditPanel.vue +++ b/code/fms/fms-vue/src/views/system/module-management/components/ModuleFormEditPanel.vue @@ -26,8 +26,13 @@ import draggable from 'vuedraggable' import { Message, Button, - Select, Input, + Popover, + Radio, + RadioGroup, + Select, + Switch, + Tabs, Checkbox, DatePicker, Form, @@ -1306,12 +1311,12 @@ function onColspanChange(value) { } // 数字输入框 change(失焦/回车)提交:与原值不同才真正写入 -function onColspanInput(event) { +function onColspanInput(value) { const row = selectedRow.value if (!row || props.loading) return - const value = Math.min(24, Math.max(1, Number(event.target.value) || 24)) - if (value === spanOf(row)) return - onColspanChange(value) + const next = Math.min(24, Math.max(1, Number(value) || 24)) + if (next === spanOf(row)) return + onColspanChange(next) } function onHeightChange(value) { @@ -1322,12 +1327,12 @@ function onHeightChange(value) { } /* 占位符:change(失焦/回车)提交,有变化才真正写入 */ -function onPlaceholderChange(event) { +function onPlaceholderChange(value) { const row = selectedRow.value if (!row || props.loading) return - const value = event.target.value.trim() - if ((row.b_placeholder || '') === value) return - row.b_placeholder = value || null + const next = String(value ?? '').trim() + if ((row.b_placeholder || '') === next) return + row.b_placeholder = next || null emitUpdate() } @@ -1424,12 +1429,7 @@ onBeforeUnmount(() => { :class="{ 'is-inspector-collapsed': inspectorCollapsed }" >