Skip to content

fix: Vue defaultTabComponent and framework prop runtime updates#1188

Merged
mathuo merged 3 commits intomasterfrom
fix/vue-default-tab-component
Apr 14, 2026
Merged

fix: Vue defaultTabComponent and framework prop runtime updates#1188
mathuo merged 3 commits intomasterfrom
fix/vue-default-tab-component

Conversation

@mathuo
Copy link
Copy Markdown
Owner

@mathuo mathuo commented Apr 14, 2026

Summary

  • Fixes Default tab component doesn't work in Vue #1170: default-tab-component prop now works in the Vue integration
  • Passes defaultTabComponent to core options on mount so the core resolves the fallback tab name
  • Adds Vue watchers for all framework props (defaultTabComponent, watermarkComponent, rightHeaderActionsComponent, leftHeaderActionsComponent, prefixHeaderActionsComponent) so they update at runtime via updateOptions, matching the React wrapper's behavior
  • Migrates dockview-vue test suite from Jest to Vitest, enabling proper SFC component mounting with @vue/test-utils

Test plan

  • vitest run passes all 72 tests across 6 files
  • dockview.spec.ts mounts the actual DockviewVue SFC and verifies prop changes trigger updateOptions with correct factory functions
  • vite build succeeds for dockview-vue
  • Manual verification: set default-tab-component on <DockviewVue> and confirm custom tab renders

🤖 Generated with Claude Code

mathuo and others added 3 commits April 14, 2026 21:58
Pass defaultTabComponent to core options on mount and add watchers for
all framework props (defaultTabComponent, watermarkComponent,
rightHeaderActionsComponent, leftHeaderActionsComponent,
prefixHeaderActionsComponent) so they update at runtime via updateOptions.

Migrate dockview-vue tests from Jest to Vitest to enable proper SFC
component mounting with @vue/test-utils.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lity

Vite 8 is ESM-only and cannot be loaded via require(). Adding "type": "module"
to package.json and renaming CJS script to .cjs fixes the CI build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
No longer used.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mathuo mathuo force-pushed the fix/vue-default-tab-component branch from bd9b5fb to d8e6678 Compare April 14, 2026 21:25
@sonarqubecloud
Copy link
Copy Markdown

@mathuo mathuo merged commit cf9ad89 into master Apr 14, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default tab component doesn't work in Vue

1 participant