fix
parent
c4bc2bf7e5
commit
3d5d001d77
|
@ -24,7 +24,6 @@ export default {
|
|||
popupClassName: PropTypes.any,
|
||||
},
|
||||
data () {
|
||||
this.aligned = false
|
||||
return {
|
||||
destroyPopup: false,
|
||||
initAlign: false, // mounted之后再实例化align,即改变this.$el位置后实例化
|
||||
|
@ -139,8 +138,8 @@ export default {
|
|||
beforeEnter: (el) => {
|
||||
opacity = el.style.opacity
|
||||
el.style.opacity = '0'
|
||||
!this.aligned && this.$refs.alignInstance.forceAlign()
|
||||
this.aligned = true
|
||||
el.style.display = el.__vOriginalDisplay
|
||||
this.$refs.alignInstance.forceAlign()
|
||||
},
|
||||
enter: (el, done) => {
|
||||
el.style.opacity = opacity
|
||||
|
|
|
@ -3,7 +3,7 @@ const AsyncComp = () => {
|
|||
const com = pathnameArr[1] || 'button'
|
||||
const demo = pathnameArr[2] || 'index'
|
||||
return {
|
||||
component: import(`../components/tabs/demo/${demo}.vue`),
|
||||
component: import(`../components/menu/demo/${demo}.vue`),
|
||||
}
|
||||
}
|
||||
export default [
|
||||
|
|
Loading…
Reference in New Issue