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

企业网站哪家好上海品牌推广公司

企业网站哪家好,上海品牌推广公司,wordpress面向对象,wordpress 到小程序第025个 查看专栏目录: VUE ------ element UI 专栏目标 在vue和element UI联合技术栈的操控下#xff0c;本专栏提供行之有效的源代码示例和信息点介绍#xff0c;做到灵活运用。 #xff08;1#xff09;提供vue2的一些基本操作#xff1a;安装、引用#xff0c;模板使… 第025个 查看专栏目录: VUE ------ element UI 专栏目标 在vue和element UI联合技术栈的操控下本专栏提供行之有效的源代码示例和信息点介绍做到灵活运用。 1提供vue2的一些基本操作安装、引用模板使用computedwatch生命周期(beforeCreatecreated,beforeMountmounted, beforeUpdateupdated, beforeDestroydestroyedactivateddeactivatederrorCapturedcomponents)、 $root , $parent , $children , $slots , $refs , props, $emit , eventbus ,provide / inject, Vue.observable, $listeners, $attrs, $nextTick , v-for, v-if, v-else,v-else-ifv-onv-prev-cloakv-oncev-model v-html, v-text, keep-aliveslot-scope filters, v-bind.stop, .native, directivesmixinrender国际化Vue Router等 2提供element UI的经典操作安装引用国际化el-rowel-colel-buttonel-linkel-radioel-checkbox el-inputel-select, el-cascader, el-input-number, el-switch,el-slider, el-time-picker, el-date-picker, el-upload, el-rate, el-color-picker, el-transfer, el-form, el-table, el-tree, el-pagination,el-badge,el-avatar,el-skeleton, el-empty, el-descriptions, el-result, el-statistic, el-alert, v-loading, $message, $alert, $prompt, $confirm , $notify, el-breadcrumb, el-page-header,el-tabs ,el-dropdown,el-steps,el-dialog, el-tooltip, el-popover, el-popconfirm, el-card, el-carousel, el-collapse, el-timeline, el-divider, el-calendar, el-image, el-backtopv-infinite-scroll el-drawer等 本文章目录 专栏目标需求背景示例效果示例源代码父组件共99行子组件 child.vue共37行 理论介绍 需求背景 这是一个父子组件之间的控制方法父组件可以通过‘ c h i l d r e n ’ 或 ′ children’或 children’或′refs’来控制子组件中的方法子组件可以通过$parent或 $emit来控制子组件中的方法 示例效果 示例源代码 父组件共99行 /* * Author: 大剑师兰特xiaozhuanlan还是大剑师兰特CSDN * 此源代码版权归大剑师兰特所有可供学习或商业项目中借鉴未经授权不得重复地发表到博客、论坛问答git等公共空间或网站中。 * Email: 2909222303qq.com * weixin: gis-dajianshi * First published in CSDN * First published time: 2022-09-04 */templatediv classcontainerdiv classtoph3父子方法控制$emit,$refs,$parent,$children /h3div classauthor大剑师兰特, 还是大剑师兰特gis-dajianshi/div/divel-button sizemini typeprimary clickshowc1() refs子组件控制1 /el-buttonel-button sizemini typeprimary clickshowc2() children子组件控制2 /el-buttonChildcom refmychild showPshowP2 /div v-ifisParent2这是用$emit方法显示的父组件信息 parent2/divdiv v-ifisParent1div classoneLine v-for(item,index) in listData :keyindexdiv classfl20img :srcitem.thumbnail_pic_s alt/divdiv classfl20 {{item.date}} /divdiv classfl20{{item.title}} /div/div/div/div /templatescriptimport Childcom from /components/child.vueexport default {data() {return {listData:[],isParent1:false,isParent2:false,}},components: {Childcom},mounted() {this.getdata()},methods: {showc1(){this.$refs.mychild.showChild1()},showc2(){console.log(this.$children)this.$children[2].showChild2()},showP1(){this.isParent1true;},showP2(){this.isParent2true;},getdata() {let url /listdatathis.$request(url, {}, GET).then((res) {this.listData res.data.dataconsole.log(this.listData)})},}} /script style scoped.container {width: 1000px;height: 540px;margin: 50px auto;border: 1px solid orange;}.top{margin:0 auto 30px; padding:10px 0;background-color: aquamarine;}.oneLine {width: 100%;height: 50px;line-height: 50px;background: #eee;margin-top: 10px;overflow: hidden;cursor: pointer;}.oneLine .fl20{ float: left; padding:0 10px;min-width: 150px;} /style 子组件 child.vue共37行 templatediv div v-ifis1{{text1}}/divdiv v-ifis2{{text2}}/div hr el-button clickshowparent1() typedanger sizemini 开启父组件内容1/el-button el-button clickshowparent2() typedanger sizemini 开启父组件内容2/el-button /div /templatescriptexport default{data() { return {is1:false,is2:false,text1:通过第一种方法显示出来,text2:通过第二种方法显示出来,}},methods:{showChild1(){this.is1true;},showChild2(){this.is2true;},showparent1(){this.$parent.showP1();},showparent2(){this.$emit(showP)}, },}/script 理论介绍 父组件访问子组件使用this.$children或 $refs this.$children得到是一个子组件数组它包含所有子组件对象。 子组件访问父组件使用this.$parent , this.$emit 子组件访问根Vue实例使用this.$root
http://www.hkea.cn/news/14509275/

相关文章:

  • wordpress禁止中国ip网站后台的seo功能
  • 中国建设教育协会培训中心网站微信平台与微网站开发
  • 顺德网站建设教程如何更改wordpress上的默认头像
  • 怎么建自己公司网站saas自助建站
  • 好看的企业门户网站公司网站内容建设
  • 网站百度抓取网站用哪些系统做的比较好用
  • 洪梅镇网站建设公司网站建设选信达互联
  • 上海网站改版哪家好网站logo 更换
  • 网站建设与网页设计难学吗做外贸上哪些网站
  • 赣州市开发区建设局网站广州工程承包总公司
  • 网站建设与维护服务邯郸网站建设哪能做
  • 自己架设网站编辑网站内容有没有批量办法
  • seo网站沙盒期jsp做网站前端实例
  • 微信公众号php网站开发企业网站服务门户
  • 西宁好的网站建设中国基建人才网
  • 泸溪县建设局网站网站建设公司-跨界鱼科技优
  • 成都龙泉建设网站2021免费正能量网站入口
  • 重庆荣昌网站建设报价做购物网站用服务器
  • 网站开发成本评估哪个网站做兼职猎头
  • 哈尔滨网站建设策划方案销售网站排名
  • 戚墅堰建设网站18芯城网站开发案例
  • 网站怎么换主机wordpress鼠标
  • 做废铁在哪个网站推广中卫网站推广优化
  • 开源的网站系统wordpress布局怎么看
  • 网站建设视频代码wordpress怎么添加全局背景音乐
  • python 网站开发实战wordpress 手机版 导航
  • 淘宝网站所用编码群晖 套件 wordpress
  • 做微信公众号用什么网站老板办公室装修设计
  • 网站托管怎做什么学做网站
  • 免费网站备案号码wordpress七牛云使用