From fc3832c7a4a2b66811f322648ee37f74aee864bd Mon Sep 17 00:00:00 2001 From: lockiechen <290015551@qq.com> Date: Fri, 11 Nov 2022 21:23:14 +0800 Subject: [PATCH] docs(Loading): update demo #476 --- src/loading/_example/bar.jsx | 8 +- src/loading/_example/base.jsx | 18 +++- src/loading/_example/delay.jsx | 7 +- src/loading/_example/horz.jsx | 6 +- src/loading/_example/index.jsx | 126 ++++++-------------------- src/loading/_example/pure-text.jsx | 11 +-- src/loading/_example/size.jsx | 8 +- src/loading/_example/speed.jsx | 16 ++++ src/loading/_example/style/index.less | 30 +++++- src/loading/_example/vert.jsx | 6 +- 10 files changed, 114 insertions(+), 122 deletions(-) create mode 100644 src/loading/_example/speed.jsx diff --git a/src/loading/_example/bar.jsx b/src/loading/_example/bar.jsx index fb4e5b2c..6adb6810 100644 --- a/src/loading/_example/bar.jsx +++ b/src/loading/_example/bar.jsx @@ -26,14 +26,14 @@ export default function () { progressValue += 0.01; setProgress((pre) => pre + 0.01); }, 100); - }, [progress, timer]); + }, [timer]); return ( - <> +