mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Step): fix inactive title style (#10049)
Co-authored-by: pengjin <pengjin@vcredit.com>
This commit is contained in:
parent
db5b7918af
commit
e9f84b68aa
@ -48,7 +48,7 @@ export default defineComponent({
|
||||
if (isActive()) {
|
||||
return { color: parentProps.activeColor };
|
||||
}
|
||||
if (!getStatus()) {
|
||||
if (getStatus() === 'waiting') {
|
||||
return { color: parentProps.inactiveColor };
|
||||
}
|
||||
});
|
||||
|
@ -31,7 +31,9 @@ exports[`should change inactive color when using inactive-color prop 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
<div class="van-hairline van-step van-step--horizontal van-step--waiting">
|
||||
<div class="van-step__title">
|
||||
<div class="van-step__title"
|
||||
style="color: red;"
|
||||
>
|
||||
B
|
||||
</div>
|
||||
<div class="van-step__circle-container">
|
||||
|
Loading…
x
Reference in New Issue
Block a user