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

PageHeader 中渲染default slot时,内容 上外 边距的问题 #1795

Closed
JobinJia opened this issue Dec 9, 2021 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@JobinJia
Copy link

JobinJia commented Dec 9, 2021

TuSimple/naive-ui version (版本)

2.21.5

Vue version (Vue 版本)

3.2.24

Browser and its version (浏览器及其版本)

Chrome: 96.0.4664.55

System and its version (系统及其版本)

macOS 11.6

Node version (Node 版本)

v17.2.0

Reappearance link (重现链接)

https://codesandbox.io/s/condescending-drake-pzzs7

Reappearance steps (重现步骤)

打开链接,即可看到

Expected results (期望的结果)

只设置了page-header 的default slot时,上外边距应该为0,这样能保证内容居中

Actual results (实际的结果)

.n-page-header-content 始终都会加上margin-top: 20px。这样会导致不传别的slot时,样式有问题

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Dec 9, 2021
@Fnzero Fnzero added the bug Something isn't working label Dec 9, 2021
@Talljack Talljack removed the untriaged need to sort label Dec 9, 2021
@Fnzero Fnzero self-assigned this Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants