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) {
|
if (!exists) {
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
const res = [...columns];
|
const res = [
|
||||||
if (designable) {
|
...columns,
|
||||||
res.push({
|
{
|
||||||
title: render(),
|
title: render(),
|
||||||
dataIndex: 'TABLE_COLUMN_INITIALIZER',
|
dataIndex: 'TABLE_COLUMN_INITIALIZER',
|
||||||
key: 'TABLE_COLUMN_INITIALIZER',
|
key: 'TABLE_COLUMN_INITIALIZER',
|
||||||
render: () => <div style={{ minWidth: 180 }} />,
|
render: designable ? () => <div style={{ minWidth: 180 }} /> : null,
|
||||||
fixed: 'right',
|
fixed: designable ? 'right' : 'none',
|
||||||
});
|
},
|
||||||
}
|
];
|
||||||
|
|
||||||
if (props.showDel) {
|
if (props.showDel) {
|
||||||
res.push({
|
res.push({
|
||||||
title: '',
|
title: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user