-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(loading-bar): add start-color and end-color props #683
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/GRsHPvxLpDV1y3tAPWsUpk4dj45W |
Codecov Report
@@ Coverage Diff @@
## main #683 +/- ##
==========================================
- Coverage 39.93% 39.23% -0.70%
==========================================
Files 507 507
Lines 12379 12360 -19
Branches 3468 3463 -5
==========================================
- Hits 4943 4849 -94
- Misses 6522 6598 +76
+ Partials 914 913 -1
Continue to review full report at Codecov.
|
要不要加 |
这个 prop 我不建议这么实现:
我们可以提供另一种 API 来让用户定制,
|
有一些不相关文件的改动应该是代码格式化造成的。。。 |
CHANGELOG 里面大片的变动应该是 git 操作的问题 |
DEMO 不加可以的 |
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.
我的意思不是覆盖样式变量,而是提供的 style 直接作为 inline-style 作用在 bar 的 DOM 上 😂
具体的方式你可以看一下我昨天的评论
这种写法会导致进度条在没有调用start方法就显示出来,然后快速消失 |
没懂。 现在直接调 finish 是不会出进度条的。 |
在 n-loading-bar-provider组件上添加loading-bar-style:"background-color:red" attribute后在页面刷新(app重新初始化)时,即使没有调用进度条start()方法,这个进度条也会一闪而过,行为类似于手动调用进度条start()后在手动finish();不添加这个attr则不会出现这种情况 |
你是这么传的么?注意一下类型 |
抱歉,我反馈问题的时候代码没写对,但是开发中代码时这样写的
|
确实有这个问题,我会看一下 |
close #457