Files
nl-sso-server/nladmin-ui/src/views/components/VxeTableRender/content.js
2022-11-28 10:16:16 +08:00

29 lines
617 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import VXETable from 'vxe-table'
// 创建一个简单的展开内容渲染
VXETable.renderer.add('MyExpand', {
renderExpand(h, renderOpts, params) {
const { row } = params
return [
<ul>
<li>
<span>ID</span>
<span>{row.id}</span>
</li>
<li>
<span>Name</span>
<span>{row.name}</span>
</li>
<li>
<span>UpdateTime</span>
<span>{row.updateTime}</span>
</li>
<li>
<span>CreateTime</span>
<span>{row.createTime}</span>
</li>
</ul>
]
}
})