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

feat(message): messageProvider add closable prop #797

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

Talljack
Copy link
Contributor

@Talljack Talljack commented Aug 6, 2021

close #795

@vercel
Copy link

vercel bot commented Aug 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tusimple/naive-ui/CJjhbR84ARmRzkmVBPJhdBr9q9Rb
✅ Preview: https://naive-ui-git-fork-talljack-795-tusimple.vercel.app

@codecov
Copy link

codecov bot commented Aug 6, 2021

Codecov Report

Merging #797 (9577cc1) into main (648392b) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #797      +/-   ##
==========================================
- Coverage   40.25%   40.25%   -0.01%     
==========================================
  Files         507      507              
  Lines       12393    12394       +1     
  Branches     3479     3480       +1     
==========================================
  Hits         4989     4989              
  Misses       6494     6494              
- Partials      910      911       +1     
Impacted Files Coverage Δ
src/message/src/MessageProvider.tsx 64.86% <0.00%> (-1.81%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 648392b...9577cc1. Read the comment docs.

@@ -182,6 +183,11 @@ export default defineComponent({
? this.duration
: message.duration
}
closable={
message.closable === undefined
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里为啥不用 falsy ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

要判断填没填,没填才是默认,填了的话就不能再被覆盖了

Copy link
Collaborator

@07akioni 07akioni left a comment

Choose a reason for hiding this comment

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

开个新 PR 把测试搞了

@07akioni 07akioni merged commit 25cb8cb into tusen-ai:main Aug 6, 2021
@Talljack
Copy link
Contributor Author

Talljack commented Aug 7, 2021

开个新 PR 把测试搞了

OK

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.

MessageProvider Props 添加 closable 属性
4 participants