fix
parent
8341fe44fc
commit
bbcf1981d1
|
@ -98,7 +98,7 @@ export default {
|
||||||
<h2>antd menu</h2>
|
<h2>antd menu</h2>
|
||||||
<div>
|
<div>
|
||||||
<h3>horizontal</h3>
|
<h3>horizontal</h3>
|
||||||
<div style={{ margin: '20px', width: '800px' }}>
|
<div style={{ margin: '20px', width: '800px', position: 'relative' }}>
|
||||||
<Clone childProps={{
|
<Clone childProps={{
|
||||||
mode: 'horizontal',
|
mode: 'horizontal',
|
||||||
openAnimation: 'rc-menu-open-slide-up',
|
openAnimation: 'rc-menu-open-slide-up',
|
||||||
|
|
|
@ -102,10 +102,12 @@ export default {
|
||||||
this.$emit('mouseleave', e)
|
this.$emit('mouseleave', e)
|
||||||
},
|
},
|
||||||
beforeEnter (el) {
|
beforeEnter (el) {
|
||||||
|
try {
|
||||||
|
// this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
|
||||||
|
} catch (error) {
|
||||||
|
|
||||||
|
}
|
||||||
this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
|
this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs.alignInstance && this.$refs.alignInstance.forceAlign()
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
afterLeave (el) {
|
afterLeave (el) {
|
||||||
if (this.destroyPopupOnHide) {
|
if (this.destroyPopupOnHide) {
|
||||||
|
|
Loading…
Reference in New Issue