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

vue3-waterfall-item 样式丢失 #2

Open
IITII opened this issue Feb 1, 2023 · 2 comments
Open

vue3-waterfall-item 样式丢失 #2

IITII opened this issue Feb 1, 2023 · 2 comments

Comments

@IITII
Copy link

IITII commented Feb 1, 2023

  1. 在已发布的 npm 包里面, 没有包含 position: absolute; 这个样式, 会导致瀑布流样式出错
  2. 在 git 代码里面, 有这个样式

position: absolute;

image

@IITII
Copy link
Author

IITII commented Feb 2, 2023

弄错了, 这个 style 单独在 dist/style.css, 但是实际上, 也并没有 在 package 里面暴露出来, 无法 import

@IITII
Copy link
Author

IITII commented Feb 2, 2023

添加以下全局样式, 才能正常显示

.vue3-waterfall-item {
  position: absolute;
  box-sizing: border-box;
  box-shadow: 0 2px 6px 0 rgb(0 0 0 / 10%);
}

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

No branches or pull requests

1 participant