import * as React from 'react' import { Input } from 'antd' import { FormComponentProps } from 'antd/lib/form' import './index.scss' type P = FormComponentProps & { onChange?(e: any): void field: string } type S = {} // 价格区间 class RangePrice extends React.Component { setStartPrice = (e: React.ChangeEvent) => { const startPrice = e.target.value this.props.onChange({ startPrice, endPrice: this.props.form.getFieldValue('field').endPrice, }) } setEndPrice = (e: React.ChangeEvent) => { const endPrice = e.target.value this.props.onChange({ startPrice: this.props.form.getFieldValue('field').startPrice, endPrice, }) } render() { return (
~
) } } export default RangePrice