import { Form, Input } from 'antd'; import React, { Component } from 'react'; import { ConfigItemProp } from '../../../component/chart.d'; import styles from "./index.module.css"; import { ConfigItemInterface } from "./configItem.d"; import TextArea from 'antd/lib/input/TextArea'; interface Prop extends ConfigItemInterface { } interface State { } export default class ConfigItemInput extends Component { onChange = (v:React.ChangeEvent)=>{ const t:string = v.target.value ; const d : ConfigItemProp = { ...this.props.data, value : t } this.props.onChange && this.props.onChange(d) } onChangeForm = (v:React.FormEvent)=>{ const e : any = v.target; const t:string = e.textContent; console.log(t) const d : ConfigItemProp = { ...this.props.data, value : t } this.props.onChange && this.props.onChange(d) } onStatusChange = (e:any,isFocus:boolean)=>{ // window. } render(){ const {data}= this.props; return ( {/* */} {/*