smartXJ / vue3-inset-loader

编译阶段在sfc模板指定位置插入自定义内容
12 stars 2 forks source link

用这个还需要在页面中引入标签吗? #3

Closed hackeryutu closed 5 months ago

hackeryutu commented 5 months ago

用这个还需要在uni开发的微信小程序页面中引入组件标签吗? 和前面的常用于小程序需要全局引入组件的场景会不会矛盾了?

smartXJ commented 5 months ago

这个插件其实就是把你template 拿出来,然后在里面插入 你写的自定义标签。

// 原本
<template>
   <div></div>
</template >
// 使用插件后
<template>
  <!-- lable里你所自定义的标签 -->
  <CustomCom ref="customComRef"></CustomCom>
   <div></div>
</template >
hackeryutu commented 5 months ago

OK,明白了~谢谢