Skip to content

Commit

Permalink
fix(link): 修复跳转方式为返回或退出时链接样式为禁用的问题 (#2226)
Browse files Browse the repository at this point in the history
  • Loading branch information
qianxuu authored Nov 15, 2023
1 parent d18f42e commit 7f264e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/link/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export default class Link extends SuperComponent {
if (underline) {
classList.push(`${name}--underline`);
}
if ((navigatorProps && !navigatorProps.url) || disabled) {
if (
(navigatorProps && !navigatorProps.url && !['navigateBack', 'exit'].includes(navigatorProps.openType)) ||
disabled
) {
classList.push(`${name}--disabled`);
}

Expand Down

0 comments on commit 7f264e4

Please sign in to comment.