File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,14 @@ exports[`renders ./components/menu/demo/template.md correctly 1`] = `
130
130
<div style = " width: 256px;" ><button type = " button" class = " ant-btn ant-btn-primary" style = " margin-bottom: 16px;" ><i class = " anticon anticon-menu-fold" ></i ></button >
131
131
<ul class = " ant-menu ant-menu-inline ant-menu-root ant-menu-dark" role = " menu" >
132
132
<li role = " menuitem" class = " ant-menu-item ant-menu-item-selected" style = " padding-left: 24px;" ><i class = " anticon anticon-pie-chart" ></i > <span >Option 1</span ></li >
133
- <li role = " menuitem" class = " ant-menu-submenu ant-menu-submenu-inline" menuinfo = " [object Object]" >
134
- <div aria-haspopup = " true" class = " ant-menu-submenu-title" style = " padding-left: 24px;" ><span ><i class = " anticon anticon-mail" ></i ><span >Navigation 2</span ></span ><i class = " ant-menu-submenu-arrow" ></i ></div >
135
- <div ></div >
133
+ <li role = " menuitem" class = " ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open" >
134
+ <div aria-expanded = " true" aria-owns = " 2$Menu" aria-haspopup = " true" class = " ant-menu-submenu-title" style = " padding-left: 24px;" ><span ><i class = " anticon anticon-mail" ></i ><span >Navigation 2</span ></span ><i class = " ant-menu-submenu-arrow" ></i ></div >
135
+ <ul class = " ant-menu ant-menu-inline ant-menu-sub" role = " menu" >
136
+ <li role = " menuitem" class = " ant-menu-submenu ant-menu-submenu-inline" >
137
+ <div aria-haspopup = " true" class = " ant-menu-submenu-title" style = " padding-left: 48px;" ><span ><i class = " anticon anticon-mail" ></i ><span >Navigation 3</span ></span ><i class = " ant-menu-submenu-arrow" ></i ></div >
138
+ <div ></div >
139
+ </li >
140
+ </ul >
136
141
</li >
137
142
</ul >
138
143
</div >
Original file line number Diff line number Diff line change 1
1
<template functional>
2
- <a-sub-menu v-on =" listeners" v-bind = " data.attrs " :key =" data.key" >
2
+ <a-sub-menu v-on =" listeners" :key =" data.key" >
3
3
<span slot =" title" ><a-icon type =" mail" /><span >{{data.attrs.menuInfo.title}}</span ></span >
4
4
<template v-for =" item in data .attrs .menuInfo .children " >
5
5
<a-menu-item v-if =" !item.children" :key =" item.key" >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ The properties of `a-sub-menu` are dynamically changed inside the component. If
18
18
</a-button >
19
19
<a-menu
20
20
:defaultSelectedKeys =" ['1']"
21
- :defaultOpenKeys =" ['sub1 ']"
21
+ :defaultOpenKeys =" ['2 ']"
22
22
mode =" inline"
23
23
theme =" dark"
24
24
:inlineCollapsed =" collapsed"
You can’t perform that action at this time.
0 commit comments