Skip to content

Commit

Permalink
feat: 修改字段名称 hideEmptyTable
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Jan 24, 2024
1 parent 618bc0e commit 78d84cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/form-render/src/widgets/listTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface ListTableProps {
/*
* 没有数据时是否隐藏表格
*/
hideTableWhenNoData?: boolean;
emptyHiddenTable?: boolean;
[key: string]: any;
};

Expand Down Expand Up @@ -61,8 +61,7 @@ const TableList: React.FC<ListTableProps> = (props) => {
hideMove,
hideAdd,
hideOperate,
hideTableWhenNoData,

hideEmptyTable,
addItem,
copyItem,
moveItem,
Expand Down Expand Up @@ -188,7 +187,7 @@ const TableList: React.FC<ListTableProps> = (props) => {
});
}

const showTable = fields.length > 0 ? true : !hideTableWhenNoData;
const showTable = fields.length > 0 ? true : !hideEmptyTable;

return (
<div className={classnames('fr-table-list', { 'fr-table-list-no-popover': !islidatePopover })}>
Expand Down

0 comments on commit 78d84cb

Please sign in to comment.