Unverified 提交 bc55b92c 作者: quyanan 提交者: GitHub

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

Co-authored-by: jinmao88 <50581550+jinmao88@users.noreply.github.com>
上级 f1e8e241
...@@ -253,9 +253,9 @@ ...@@ -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;
......
<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 @@ ...@@ -56,6 +56,7 @@
width: 160, width: 160,
title: 'Action', title: 'Action',
dataIndex: 'action', dataIndex: 'action',
fixed: 'right',
// slots: { customRender: 'action' }, // slots: { customRender: 'action' },
}, },
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论