pull/9/head
tangjinzhou 2018-01-19 12:14:07 +08:00
parent c4bc2bf7e5
commit 3d5d001d77
2 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,6 @@ export default {
popupClassName: PropTypes.any,
},
data () {
this.aligned = false
return {
destroyPopup: false,
initAlign: false, // mountedalign,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

View File

@ -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 [