Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NoticeBar] 不符合预期的样式 #3023

Closed
pdog18 opened this issue Jul 30, 2024 · 1 comment · Fixed by #3025
Closed

[NoticeBar] 不符合预期的样式 #3023

pdog18 opened this issue Jul 30, 2024 · 1 comment · Fixed by #3025
Labels
enhancement New feature or request

Comments

@pdog18
Copy link
Contributor

pdog18 commented Jul 30, 2024

tdesign-miniprogram 版本

1.4.5

重现链接

No response

重现步骤

<t-notice-bar style="background-color: aquamarine ;" visible="{{true}}">
  <view slot="content">aaa</view>
</t-notice-bar>

<view style="height: 40rpx;"></view>

<t-notice-bar style="background-color: aquamarine ;" visible="{{true}}">
  <view slot="content" style="  display: inline;">aaa</view>
</t-notice-bar>

<view style="height: 40rpx;"></view>
<t-notice-bar style="background-color: aquamarine ;" visible="{{true}}" content="aaa">
</t-notice-bar>

当 notice-bar 的 content 是通过 slot 的方式,并且不是 inline 的,那么 notice-bar 底部会出现异常的 padding

image

期望结果

content 不是 inline 时,底部也是正常的

实际结果

content 不是 inline 时,底部有额外的 padding

基础库版本

3.5.1

补充说明

No response

Copy link
Contributor

👋 @pdog18,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants