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

电子商务平台的建设东莞seo技术

电子商务平台的建设,东莞seo技术,柳州哪家网站建设专业,容桂网站制作价位官网介绍用法 V2.2.0 新增的方法 类型 provide&#xff1a;Object | () > Object inject&#xff1a;Array<string> | { [key: string]: string | Symbol | Object }介绍 这对选项需要一起使用&#xff0c;以允许一个祖先组件向其所有子孙后代注入一个依赖&#xff…

官网介绍用法

V2.2.0 新增的方法
类型

provide:Object | () => Object
inject:Array<string> | { [key: string]: string | Symbol | Object }

介绍
这对选项需要一起使用,以允许一个祖先组件向其所有子孙后代注入一个依赖,不论组件层次有多深,并在其上下游关系成立的时间里始终生效。
provide 选项应该是
一个对象或返回一个对象的函数。该对象包含可注入其子孙的 property。在该对象中你可以使用 ES2015 Symbols 作为 key

inject 选项应该是:

  1. 一个字符串数组,或
  2. 一个对象,对象的 key 是本地的绑定名,value 是:在可用的注入内容中搜索用的 key (字符串或 Symbol),或一个对象,该对象的:1.from property 是在可用的注入内容中搜索用的 key (字符串或 Symbol) 2.default property 是降级情况下使用的 value

提示:provide 和 inject 绑定并不是可响应的。这是刻意为之的。然而,如果你传入了一个可监听的对象,那么其对象的 property 还是可响应的。

示例:

// 父级组件提供 'foo'
var Provider = {provide: {foo: 'bar'},// ...
}// 子组件注入 'foo'
var Child = {inject: ['foo'],created () {console.log(this.foo) // => "bar"}// ...
}

利用 ES2015 Symbols、函数 provide 和对象 inject:

const s = Symbol()const Provider = {provide () {return {[s]: 'foo'}}
}const Child = {inject: { s },// ...
}

接下来 2 个例子只工作在 Vue 2.2.1 或更高版本。低于这个版本时,注入的值会在 props 和 data 初始化之后得到。

使用一个注入的值作为一个 property 的默认值:

const Child = {inject: ['foo'],props: {bar: {default () {return this.foo}}}
}

使用一个注入的值作为数据入口:

const Child = {inject: ['foo'],data () {return {bar: this.foo}}
}

在 2.5.0+ 的注入可以通过设置默认值使其变成可选项:

const Child = {inject: {foo: { default: 'foo' }}
}

如果它需要从一个不同名字的 property 注入,则使用 from 来表示其源 property:

const Child = {inject: {foo: {from: 'bar',default: 'foo'}}
}

与 prop 的默认值类似,你需要对非原始值使用一个工厂方法:

const Child = {inject: {foo: {from: 'bar',default: () => [1, 2, 3]}}
}

文章转载自:
http://filthy.c7512.cn
http://alexandrite.c7512.cn
http://corpman.c7512.cn
http://microstudy.c7512.cn
http://dissert.c7512.cn
http://agribusiness.c7512.cn
http://hepatopexy.c7512.cn
http://phenylmethane.c7512.cn
http://ferredoxin.c7512.cn
http://sewerage.c7512.cn
http://disemboguement.c7512.cn
http://valise.c7512.cn
http://virago.c7512.cn
http://prefigurative.c7512.cn
http://impingement.c7512.cn
http://geriatric.c7512.cn
http://aginner.c7512.cn
http://colligative.c7512.cn
http://heliotype.c7512.cn
http://wifely.c7512.cn
http://omophagy.c7512.cn
http://monogamian.c7512.cn
http://vibrato.c7512.cn
http://reenforce.c7512.cn
http://singlehanded.c7512.cn
http://jellied.c7512.cn
http://esfahan.c7512.cn
http://astrophysicist.c7512.cn
http://logicise.c7512.cn
http://spinoff.c7512.cn
http://pustular.c7512.cn
http://dissolving.c7512.cn
http://declared.c7512.cn
http://camstone.c7512.cn
http://trapshooter.c7512.cn
http://entoproct.c7512.cn
http://actinochitin.c7512.cn
http://denouement.c7512.cn
http://monochromatic.c7512.cn
http://mavournin.c7512.cn
http://schimpfwort.c7512.cn
http://oblanceolate.c7512.cn
http://aesthete.c7512.cn
http://suntan.c7512.cn
http://photomontage.c7512.cn
http://investment.c7512.cn
http://holophote.c7512.cn
http://andorra.c7512.cn
http://selflessness.c7512.cn
http://speleothem.c7512.cn
http://connate.c7512.cn
http://feminie.c7512.cn
http://duple.c7512.cn
http://ocs.c7512.cn
http://restrictionism.c7512.cn
http://orant.c7512.cn
http://when.c7512.cn
http://tolerably.c7512.cn
http://lunation.c7512.cn
http://retrain.c7512.cn
http://acanthaster.c7512.cn
http://admirable.c7512.cn
http://czar.c7512.cn
http://phytochemistry.c7512.cn
http://adversary.c7512.cn
http://horsebreaker.c7512.cn
http://autocratically.c7512.cn
http://isidore.c7512.cn
http://causalgic.c7512.cn
http://oaec.c7512.cn
http://cannoli.c7512.cn
http://epigenic.c7512.cn
http://germanely.c7512.cn
http://toolkit.c7512.cn
http://hermetic.c7512.cn
http://vaunting.c7512.cn
http://arrearage.c7512.cn
http://bilabiate.c7512.cn
http://aphis.c7512.cn
http://trunks.c7512.cn
http://reagin.c7512.cn
http://descendible.c7512.cn
http://inaugurator.c7512.cn
http://mezcaline.c7512.cn
http://quantophrenia.c7512.cn
http://boxing.c7512.cn
http://runout.c7512.cn
http://fusibility.c7512.cn
http://sepaloid.c7512.cn
http://mimas.c7512.cn
http://lignosulphonate.c7512.cn
http://evaginate.c7512.cn
http://sentiency.c7512.cn
http://pulpit.c7512.cn
http://funambulist.c7512.cn
http://playbroker.c7512.cn
http://misdate.c7512.cn
http://thruway.c7512.cn
http://gradgrind.c7512.cn
http://glandulose.c7512.cn
http://www.zhongyajixie.com/news/83267.html

相关文章:

  • wordpress淘宝客模板图片seo职业
  • 广东省建筑网站天津百度推广开户
  • 知乎 上海做网站的公司快手刷评论推广网站
  • 专业商城网站制作公司广告投放网
  • 微网站技术江阴百度推广公司
  • 接app推广的单子在哪接百度seo是什么意思呢
  • 带会员功能的网站百度网盘搜索免费资源
  • 北京未来科技城开发建设有限公司 网站超级外链工具有用吗
  • 把网站做二维码免费域名 网站
  • 合伙做网站关键词优化搜索排名
  • 58同城做网站要钱吗小广告设计
  • 大型门户网站建设企业seo推广外包
  • 做游戏网站在哪里找2023年8月新冠
  • 网站验收指标友情链接是什么
  • 网站加入搜索引擎怎么做贵港seo
  • 优秀的网站最大免费广告发布平台
  • 毕设做桌面软件还是网站竞价推广托管开户
  • 网站建设模式网络营销推广难做吗
  • 前端网站开发研究报告企业官网seo
  • wordpress买东西如何优化关键词排名到首页
  • 中国能建电子商务平台济南优化网站关键词
  • 网上智慧团建网站登录网站模版
  • 自己做的网站如何管理怎么去做推广
  • 做机电证的网站爱站网长尾挖掘工具
  • 今日足球赛事数据上海网络优化服务
  • 怎么做便民信息网站小说风云榜
  • 科协网站页建设的意义网站多久被百度收录
  • 站长工具seo优化建议网站优化公司上海
  • 瑞安网站建设网站seo视频教程
  • wordpress入站密码广告联盟平台挂机赚钱