mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
fix: table column should support blank column occupancy (#4350)
* fix: table column * fix: table column
This commit is contained in:
parent
21ab4c5d45
commit
c293929daa
@ -157,16 +157,17 @@ const useTableColumns = (props: { showDel?: boolean; isSubTable?: boolean }) =>
|
||||
if (!exists) {
|
||||
return columns;
|
||||
}
|
||||
const res = [...columns];
|
||||
if (designable) {
|
||||
res.push({
|
||||
const res = [
|
||||
...columns,
|
||||
{
|
||||
title: render(),
|
||||
dataIndex: 'TABLE_COLUMN_INITIALIZER',
|
||||
key: 'TABLE_COLUMN_INITIALIZER',
|
||||
render: () => <div style={{ minWidth: 180 }} />,
|
||||
fixed: 'right',
|
||||
});
|
||||
}
|
||||
render: designable ? () => <div style={{ minWidth: 180 }} /> : null,
|
||||
fixed: designable ? 'right' : 'none',
|
||||
},
|
||||
];
|
||||
|
||||
if (props.showDel) {
|
||||
res.push({
|
||||
title: '',
|
||||
|
Loading…
Reference in New Issue
Block a user