pull/9/head
tangjinzhou 2018-01-08 19:09:03 +08:00
parent 8341fe44fc
commit bbcf1981d1
2 changed files with 6 additions and 4 deletions

View File

@ -98,7 +98,7 @@ export default {
<h2>antd menu</h2>
<div>
<h3>horizontal</h3>
<div style={{ margin: '20px', width: '800px' }}>
<div style={{ margin: '20px', width: '800px', position: 'relative' }}>
<Clone childProps={{
mode: 'horizontal',
openAnimation: 'rc-menu-open-slide-up',

View File

@ -102,10 +102,12 @@ export default {
this.$emit('mouseleave', e)
},
beforeEnter (el) {
try {
// this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
} catch (error) {
}
this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
// this.$nextTick(() => {
// this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
// })
},
afterLeave (el) {
if (this.destroyPopupOnHide) {