[BUG]WeUI Icon 高度不等于指定的size并且垂直不居中

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Start with the mp-icon component and the WXML example in the issue, then compare its rendered size and vertical alignment with the WeUI icon documentation. Reproduce the issue using size="25" and confirm that the icon height matches the specified size and is vertically centered.

Written by the indexing model from the issue text.

Description

Bug描述

WeUI Icon 高度不等于指定的size并且垂直不居中

复现方式

  1. 引入mp-icon
  2. wxml中添加<mp-icon icon="add" color="white" size="{{25}}"></mp-icon>
  3. 如以下截图所示,icon高度不等于指定的size并且垂直不居中。屏幕截图 2021-07-18 173133

版本信息

  • weui 版本 [useExtendedLib 引入则直接填写 useExtendedLib] :
    useExtendedLib (IDE 1.05.2107090)
Dominant language
TypeScript
Stars
2.4k
Forks
549
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from wechat-miniprogram/weui-miniprogram

All issues in wechat-miniprogram/weui-miniprogram

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.