Skip to content

Commit

Permalink
#2490: fixed SkillsBTable.vue usage of Vue3 slots in order to properl…
Browse files Browse the repository at this point in the history
…y render table's cells
  • Loading branch information
EVOFORGE\dimay committed Jan 8, 2024
1 parent 83a8c15 commit 6023a85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dashboard/src/components/utils/table/SkillsBTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ limitations under the License.
</div>
</template>

<!-- use named slots with b-table component -->
<slot v-for="slot in Object.keys($slots)" :name="slot" :slot="slot"/>

<!-- use scoped slots to the b-table component -->
<template v-for="slot in Object.keys($scopedSlots)" :slot="slot" slot-scope="scope">
<template v-for="slot in Object.keys($slots)" v-slot:[slot]="scope">
<slot :name="slot" v-bind="scope"/>
</template>

Expand Down Expand Up @@ -103,6 +100,9 @@ limitations under the License.
let uid = 0;
export default {
compatConfig: {
MODE: 3, // opt-in to Vue 3 behavior for this component only
},
name: 'SkillsBTable',
props: ['items', 'options', 'tableStoredStateId'],
mixins: [PersistedSortMixin],
Expand Down

0 comments on commit 6023a85

Please sign in to comment.