Vue
知或谓之慧
这个作者很懒,什么都没留下…
展开
-
Vue封装回到首页的控件,并在需要的页面引入使用
在components文件夹下新建backIndex.vue文件 <template> <div class="backIndex" @click="goHome"> <img src="../assets/backHome.png" alt="回到首页"> </div> </template> <script> export default { name: "backIndex",原创 2020-09-04 11:26:28 · 218 阅读 · 0 评论 -
Vue封装tabbar控件并在其他页面引用
在components文件夹侠新建一个tabbar.vue文件。 代码如下: <template> <div class='tabbar'> <ul> <li @click="go(item.path)" :class="{active:message==item.path}" v-for="(item,index) in atabs" v-bind:key="index">原创 2020-09-04 11:20:32 · 553 阅读 · 0 评论