Skip to content

Commit

Permalink
fix: nested slot tables (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWaldschmidt authored Feb 7, 2024
1 parent aedcaa8 commit cbe0c14
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v2.0.8

- Fix `LobTable`s with nested slots

## v2.0.7

- Fix `Icon` component registration
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lob/ui-components",
"version": "2.0.7",
"version": "2.0.8",
"engines": {
"node": ">=20.2.0",
"npm": ">=10.2.0"
Expand Down
1 change: 1 addition & 0 deletions src/components/Table/TableHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
const isNestedSlot =
defaultSlot[0].type === 'template' ||
defaultSlot[0].type.toString() === 'Symbol(Fragment)' ||
defaultSlot[0].type.toString() === 'Symbol(v-fgt)' ||
defaultSlot[0].type.toString() === 'Symbol()';
let columns;
Expand Down
1 change: 1 addition & 0 deletions src/components/Table/TableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
const isNestedSlot =
defaultSlot[0].type === 'template' ||
defaultSlot[0].type.toString() === 'Symbol(Fragment)' ||
defaultSlot[0].type.toString() === 'Symbol(v-fgt)' ||
defaultSlot[0].type.toString() === 'Symbol()';
let items;
Expand Down

0 comments on commit cbe0c14

Please sign in to comment.