-
Notifications
You must be signed in to change notification settings - Fork 28
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
Project page for community #999
Conversation
Skipping CI for Draft Pull Request. |
|
||
const props = defineProps<{ | ||
owner: string | User | ||
user: string | User | null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里啥时候会为 null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
外部组件直接给 UserAvatar
user 信息(User
),但是外部组件自己也还在加载 user 信息中的时候
这会儿如果选择通过 v-if
控制不渲染 UserAvatar
,布局会有抖动,所以传个 null
进来让 UserAvatar
先占个位
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不过我又检查了下,现在已经没有这个情况了,这个 null
应该可以干掉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个
null
应该可以干掉
This PR has been deployed to the preview environment. You can explore it using the preview URL. Warning Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team. |
Related to goplus#999. Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
Related to #999. Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
CenteredWrapper
&ProjectItem
, update Community Responsive Size Adjust #978