-
-
Notifications
You must be signed in to change notification settings - Fork 173
refactor: select and unselect row methods in BTable #2875
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
|
|
WalkthroughRefactors slot bindings in BTable.vue to use scope.index directly instead of passing an index parameter for row-details and dynamic cell slots. The change replaces parameterized functions with zero-argument functions that reference scope.index. No public APIs, events, or behavior are altered. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/bootstrap-vue-next/src/components/BTable/BTable.vue (1)
28-29: Document the slot prop signature change. TheselectRowandunselectRowslot props no longer accept an index argument (they now close overscope.index). No consumer code was found passing explicit indices, but please add a note about this breaking change in the changelog or PR description.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/bootstrap-vue-next/src/components/BTable/BTable.vue(2 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
packages/bootstrap-vue-next/src/components/**
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Create and modify Vue components only under packages/bootstrap-vue-next/src/components/
Files:
packages/bootstrap-vue-next/src/components/BTable/BTable.vue
packages/bootstrap-vue-next/src/components/**/*.vue
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Keep component-specific styles within their respective .vue single-file components
Files:
packages/bootstrap-vue-next/src/components/BTable/BTable.vue
🔇 Additional comments (1)
packages/bootstrap-vue-next/src/components/BTable/BTable.vue (1)
46-47: Consistent refactor applied to dynamic cell slots.The same zero-argument function pattern is correctly applied here for dynamic cell slots, maintaining consistency with the row-details slot changes. The implementation is sound.
Note: The API change concern mentioned in the previous comment (lines 28-29) applies equally here.
commit: |
Describe the PR
A clear and concise description of what the pull request does.
Small replication
A small replication or video walkthrough can help demonstrate the changes made. This is optional, but can help observe the intended changes. A mentioned issue that contains a replication also works.
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)feat(...)fix(...)docs(...)The PR fulfills these requirements:
CHANGELOGis 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