Did you register the component correctly?

configure "i Murray panel: Tabpane or report an error. The configuration code is as follows

.
<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>



error message is:

[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

I put my demo project at the GitHub address:
https://github.com/liaodalin1.

< hr >

I have tried to configure it globally:

Vue.component("Tabpane", Tabpane);

still has no effect.
how to solve this problem?

Mar.10,2021

Custom tags such as yours: < i-tab-pane > < / i-tab-pane >
the corresponding tag declaration and initialization name should be: ITabPane (, that is, the first letter and the first letter after each-should be capitalized)


Change

to

components: {
      ITabs : Tabs,
      ITabPane: Tabpane
    }

No personal test @ yuanxiaowa

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-49b11e6-1c95f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-49b11e6-1c95f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?