render: (h, params) => {
let that = this
var arr = ['编辑', '生源管理', '分配学号', '分班', '学号归档', '班级归档']
return h('ul', arr.map(function(item, index) {
return h('span', {
domProps: {
innerHTML: item,
},
style: {
color: "#559df9",
cursor: "pointer",
marginRight: '10px'
},
on: {
click: () => {
that.operationFun(params.row, item)
}
}
})
}))
}
render 循环创建span
最新推荐文章于 2023-12-11 15:04:37 发布