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