perf: vxe

This commit is contained in:
xingyu4j
2022-11-12 15:52:43 +08:00
parent 94527ae9ae
commit 725cc4e41b
9 changed files with 304 additions and 299 deletions

View File

@ -0,0 +1,12 @@
import { DictTag } from '@/components/DictTag'
import { VXETable } from 'vxe-table'
// 创建一个简单的超链接渲染
VXETable.renderer.add('XDict', {
// 默认显示模板
renderDefault(renderOpts, params) {
const { row, column } = params
const { content } = renderOpts
return <DictTag type={content as unknown as string} value={row[column.field]}></DictTag>
}
})