Tencent / Tencent/tdesign-miniprogram

[Fab 悬浮按钮] 建议增加自动收缩功能

Open
#2,709 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

💪🏻 enhancement good first issue
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

这个功能解决了什么问题

[Fab 悬浮按钮] 不支持自动收缩功能,一直悬浮在页面,遮挡页面内容。

你建议的方案是什么

[Fab 悬浮按钮] 建议增加自动收缩功能,能够在不需要使用时,不遮挡页面内容进行3s左右时间自动收起,需要时,点击侧边收起后的图标进行展开。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Fab floating-button component in the tdesign-miniprogram repository and inspect its current interaction behavior. Implement and verify the requested behavior: after roughly 3 seconds without use, the button collapses without obscuring page content, and clicking the collapsed side icon expands it again.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.