
vue
文章平均质量分 65
lioncatch
这个作者很懒,什么都没留下…
展开
-
vue登录模板1-科技透明登录框与登录页
1.LoginForm登陆框组件(需要elementUI)<template> <el-form ref="loginForm" :model="model" :rules="rules" class="login-form"> <!--登陆标题--> <div class="title-container"> <h3 class="title">平 台 登 录</h3> </div&g原创 2021-01-04 17:12:55 · 7657 阅读 · 4 评论 -
VueRouter(记录)
VueRouter1.创建路由index2.将路由注册到main.js中3.创建相应的面板,并在App.vue中导入4.router-link中,如果想要指定,此标签的类型(默认a标签),则用tag标签,4.如果想要禁止浏览器返回则用replace5.如果想要手动调用,则this.$router.push("/home")或this.$router.replace("/home")6.动态路由的跳转如果想携带一个参数,则通过router-link的to属性传入参数通过原创 2020-09-25 16:26:43 · 184 阅读 · 0 评论 -
router-LInk传参与接受参数(记录)
问题,点击下方router-link后转到另一个组件上,并携带点击的信息的id <div v-for="(item,index) in hotMessage"> <img src="image/mainPage/listTitle.png"> <router-link :to="{path:'hotMessage', query: {index:item.id}}">{{item.name}}</router-link&原创 2020-06-11 17:10:54 · 1989 阅读 · 1 评论 -
页面滚动条隐藏
<style> *{ scrollbar-width: none; } ::-webkit-scrollbar { display: none; /* Chrome Safari */ }</style>原创 2020-12-25 10:49:03 · 205 阅读 · 0 评论