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`] = `
130130<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 >
131131 <ul class = " ant-menu ant-menu-inline ant-menu-root ant-menu-dark" role = " menu" >
132132 <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 >
136141 </li >
137142 </ul >
138143</div >
Original file line number Diff line number Diff line change 11<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" >
33 <span slot =" title" ><a-icon type =" mail" /><span >{{data.attrs.menuInfo.title}}</span ></span >
44 <template v-for =" item in data .attrs .menuInfo .children " >
55 <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
1818 </a-button >
1919 <a-menu
2020 :defaultSelectedKeys =" ['1']"
21- :defaultOpenKeys =" ['sub1 ']"
21+ :defaultOpenKeys =" ['2 ']"
2222 mode =" inline"
2323 theme =" dark"
2424 :inlineCollapsed =" collapsed"
You can’t perform that action at this time.
0 commit comments