美文网首页
iview render的时候可以写控件的基本格式

iview render的时候可以写控件的基本格式

作者: Karenduan | 来源:发表于2018-08-01 09:18 被阅读0次

render: (h, params) => {

return h('div', [

h('Button', {

props: {

type: 'id',

size: 'small'

},

style: {

marginRight: '5px'

},

on: {

click: () => {

this.pojectshow(this.datatable[params.index].id)

}

}

}, '详情'),

h('Button', {

props: {

type: 'id',

size: 'small'

},

style: {

marginRight: '5px'

},

on: {

click: () => {

this.pojectshow(this.datatable[params.index].id)

}

}

}, '看板'),

h('div', {

props: {

type: 'id',

size: 'small'

},

style: {

marginRight: '5px',

color: 'red'

},

on: {

click: () => {

this.pojectshow(this.datatable[params.index].id)

}

}

}, '测试' + this.datatable[params.index].id)

])

}

相关文章

网友评论

      本文标题:iview render的时候可以写控件的基本格式

      本文链接:https://www.haomeiwen.com/subject/vkdicftx.html