Tencent / Tencent/tdesign-miniprogram

[Swiper] 更新版本后宽度100%,高度自适应失效

Open
#1,336 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🏃 in progress 🐞 bug good first issue
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

0.32.0

重现链接

https://tdesign.tencent.com/miniprogram/components/swiper?tab=demo

重现步骤

No response

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

0.31.0的时候宽度100%,高度自适应。升级之后查看文档现在高度默认192px

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 Swiper documentation demo linked in the issue and compare its behavior between tdesign-miniprogram 0.31.0 and 0.32.0. Inspect the current Swiper component implementation to locate the default 192px height and how width and height are calculated. Done means reproducing the regression and restoring 100% width with automatic height without breaking the documented demo.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.