一个笔误误

This commit is contained in:
Xu Chang 2024-07-01 17:25:37 +08:00
parent 042fa51de9
commit 9b10f99d1b
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export const TableContext = createContext({
}); });
const ProList = (props) => { const ProList = (props) => {
const { buttonGroup, entity, extraActions, onAction, disabledOp, attributes, data, loading, tablePagination, rowSelection, onReload, disableSerialNumber, title, hideDefaultButtons = false, extraContent, size = 'large', scroll, locale, opWidth, oakPath, } = props; const { buttonGroup, entity, extraActions, onAction, disabledOp, attributes, data, loading, tablePagination, rowSelection, onReload, disableSerialNumber, title, hideDefaultButtons = false, extraContent, size = 'large', scroll, locale, opWidth, oakPath, } = props;
assert(tablePagination); assert(!tablePagination);
const [tableAttributes, setTableAttributes] = useState([]); const [tableAttributes, setTableAttributes] = useState([]);
const features = useFeatures(); const features = useFeatures();
// const pagination = oakPath && features.runningTree.getPagination(oakPath); // const pagination = oakPath && features.runningTree.getPagination(oakPath);

View File

@ -93,7 +93,7 @@ const ProList = <ED2 extends ED, T extends keyof ED2>(props: Props<ED2, T>) => {
opWidth, opWidth,
oakPath, oakPath,
} = props; } = props;
assert(tablePagination); assert(!tablePagination);
const [tableAttributes, setTableAttributes] = useState< const [tableAttributes, setTableAttributes] = useState<
TableAttributeType[] TableAttributeType[]
>([]); >([]);