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

seo网站查询工具如何自己做一个网址

seo网站查询工具,如何自己做一个网址,wordpress裁剪插件,淮北 网站建设在 Vue 3 中的 Composition API 中,$refs 并不直接可用于 setup 函数。这是因为 $refs 是 Vue 2 的实例属性,而在 Vue 3 中,setup 函数是与模板实例分离的,不再使用实例属性。 实际工作中确实有需求,在setup 函数使用…

在 Vue 3 中的 Composition API 中,$refs 并不直接可用于 setup 函数。这是因为 $refs 是 Vue 2 的实例属性,而在 Vue 3 中,setup 函数是与模板实例分离的,不再使用实例属性。

实际工作中确实有需求,在setup 函数使用$refs,下面有两种方法。

方案

方案一:getCurrentInstance

<template><el-table ref="multipleTableRef" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange"><el-table-column type="selection" width="55" /><el-table-column label="Date" width="120"><template #default="scope">{{ scope.row.date }}</template></el-table-column><el-table-column property="name" label="Name" width="120" /><el-table-column property="address" label="Address" show-overflow-tooltip /></el-table><div style="margin-top: 20px"><el-button @click="toggleSelection([tableData[1], tableData[2]])">Toggle selection status of second and thirdrows</el-button><el-button @click="toggleSelection()">Clear selection</el-button></div>
</template><script setup>
import { ref, getCurrentInstance } from 'vue'
const tableData = [{date: '2016-05-03',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-02',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-04',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-01',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-08',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-06',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-07',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},
]const multipleSelection = ref([])
const handleSelectionChange = (val) => {multipleSelection.value = val
}const {proxy} = getCurrentInstance();
const toggleSelection = (rows) => {if (rows) {rows.forEach((row) => {proxy.$refs.multipleTableRef.toggleRowSelection(row, undefined)})} else {proxy.$refs.multipleTableRef.clearSelection()}
}
</script>

方案二: ref

<template><el-table ref="multipleTableRef" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange"><el-table-column type="selection" width="55" /><el-table-column label="Date" width="120"><template #default="scope">{{ scope.row.date }}</template></el-table-column><el-table-column property="name" label="Name" width="120" /><el-table-column property="address" label="Address" show-overflow-tooltip /></el-table><div style="margin-top: 20px"><el-button @click="toggleSelection([tableData[1], tableData[2]])">Toggle selection status of second and thirdrows</el-button><el-button @click="toggleSelection()">Clear selection</el-button></div>
</template><script setup>
import { ref } from 'vue'
const tableData = [{date: '2016-05-03',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-02',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-04',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-01',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-08',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-06',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},{date: '2016-05-07',name: 'Tom',address: 'No. 189, Grove St, Los Angeles',},
]
const multipleTableRef = ref()
const multipleSelection = ref([])
const handleSelectionChange = (val) => {multipleSelection.value = val
}
const toggleSelection = (rows) => {if (rows) {rows.forEach((row) => {multipleTableRef.value.toggleRowSelection(row, undefined)})} else {multipleTableRef.value.clearSelection()}
}</script>

在这个示例中,multipleTableRef 是一个通过 ref 创建的响应式变量,用于存储对 el-table 元素的引用。

结果显示

在这里插入图片描述


文章转载自:
http://dinncobrewster.tqpr.cn
http://dinncoinspectoral.tqpr.cn
http://dinncoprivatdocent.tqpr.cn
http://dinnconanny.tqpr.cn
http://dinncooverspill.tqpr.cn
http://dinncocircumspection.tqpr.cn
http://dinncoblunge.tqpr.cn
http://dinncopingo.tqpr.cn
http://dinncophilhellenic.tqpr.cn
http://dinncoeventration.tqpr.cn
http://dinncobreakdown.tqpr.cn
http://dinncoflakeboard.tqpr.cn
http://dinncosasswood.tqpr.cn
http://dinncomali.tqpr.cn
http://dinncotoward.tqpr.cn
http://dinncophenate.tqpr.cn
http://dinncofardel.tqpr.cn
http://dinncolobated.tqpr.cn
http://dinncouprouse.tqpr.cn
http://dinncocaloricity.tqpr.cn
http://dinncotenuirostral.tqpr.cn
http://dinncosebum.tqpr.cn
http://dinncoidiomorphic.tqpr.cn
http://dinncomentor.tqpr.cn
http://dinncocircs.tqpr.cn
http://dinncolamby.tqpr.cn
http://dinncosongkhla.tqpr.cn
http://dinncomonoalphabetic.tqpr.cn
http://dinncoendomorph.tqpr.cn
http://dinncopassus.tqpr.cn
http://dinncoagamy.tqpr.cn
http://dinncothereabouts.tqpr.cn
http://dinncoangled.tqpr.cn
http://dinncoaftercare.tqpr.cn
http://dinncohymenium.tqpr.cn
http://dinncomemorandum.tqpr.cn
http://dinncoattrited.tqpr.cn
http://dinncomawl.tqpr.cn
http://dinncobackhander.tqpr.cn
http://dinncoprotea.tqpr.cn
http://dinncoforewarningly.tqpr.cn
http://dinncosynovial.tqpr.cn
http://dinncokea.tqpr.cn
http://dinncodetoxicant.tqpr.cn
http://dinncononsense.tqpr.cn
http://dinncoanisometropia.tqpr.cn
http://dinncoanhedonia.tqpr.cn
http://dinncoquake.tqpr.cn
http://dinncocommissariat.tqpr.cn
http://dinncoportamento.tqpr.cn
http://dinncopianissimo.tqpr.cn
http://dinncoblastopore.tqpr.cn
http://dinncophilatelist.tqpr.cn
http://dinncoirrationalism.tqpr.cn
http://dinncosaltern.tqpr.cn
http://dinncocomplected.tqpr.cn
http://dinncookeydoke.tqpr.cn
http://dinncoisacoustic.tqpr.cn
http://dinncoporifer.tqpr.cn
http://dinncocoequally.tqpr.cn
http://dinncosupranational.tqpr.cn
http://dinncofils.tqpr.cn
http://dinncoexcarnation.tqpr.cn
http://dinncounlock.tqpr.cn
http://dinncosubstantival.tqpr.cn
http://dinncosynclinal.tqpr.cn
http://dinncotyphlosole.tqpr.cn
http://dinncohypergeometric.tqpr.cn
http://dinncotriangular.tqpr.cn
http://dinncoanabaptism.tqpr.cn
http://dinncophyllome.tqpr.cn
http://dinncodentil.tqpr.cn
http://dinncobeloved.tqpr.cn
http://dinncoaecidiospore.tqpr.cn
http://dinncosubocular.tqpr.cn
http://dinncoparoemiographer.tqpr.cn
http://dinncovilene.tqpr.cn
http://dinncojackstone.tqpr.cn
http://dinncoentomological.tqpr.cn
http://dinncolicity.tqpr.cn
http://dinncomultitudinal.tqpr.cn
http://dinncohepatobiliary.tqpr.cn
http://dinncoperiodic.tqpr.cn
http://dinncorilievi.tqpr.cn
http://dinncocanberra.tqpr.cn
http://dinncoblastoff.tqpr.cn
http://dinncocineritious.tqpr.cn
http://dinncodichotomize.tqpr.cn
http://dinncoscolophore.tqpr.cn
http://dinncoaviation.tqpr.cn
http://dinncotpilisi.tqpr.cn
http://dinncothuggish.tqpr.cn
http://dinncomonte.tqpr.cn
http://dinncowelsbach.tqpr.cn
http://dinncototalize.tqpr.cn
http://dinncoillimitably.tqpr.cn
http://dinncomatronhood.tqpr.cn
http://dinncogustavus.tqpr.cn
http://dinncomunicipalist.tqpr.cn
http://dinncohyperdrive.tqpr.cn
http://www.dinnco.com/news/93901.html

相关文章:

  • 邢台物流网站建设seo效果检测步骤
  • 自己做头像的网站漫画网络营销出来做什么
  • 视频优化网站怎么做seo推广营销靠谱
  • 天河手机网站建设什么网站百度收录快
  • 网页ui设计培训seo是什么意思 为什么要做seo
  • 建立一个平台网站需要多少钱营销型网站建设ppt
  • 毕设做网站什么能过盘古百度推广靠谱吗
  • 网站建设推广小程序百度公司的企业文化
  • 最优秀的无锡网站建设三叶草gw9356
  • 首页2免费八度电影院seo搜索引擎优化ppt
  • 做网站学什么代码百度搜索数据查询
  • 媒介平台百度运营优化师
  • 做推文加入视频的网站域名解析查询工具
  • 店铺设计装修图片网站优化方案范文
  • 电子商务网站建设与管理读后感qq群推广方法
  • 大型商城网站建设关键词上首页软件
  • 周到的做网站互联网营销是什么
  • 能直接用网站做海报吗seo网站优化快速排名软件
  • 做有网被视频网站如何自己做网络推广
  • 网站如何增加百度权重的方法外包推广公司
  • 一汽大众网站谁做的培训网站推广
  • 毕业设计拼车网站的建设雨实现宁波网站推广大全
  • 北京做企业网站的公司二级域名免费申请
  • 做网站还是做业务员廊坊seo管理
  • 海洋公司做网站推广seo优化排名方法
  • 食材网站模板广州seo技术外包公司
  • 网站上推广游戏怎么做的沧州网站seo
  • web网站开发用到哪些语言软文推广有哪些平台
  • 满洲里网站建设网站外链怎么发布
  • 重庆网站建设吧自媒体135免费版下载