Browse Source

ts 报错

main
chenyang 2 months ago
parent
commit
33e672b384
  1. 4
      src/components/x-form/utils/index.tsx

4
src/components/x-form/utils/index.tsx

@ -116,9 +116,7 @@ export const transformAntdTableProColumns = (columns: XFormTypes.IColumn[], over
return request[item.dicMethod || 'get'](url, params).then(res => {
const data = has(res.data, resKey) ? get(res.data, resKey) : res.data
return mapTree(data || [], (i: any) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return mapTree(data || [], (i: object) => {
const disabled = has(i, disabledKey) ? get(i, disabledKey) : ('status' in i ? !convertToBool(i.status) : false)
return {
title: i[label || 'label'],

Loading…
Cancel
Save