From a31d6c53fbd4f6af0cd2f0e6c999dbb4e3bec320 Mon Sep 17 00:00:00 2001 From: Deepankar Date: Fri, 2 Apr 2021 16:44:12 +0530 Subject: [PATCH] feat(loading): apply width & height props (#500) * feat(loading): apply width & height props * test(loading): test case added & updating snapshots * fix(loading): add a string type for size prop test(loading): update test case & snapshots * feat(loading): support custom the ratio of spaces * docs(loading): append size and spaceRatio test(loading): update snapshots Co-authored-by: unix --- .../__snapshots__/index.test.tsx.snap | 56 +++++----- components/loading/__tests__/index.test.tsx | 4 +- components/loading/loading.tsx | 25 +++-- pages/en-us/components/loading.mdx | 100 +++++++++++------- pages/zh-cn/components/loading.mdx | 98 ++++++++++------- 5 files changed, 169 insertions(+), 114 deletions(-) diff --git a/components/loading/__tests__/__snapshots__/index.test.tsx.snap b/components/loading/__tests__/__snapshots__/index.test.tsx.snap index 555dd6687..98a2ca6dd 100644 --- a/components/loading/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/loading/__tests__/__snapshots__/index.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Loading should render correctly 1`] = ` -"