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

php 如何用op浏览器开发手机网站wordpress 自建邮件

php 如何用op浏览器开发手机网站,wordpress 自建邮件,google官网登录入口,做面点的网站自己的项目要写一个竖栏菜单#xff0c;所以记录一下思路吧#xff0c;先粗糙的实现一把#xff0c;有机会再把细节修饰一下 功能上就是无论这个菜单有多少层级#xff0c;都能显示出来#xff0c;另外#xff0c;需要带图标#xff0c;基于element-plus写成#xff0…自己的项目要写一个竖栏菜单所以记录一下思路吧先粗糙的实现一把有机会再把细节修饰一下 功能上就是无论这个菜单有多少层级都能显示出来另外需要带图标基于element-plus写成当这个菜单栏点开的时候最好整个页面的高度不要有变化最后整成了个小草稿 MyMenu.vue template!-- 自己写的竖栏菜单组件 --!-- el-menu styleheight: 100%;width:100% --el-scrollbar max-height100%el-menu stylewidth: 100%;border: 0; unique-opened :default-activeprops.defaultIndex active-text-color#ffd04bbackground-color#545c64 text-color#fffMenuTree :menu-dataprops.data/MenuTree/el-menu/el-scrollbar /template script langts setup import MenuTree from ./MenuTree.vue const propsdefineProps{data:Arrayany,defaultIndex:string}() /script 里面有个递归组件 MenuTree.vue template!-- 递归组件 --!-- 为了创建无限菜单而使用 --template v-forvalue in props.menuData!-- 没有children就是一个单标签 --el-menu-item v-if!value.children :indexvalue.indextemplate v-ifvalue.iconcomponent :isvalue.icon stylewidth: 1rem;/component/template{{ value.title }}/el-menu-item!-- 多标签的情况 --el-sub-menu v-else :indexvalue.indextemplate #titletemplate v-ifvalue.iconcomponent :isvalue.icon stylewidth: 1rem;/component/template span{{ value.title }}/span/templateMenuTree :menuDatavalue.children/MenuTree/el-sub-menu/template /template script setup langts import MenuTree from ../Page1/MenuTree.vue const propsdefineProps{menuData:Arrayany}() /script 最后写个参数挂载一下我这边用的icon是element-plus组件自带的 templateel-container styleheight: 100vh;el-header stylepadding: 0;height: 5rem;div styleheight: 100%;background-color:pinkspanwelcome to page1/spanbr /span该页面用来写一个竖版menu/span/div/el-headerel-container styleheight: calc(100vh - 5rem);el-aside width15% stylebackground-color:lightblue;MyMenu :datamenuData :default-indexdefaultIndex//el-asideel-main stylebackground-color:rgb(246, 199, 11);component :isiconStr stylewidth: 1rem;/component/el-main/el-container/el-container /template script setup langts import {ref} from vue import { Search,Select,Close,User } from element-plus/icons-vue; import MyMenu from ./MyMenu.vue; let menuData [{title: 睡觉,index: 0,icon: Select},{title: 游戏,index: 1,icon: Search,children: [{title: 上古卷轴,index: 1-1,children: [{title: 上古卷轴匕首雨,index: 1-1-1,},{title: 上古卷轴天际,index: 1-1-2,icon: Select}]},{title: 辐射,index: 1-2,children: [{title: 龙万德,index: 1-2-1},{title: 辐射新维加斯,index: 1-2-2}]}]},{title: 美食,index: 2,icon: Close,children: [{title: 淮扬菜,index: 2-1,children: [{title: 红烧狮子头,index: 2-1-1},{title: 猪头肉,index: 2-1-2},]},{title: 川菜,index: 2-2,children: [{title: 四川泡菜,index: 2-2-1},{title: 水煮鱼,index: 2-2-2},{title: 开水白菜,index: 2-2-3},]},{title: 粤菜,index: 2-3,children: [{title: 白切鸡,index: 2-3-1},{title: 顺德鱼生,index: 2-3-2},{title: 猪肚鸡,index: 2-3-3},]}]},{title: 编程,index: 3,icon: User,children: [{title: golang,index: 3-1,children: [{title: 云原生,index: 3-1-1},{title: gin,index: 3-1-2}]},{title: js,index: 3-2},{title: python,index: 3-3}]} ] // 默认index值 let defaultIndex ref(0) /script 主要过程就是写了一个递归的菜单栏然后用el-scrollbar包装了一下以免这个菜单展开的时候把盒子高度撑开。 细节上难看了一点此外我觉得整个菜单的高度应该和传入数组的最大深度相关得把这个el-scrollbar组件换掉才行先写着有时间完善。
http://www.w-s-a.com/news/9787/

相关文章:

  • 淘宝客网站管理质量好网站建设费用
  • 网站建设教程搭建青岛中企动力做网站怎么样
  • wordpress最底部网站优化怎么弄
  • 二手市场网站建设的目的长沙ui设计公司
  • 微信公众号做留言网站wordpress详情页选择模板
  • php网站开发面向对象教程如何做分享赚钱的网站
  • 山东网站建设最便宜常州网站建站公司
  • 网站地图 seo中国建设招标网是私人网站吗
  • 高中作文网站全网营销有哪些平台
  • 网站构建建设制作平台上海搬家公司收费价目表
  • 成功案例展示网站做网站赚多少钱
  • 建设银行网站用什么字体网站建站后维护需要做哪些
  • 有哪些做平面设计好素材网站有哪些开网站建设
  • 国际交流网站平台有哪些筑建网
  • 网站程序是如何开发的江门市住房建设管理局网站
  • 网站建设一般需要几个步骤昵图网免费素材
  • 个人网站建设需求说明书微信域名防封在线生成
  • 专业网站建设的公司wordpress后台没有模板
  • 哈尔滨网站运营服务商制作外贸网站公司
  • 个人网站需要备案宁波网站推广工具
  • 苏州建设银行网站首页wordpress修改密码
  • 网站建设员工技能要求网站制作简单协议
  • 没有ipc备案的网站wordpress isux主题
  • 清远做网站电子商务网站建设需要的语言及特点6
  • 万州那家做网站c语言基础知识入门
  • 齐河网站建设公司价格网站建设包括什么
  • 论坛网站开发费用怎么把文件放到网站的根目录
  • 海南省零售户电商网站官渡区住房和城乡建设局网站
  • 怎么找淘宝客网站最新军事战况
  • 缺乏门户网站建设网页设计与制作项目教程第二版