亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

vue iview組件表格 render函數(shù)的使用方法詳解

 更新時(shí)間:2018年03月15日 09:00:41   作者:搞怪程序猿  
下面小編就為大家分享一篇vue iview組件表格 render函數(shù)的使用方法詳解,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧

如果要在標(biāo)簽中加入屬性,例如img 中src屬性   a標(biāo)簽中href屬性  此時(shí)需要用到

attrs 來加入而不是props

{
 title: '操作',
 key: 'action',
 align: 'center',
 render: function (h, params) {
 return h('div', [
  h('Button', {
  props: {
   type: 'primary',
   size: 'small'
  },
  style: {
   marginRight: '8px'
  },
  on: {
   click: function () {
   mCheck.singleShow(params.row);
   }
  }
  }, '查看'),
  h('Button', {
  props: {
   type: 'error',
   size: 'small'
  },
  on: {
   click: function () {
   mCheck.singleDel(params.row, params.index);
   }
  }
  }, '刪除')
 ]);
 }
}

以上這篇vue iview組件表格 render函數(shù)的使用方法詳解就是小編分享給大家的全部內(nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論