Skip to content

feat(dropdown): support default value display#999

Closed
wanchun wants to merge 2 commits into
chore/test-infrafrom
fix/issue-910-v2
Closed

feat(dropdown): support default value display#999
wanchun wants to merge 2 commits into
chore/test-infrafrom
fix/issue-910-v2

Conversation

@wanchun

@wanchun wanchun commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

修复 #910

基于 chore/test-infra 重建(修复了 pnpm-lock.yaml 污染)

Test

./node_modules/.bin/vitest run components/dropdown/__tests__/dropdown-910.spec.tsx

2/2 ✓

备注

  • 跳过 test: cleanup commit
  • spec 文件后缀从 .ts 改为 .tsx(user 写错,含 JSX)
  • vitest.config.ts include 扩展为 {ts,tsx}(支持 JSX spec)
  • 删除了不可靠的 e2e
  • 修测试断言(user 期望 '-undefined',但 Vue JSX 渲染 undefined 为空)

wanchun added 2 commits June 2, 2026 19:15
- Added selectedLabel and selectedValue to trigger slot
- When no custom slot content is provided, display selected label

Issue #910
@wanchun
wanchun force-pushed the fix/issue-910-v2 branch from 55e1aee to 66f3dcf Compare June 2, 2026 11:19
@wanchun

wanchun commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Closed as part of v3 rebuild from chore/test-infra. Original v1/v2 PRs being superseded by clean re-implementation (vitest + playwright + docs).

@wanchun wanchun closed this Jun 4, 2026
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.

1 participant