MCPcopy Create free account
hub / github.com/ccj-007/easy-lowcode / Input

Function Input

src/editor/Input.tsx:9–20  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

7}
8
9const 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
22export default Input

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected