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

网站的主题是什么2880元网站建设

网站的主题是什么,2880元网站建设,中国平面设计公司,温州网站推广公司在Vue中#xff0c;通过使用动态组件#xff0c;我们可以实现组件的动态切换#xff0c;从而达到页面的动态展示效果。 vue 中 component组件 is属性 功能描述 例如#xff1a;有多个tabs标签#xff0c;如#xff1a;推荐、热点、视频等。用户点击标签就会切换到对应组… 在Vue中通过使用动态组件我们可以实现组件的动态切换从而达到页面的动态展示效果。 vue 中 component组件 is属性 功能描述  例如有多个tabs标签如推荐、热点、视频等。用户点击标签就会切换到对应组件 vue2版 template!-- 标签数据 --!-- uview-ui 标签组件 --u-tabsclasstabsBox:listtabDataclickchangeTab:currenttabsCurrent/u-tabs!-- 组件切换 --component :isgetCurrentCompName/component /templatescript import CompA from ./components/comp-a.vue import CompB from ./components/comp-b.vue import CompC from ./components/comp-c.vueexport default {data() {return {tabsCurrent: 0,tabsList: [],}},computed: {getCurrentCompName() {let currentCompName switch (this.tabsCurrent) {case 1:currentCompName CompBbreakcase 2:currentCompName CompCbreakdefault:currentCompName CompA}return currentCompName},},methods: {toggle(index) {this.tabsCurrent index},}, } /script vue3版 template!-- 标签数据 --!-- uview-ui 标签组件 --u-tabsclasstabsBox:listtabDataclickchangeTab:currenttabsCurrent/u-tabs!-- 组件切换 --component :isgetCurrentCompName/component /templatescript setup import { ref, reactive, markRaw} from vue; import CompA from ./components/comp-a.vue; import CompB from ./components/comp-b.vue; import CompC from ./components/comp-c.vue;const tabsCurrent ref(0); const tabsList ref([]);const getCurrentCompName () {let currentCompName ;switch (tabsCurrent.value) {case 1:currentCompName markRaw(CompB);break;case 2:currentCompName markRaw(CompC);break;default:currentCompName markRaw(CompA);}return currentCompName; };const toggle (index) {tabsCurrent.value index; }; /script 或者 template!-- 标签数据 --!-- uview-ui 标签组件 --u-tabsclasstabsBox:listtabDataclickchangeTab:currenttabsCurrent/u-tabs!-- 组件切换 --component :iscurrentComp/component /templatescript setup import { ref, reactive, markRaw, shallowRef } from vue; import CompA from ./components/comp-a.vue; import CompB from ./components/comp-b.vue; import CompC from ./components/comp-c.vue;const tabsCurrent ref(0); const tabsList ref([]); const currentComp shallowRef(CompA)const toggle (index) {tabsCurrent.value index;switch (index) {case 1:currentComp.value CompB;break;case 2:currentComp.value CompC;break;default:currentComp.value CompA;} }; /script
http://www.hkea.cn/news/14289866/

相关文章:

  • 济南企业建站哪家做的好科技公司名称大全简单大气
  • 嘉祥住房和城乡建设局网站网站建设属什么资产
  • 合肥专业网站优化价格wordpress弹出搜索
  • 郑州网站建设正云长春网站建设新格
  • 国外有哪些设计网站网站建设策划报价
  • 网站建设对比网页美工设计是什么
  • 五金配件网站建设报价宣传海报怎么制作
  • 完整网站开发广州我网站制作
  • 合肥房产网官方网站网络运维工程师教程
  • 哪些网站可以做问卷网站后期维护内容
  • 网站建设具体工作wordpress完整虚拟资源下载类源码
  • 变量命名网站易企秀怎么制作
  • 如何自己做门户网站亚马逊的网站建设分析
  • 招商网站建设服务商课程网站建设总体情况
  • 免费制作永久企业网站营销型企业网站建设
  • 温州开发网站公司wordpress邮件美化
  • 网页设计版式布局优化排名推广技术网站
  • joomla网站建设金蝶二次开发
  • wordpress 不用模版龙岩整站优化
  • 销售网站内容设计方案网站建设纟金手指下拉壹陆
  • 网站可以做固定资产吗soso搜搜网站收录提交入口
  • 青岛网站建设公司招聘大淘客联盟做网站
  • 陕西建设网网站集群怎么打电话给网络服务商
  • 怀化市网站建设c 开发微网站开发
  • 商洛做网站的公司中视频自媒体平台注册
  • 58做二手车网站应该怎么推广安卓上架app要多少钱
  • 网站类型分类使用python做网站
  • 做装修的网站大连建设网查询水电费
  • 从哪里设置网站关键词wordpress 批量 产品
  • 二手书交易网站开发与设计游戏推广工作好做吗