JVxeTable新增行时无法设置Column_type=JVxeTypes.hidden的值

pull/755/merge
zhangdaiscott 2023-09-14 18:53:45 +08:00
parent 8d3a633807
commit 55d5b77ac3
1 changed files with 2 additions and 0 deletions

View File

@ -324,6 +324,8 @@ export function useMethods(props: JVxeTableProps, { emit }, data: JVxeDataProps,
linkageMethods.getLinkageOptionsAsync(configItem, '');
}
}
} else if (col?.type === JVxeTypes.hidden) {
record[col.key] = col.defaultValue ?? '';
}
});
return record;