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

做红包网站是犯法的吗推广活动策划方案范文

做红包网站是犯法的吗,推广活动策划方案范文,云南城市建设官方网站,wordpress语言切换网站1.component介绍 说明: Type: string | ComponentDefinition | ComponentConstructor Explanation: String: 如果你传递一个字符串给 is,它会被视为组件的名称,用于动态地渲染不同类型的组件。这是一个在运行时动态切换组件类型的常见用例。…

1.component介绍

说明:

  • Type: string | ComponentDefinition | ComponentConstructor

  • Explanation:

    • String: 如果你传递一个字符串给 is,它会被视为组件的名称,用于动态地渲染不同类型的组件。这是一个在运行时动态切换组件类型的常见用例。
    • ComponentDefinition: 你也可以传递组件定义对象,这是一个包含组件选项的对象。
    • ComponentConstructor: 可以传递组件的构造函数。

2.is写法

2.1 is

说明:加载单个组件直接可以不加:

<component is="DynamicMorning"></component>

组件 

<script>
export default {name: "morning"
}
</script><template>
<div>我是早上组件</div>
</template><style scoped></style>

2.2 :is 

说明:动态加载组件写法

    <template v-for="item in DynamicComponent"><component :is="item.type"></component></template>

2.3源码

<script>
import Dynamic from "@/components/Dynamic/index.vue";
import DynamicMorning  from "@/views/Dynamic/morning.vue";
import DynamicAfternoon from "@/views/Dynamic/afternoon.vue";
import DynamicEvening from "@/views/Dynamic/evening.vue";
export default {name: "index",components: {Dynamic,DynamicMorning,DynamicAfternoon,DynamicEvening},data() {return {// 组件数组componentArr: [{id: 1,type: 'Morning'}, {id: 2,type: 'Afternoon'}, {id: 3,type: 'Evening'}]}},computed:{// map遍历同时生成组件名字(类型是个数组)DynamicComponent(){return  this.componentArr.map(item=>{return {...item,type:'Dynamic'+item.type}})}}
}
</script><template><div><h1>我是动态组件父组件</h1><template v-for="item in DynamicComponent"><component :is="item.type"></component></template></div>
</template><style scoped></style>

 

3.源码

<script>
import Dynamic from "@/components/Dynamic/index.vue";
import DynamicMorning from "@/views/Dynamic/morning.vue";
import DynamicAfternoon from "@/views/Dynamic/afternoon.vue";
import DynamicEvening from "@/views/Dynamic/evening.vue";export default {name: "index",components: {Dynamic,DynamicMorning,DynamicAfternoon,DynamicEvening},data() {return {// 组件数组componentArr: [{id: 1,type: 'Morning'}, {id: 2,type: 'Afternoon'}, {id: 3,type: 'Evening'}]}},computed: {// map遍历同时生成组件名字(类型是个数组)DynamicComponent() {return this.componentArr.map(item => {return {...item,type: 'Dynamic' + item.type}})}}
}
</script><template><div><h1>我是动态组件父组件</h1><template v-for="item in DynamicComponent"><component :is="item.type"></component></template><!--    <component is="DynamicMorning"></component>--></div>
</template><style scoped></style>

http://www.hrbkazy.com/news/42564.html

相关文章:

  • wordpress 个性插件鹤壁seo
  • 学广告设计前景怎么样seo优化网站教程百度
  • 天天向上做图网站搜索 引擎优化
  • div+css网站模版下载百度搜索推广收费标准
  • 长辛店镇网站建设信息流优化师是干什么的
  • o2o网站建设公司优化网站的软件下载
  • 怎么让百度蜘蛛围着网站爬取广告推广
  • 网站规划与建设重要性理解与体会谷歌竞价广告
  • 私人做医院的网站google广告
  • 网站网站制作网站维护是做什么的
  • 宝鸡企业网站建设长春网站优化
  • 社交网站百度公司官网招聘
  • 网站开发基础班内容有哪些b站推广渠道
  • 网页设计图片素材关于设计郑州百度搜索优化
  • 高端外贸网站制作上海seo优化公司kinglink
  • 如何做tiktok的数据排行网站搜索引擎技术
  • 绍兴网站推广今日十大热点新闻
  • 视频上传下载网站建设百度推广登录网站
  • 进空间的网站上海网站建设方案
  • 成都网站建设司百度关键词搜索查询
  • 深圳网站设计营销型网站制作的基本流程是什么
  • 阳江营销型网站建设广州网站建设公司
  • 网站模块是什么意思磁力bt种子搜索
  • 大型网站开发管发昆明seo建站
  • 怎么做这个购物网站百度运营平台
  • 国外的电商网站有哪些今日军事新闻
  • 开发app贵吗seo推广教程视频
  • 环球贸易网国际站网店推广方式
  • 徐州网站建设网站制作河北优化seo
  • 公司制做网站百度网盘手机版