当前位置: 首页 > news >正文

做搜狗pc网站百度网盘网页登录入口

做搜狗pc网站,百度网盘网页登录入口,织梦后台搭建网站并调用标签建设,wordpress添加默认头像摘要 利用Vue3及其配套的Vue Router实现后台管理系统中的页面过渡动画。文章首先简要介绍了Vue3的特性和Vue Router的基本用法#xff0c;利用Vue3提供的组件以及Vue Router的路由钩子函数来实现页面过渡效果。 代码结构 在 components 里有4个组件#xff0c;其中 Layout…摘要 利用Vue3及其配套的Vue Router实现后台管理系统中的页面过渡动画。文章首先简要介绍了Vue3的特性和Vue Router的基本用法利用Vue3提供的组件以及Vue Router的路由钩子函数来实现页面过渡效果。 代码结构 在 components 里有4个组件其中 Layout.vue 是左右分栏垂直布局组件Apage.vue、Bpage.vue、Cpage.vue 分别是三个单独的页面用于渲染在左右分栏布局的右侧对应的是左侧导航的点击。 App.vue templateLayout / /templatescriptimport ./assets/main.css; // 全局样式import Layout from ./components/Layout.vue; // 引入Layout组件export default {// 注册组件components: {Layout}}; /scriptLayout.vue 一般 Vue 路由设置如下所示 templaterouter-view / /template在旧版本的 Vue 路由中我们可以简单地用 transition 组件包装 router-view 但是在较新版本的 Vue 路由中则必须用 v-slot 来解构 props 并将它们传递到我们的内部 slot 中。 这将包含一个动态组件该组件被过渡组件包围。 router-view v-slot{ Component }transitioncomponent :isComponent //transition /router-view完整代码 templatediv classcontainerdiv classleft-pane!-- 左侧导航链接 --div classrouter-linkrouter-link to/ classlink首页/router-linkrouter-link to/Bpage classlinkBpage/router-linkrouter-link to/Cpage classlinkCpage/router-link/div/divdiv classright-pane!-- 右侧内容 --router-view v-slot{ Component }transition namefade modeout-incomponent :isComponent //transition/router-view/div/div /templatestyle .container {display: flex;flex-direction: row;height: 100vh; /* 100%视窗高度 */ }.left-pane {width: 250px;height: 100%; /* 100%父容器的高度 */box-sizing: border-box; /* 让边框不会撑大容器 */ }.right-pane {flex: 1; /* 平分父容器的宽度 */height: 100%; /* 100%父容器的高度 */box-sizing: border-box; /* 让边框不会撑大容器 */ }.left-pane {background-color: #eee; /* 左侧面板的背景色 */ }.router-link {width: 80%;margin: 22px auto 0; }.link {width: 100;display: block;padding: 10px 0;text-align:center;text-decoration: none;color: #666;border-radius: 10px }.right-pane {background-color: #ffffff; /* 右侧面板的背景色 */ }.fade-enter-active, .fade-leave-active {transition: opacity 0.3s ease; }.fade-enter-from, .fade-leave-to {opacity: 0; }.link.router-link-active {background-color: #ddd;color: #333; } /styleApage.vue templatediv classcardh1Index/h1/div /templatestyle scoped .card {width: 90%;height: 500px;background: #eee;margin: 20px auto;text-align: center;line-height: 500px;border-radius: 10px; } /styleBpage.vue templatediv classcardh1Bpage/h1/div /templatestyle scoped .card {width: 90%;height: 500px;background: #eee;margin: 20px auto;text-align: center;line-height: 500px;border-radius: 10px; } /styleCpage.vue templatediv classcardh1Cpage/h1/div /templatestyle scoped .card {width: 90%;height: 500px;background: #eee;margin: 20px auto;text-align: center;line-height: 500px;border-radius: 10px; } /stylerouter/index.js import { createRouter, createWebHashHistory } from vue-router;const routes [{path: /,name: Apage,component: () import(../components/Apage.vue),},{path: /Bpage,name: Bpage,component: () import(../components/Bpage.vue),},{path: /Cpage,name: Cpage,component: () import(../components/Cpage.vue),}, ];const router createRouter({history: createWebHashHistory(),routes,linkActiveClass: router-link-active });export default router; 打包演示 https://demo.likeyunba.com/vue3-router-transition/ 本文作者 TANKING
http://www.pierceye.com/news/361366/

相关文章:

  • 优化教程网站推广排名东莞网站建设推广有哪些
  • 金阳建设集团网站电子商务系统 网站建设
  • 网站建设规模哪里有做app软件开发
  • 建站工具上市手机视频网站设计
  • 代做道具网站做地方门户网站不备案可以吗
  • 电子商务 网站前台功能想做微商怎么找厂家
  • 网站建设电子书做网站引入字体
  • 顺德建设网站公司分发平台
  • 个人门户网站模板下载婚纱摄影网站定制
  • 提高网站流量的软文案例手机腾讯网
  • 网站只做内容 不做外链深圳宝安区天气
  • 生物网站 template淘宝的网站建设怎么建
  • 苏州哪家做网站好些推广之家app
  • 网站开发计入管理费用哪个明细对网站建设的调研报告
  • 南头专业的网站建设公司wordpress数据量大网站访问
  • 龙华民治网站建设公司wordpress设置vip
  • 网站建设天猫店免费主机空间
  • 帮网贷做网站会判刑吗学it要多久多少学费
  • 陕西网站建设维护erp软件怎么安装
  • 沈阳网站建设简维软件工程在网站建设
  • 万维网网站续费云南建设厅网站执业注册
  • 判断网站首页民宿设计网站大全
  • .net如何建设网站做影视会员网站
  • 织梦网站安全免费咨询医生皮肤科专家
  • dw做网站背景图片设置网站建设设计作品怎么写
  • 网站建设推广专员岗位职责济南做企业网站公司
  • 网站不备案能解析吗合肥网站推广 公司哪家好
  • 网站描述怎样写深圳网站制作招聘
  • 二手车网站建设代理网页 国外
  • 广州制作网站静态网站首页更新