Skip to content

Commit

Permalink
fix(Table): key prop id type (#97)
Browse files Browse the repository at this point in the history
jpntex authored Sep 30, 2024
1 parent 14ad87f commit 1f0c7e9
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-ads-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@indielayer/ui": patch
---

fix(Table): key prop id type
5 changes: 2 additions & 3 deletions packages/ui/src/components/table/Table.vue
Original file line number Diff line number Diff line change
@@ -91,9 +91,8 @@ const props = defineProps({
},
})
const selected = defineModel<number | number[]>('selected')
const hasSelected = computed(() => typeof selected.value === 'number')
const selected = defineModel<number | string>('selected')
const hasSelected = computed(() => typeof selected.value !== 'undefined')
type internalT = T & {
__expanded?: boolean;

0 comments on commit 1f0c7e9

Please sign in to comment.