Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
458 views
in Technique[技术] by (71.8m points)

el-tabs 标签下引入的组件不加载

问题描述

想要实现一个el-tabs标签下有两个el-tab-pane,每个el-tab-pane里都是引入自己封装的同一个组件,根据传入的数据渲染不同的效果,但最终引入的组件没有渲染,

问题出现的环境背景及自己尝试过哪些方法

在created钩子里打印的信息没有展示出来,感觉应该是没有渲染

相关代码

<el-row>

    <el-tabs v-model="activeTab" type="card" @tab-click="tabClick">
      <el-tab-pane label="精扫" name="detailed">
        <filter :distributorsInfo="distributorsInfo"/>
      </el-tab-pane>
      <el-tab-pane label="快扫" name="scan">
        <span>hehe</span>
        <Filter :distributorsInfo="distributorsInfo"/>
      </el-tab-pane>
    </el-tabs>
  </el-row>

求教为何不渲染


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

封装的同一个组件, 但是代码中你的组件名 一个大写一个小写, 仔细检查一下引入组件地址是否正确, 有无报错, 报错内容是什么,排查一下


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...