Open yariksav opened 2 years ago
Hi, @mattelen ! Thnak you for component and your work!
Just one feature request - to add slots support at row https://github.com/mattelen/vue3-runtime-template/blob/4f20a4c4ebbccbbfefadcfe7edb6b757b093aa09/index.js#L115
change to
return h(dynamic, {...finalProps}, this.$slots);
Than we can use component like
<VRuntimeTemplate :template="template" > Some slot data <div slot="named">Some named slot data</div> </VRuntimeTemplate>
where the template is like
<div> Some template data <slot /> <slot name="named" /> </div>
Result will be
<div> Some template data Some slot data <div>Some named slot data</div> </div>
Hi, @mattelen ! Thnak you for component and your work!
Just one feature request - to add slots support at row https://github.com/mattelen/vue3-runtime-template/blob/4f20a4c4ebbccbbfefadcfe7edb6b757b093aa09/index.js#L115
change to
Motivation
Than we can use component like
where the template is like
Result will be