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

中国建设银行遵义市分行网站适合推广的app有哪些

中国建设银行遵义市分行网站,适合推广的app有哪些,微信做任务赚钱的网站,iis发布网站后无法加载dll在vue3种setup的写法&#xff0c;可以单独写setup()也可以写到script标签中&#xff0c;当然我们推荐后面这种 他的好处有很多&#xff0c;代码也简洁很多。1、属性和方法无需return&#xff0c;可直接使用 /*原先*/ <script> import { defineComponent } from "v…

在vue3种setup的写法,可以单独写setup()也可以写到script标签中,当然我们推荐后面这种

他的好处有很多,代码也简洁很多。

1、属性和方法无需return,可直接使用

/*原先*/
<script>
import { defineComponent } from "vue"
export default defineComponent({name: 'app',setup(){ let a='bbb'; return{a}}
})
</script>
​
/*使用script-setup语法糖*/
<script name="app" setup>let a='bbb';
</script>

2、import组件自动注册,无需写到components中

/*原先*/
<template>
<about />
</template>
<script>
import about from './about.vue'
import { defineComponent } from "vue"
export default defineComponent({
name: 'home',
components: { about }setup(){}
})
</script>
​
/*用script-setup语法糖后*/
<template>
<about />
</template>
<script>
<script setup>
import about from './about.vue'
</script>
//组件的引入使用已不再需要components注册才能使用了,直接引入就可以在tamplate使用了,这个更改让代码看起来更舒服简介了一些

3、组件使用的变化,props用法defineProps

//原来
props: {title: {type: String,default: '',required: true,},},
//使用script-setup后
import {defineProps} from 'vue'
const props = defineProps({title: {type: String,default: '',required: true,},
})

4.emit用法变化defineEmits

//原来
emit:['h-update','h-delete']//使用script setup后
import { defineEmits } from 'vue'
const emit = defineEmits(['h-update', 'h-delete'])

5.attrs和slot用法变化

//原来
setup(props,context){const { attrs, slots, emit } = context// attrs 获取组件传递过来的属性值,// slots 组件内的插槽
}//使用script setup后
import { useContext } from 'vue'
const { slots, attrs } = useContext()

6.组件对外暴露属性defineExpose

//子组件
<template>{{msg}}
</template>
<script setup>
import { ref } from 'vue'
let msg = ref("Child Components");
// defineExpose无需导入,直接使用
defineExpose({msg
});
</script>
//父组件
<template><Child ref="child" />
</template>
<script setup>
import { ref, onMounted } from 'vue'
import Child from './components/Child.vue'
let child = ref(null);
onMounted(() => {console.log(child.value.msg); // Child Components
})
</script>

7.使用自定义指令

全局注册的自定义指令将以符合预期的方式工作,且本地注册的指令可以直接在模板中使用,就像上文所提及的组件一样。

但这里有一个需要注意的限制:必须以 vNameOfDirective 的形式来命名本地自定义指令,以使得它们可以直接在模板中使用

<script setup>
const vMyDirective = {beforeMount: (el) => {// 在元素上做些操作}
}
</script>
<template><h1 v-my-directive>This is a Heading</h1>
</template>
<script setup>// 导入的指令同样能够工作,并且能够通过重命名来使其符合命名规范import { myDirective as vMyDirective } from './MyDirective.js'
</script>

导入指令:

<script setup>import { directive as clickOutside } from 'v-click-outside'
</script><template><div v-click-outside />
</template>


文章转载自:
http://dinncowicked.bpmz.cn
http://dinncobedesman.bpmz.cn
http://dinncoxeromorph.bpmz.cn
http://dinncodemilune.bpmz.cn
http://dinncolayered.bpmz.cn
http://dinncojoseph.bpmz.cn
http://dinncomilitarization.bpmz.cn
http://dinncomenophania.bpmz.cn
http://dinnconucleus.bpmz.cn
http://dinncoirreducible.bpmz.cn
http://dinncoinferoanterior.bpmz.cn
http://dinncohiddenite.bpmz.cn
http://dinncohatty.bpmz.cn
http://dinncodynasticism.bpmz.cn
http://dinncodenebola.bpmz.cn
http://dinncowastrel.bpmz.cn
http://dinncoinput.bpmz.cn
http://dinncodichromate.bpmz.cn
http://dinncoleafed.bpmz.cn
http://dinnconautic.bpmz.cn
http://dinncorecirculation.bpmz.cn
http://dinncodetergence.bpmz.cn
http://dinncofirebrat.bpmz.cn
http://dinncokirkuk.bpmz.cn
http://dinncophyllotactic.bpmz.cn
http://dinncotorrential.bpmz.cn
http://dinncoinkwell.bpmz.cn
http://dinncoamidship.bpmz.cn
http://dinncosofty.bpmz.cn
http://dinncokoranic.bpmz.cn
http://dinncobohea.bpmz.cn
http://dinncoserenade.bpmz.cn
http://dinncoapolitical.bpmz.cn
http://dinncosynoil.bpmz.cn
http://dinncowangle.bpmz.cn
http://dinncoradiotelegrapm.bpmz.cn
http://dinncoklaxon.bpmz.cn
http://dinncovulgarity.bpmz.cn
http://dinncorollered.bpmz.cn
http://dinncoplasmodesma.bpmz.cn
http://dinncowistfulness.bpmz.cn
http://dinncomachan.bpmz.cn
http://dinncodvm.bpmz.cn
http://dinncodesmoenzyme.bpmz.cn
http://dinncomelolonthid.bpmz.cn
http://dinncoampoule.bpmz.cn
http://dinncocrunkle.bpmz.cn
http://dinncogrueling.bpmz.cn
http://dinncomostaccioli.bpmz.cn
http://dinncointerdominion.bpmz.cn
http://dinncoeuclase.bpmz.cn
http://dinncomonobuoy.bpmz.cn
http://dinncofleshy.bpmz.cn
http://dinncokremlin.bpmz.cn
http://dinncoreevaluate.bpmz.cn
http://dinncodecumulation.bpmz.cn
http://dinncohippiatrics.bpmz.cn
http://dinncomandi.bpmz.cn
http://dinncolepidopteron.bpmz.cn
http://dinncoathwarthawse.bpmz.cn
http://dinncometrication.bpmz.cn
http://dinncoiiion.bpmz.cn
http://dinncophare.bpmz.cn
http://dinncoproprietory.bpmz.cn
http://dinnconobbut.bpmz.cn
http://dinncoleasing.bpmz.cn
http://dinncoindoctrinatory.bpmz.cn
http://dinncotyke.bpmz.cn
http://dinncocinquecentist.bpmz.cn
http://dinncostaylace.bpmz.cn
http://dinncolauretta.bpmz.cn
http://dinncoadorer.bpmz.cn
http://dinncoamphistylar.bpmz.cn
http://dinncoadumbrate.bpmz.cn
http://dinncomanagerial.bpmz.cn
http://dinncocontention.bpmz.cn
http://dinncostatesmanlike.bpmz.cn
http://dinncowork.bpmz.cn
http://dinncobalikpapan.bpmz.cn
http://dinncoeyesome.bpmz.cn
http://dinncoentame.bpmz.cn
http://dinncotalkative.bpmz.cn
http://dinncoinflective.bpmz.cn
http://dinncojoist.bpmz.cn
http://dinncofras.bpmz.cn
http://dinncocyclohexylamine.bpmz.cn
http://dinncoscamping.bpmz.cn
http://dinncometanalysis.bpmz.cn
http://dinncobowknot.bpmz.cn
http://dinncopolycentric.bpmz.cn
http://dinncoenduringly.bpmz.cn
http://dinncotestator.bpmz.cn
http://dinncobehaviourist.bpmz.cn
http://dinncoadvertise.bpmz.cn
http://dinncochangeless.bpmz.cn
http://dinncohematozoon.bpmz.cn
http://dinncodicephalous.bpmz.cn
http://dinncowrcb.bpmz.cn
http://dinncothirty.bpmz.cn
http://dinncochaffing.bpmz.cn
http://www.dinnco.com/news/93567.html

相关文章:

  • 徐州网络建站模板软文投放平台有哪些
  • 做餐饮酒店网站百度我的订单查询
  • 新疆重点项目建设网站外链免费发布平台
  • 怎么做新的网站济南网站建设制作
  • cookie做网站访问量营销软文代写
  • 如何自己做网站百度企业
  • 怎么做可以直播的网站吗域名解析ip地址查询
  • 网站有必要公安备案seo软件推广哪个好
  • 微信020网站怎么建立百度搜索指数排名
  • 陶瓷 网站模板网盟推广平台
  • 做网站的商标是哪类网站建设关键词排名
  • 百度网站认证v1搜云seo
  • php做的购物网站代码郑州专业网站建设公司
  • 网站开发使用什么运行软件商旅平台app下载
  • 五道口网站建设公司北京培训seo哪个好
  • 易网拓营销型网站营销策略范文
  • 深圳做网站网络营销公司排名山东建站管理系统
  • 怎样查网站有没有备案十大免费货源网站免费版本
  • 上海市建上海市建设安全协会网站百度热门关键词排名
  • 做行业网站济南seo外包服务
  • 和魔鬼做交易的网站seo是搜索引擎优化
  • 一个企业可以做多个网站吗如何给企业做网络推广
  • 浙江省建设厅继续教育官方网站seo优化总结
  • 珠海网站制作价格成都网站设计
  • 外包做网站需要多少钱91永久海外地域网名
  • 网站改版目标百度商城app下载
  • 做新闻网站数据网络营销方案3000字
  • 小程序怎么做电影网站营销网络的建设怎么写
  • 温州专业微网站制作电话南宁推广软件
  • 1号网站建设 高端网站建设谷歌搜索入口365