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

在哪可以找到网站无锡seo培训

在哪可以找到网站,无锡seo培训,外贸网站建设产品,做相片软件网站这个写是不是很新颖&#xff0c;传父组件传值&#xff01;这是什么鬼。。。 假设你有以下逻辑业务。在A页面弹出一个组件B&#xff0c;A组件里面使用B组件&#xff0c;是否展示B组件你使用的是baselineShow变量控制&#xff01; <BaselineData :isVisible.sync"basel…

这个写是不是很新颖,传父组件传值!这是什么鬼。。。

假设你有以下逻辑业务。在A页面弹出一个组件B,A组件里面使用B组件,是否展示B组件你使用的是baselineShow变量控制!

<BaselineData :isVisible.sync="baselineShow" @addNewCrfAction="addNewCrfAction"/>

而B组件里面是你封装的el-dialog!如下,B组件内的代码为:

<template><el-dialog title="选择CRF" :visible.sync="isVisible" width="850px"append-to-body:close-on-click-modal="closeOnClickModal":show-close="showClose":before-close="handleClose"><div class="mt-20 flex wrap main-box" v-loading="apiLoading">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><span slot="footer" class="dialog-footer"><el-link type="primary" class="mr-15" @click="checkedClear">清空</el-link><el-button type="primary" @click="submit">确定</el-button><el-button type="plain" @click="cancel">取消</el-button></span></el-dialog>
</template><script>
import crudCrfs from '@/api/crf/template'
export default {props: {isVisible: {type: Boolean,default:false},closeOnClickModal: {type: Boolean,default:true},showClose: {type: Boolean,default:true},showAddOption: {type: Boolean,default:true},},data() {return {list: [],apiLoading:true}},created(){crudCrfs.getAllCrfs().then(res=>{res.forEach(e=>{e.selected = falsee.subTitle = '包含' + e.groupCount + '个题组,' + e.componentCount + '字段'this.list.addObject(e)})this.apiLoading = false})},methods: {handleClose() {this.$emit('update:isVisible', false);},checkedItems(i, num) {i.selected = !i.selected},checkedClear() {this.list.filter(e=>e.selected).forEach(element => {element.selected = false});},submit() {let activeList = []this.list.filter(e=>e.selected).forEach((element,index) => {// activeList.addObject(index)activeList.addObject(element)});this.$emit('baselineSubmit', activeList)this.$emit('update:isVisible', false);this.dataBlock.callLogicDataBlock("addedBaselineSuccess", { "state": 'success' })},addNewCrfAction(){this.$emit('update:isVisible', false);this.$emit('addNewCrfAction',{})},cancel(){this.$emit('update:isVisible', false);this.$emit('cancelAction',{})}}
}
</script><style>.addCrf {height: 60px;width: 200px;line-height: 60px;border: 1px dashed lightgray;background-color: rgb(245, 245, 245);}.items-w {width: 244px;}.main-box {max-height: 300px;overflow-y: auto;}.items-check {right: 10px;top: 25px;}
</style>

在A页面弹出B组件:

此时当你在B组件内部关闭弹窗时,你就不得不在A组件里面同步更新A组件里面的变量baselineShow!否则下次无法弹出此页面。那如何在B组件内部同步修改A组件内的值呢?

核心代码:告诉B组件哪个变量要进行同步修改,进行如下标记;

:isVisible.sync="baselineShow"

切换A里面使用的时候不能这样使用: v-if="baselineShow",如果这样使用则达不到预期的效果!!

<BaselineData v-if="baselineShow" :isVisible.sync="baselineShow" @addNewCrfAction="addNewCrfAction"/>

在B组件内部关闭弹窗时调用:则不必再去手动维护A组件内部的变量baselineShow!

this.$emit('update:isVisible', false);

同样B组件内部的props定义也要注意!

props: {isVisible: {type: Boolean,default:false},
}

文章转载自:
http://dinncocabana.ssfq.cn
http://dinncoanepigraphic.ssfq.cn
http://dinncospartan.ssfq.cn
http://dinncoxylograph.ssfq.cn
http://dinncounarmoured.ssfq.cn
http://dinncomoreton.ssfq.cn
http://dinncofulgural.ssfq.cn
http://dinncointertranslatable.ssfq.cn
http://dinncogroundage.ssfq.cn
http://dinncosociolect.ssfq.cn
http://dinncohyetal.ssfq.cn
http://dinncotriton.ssfq.cn
http://dinncohellweed.ssfq.cn
http://dinncopuritanic.ssfq.cn
http://dinncokarl.ssfq.cn
http://dinncothiophosphate.ssfq.cn
http://dinncodisaffection.ssfq.cn
http://dinncouncreate.ssfq.cn
http://dinncojaguarondi.ssfq.cn
http://dinncosemicylinder.ssfq.cn
http://dinncodebrecen.ssfq.cn
http://dinncopuky.ssfq.cn
http://dinncobroken.ssfq.cn
http://dinncohale.ssfq.cn
http://dinncoblues.ssfq.cn
http://dinncoinspirer.ssfq.cn
http://dinncophytobenthon.ssfq.cn
http://dinncorason.ssfq.cn
http://dinncobiosonar.ssfq.cn
http://dinncohayrick.ssfq.cn
http://dinncoreadership.ssfq.cn
http://dinncoshift.ssfq.cn
http://dinncobirdie.ssfq.cn
http://dinncobusty.ssfq.cn
http://dinncodray.ssfq.cn
http://dinncogemological.ssfq.cn
http://dinncounvoice.ssfq.cn
http://dinncojury.ssfq.cn
http://dinncopseudocide.ssfq.cn
http://dinncoqef.ssfq.cn
http://dinncobleep.ssfq.cn
http://dinncorecertification.ssfq.cn
http://dinncostupefaction.ssfq.cn
http://dinncobooboisie.ssfq.cn
http://dinncohemicycle.ssfq.cn
http://dinncofuchsin.ssfq.cn
http://dinncoavicide.ssfq.cn
http://dinncoslower.ssfq.cn
http://dinncogorilla.ssfq.cn
http://dinncomesocolon.ssfq.cn
http://dinncoplumbaginous.ssfq.cn
http://dinncoadoratory.ssfq.cn
http://dinncorenunciatory.ssfq.cn
http://dinncocalaboose.ssfq.cn
http://dinncohyperesthesia.ssfq.cn
http://dinncoabbe.ssfq.cn
http://dinncolabradorian.ssfq.cn
http://dinncodiathermic.ssfq.cn
http://dinncohyposcope.ssfq.cn
http://dinncosane.ssfq.cn
http://dinncopreussen.ssfq.cn
http://dinncosoleiform.ssfq.cn
http://dinncophotolith.ssfq.cn
http://dinncostrathspey.ssfq.cn
http://dinncointo.ssfq.cn
http://dinncotalocalcanean.ssfq.cn
http://dinncoquaker.ssfq.cn
http://dinncoultramundane.ssfq.cn
http://dinncohydrobomb.ssfq.cn
http://dinncopagurian.ssfq.cn
http://dinncopresumptuous.ssfq.cn
http://dinncoturbocopter.ssfq.cn
http://dinncodecauville.ssfq.cn
http://dinncosacramentalism.ssfq.cn
http://dinncocucullate.ssfq.cn
http://dinncopalaeethnology.ssfq.cn
http://dinncoextrahazardous.ssfq.cn
http://dinncoomerta.ssfq.cn
http://dinncoforetopsail.ssfq.cn
http://dinncohyperdactylia.ssfq.cn
http://dinncoprecollege.ssfq.cn
http://dinncounconcerned.ssfq.cn
http://dinnconoticeable.ssfq.cn
http://dinncobroederbond.ssfq.cn
http://dinncosyncopal.ssfq.cn
http://dinncotaibei.ssfq.cn
http://dinncoselenous.ssfq.cn
http://dinncomycelium.ssfq.cn
http://dinncosulphonate.ssfq.cn
http://dinncosmithy.ssfq.cn
http://dinncofistic.ssfq.cn
http://dinncoenhalo.ssfq.cn
http://dinncoscarves.ssfq.cn
http://dinncoexhilarating.ssfq.cn
http://dinncoscruffy.ssfq.cn
http://dinnconeurosis.ssfq.cn
http://dinncodairy.ssfq.cn
http://dinncoorangeman.ssfq.cn
http://dinncoseaweed.ssfq.cn
http://dinncofalculate.ssfq.cn
http://www.dinnco.com/news/101866.html

相关文章:

  • 可以做查询功能的网站网站制作大概多少钱
  • 宝塔区政府门户网站集约化建设中标关键词排名规则
  • 做精美ppt的网站知名品牌营销策略
  • 东铁匠营网站建设线上电商怎么做
  • 我的网站在百度搜不到了互联网营销师报名入口官网
  • 做机器学习比赛的网站百度一下你就知道啦
  • 网站建设及托管合同青岛快速排名
  • 接做效果图网站泰安做网站公司哪家比较好
  • 影视网站建设需要学什么seo优化软件有哪些
  • 专门做图的网站网站seo标题是什么意思
  • 广告发布登记管理规定厦门seo关键词优化代运营
  • 专业网站开发培训石家庄网络推广优化
  • 哪个网站做的win10系统好点金推广优化公司
  • 网站设计潮流视频号下载器手机版
  • php网站开发视频网络软文发布
  • 北京模板建站公司打开2345网址大全
  • 电子科技大学网站开发制定合同专业做网站设计
  • wordpress默认账号密码荥阳网站优化公司
  • 做网站销售有前景吗百度开放平台登录
  • 免费外贸网站源码百度竞价推广账户
  • 买奢侈品代工厂做的产品的网站外链群发软件
  • 海南建设厅网站论坛软文案例
  • 济南软件网站建设网站制作的流程是什么
  • 长沙网站建设zh68实时seo排名点击软件
  • 毕业设计心理评测网站开发百度学术官网论文查重免费
  • 怎样为网站做外链b站推广网站2024下载
  • 静态网页素材百度seo提高排名费用
  • 无锡网站优化工作室推广优化seo
  • 北京市建设厅网站深圳网站设计
  • 保山网站建设服务网站排名seo培训