
var strV = JSON.stringify(v);
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
if (!nativeRef) {
radiosRef.current.forEach(function (_ref2) {
var setValue = _ref2.setValue;
setValue(strV ? JSON.parse(strV) : undefined);
});
}
}, [nativeRef, strV]);
因为value匹配不上
临时解决方案:
!!checkValue && data.unit.includes(checkValue) && <Radio.Group value={checkValue} onChange={v =>
var strV = JSON.stringify(v);
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
if (!nativeRef) {
radiosRef.current.forEach(function (_ref2) {
var setValue = _ref2.setValue;
setValue(strV ? JSON.parse(strV) : undefined);
});
}
}, [nativeRef, strV]);
因为value匹配不上
临时解决方案:
!!checkValue && data.unit.includes(checkValue) && <Radio.Group value={checkValue} onChange={v =>