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),
|
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;
|
||||||
|
|
|
||||||
|
|
@ -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' },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue