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 }" >