欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vue activated在子組件中的使用詳情

 更新時間:2021年11月11日 11:09:11   作者:xiaofanku  
這篇文章主要介紹了vue activated在子組件中的使用,文章圍繞vue activated的xingu你資料講解展開內(nèi)容并附上具體代碼,需要的朋友可以參考一下

頁面:base:

<template>
  <div class="tab-container">
    <h1 style="text-align: center">
      申請{{ form.category }}{{ form.companyType }}入駐
    </h1>
    <div class="form-panel" style="margin-left: 20px;text-align: right;">
      <el-button type="info" @click="cancelSave">取消</el-button>
      <el-button type="warning" @click="transientSave">暫存</el-button>
      <el-button type="danger" @click="persistSave">保存</el-button>
    </div>
    <el-tabs v-model="activeName" style="margin-top: 15px" type="border-card" :before-leave="collectPaneFormData" @tab-click="initPaneData">
      <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :label="item.label" :name="item.key">
        <keep-alive>
          <tab-pane :is="item.key" :ref="item.key" :type="item.key" @create="showCreatedTimes" />
          <!--<component :is="item.key" :ref="item.key" :type="item.key" @create="showCreatedTimes" />-->
        </keep-alive>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

有五個tab-pane, 其中三個子組件中有activated方法。這三個子組件中都有連接跳轉(zhuǎn)到person, 當(dāng)在person中進行:this.$router.go(-1)

    // 取消,關(guān)閉返回
    cancelSubmit() {
      // 調(diào)用全局掛載的方法,關(guān)閉當(dāng)前頁
      this.$store.dispatch('tagsView/delView', this.$route)
      this.$router.go(-1)
    },

這時三個子組件的activated方法都會執(zhí)行嗎?如何只讓跳轉(zhuǎn)到person中的哪個子組件的activated方法執(zhí)行,其它兩個不執(zhí)行activated方法

到此這篇關(guān)于vue activated在子組件中的使用詳情的文章就介紹到這了,更多相關(guān)vue activated在子組件中的使用內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論