(props: Props)
| 7 | } |
| 8 | |
| 9 | const Input = (props: Props) => { |
| 10 | const { data, target } = props |
| 11 | |
| 12 | const handleChange = (e: ChangeEvent<HTMLInputElement>) => { |
| 13 | const value = e.target.value |
| 14 | editEditorObj('value', value) |
| 15 | editGlobalObj(target, value) |
| 16 | } |
| 17 | return ( |
| 18 | <input placeholder='请输入你的数据' className='e-input' onChange={handleChange} {...data} /> |
| 19 | ) |
| 20 | } |
| 21 | |
| 22 | export default Input |
nothing calls this directly
no outgoing calls
no test coverage detected