import React from 'react'; import type { IFilter } from '../../typings'; import { Select, Switch } from 'antd'; import styles from './index.less'; import NumberFilterValue, { INumberFilterValue } from './NumberFilterValue'; interface IProps extends Pick { onChange: (newValue: any) => void; } const FilterValue = (props: IProps) => { const { field, onChange, value } = props; if (!field) { return null; } let content: JSX.Element | null = null; if (field.type === 'boolean') { content = ; } if (field.type === 'string') { content = (