fix: table style error

This commit is contained in:
sealday 2024-03-30 22:53:30 +08:00
parent 9acb908981
commit 8c4730a4ab

View File

@ -285,7 +285,7 @@ export const Table: any = withDynamicSchemaProps(
const isTableSelector = schema?.parent?.['x-decorator'] === 'TableSelectorProvider'; const isTableSelector = schema?.parent?.['x-decorator'] === 'TableSelectorProvider';
const ctx = isTableSelector ? useTableSelectorContext() : useTableBlockContext(); const ctx = isTableSelector ? useTableSelectorContext() : useTableBlockContext();
const { expandFlag, allIncludesChildren } = ctx; const { expandFlag, allIncludesChildren } = ctx;
const onRowDragEnd = useMemoizedFn(others.onRowDragEnd || (() => { })); const onRowDragEnd = useMemoizedFn(others.onRowDragEnd || (() => {}));
const paginationProps = usePaginationProps(pagination1, pagination2); const paginationProps = usePaginationProps(pagination1, pagination2);
const [expandedKeys, setExpandesKeys] = useState([]); const [expandedKeys, setExpandesKeys] = useState([]);
const [selectedRowKeys, setSelectedRowKeys] = useState<any[]>(field?.data?.selectedRowKeys || []); const [selectedRowKeys, setSelectedRowKeys] = useState<any[]>(field?.data?.selectedRowKeys || []);
@ -576,6 +576,7 @@ export const Table: any = withDynamicSchemaProps(
.ant-table-cell { .ant-table-cell {
text-align: center; text-align: center;
} }
}
.ant-table-wrapper { .ant-table-wrapper {
height: 100%; height: 100%;
.ant-spin-nested-loading { .ant-spin-nested-loading {