mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: 修复nav组件横向模式下,父级无法点击问题 (#10712)
* fix: 修复nav组件横向模式下,父级无法点击问题 * 更新快照 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
0483504c67
commit
301f435124
@ -215,6 +215,7 @@ export class SubMenu extends React.Component<SubMenuProps> {
|
||||
data-depth={depth}
|
||||
onDragStart={onDragStart?.(link)}
|
||||
{...testIdBuilder?.getTestId()}
|
||||
href={link?.to}
|
||||
>
|
||||
{renderContent()}
|
||||
</a>
|
||||
|
@ -441,6 +441,7 @@ exports[`Renderer:Nav with defer 1`] = `
|
||||
class="cxd-Nav-Menu-item-link"
|
||||
data-depth="1"
|
||||
data-id="3"
|
||||
href="?cat=3"
|
||||
>
|
||||
<span
|
||||
class="cxd-Nav-Menu-item-label cxd-Nav-Menu-item-label-subTitle"
|
||||
@ -1018,6 +1019,7 @@ exports[`Renderer:Nav with itemActions 1`] = `
|
||||
class="cxd-Nav-Menu-item-link"
|
||||
data-depth="1"
|
||||
data-id="3"
|
||||
href="?cat=3"
|
||||
>
|
||||
<span
|
||||
class="cxd-Nav-Menu-item-label cxd-Nav-Menu-item-label-subTitle"
|
||||
@ -1418,6 +1420,7 @@ exports[`Renderer:Nav with itemActions 2`] = `
|
||||
class="cxd-Nav-Menu-item-link"
|
||||
data-depth="1"
|
||||
data-id="3"
|
||||
href="?cat=3"
|
||||
>
|
||||
<span
|
||||
class="cxd-Nav-Menu-item-dragBar"
|
||||
|
Loading…
Reference in New Issue
Block a user