We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d490820 + 1e0cefa commit d3d37f0Copy full SHA for d3d37f0
components/table/Table.tsx
@@ -668,18 +668,18 @@ const Table = defineComponent({
668
customFilterDropdown?: any;
669
default: any;
670
}>,
671
- setup(_props, { attrs, slots, expose }) {
+ setup(props, { attrs, slots, expose }) {
672
const table = ref();
673
expose({
674
table,
675
});
676
return () => {
677
- const props = attrs as TableProps;
678
const columns = props.columns || convertChildrenToColumns(slots.default?.());
679
return (
680
<InteralTable
681
ref={table}
682
{...attrs}
+ {...props}
683
columns={columns || []}
684
expandedRowRender={slots.expandedRowRender}
685
contextSlots={{ ...slots }} // use new object, 否则slot热更新失效,原因需进一步探究
0 commit comments