可以在重置按钮的点击事件中使用 setRadioValue(null) 将 radioValue 的值清空。例如:

const handleReset = () => { setRadioValue(null); }

const radioValue setRadioValue = useStateAML; const radioChange = e any = setRadioValueetargetvalue; sorNorDeparmentetargetvalue; ; RadioGroup value=radioValue buttonStyle=solid onChange=radio

原文地址: https://www.cveoy.top/t/topic/eYFZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录