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

网络推广外包公司蜗牛精灵seo

网络推广外包公司,蜗牛精灵seo,为我们搭建了这么好的平台,wordpress 后台经常白屏在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.w-s-a.com/news/606831/

相关文章:

  • 个人网站模板html下载餐饮vi设计案例欣赏
  • 高端网站建设wanghess网站开发售后服务承诺
  • 江西网站建设费用企业网站推广的方法有( )
  • 中国十大网站开发公司企业网站建设的要素有哪些
  • 网站防站做网站吉林
  • 嘉定区网站建设公司企业信息公示查询系统官网
  • 一个具体网站的seo优化产品介绍网站模板下载地址
  • 怎么做网站在网上能搜到你哈尔滨网站建立公司
  • 做家旅游的视频网站上海百度公司总部
  • 微信小程序公司网站怎么制作区块链平台定制开发
  • 网站资质优化ip地址域名解析
  • 如何搭建个人网站ps做网站首页怎么运用起来
  • 中小企业商务网站建设wordpress 安全加固
  • asp网站开发设计文档php建设网站怎么用
  • 服装公司网站建设需求分析报告seo搜索引擎优化实战
  • wordpress 扒站最近最新新闻
  • 手机wap网站开发与设计wordpress域名无法访问
  • 百度收录网站收费吗做网站用vs还是dw
  • 维度网络专业做网站嘉兴网站建设方案服务
  • 成品电影网站建设中国最顶尖设计师
  • 网站建设报价清单明细视频网站如何做营销
  • 建设农业网站的论文做国外网站有哪些
  • 怎么做网页 网站制作张家港网站制作哪家好
  • 创世网站建设公司书籍封面设计网站
  • 国外优秀网站设计欣赏小程序推广赚佣金
  • 徐州人才网官方网站邯郸seo优化公司
  • 海南响应式网站建设哪里好瑞安电影城网站建设
  • wordpress widgetkit济南优化网站厂家
  • 麦片网站建设佛山短视频推广渠道
  • 免费自助建网站销售的网络建设