How to implement component tags yourself

how do I manually implement the component tag? Like this:

</my-component>

my requirements are very simple. The my-component tag has exactly the same function as the component tag. What you find through $refs is not myComponent , but CompA . And my-component can define properties and methods other than v-bind:is and keep-alive .

looked at the source code for a long time and found that the component tag was not created in the way of Vue.component . The functional (functional), inheritance (extends) and abstract component (abstract), of components have not achieved the desired results. I hope someone can help me solve my confusion, thank you!

Mar.14,2021
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-1eaebe2-21ff.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-1eaebe2-21ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?