chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -66,8 +66,8 @@ export const PopInScreen: FC<IProps> = props => {
|
||||
}
|
||||
|
||||
/**
|
||||
* ahooks useSize 初次执行会返回 undefined,导致组件位置计算错误
|
||||
* 这里监听 childrenSize ,如果为 undefined 则延迟 100ms 再渲染,以修正组件位置
|
||||
* ahooks useSize returns undefined on first execution, resulting in an error in component location evaluation
|
||||
* This listens to childrenSize. If it is undefined, delay rendering by 100ms to correct the component position.
|
||||
*/
|
||||
const [id, setId] = useState('');
|
||||
const timer = useRef<NodeJS.Timeout>();
|
||||
@@ -109,7 +109,7 @@ export const PopInScreen: FC<IProps> = props => {
|
||||
transform,
|
||||
}}
|
||||
>
|
||||
{/* 为了触发二次渲染 */}
|
||||
{/* To trigger secondary rendering */}
|
||||
<div className="hidden" id={id} />
|
||||
{children}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user