fix(expandtable): 恢复可展开表格Demo,修复开启可展开表格后横向滚动失效问题 (#2050)
Co-authored-by: jinmao88 <50581550+jinmao88@users.noreply.github.com>
This commit is contained in:
parent
f1e8e241b1
commit
bc55b92c9b
|
|
@ -253,9 +253,9 @@
|
|||
footer: unref(getFooterProps),
|
||||
...unref(getExpandOption),
|
||||
};
|
||||
if (slots.expandedRowRender) {
|
||||
propsData = omit(propsData, 'scroll');
|
||||
}
|
||||
// if (slots.expandedRowRender) {
|
||||
// propsData = omit(propsData, 'scroll');
|
||||
// }
|
||||
|
||||
propsData = omit(propsData, ['class', 'onChange']);
|
||||
return propsData;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<PageWrapper
|
||||
title="可展开表格"
|
||||
content="不可与scroll共用。TableAction组件可配置stopButtonPropagation来阻止操作按钮的点击事件冒泡,以便配合Table组件的expandRowByClick"
|
||||
content="TableAction组件可配置stopButtonPropagation来阻止操作按钮的点击事件冒泡,以便配合Table组件的expandRowByClick"
|
||||
>
|
||||
<BasicTable @register="registerTable">
|
||||
<template #expandedRowRender="{ record }">
|
||||
|
|
@ -56,6 +56,7 @@
|
|||
width: 160,
|
||||
title: 'Action',
|
||||
dataIndex: 'action',
|
||||
fixed: 'right',
|
||||
// slots: { customRender: 'action' },
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue