2017-08-16 161 views
0

我使用framework7最後一個版本,和我的應用程序層次framework7的問題是這樣的:用手風琴

VUE路由器視圖, VUE兒童路由器視圖中加載,那些孩子的 一個是framework7應用程序的根, 當我在「作爲組件的框架的根目錄」和任何其他組件之間導航時,手風琴動畫開始卡住並且沒有控制檯意外動作錯誤其他的framework7動畫工作正常,除了手風琴之後的導航,但它在導航完成之前運行良好。

我嘗試用在vue組件充當根framework7應用

export default { 
    data() { 
    return { 
     appIsRdy: false 
    } 
    }, 
    mounted() { 
    this.$store.state.f7.f7Obj = new Framework7({ 
     root: '.f7root' 
    }); 
    this.$store.state.f7.$$ = Dom7; 
    this.$store.state.f7.mView = this.$store.state.f7.f7Obj.addView('.view-main', { domCache: true }); 
    this.appIsRdy = true; 
    }, 
    components: { 
    MainPage, 
    RedditPage 
    }, 
    beforeDestroy() { 
    this.$store.state.f7.f7Obj = null; 
    this.$store.state.f7.$$ = null; 
    this.$store.state.f7.mView = null; 
    this.appIsRdy = false; 
    } 
} 

回答

0

2天搜索的在這裏重置的一切: 我發現,當u與framework7和VUE JS工作組件最好避免內聯頁面(DOM緩存)和使用更好的動態頁面,因爲我從論壇和我讀的帖子理解,並通過將內嵌頁面轉換爲動態頁面修復問題。