Commit eef8d600 authored by 徐乐's avatar 徐乐

perf: 修改加载loading组件默认1s前不显示

parent b31a4917
...@@ -5,7 +5,7 @@ import { Spin } from 'antd'; ...@@ -5,7 +5,7 @@ import { Spin } from 'antd';
let timer = null; let timer = null;
const LoadBox = ({ const LoadBox = ({
delay, delay = 1000,
indicator, indicator,
size, size,
tip, tip,
...@@ -39,7 +39,7 @@ const LoadBox = ({ ...@@ -39,7 +39,7 @@ const LoadBox = ({
}; };
LoadBox.defaultProps = { LoadBox.defaultProps = {
spinning: true, spinning: true,
delay: 0, delay: 1000,
indicator: '', indicator: '',
size: 'default', size: 'default',
tip: '', tip: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment