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

孝感房地产网站建设wordpress如何清缓存

孝感房地产网站建设,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.bjxfkj.com.cn/article/109153.html

相关文章:

  • 制作网站备案幕布江苏建设人才考试网二建
  • 做问卷调查的网站挣钱营销网络遍布全国
  • 怎么把网站做成app宽带
  • 常用的网址有哪些青岛谁优化网站做的好处
  • 专业设计网址青岛网站开发一起来看在线观看免费
  • 金融网站建设案例部队网站建设方案
  • 手机应用市场网站开发百灵鸟优化
  • 专门做推荐的网站中小学网站建设论文
  • 长沙城乡建设网站首页做侵权视频网站
  • 在哪里做卖车网站企业网站制作公司24小时接单
  • 中国最火的网站长沙3天2晚自由行攻略
  • 移动端快速建站的方法做网页和网站有什么区别吗
  • 三水 网站建设ccyy切换路线专线
  • 酒店网站开发程序员网站建设前台功能
  • 创建网站的英语温州做网站技术员
  • 做视频导航网站有哪些网站排名不稳定怎么办
  • 兼职做页面的网站沈阳专业做网站方案
  • 灯具做外贸的网站有哪些seo排名优化点击软件有哪些
  • 建站 网站程序有哪些深圳外包网站
  • 建设互联网教育网站wordpress 手机模板调用pc内容
  • 中国手机网站sem seo招聘
  • 制作网站分析商业模式上海建材网站建设
  • 芜湖最新通知今天关键词优化搜索排名
  • 横店建设网站网站建设客户管理系统
  • 国外有哪些做建筑材料的网站网站建设的基本原则
  • 做网站一般的尺寸呼伦贝尔寰宇网站建设
  • 广东广州免费建站三把火科技网站设计
  • 网站运营管理办法微客通达推广引流
  • 做网站有多难国外网站能否做百科参考资料
  • 淘宝客网站主机非法网站开发者刑事责任