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

佛山关键词网站排名中国楼市现状

佛山关键词网站排名,中国楼市现状,上海网站建设规划,网站制作 深圳有什么公司因为buildAdmin是封装的 el-table的组件#xff0c;所以el-table中的事件#xff0c; 也是可以使用的#xff0c; 两者有几个事件是有共同的#xff08;比如 双击事件#xff09;#xff0c; 这时可以根据自己的需要自行选择 以下代码是 buildadmin 使用 el-table中的事…因为buildAdmin是封装的 el-table的组件所以el-table中的事件 也是可以使用的 两者有几个事件是有共同的比如 双击事件 这时可以根据自己的需要自行选择 以下代码是 buildadmin 使用 el-table中的事件的例子 可以看到 table 组件中 绑定了很多的事件 这些事件都是 el-table的事件 templatediv classdefault-main ba-table-boxel-alert classba-table-alert typeinfo show-icontemplate #defaultdiv classba-markdowndiv对表格内各种行为事件的监听示例codeel-table 事件/code/divdiv1、请按下codeF12/code从浏览器控制台查看更多细节/divdiv2、请单击/右击/双击单元格、行、表头等触发 el-table 事件/div/div/template/el-alertTableHeader:buttons[refresh, add, edit, delete, comSearch, quickSearch, columnDisplay]:quick-search-placeholdert(Quick search placeholder, { fields: t(examples.table.event2.quick Search Fields) })/TableHeader!-- 示例核心代码(1/2) --!-- 我们在此示例了 el-table 的各种事件 --!-- 以此类推el-table 自带的属性也都是可以使用的 --Tablecell-mouse-enteronCellMouseEntercell-mouse-leaveonCellMouseLeavecell-clickonCellClickcell-contextmenuonCellContextmenurow-clickonRowClickrow-contextmenuonRowContextmenurow-dblclickonDblclickheader-clickonHeaderClickheader-contextmenuonHeaderContextmenuheader-dragendonHeaderDragendreftableRef/Table!-- 温馨提示 --!-- 事件 select、select-all、selection-change、cell-dblclick、sort-change 请使用 ba-table 的钩子 --!-- 事件 filter-change 可用但请自行实现筛选buildadmin 并未使用 el 提供的表格筛选模式 --PopupForm //div /templatescript setup langts import { ref, provide, onMounted } from vue import baTableClass from //utils/baTable import { defaultOptButtons } from //components/table import { baTableApi } from //api/common import { useI18n } from vue-i18n import PopupForm from ./popupForm.vue import Table from //components/table/index.vue import TableHeader from //components/table/header/index.vuedefineOptions({name: examples/table/event2, })const { t } useI18n() const tableRef ref() const optButtons: OptButton[] defaultOptButtons([edit, delete])/*** 示例核心代码(2/2)*/ const onCellMouseEnter (row: TableRow, column: TableColumn, cell: HTMLElement, event: MouseEvent) {console.info(%c-------单元格 hover 进入--------, color:blue)console.log(参数, row, column, cell, event) }const onCellMouseLeave (row: TableRow, column: TableColumn, cell: HTMLElement, event: MouseEvent) {console.info(%c-------单元格 hover 退出--------, color:blue)console.log(参数, row, column, cell, event) }const onCellClick (row: TableRow, column: TableColumn, cell: HTMLElement, event: PointerEvent) {console.info(%c-------单元格被点击--------, color:blue)console.log(参数, row, column, cell, event) }const onCellContextmenu (row: TableRow, column: TableColumn, cell: HTMLElement, event: PointerEvent) {console.info(%c-------单元格被右击--------, color:blue)console.log(参数, row, column, cell, event) }const onRowClick (row: TableRow, column: TableColumn, event: PointerEvent) {console.info(%c-------某一行被点击--------, color:blue)console.log(参数, row, column, event) }const onRowContextmenu (row: TableRow, column: TableColumn, event: PointerEvent) {console.info(%c-------某一行被右击--------, color:blue)console.log(参数, row, column, event) }const onDblclick (row: TableRow, column: TableColumn, event: MouseEvent) {console.info(%c-------某一行被双击--------, color:blue)console.log(参数, row, column, event) }const onHeaderClick (column: TableColumn, event: PointerEvent) {console.info(%c-------表头被点击--------, color:blue)console.log(参数, column, event) }const onHeaderContextmenu (column: TableColumn, event: PointerEvent) {console.info(%c-------表头被右击--------, color:blue)console.log(参数, column, event) }const onHeaderDragend (newWidth: number, oldWidth: number, column: TableColumn, event: MouseEvent) {console.info(%c-------列宽度改变--------, color:blue)console.log(newWidth, oldWidth, column, event) }const baTable new baTableClass(new baTableApi(/admin/examples.table.Event2/),{pk: id,column: [{ type: selection, align: center, operator: false },{ label: t(examples.table.event2.id), prop: id, align: center, width: 70, operator: RANGE, sortable: custom },{label: t(examples.table.event2.string),prop: string,align: center,operatorPlaceholder: t(Fuzzy query),operator: LIKE,sortable: false,},{label: t(examples.table.event2.switch),prop: switch,align: center,render: switch,operator: eq,sortable: false,replaceValue: { 0: t(examples.table.event2.switch 0), 1: t(examples.table.event2.switch 1) },},{ label: t(examples.table.event2.datetime), prop: datetime, align: center, operator: eq, sortable: custom, width: 160 },{label: t(examples.table.event2.create_time),prop: create_time,align: center,render: datetime,operator: RANGE,sortable: custom,width: 160,timeFormat: yyyy-mm-dd hh:MM:ss,},{ label: t(Operate), align: center, width: 100, render: buttons, buttons: optButtons, operator: false },],dblClickNotEditColumn: [undefined, switch],},{defaultItems: { switch: 1, datetime: null },} )provide(baTable, baTable)onMounted(() {baTable.table.ref tableRef.valuebaTable.mount()baTable.getIndex()?.then(() {baTable.initSort()baTable.dragSort()}) }) /scriptstyle scoped langscss/style
http://www.zqtcl.cn/news/892855/

相关文章:

  • 台州网站建设优化网站建设加微信
  • 公司网站建设费会计分录义乌商城集团的网站建设
  • 彩票网站建设基本流程网站文章页做百度小程序
  • 在淘宝上做代销哪个网站好推广普通话喜迎二十大的手抄报怎么画
  • 知名网站建设开发受欢迎的唐山网站建设
  • 普洱网站搭建创建论坛网站需要多少钱
  • 自己做的网站如何在网络上展示wordpress 手动采集
  • 上海做网站要多少钱wordpress教程app
  • 房地产设计网站沈阳人流哪个医院好安全
  • 贵阳专业做网站微信小程序商城源代码
  • seo建站收费地震郑州做网站开发销售
  • 东莞整站优化推广公司找火速建设企业网站要多少钱
  • 网站备案 两个域名东莞保安公司联系电话
  • 网站专业制作公司律师如何在网上推广
  • 免费培训seo网站一直免费的服务器下载安装
  • 广州h5网站制作公司做竞价网站 要注意什么
  • 太原网站搭建推广id怎么编辑wordpress
  • 网站开发网站设计制作广告设计与制作基础知识
  • 企业建设H5响应式网站的5大好处网站备案后经营
  • 网站数据流分析怎么做河北搜索引擎推广方法
  • 哈尔滨网站建设咨询辽宁建设工程信息网怎么看项目经理是不是被锁住
  • 成立做网站的公司搭建网站有费用吗
  • 标志设计说明案例北京网站优化seo
  • 国外app设计网站佛山网站推广市场
  • 北京矿建建设集团有限公司 网站科技软件下载
  • 公司建网站要多少钱wordpress轮播框
  • 怎么看一个网站什么语言做的全网最新首码项目
  • 深圳网站建设ue网站空间和流量
  • 网站前端设计要做什么游仙建设局官方网站
  • 大型门户网站建设哪家好进一步加大网站集约化建设力度