-
-
Notifications
You must be signed in to change notification settings - Fork 151
fix(BTableLite): field attribute isRowHeader now being respected #2713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
WalkthroughThe rendering logic for table body cells in the Changes
Sequence Diagram(s)sequenceDiagram
participant Parent as Parent Component
participant BTableLite as BTableLite
participant getCellComponent as getCellComponent
participant CellComponent as BTh/BTd
Parent->>BTableLite: Render with fields and items
loop For each field in row
BTableLite->>getCellComponent: Determine cell component (BTh or BTd)
getCellComponent-->>BTableLite: Return BTh if isRowHeader, else BTd
BTableLite->>CellComponent: Render cell using selected component
end
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
commit: |
packages/bootstrap-vue-next/src/components/BTable/table-lite.spec.ts
Outdated
Show resolved
Hide resolved
packages/bootstrap-vue-next/src/components/BTable/BTableLite.vue
Outdated
Show resolved
Hide resolved
* upstream/main: docs: fix on-this-page for composable and directives pages (bootstrap-vue-next#2742) fix(BTableLite): field attribute isRowHeader now being respected (bootstrap-vue-next#2713) docs: change example styles to be single-attribute-per-line (bootstrap-vue-next#2731) fix(BTabs): Add type=button to buttons to prevent form submission (bootstrap-vue-next#2740) docs: fix unplugin-vue-components issue (bootstrap-vue-next#2724) fix(bforminput): abort debouncing if blur occurs chore: release main (bootstrap-vue-next#2735) fix(BTabs): correct id/index on ssr (bootstrap-vue-next#2726) Small fixes on 2025-06-06 (bootstrap-vue-next#2734) docs(BPopover): Parity pass (bootstrap-vue-next#2701) chore: release main Fix some tabs bugs, commit the previous pr override (bootstrap-vue-next#2720) chore: release main (bootstrap-vue-next#2698)
Describe the PR
According to documentation at https://bootstrap-vue-next.github.io/bootstrap-vue-next/docs/components/table.html#field-definition-reference
and to keep inline with the original "bootstrap-vue" implementation. The "isRowHeader" should a allow a td to be a th for if the field definition indicates a true value.
Small replication
See below that the "first_name" field should be a th instead of a td for all the rows.
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)
feat(...)
fix(...)
The PR fulfills these requirements:
CHANGELOG
is generated from these messages, and determines the next version type. Pull requests that do not follow conventional commits or do not have an override will be deniedSummary by CodeRabbit