Skip to content

Commit

Permalink
Merge pull request #948 from 3YOURMIND/revert-slots-re-emergance
Browse files Browse the repository at this point in the history
Revert "refact(KtTable): declare state types"
  • Loading branch information
Isokaeder authored Jun 17, 2024
2 parents b793d7c + 1f6e722 commit ef7d34e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/kotti-ui/source/kotti-table/KtTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,18 @@ export default {
return colSpan
},
isExpandable() {
return Boolean(this.$slots.expand || this.renderExpand)
return Boolean(this.$scopedSlots.expand || this.renderExpand)
},
hasActions() {
return Boolean(this.$slots.actions || this.renderActions)
return Boolean(this.$scopedSlots.actions || this.renderActions)
},
_renderExpand() {
return (h: CreateElement, rowData: any) => {
if (this.renderExpand) return this.renderExpand(h, rowData)
// @ts-expect-error $slots will exist at runtime
return this.$slots.expand(rowData)
return this.$scopedSlots.expand(rowData)
}
},
_renderActions() {
Expand All @@ -229,7 +229,7 @@ export default {
// @ts-expect-error $slots will exist at runtime
return this.$slots.actions(rowData)
return this.$scopedSlots.actions(rowData)
}
},
_renderLoading() {
Expand Down

0 comments on commit ef7d34e

Please sign in to comment.