init project
This commit is contained in:
12
nladmin-ui/src/views/components/VxeTableRender/default.js
Normal file
12
nladmin-ui/src/views/components/VxeTableRender/default.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import VXETable from 'vxe-table'
|
||||
// 创建一个简单的超链接渲染
|
||||
VXETable.renderer.add('MyLink', {
|
||||
// 默认显示模板
|
||||
renderDefault(h, renderOpts, params) {
|
||||
const { row, column } = params
|
||||
const { events } = renderOpts
|
||||
return [
|
||||
<a class='link' onClick={() => events.click(params)}>{row[column.property]}</a>
|
||||
]
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user