mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
chore: nav 当 label 是自定义渲染器时不要显示 title
This commit is contained in:
parent
485a22fe60
commit
a8b0b1ac98
@ -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