Skip to content

Commit 1e0cefa

Browse files
committed
fix: table not work
1 parent bba3227 commit 1e0cefa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/table/Table.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -701,18 +701,18 @@ const Table = defineComponent({
701701
customFilterDropdown?: any;
702702
default: any;
703703
}>,
704-
setup(_props, { attrs, slots, expose }) {
704+
setup(props, { attrs, slots, expose }) {
705705
const table = ref();
706706
expose({
707707
table,
708708
});
709709
return () => {
710-
const props = attrs as TableProps;
711710
const columns = props.columns || convertChildrenToColumns(slots.default?.());
712711
return (
713712
<InteralTable
714713
ref={table}
715714
{...attrs}
715+
{...props}
716716
columns={columns || []}
717717
expandedRowRender={slots.expandedRowRender}
718718
contextSlots={{ ...slots }} // use new object, 否则slot热更新失效,原因需进一步探究

0 commit comments

Comments
 (0)