fix(expandtable): 恢复可展开表格Demo,修复开启可展开表格后横向滚动失效问题 (#2050)

Co-authored-by: jinmao88 <50581550+jinmao88@users.noreply.github.com>
This commit is contained in:
quyanan 2022-07-07 15:42:30 +08:00 committed by GitHub
parent f1e8e241b1
commit bc55b92c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10054 additions and 4 deletions

View File

@ -253,9 +253,9 @@
footer: unref(getFooterProps), footer: unref(getFooterProps),
...unref(getExpandOption), ...unref(getExpandOption),
}; };
if (slots.expandedRowRender) { // if (slots.expandedRowRender) {
propsData = omit(propsData, 'scroll'); // propsData = omit(propsData, 'scroll');
} // }
propsData = omit(propsData, ['class', 'onChange']); propsData = omit(propsData, ['class', 'onChange']);
return propsData; return propsData;

View File

@ -1,7 +1,7 @@
<template> <template>
<PageWrapper <PageWrapper
title="可展开表格" title="可展开表格"
content="不可与scroll共用。TableAction组件可配置stopButtonPropagation来阻止操作按钮的点击事件冒泡以便配合Table组件的expandRowByClick" content="TableAction组件可配置stopButtonPropagation来阻止操作按钮的点击事件冒泡以便配合Table组件的expandRowByClick"
> >
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #expandedRowRender="{ record }"> <template #expandedRowRender="{ record }">
@ -56,6 +56,7 @@
width: 160, width: 160,
title: 'Action', title: 'Action',
dataIndex: 'action', dataIndex: 'action',
fixed: 'right',
// slots: { customRender: 'action' }, // slots: { customRender: 'action' },
}, },
}); });

10049
yarn.lock Normal file

File diff suppressed because it is too large Load Diff