mirror of https://github.com/fantasticit/think.git
fix: update delay default to 200
This commit is contained in:
parent
f4e583b2e7
commit
3e0d8a4781
|
@ -8,7 +8,7 @@ interface IProps {
|
|||
normalContent: React.ReactElement;
|
||||
}
|
||||
|
||||
export const LoadingWrap: React.FC<IProps> = ({ loading, delay = 300, loadingContent, normalContent }) => {
|
||||
export const LoadingWrap: React.FC<IProps> = ({ loading, delay = 200, loadingContent, normalContent }) => {
|
||||
const timer = useRef<ReturnType<typeof setTimeout>>(null);
|
||||
const [showLoading, toggleShowLoading] = useToggle(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue