diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx index 0567346..360bb5f 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/remarksModal.jsx @@ -18,7 +18,7 @@ function remarksModal (props) { const [roll,setroll] = useState(false); const [showValueNum,setShowValueNum] = useState(0); const valueNum = useRef(0); - + //初始化 useEffect(() => { let myScrollList=ScrollList for (let index = 0; index < cameraRemarks.length; index++) { @@ -47,6 +47,7 @@ function remarksModal (props) { close(); //点击弹框取消 左边按钮 } + //修改 function onChange(value,num){ valueNum.current=0 let myScrollList=ScrollList @@ -60,10 +61,12 @@ function remarksModal (props) { } setShowValueNum(valueNum.current); } + //获取焦点 function onFocus(num){ setShowScrollList([ScrollList[num].value]) setroll(true) } + //失去焦点 function onBlur(){ setShowScrollList([]) let myScrollList = []