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

refactor(Empty): 重构空状态组件 #833

Merged
merged 6 commits into from
May 18, 2022
Merged

refactor(Empty): 重构空状态组件 #833

merged 6 commits into from
May 18, 2022

Conversation

nullptr-z
Copy link
Collaborator

No description provided.

@nullptr-z nullptr-z requested a review from SunLxy May 18, 2022 05:57
@SunLxy SunLxy merged commit 428ec2f into uiwjs:v5 May 18, 2022
@@ -49,7 +49,7 @@ const Empty = (props: EmptyProps) => {
</div>
{description && <div className={`${prefixCls}-description`}>{description}</div>}
{children && <div className={`${prefixCls}-footer`}>{children}</div>}
</div>
</EmptyWrap>
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nullptr-z @SunLxy 为什么不是如下写法?className, 保留只是留给人家冲样式的名字。

<EmptyWrap>
  <EmptyWrapIcon className={`${prefixCls}-icon`}>  </EmptyWrapIcon>
  <EmptyDescription className={`${prefixCls}-description`}>  </EmptyDescription>
  <EmptyFooter className={`${prefixCls}-description`}>  </EmptyFooter>
</EmptyWrap>

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

Successfully merging this pull request may close these issues.

3 participants