摘要: import React, { useRef, useCallback } from 'react'; // 子组件 const ChildComponent = React.forwardRef((props, ref) => { const doSomething = useCallback(( 阅读全文
posted @ 2024-06-13 20:05 Felix_Openmind 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: render: (status) => (String(status) '0' ? (<span><img src={xiafazhong} alt='下发中'/>下发中 </span>) : (<span><img src={bukongzhong} alt='布控中'/>布控中</span>) 阅读全文
posted @ 2024-06-13 17:51 Felix_Openmind 阅读(4) 评论(0) 推荐(0) 编辑