Skip to content

Commit c181394

Browse files
authored
fix(steps): 根据设计稿修改steps组件渲染逻辑 (#3399)
1 parent 8d95bd4 commit c181394

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/vue/src/steps/src/mobile-first/mobile-first-normal.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@
7474
'opacity-0': index === 0 && state.startIndex === 0
7575
},
7676
{ 'sm:hidden sm:min-w-[theme(spacing.6)] sm:ml-4': !vertical },
77-
{ 'border-color-brand': ['done', 'doing'].includes(node[statusField]) }
77+
{
78+
'border-color-brand':
79+
data[index - 1] &&
80+
data[index - 1][statusField] === 'done' &&
81+
['done', 'disabled'].includes(node[statusField])
82+
}
7883
)
7984
"
8085
></div>

packages/vue/src/steps/src/mobile-first/token/normal-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const classes = {
1111
'icon-large': 'w-8 h-8 text-base',
1212
'icon-error': 'text-color-error bg-color-bg-1',
1313
'icon-doing': 'text-color-brand bg-color-info-primary-subtler',
14-
'icon-done': 'text-color-brand bg-color-info-primary-subtler',
14+
'icon-done': 'text-color-brand bg-color-bg-1',
1515
'icon-disabled': 'bg-color-bg-3 text-color-border',
1616
'icon-error-active': 'bg-color-error-subtler border-color-error',
1717
'icon-doing-active': 'bg-color-brand border-color-brand text-color-text-inverse',

0 commit comments

Comments
 (0)