feat: add renderTag

pull/5/MERGE
xingyu 2023-04-25 10:42:17 +08:00
parent 48ccd91ad3
commit abc7d24a22
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
import { getIntDictOptions } from '@/utils/dict'
import { BasicColumn, FormSchema, useRender } from '@/components/Table'
import { DICT_TYPE } from '@/utils/dict'
import { h } from 'vue'
export const columns: BasicColumn[] = [
{
@ -42,7 +41,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'resultCode',
width: 180,
customRender: ({ text }) => {
return h('span', text === 0 ? '成功' : '失败')
return useRender.renderTag(text === 0 ? '成功' : '失败')
}
},
{