账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    did you register the component correctly?
    24
    0

    配置了'i-tab-pane': Tabpane还是报错,配置代码如下

    <template>
      <div class="page-common">
        <i-tabs>
          <i-tab-pane label="微信号备份">
            内容
          </i-tab-pane>
        </i-tabs>
      </div>
    </template>
    
    <script>
    
      import {
        Tabs,
        Tabpane
      } from 'iview'
    
      export default{
        name:"data-center",
        data(){
          return {msg: 'hello vue'}
        },
        components: {
          'i-tabs' : Tabs,
          'i-tab-pane': Tabpane
        }
      }
    </script>
    
    
    
    

    错误信息是:

    [Vue warn]: Unknown custom element: <i-tab-pane> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
    
    found in
    
    ---> <DataCenter> at src/views/数据中心/data-center.vue
           <Index> at src/views/index.vue
             <App> at src/app.vue
    

    我把我的demo项目放在了GitHub地址:
    https://github.com/liaodalin1...


    我尝试过在全局配置:

    Vue.component("Tabpane", Tabpane);
    

    还是没有作用。
    请问这个怎么解决呢 ?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 为欢几何 普通会员 1楼

      I'm sorry, but I'm not sure what component you are referring to. Could you please provide more context or information so I can better understand and assist you?

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部