import type { ProColumns } from '@ant-design/pro-components'; import type { SelectProps } from 'antd'; import { Select, Input, Space, Switch, Tooltip } from 'antd'; import { flatten } from 'lodash'; import style from './index.less'; import { FormattedMessage } from 'umi'; const { TextArea } = Input; const TooltipSelect = ( props: Pick & { valueEnum: any; disabledKeys: any }, ) => { const { value, onChange, valueEnum, disabledKeys } = props; return ( item.value === value)?.label || value}> ({ ...item, disabled: disabledKeys.includes(item.value) || item.disabled, }))} /> ); }, }, { title: 'operator', dataIndex: 'operator', width: valueEnum?.operator?.width ?? '', hideInTable: !operatorHidden, renderFormItem: () => { return ( ) : (