From 53e8516f5f5f69641d0aec9a776d4653d49d089b Mon Sep 17 00:00:00 2001 From: lxzlx624 Date: Sat, 30 Nov 2024 23:56:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(table):=20=E4=BF=AE=E5=A4=8D=20enhanced-tab?= =?UTF-8?q?le=20disableDataPage=20props=20=E4=BC=A0=E9=80=92=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#4781)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: shaw <294435681@qq.com> --- src/table/enhanced-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table/enhanced-table.tsx b/src/table/enhanced-table.tsx index 6c2cca57f2..75e5915b38 100644 --- a/src/table/enhanced-table.tsx +++ b/src/table/enhanced-table.tsx @@ -138,7 +138,7 @@ export default defineComponent({ // 半选状态节点 indeterminateSelectedRowKeys: tIndeterminateSelectedRowKeys.value, // 树形结构不允许本地数据分页 - disableDataPage: Boolean(props.tree && Object.keys(props.tree).length), + disableDataPage: Boolean(props.tree && Object.keys(props.tree).length) || props.disableDataPage, onSelectChange: onInnerSelectChange, onDragSort: onDragSortChange, rowClassName: ({ row }) => {