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

Function handleClick

src/editor/Button.tsx:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const flag = useRef(true)
12
13 const handleClick = () => {
14 if (target === 'hidden') {
15 if (flag.current) {
16 editGlobalObj('style.display', 'none')
17 } else {
18 editGlobalObj('style.display', 'block')
19 }
20 flag.current = !flag.current
21 }
22 }
23 return (
24 <button className='e-button' onClick={handleClick} {...data}>
25 {data.children ? data.children : '修改'}</button>

Callers

nothing calls this directly

Calls 1

editGlobalObjFunction · 0.90

Tested by

no test coverage detected