mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
Merge pull request #3989 from 2betop/chore-nav
chore: nav 当 label 是自定义渲染器时不要显示 title
This commit is contained in:
commit
100a076425
@ -466,7 +466,7 @@ export class Navigation extends React.Component<
|
||||
<a
|
||||
data-id={link.__id}
|
||||
data-depth={depth}
|
||||
title={link?.label?.toString()}
|
||||
title={typeof link?.label === 'string' ? link?.label : undefined}
|
||||
onClick={this.handleClick.bind(this, link)}
|
||||
style={{
|
||||
paddingLeft: depth * (parseInt(indentSize as any, 10) ?? 24)
|
||||
|
Loading…
Reference in New Issue
Block a user