diff --git a/CHANGELOG.md b/CHANGELOG.md index 026090c9..9cf1672d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - 在VxeTable固定列时, getPopupContainer会导致宽度不够, 弹出层样式异常 解决办法(将弹窗元素挂载到VXe滚动容器上) +**OTHERS** + +- 代码生成 - 字段信息修改 改为minWidth 防止在高分辨率屏幕出现空白 + # 1.0.0 **FEATURES** diff --git a/apps/web-antd/src/views/tool/gen/edit-steps/gen-data.tsx b/apps/web-antd/src/views/tool/gen/edit-steps/gen-data.tsx index 7b2b8da7..28684fc5 100644 --- a/apps/web-antd/src/views/tool/gen/edit-steps/gen-data.tsx +++ b/apps/web-antd/src/views/tool/gen/edit-steps/gen-data.tsx @@ -91,12 +91,12 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ field: 'columnName', showOverflow: 'tooltip', fixed: 'left', - width: 150, + minWidth: 150, }, { title: '字段描述', field: 'columnComment', - width: 150, + minWidth: 150, slots: { edit: ({ row }) => { return ; @@ -107,13 +107,13 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ { title: 'db类型', field: 'columnType', - width: 120, + minWidth: 120, showOverflow: 'tooltip', }, { title: 'Java类型', field: 'javaType', - width: 150, + minWidth: 150, slots: { edit: ({ row }) => { const javaTypeOptions = JavaTypes.map((type) => ({ @@ -135,7 +135,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ { title: 'Java属性名', field: 'javaField', - width: 150, + minWidth: 150, showOverflow: 'tooltip', slots: { edit: ({ row }) => { @@ -147,7 +147,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ { title: '插入', field: 'insert', - width: 80, + minWidth: 80, showOverflow: 'tooltip', align: 'center', slots: { @@ -165,7 +165,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ field: 'edit', showOverflow: 'tooltip', align: 'center', - width: 80, + minWidth: 80, slots: { default: ({ row }) => { return renderBooleanTag(row, 'edit'); @@ -181,7 +181,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ field: 'list', showOverflow: 'tooltip', align: 'center', - width: 80, + minWidth: 80, slots: { default: ({ row }) => { return renderBooleanTag(row, 'list'); @@ -197,7 +197,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ field: 'query', showOverflow: 'tooltip', align: 'center', - width: 80, + minWidth: 80, slots: { default: ({ row }) => { return renderBooleanTag(row, 'query'); @@ -213,7 +213,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ field: 'queryType', showOverflow: 'tooltip', align: 'center', - width: 150, + minWidth: 150, slots: { default: ({ row }) => { const queryType = row.queryType; @@ -241,7 +241,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ field: 'required', showOverflow: 'tooltip', align: 'center', - width: 80, + minWidth: 80, slots: { default: ({ row }) => { return renderBooleanTag(row, 'required'); @@ -256,7 +256,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ title: '显示类型', field: 'htmlType', showOverflow: 'tooltip', - width: 150, + minWidth: 150, align: 'center', slots: { default: ({ row }) => { @@ -284,7 +284,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [ title: '字典类型', field: 'dictType', showOverflow: 'tooltip', - width: 230, + minWidth: 230, align: 'center', titlePrefix: { message: `仅'下拉框', '单选框', '复选框'支持字典类型`,