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.
1 parent bba3227 commit 1e0cefaCopy full SHA for 1e0cefa
components/table/Table.tsx
@@ -701,18 +701,18 @@ const Table = defineComponent({
701
customFilterDropdown?: any;
702
default: any;
703
}>,
704
- setup(_props, { attrs, slots, expose }) {
+ setup(props, { attrs, slots, expose }) {
705
const table = ref();
706
expose({
707
table,
708
});
709
return () => {
710
- const props = attrs as TableProps;
711
const columns = props.columns || convertChildrenToColumns(slots.default?.());
712
return (
713
<InteralTable
714
ref={table}
715
{...attrs}
+ {...props}
716
columns={columns || []}
717
expandedRowRender={slots.expandedRowRender}
718
contextSlots={{ ...slots }} // use new object, 否则slot热更新失效,原因需进一步探究
0 commit comments