Skip to content

Conversation

@RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Jun 6, 2025

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

sync Tencent/tdesign-vue-next#5575

💡 需求背景和解决方案

📝 更新日志

  • feat(Upload): 扩大 draggable 的点击事件触发热区至整个卡片区域

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 6, 2025

tdesign-vue2-demo-compiler-2-6

npm i https://pkg.pr.new/tdesign-vue@3614

commit: cbbbf0d

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2025

完成

@RSS1102 RSS1102 marked this pull request as draft June 9, 2025 02:11
@RSS1102
Copy link
Collaborator Author

RSS1102 commented Jun 9, 2025

/update-snapshot

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2025

⏳ 正在运行快照更新。。。 CI: Open

@RSS1102 RSS1102 assigned RSS1102 and unassigned RSS1102 Jun 9, 2025
@RSS1102 RSS1102 marked this pull request as ready for review June 9, 2025 03:03
@liweijie0812 liweijie0812 requested a review from Copilot June 9, 2025 04:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR expands the click area for the upload trigger when theme="display" so that clicking anywhere on the card initiates the upload.

  • Introduces a canTriggerUpload computed property to determine when upload can be triggered
  • Refactors getContent to use the new computed guard and removes inline onClick from the trigger element
  • Adds a handleDraggerClick method and attaches onClick to the top-level dragger container
Comments suppressed due to low confidence (1)

src/upload/themes/dragger-file.tsx:225

  • Add unit tests for handleDraggerClick and canTriggerUpload under different file states to ensure clicks only trigger uploads in the intended scenarios.
handleDraggerClick(e: MouseEvent) {

@RSS1102
Copy link
Collaborator Author

RSS1102 commented Jun 9, 2025

/update-snapshot

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2025

⏳ 正在运行快照更新。。。 CI: Open

@RSS1102
Copy link
Collaborator Author

RSS1102 commented Jun 9, 2025

/update-snapshot

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2025

⏳ 正在运行快照更新。。。 CI: Open

@RSS1102 RSS1102 changed the title fix(upload): expand the scope of the click event of theme="display" to the entire card area feat(upload): expand the scope of the click event of draggable to the entire card area Aug 7, 2025
@uyarn uyarn merged commit 13ac0e0 into develop Aug 7, 2025
9 checks passed
@uyarn uyarn deleted the rss1102/feat/upload/display/on-click branch August 7, 2025 08:19
@uyarn uyarn mentioned this pull request Aug 7, 2025
16 tasks
uyarn added a commit that referenced this pull request Aug 7, 2025
…he entire card area (#3614)

* fix(upload): expand the scope of the click event of `theme="display"` to the entire card area

* fix(upload): update `canTriggerUpload` logic to ensure file status is checked correctly

* chore: update snapshot

* chore: revert change

* fix(Dragger): rename canTriggerUpload to hasActiveFile for clarity

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Uyarn <[email protected]>
uyarn added a commit that referenced this pull request Aug 7, 2025
* chore: fix live demo and guide (#3649)

* fix(date-picker): handle tag removal for week and quarter modes (#3653)

* fix(date-picker): handle tag removal for week and quarter modes

* chore: update snapshot

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(date-picker): improve date processing logic for multiple selections (#3658)

* fix(date-picker): improve date processing logic for multiple selections

* fix(date-picker): add multiple prop to panel for consistent behavior

* fix(popup): outside click not closing when initially `visible=true` (#3659)

* fix(ColorPicker): reduce multiple color conversions to minimize errors (#3661)

* fix: reduce multiple color conversions to minimize errors

* refactor: correct color assignment in slider

* fix: use correct props

* chore: update snapshots

* fix: use optional chaining to prevent errors when systemColors is null in gradient mode

* docs: update labels for clarity in color picker panel

* chore: update snapshots

* chore: remove unused togglePopup prop

* fix(image-viewer): update open handler to accept index parameter for image preview (#3670)

* fix(hooks): improve code readability and safety in scroll calculations (#3669)

* feat(Icon): upgrade tdesign-icons-vue to 0.3.6 (#3672)

* fix(alert): add closeBtn API and set close as deprecated (#3631)

closes #3630

* chore: remove invalid attribute (#3638)

* chore: remove invalid attribute

* chore: fix lint

* chore: update snapshot

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(cascader): fix value-type="full", value is undefined error (#3622)

* fix(menu): fix submenu parent item active status on mounted (#3675)

* fix(menu): fix submenu parent item active status on mounted

* chore: update snapshot

* refactor(Statistic): change color attribute type to string and update docs description (#3671)

* refactor(Statistic): change color attribute type to string and update docs description

* test(Statistic): add tests for trend increase and decrease icons

* chore: update snapshot

* feat(Statistic): add color prop tests and update documentation for color styles

* fix(tests): update import path for COLOR_MAP in Statistic tests

* test(Statistic): refactor colorKeys test to check style attribute instead of contentStyle

* chore: update snapshot

* chore: update settings.json

* docs: 更新颜色风格描述,明确支持深浅色模式切换

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat(QRCode): add QRCode Component (#3652)

* feat: docs & type & prop

* feat:  add QRCode

* fix: test

* fix: lint

* chore: update snapshot

* chore: p

* chore: slot

* chore: optimize

* chore: optimize

* chore: optimize

* chore: optimize

* fix: lint

* chore: update snapshot

* chore: update

* chore: update coverage

* chore: update common

* chore: update demo

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: wū yāng <[email protected]>

* fix(tree): add `title` for checkable items (#3633)

* fix(tree): add `title` to checkable items

* chore: update snapshot

---------

Co-authored-by: Uyarn <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat(upload): expand the scope of the click event of `draggable` to the entire card area (#3614)

* fix(upload): expand the scope of the click event of `theme="display"` to the entire card area

* fix(upload): update `canTriggerUpload` logic to ensure file status is checked correctly

* chore: update snapshot

* chore: revert change

* fix(Dragger): rename canTriggerUpload to hasActiveFile for clarity

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Uyarn <[email protected]>

* docs: update getting-started (#3678)

* docs: update getting-started

* chore: update volar

* docs(alert): usage example moved to closeBtn (#3676)

* docs(alert): usage example moved to closeBtn

* chore: update snapshot

---------

Co-authored-by: Uyarn <[email protected]>

* chore: release 1.13.0 (#3677)

* chore: release 1.13.0

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: update new components

* chore: fix lint

* chore: fix lint

* chore: fix lint

* chore: update snapshot

---------

Co-authored-by: betavs <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: 阿菜 Cai <[email protected]>
Co-authored-by: Rylan <[email protected]>
Co-authored-by: TDesign bot <[email protected]>
Co-authored-by: ngyyuusora <[email protected]>
Co-authored-by: liweijie0812 <[email protected]>
Co-authored-by: Wesley <[email protected]>
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.

3 participants