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

网站制作模板教案潍坊 网站

网站制作模板教案,潍坊 网站,怎么在广西建设厅网站注销c证,有赞小程序登录入口实现的效果图#xff1a; 切换选项卡显示不同的内容#xff0c;把这个选项卡做成了一个组件#xff0c;需要的自取。 // 组件名为 trapezoidalTab template view classpd24view classnav!-- 左侧 --view cla…实现的效果图 切换选项卡显示不同的内容把这个选项卡做成了一个组件需要的自取。 // 组件名为 trapezoidalTab template view classpd24view classnav!-- 左侧 --view classitem :class{ active: activeIndex 0 } clickchangeTab(0) view :class activeIndex 0 ? activeTxt black : itemTxt {{leftLabel}}/view/view!-- 右侧 --view classitem :class{ active: activeIndex 1 } clickchangeTab(1) view :classactiveIndex 1 ? activeTxt black : itemTxt {{rightLabel}}/view/view/view view classcontentview v-ifactiveIndex 0slot nameleft/slot/viewview v-ifactiveIndex 1slot nameright/slot/view/view/view /template script setup import {ref,defineProps,defineEmits,} from vueconst props defineProps({leftLabel: {type: String,default: 到店取},rightLabel: {type: String,default: 直达送},activeIndex: {type: Number,default: 0},})const emit defineEmits([changeTab])const changeTab(val) {emit(changeTab,val) } /script style langscss scoped.nav{display: flex;align-items: flex-end;}.nav .item{flex: 1;height: 80rpx;background: #E6E6E6;border-radius: 10rpx 10rpx 0 0;position: relative;list-style: none;}.nav .item.active{height: 96rpx;background: #FFF;}.nav .item:first-child:before, .nav .item:last-child:before { content: ; display: none; width: 20rpx; height: 100%; background: #FFF; position: absolute; top: 0; z-index: 10; } .nav .item:first-child:before { right: -10rpx; border-radius: 0 10rpx 0 0; transform: skew(10deg); } .nav .item:last-child:before { left: -10rpx; border-radius: 10rpx 0 0 0; transform: skew(-10deg); } .nav .item.active:first-child:before, .nav .item.active:last-child:before { display: block; }.itemTxt{height: 80rpx;text-align: center;line-height: 80rpx;font-weight: 500;font-size: 28rpx;color: rgba(0,0,0,0.4);}.activeTxt{text-align: center;height: 96rpx;line-height: 96rpx;font-weight: bold;font-size: 32rpx;}.content{width: 100%;background: #fff;} /style 使用组件 trapezoidal-tab changeTabchangeTab :activeIndexactiveIndextemplate v-slot:leftview左边部分内容/view/templatetemplate v-slot:rightview右边部分内容/view/template /trapezoidal-tabconst activeIndex ref(0) //tab选项卡 0到店取 1直达送 // 切换tab选项卡 const changeTab (val){activeIndex.value val }
http://www.w-s-a.com/news/180449/

相关文章:

  • 承接电商网站建设缔烨建设公司网站
  • 网站运营介绍十大国外室内设计网站
  • 网站建设完毕后怎么加后台电影购买网站怎么设计
  • 空间ip地址访问网站音乐分享 wordpress
  • 做网站一单能挣多少wordpress主题文件夹在哪
  • 视频社区app源码台州优化网站
  • 保定高端网站建设做微商好还是开网站好
  • 有什么方法在淘宝发布网站建设设计wordpress评分
  • 自己做的网站怎么爬数据库酷播wordpress
  • 广州哪家做网站还可以黑龙江省建设厅网站的电话
  • 青海省高等级公路建设管局网站国内做led灯网站有
  • 做网站成功建设银行网站网址
  • 自动生成网站上海十大活动策划公司
  • 企业网站建设源码HTML论述市场营销对网站设计的影响
  • 网站设计常见问题建设工程网上质检备案网站
  • 网站怎样优化文章关键词建设网站需要钱吗
  • 加强网站建设和管理的通知重庆网站推广产品
  • 网站建设术语解释百度发布信息的免费平台
  • 情公司做的网站seo与网站优化 pdf
  • 做一个购物网站多少钱江阴市住房和城乡建设局网站
  • 网站建设都包括哪些ps怎么做网站首页和超链接
  • 怎样低成本做网站推广编辑网站教程
  • 邯郸网站建设信息网站开发报价人天
  • 王店镇建设中心小学网站酷玛网站建设
  • 网站需求方案wordpress博客主题推荐
  • 网站安全证书过期怎么办那个视频网站最好最全网址
  • 外贸上哪个网站开发客户建行个人网上银行登录入口
  • 空间除了可以做网站还能干什么qq钓鱼网站
  • 网站 技术企业网站用免费程序
  • 做网站的中文名字汕尾网站开发