This commit is contained in:
dap 2024-11-04 19:53:15 +08:00
commit a56cfeb21d
2 changed files with 17 additions and 13 deletions

View File

@ -4,6 +4,10 @@
- 在VxeTable固定列时, getPopupContainer会导致宽度不够, 弹出层样式异常 解决办法(将弹窗元素挂载到VXe滚动容器上) - 在VxeTable固定列时, getPopupContainer会导致宽度不够, 弹出层样式异常 解决办法(将弹窗元素挂载到VXe滚动容器上)
**OTHERS**
- 代码生成 - 字段信息修改 改为minWidth 防止在高分辨率屏幕出现空白
# 1.0.0 # 1.0.0
**FEATURES** **FEATURES**

View File

@ -91,12 +91,12 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
field: 'columnName', field: 'columnName',
showOverflow: 'tooltip', showOverflow: 'tooltip',
fixed: 'left', fixed: 'left',
width: 150, minWidth: 150,
}, },
{ {
title: '字段描述', title: '字段描述',
field: 'columnComment', field: 'columnComment',
width: 150, minWidth: 150,
slots: { slots: {
edit: ({ row }) => { edit: ({ row }) => {
return <Input v-model:value={row.columnComment}></Input>; return <Input v-model:value={row.columnComment}></Input>;
@ -107,13 +107,13 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
{ {
title: 'db类型', title: 'db类型',
field: 'columnType', field: 'columnType',
width: 120, minWidth: 120,
showOverflow: 'tooltip', showOverflow: 'tooltip',
}, },
{ {
title: 'Java类型', title: 'Java类型',
field: 'javaType', field: 'javaType',
width: 150, minWidth: 150,
slots: { slots: {
edit: ({ row }) => { edit: ({ row }) => {
const javaTypeOptions = JavaTypes.map((type) => ({ const javaTypeOptions = JavaTypes.map((type) => ({
@ -135,7 +135,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
{ {
title: 'Java属性名', title: 'Java属性名',
field: 'javaField', field: 'javaField',
width: 150, minWidth: 150,
showOverflow: 'tooltip', showOverflow: 'tooltip',
slots: { slots: {
edit: ({ row }) => { edit: ({ row }) => {
@ -147,7 +147,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
{ {
title: '插入', title: '插入',
field: 'insert', field: 'insert',
width: 80, minWidth: 80,
showOverflow: 'tooltip', showOverflow: 'tooltip',
align: 'center', align: 'center',
slots: { slots: {
@ -165,7 +165,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
field: 'edit', field: 'edit',
showOverflow: 'tooltip', showOverflow: 'tooltip',
align: 'center', align: 'center',
width: 80, minWidth: 80,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return renderBooleanTag(row, 'edit'); return renderBooleanTag(row, 'edit');
@ -181,7 +181,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
field: 'list', field: 'list',
showOverflow: 'tooltip', showOverflow: 'tooltip',
align: 'center', align: 'center',
width: 80, minWidth: 80,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return renderBooleanTag(row, 'list'); return renderBooleanTag(row, 'list');
@ -197,7 +197,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
field: 'query', field: 'query',
showOverflow: 'tooltip', showOverflow: 'tooltip',
align: 'center', align: 'center',
width: 80, minWidth: 80,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return renderBooleanTag(row, 'query'); return renderBooleanTag(row, 'query');
@ -213,7 +213,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
field: 'queryType', field: 'queryType',
showOverflow: 'tooltip', showOverflow: 'tooltip',
align: 'center', align: 'center',
width: 150, minWidth: 150,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
const queryType = row.queryType; const queryType = row.queryType;
@ -241,7 +241,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
field: 'required', field: 'required',
showOverflow: 'tooltip', showOverflow: 'tooltip',
align: 'center', align: 'center',
width: 80, minWidth: 80,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
return renderBooleanTag(row, 'required'); return renderBooleanTag(row, 'required');
@ -256,7 +256,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
title: '显示类型', title: '显示类型',
field: 'htmlType', field: 'htmlType',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 150, minWidth: 150,
align: 'center', align: 'center',
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
@ -284,7 +284,7 @@ export const vxeTableColumns: VxeGridProps['columns'] = [
title: '字典类型', title: '字典类型',
field: 'dictType', field: 'dictType',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 230, minWidth: 230,
align: 'center', align: 'center',
titlePrefix: { titlePrefix: {
message: `仅'下拉框', '单选框', '复选框'支持字典类型`, message: `仅'下拉框', '单选框', '复选框'支持字典类型`,