Use Case
目前 button组件 并没有简单的通过代码设置点击事件的功能.
希望提供一个. 比如
button.on(ButtonEvent.CLICK, (event)=>{....})
因为 Button组件处理点击事件的逻辑比较特殊 , 并不能直接用
button.node.on(CLICK, ...) 来代替
所以还是希望官方提供一个专属API.
Problem Description
.
Proposed Solution
No response
How it works
No response
Alternatives Considered
.
Additional Information
No response