There is a markup:
<div id="consturctor"> <cb-top-line> <cb-step class="cb-step--current" id="cb-step1" number="1" title="Изображение"> </cb-step> <cb-step id="cb-step2" number="2" title="Рама"> </cb-step> <cb-step id="cb-step3" number="3" title="Заголовок"> </cb-step> <cb-step id="cb-step4" number="4" title="Цвет отпечатков"> </cb-step> </cb-top-line> </div>
Here are the components themselves:
Vue.component('cb-top-line', { template: '<div class="cb-top-line"></div>' }) Vue.component('cb-step', { props: ['number', 'title'], template: '<div class="cb-step"> \ <p> \ <span>{{ number }}</span> \ {{ title }}\ </p> \ </div>' }) let vm = new Vue({ el: '#constructor' })
As a result, an empty cb-top-line is displayed, without a cb-step inside.