From 59b91e9a7b6c0c3a5edde3604b2439fdfbeacebd Mon Sep 17 00:00:00 2001 From: oneao Date: Sun, 30 Aug 2026 21:28:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(module-management):=20=E5=8F=82=E4=B8=8E?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E5=88=97=E8=A1=A8=E5=A4=B4=E4=B8=8E=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=B1=85=E4=B8=AD=E2=80=94=E2=80=94=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E3=80=8C=E5=90=AF=E7=94=A8=E3=80=8D=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 表头:参与列补 headerAlign: 'center'(stk-table 中 th 与 td 的对齐分开配置, 此前仅 align 只作用于内容,表头走 getHeaderAlign 默认 left) - 内容:.mm-part-cell 补 height:100% + line-height:1,与 FmsTable 内置 勾选列 .fms-checkbox 同构(铺满单元格后 flex 居中) --- .../components/ModuleFieldsPanel.vue | 18 ++++++++++++++---- .../components/participation-cell.scss | 6 +++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/code/fms/fms-vue/src/views/system/module-management/components/ModuleFieldsPanel.vue b/code/fms/fms-vue/src/views/system/module-management/components/ModuleFieldsPanel.vue index 4a20366f..21ca04be 100644 --- a/code/fms/fms-vue/src/views/system/module-management/components/ModuleFieldsPanel.vue +++ b/code/fms/fms-vue/src/views/system/module-management/components/ModuleFieldsPanel.vue @@ -156,13 +156,23 @@ function buildColumns() { { dataIndex: 'b_default_value', title: '默认值', width: 120, editor: { type: 'input' } }, { dataIndex: 'b_i18n', title: '多语言键', width: 220, customCell: I18nKeyCell }, ] - // 表单参与列仅数据模块展示(查询模块无表单设计) + // 表单参与列仅数据模块展示(查询模块无表单设计)。 + // align 管内容 td、headerAlign 管表头 th(stk-table 分开处理,见 FmsTable.getHeaderAlign) const participationColumns = [ ...(props.moduleType === 'data' - ? [{ dataIndex: '__form', title: '表单', width: 64, align: 'center', customCell: FormCell }] + ? [ + { + dataIndex: '__form', + title: '表单', + width: 64, + align: 'center', + headerAlign: 'center', + customCell: FormCell, + }, + ] : []), - { dataIndex: '__list', title: '列表', width: 64, align: 'center', customCell: ListCell }, - { dataIndex: '__query', title: '查询', width: 64, align: 'center', customCell: QueryCell }, + { dataIndex: '__list', title: '列表', width: 64, align: 'center', headerAlign: 'center', customCell: ListCell }, + { dataIndex: '__query', title: '查询', width: 64, align: 'center', headerAlign: 'center', customCell: QueryCell }, ] const tailColumns = [ { diff --git a/code/fms/fms-vue/src/views/system/module-management/components/participation-cell.scss b/code/fms/fms-vue/src/views/system/module-management/components/participation-cell.scss index c7c5e705..f342989a 100644 --- a/code/fms/fms-vue/src/views/system/module-management/components/participation-cell.scss +++ b/code/fms/fms-vue/src/views/system/module-management/components/participation-cell.scss @@ -1,7 +1,11 @@ -/* 字段参与开关单元格(ParticipationCell):随 JS 模块全局引入 */ +/* 字段参与勾选单元格(ParticipationCell):随 JS 模块全局引入。 + * 与 FmsTable 内置勾选列(.fms-checkbox)同构:铺满单元格后 flex 居中, + * 垂直方向由 height:100% 与行高对齐。 */ .mm-part-cell { display: flex; align-items: center; justify-content: center; width: 100%; + height: 100%; + line-height: 1; }