Vue imports child components in the parent component, named aaaVue,. Why is it possible to use aaa-vue in the parent component?

problem description

I introduced in app.vue that the names of root declaration subcomponents are all in a format similar to aaaVue
Why should I use aaa-vue when using the template node of app.vue?

<template>
  <div>
    <header-vue v-bind:num="num"></header-vue> header-vue,componentsheaderVue
    <body-vue texts=""></body-vue>
    <footer-vue></footer-vue>
  </div>
</template>
<script>
// 
import headerVue from "./components/header.vue";
import bodyVue from "./components/body.vue";
import footerVue from "./components/footer.vue";
export default {
  data: function() {
    return {
      text: "I am Father!",
      num: 10
    };
  },
  methods: {},
  components: {
    headerVue: headerVue, // 
    bodyVue, // 
    footerVue // // 
  }
};
</script>

this is the implementation of vue. The default component name is


because the standard of html is separated by - dash, while the standard of js is separated by hump, which is transformed for the sake of consistency. For more information, please see ide/components-registration.html-sharp%E7%BB%84%E4%BB%B6%E5%90%8D%E5%A4%A7%E5%B0%8F%E5%86%99" rel=" nofollow noreferrer "> component name case


Thank you Xia Bing and the onlookers for their answers

.
Menu