Skip to content

Commit 35f1ca3

Browse files
committed
fix: table slots inject #102
1 parent 673821e commit 35f1ca3

File tree

2 files changed

+965
-913
lines changed

2 files changed

+965
-913
lines changed

src/components/table/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export default {
274274
})
275275
const table = (
276276
<a-table {...{ props, scopedSlots: { ...this.$scopedSlots } }} onChange={this.loadData}>
277-
{this.$slots.default}
277+
{ Object.keys(this.$slots).map(name => (<template slot={name}>{this.$slots[name]}</template>)) }
278278
</a-table>
279279
)
280280

0 commit comments

Comments
 (0)