From b5dac622fe34524aa32d0e08e055fa004b805e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=BB=BA=E5=9B=BD?= Date: Fri, 12 Jan 2024 16:28:19 +0800 Subject: [PATCH] imporve(desgin): Empty design restoration --- .../src/empty/demo/customize-icon-desc.tsx | 7 +++- .../src/empty/demo/empty-guide-page.tsx | 12 +++---- packages/design/src/empty/demo/empty-page.tsx | 1 - .../design/src/empty/icon/WellcomeIcon.tsx | 4 +-- packages/design/src/empty/index.md | 8 +++++ packages/design/src/empty/index.tsx | 35 ++++++++++++------- packages/design/src/empty/style/index.ts | 5 +-- packages/ui/src/Password/index.tsx | 16 ++++++++- 8 files changed, 61 insertions(+), 27 deletions(-) diff --git a/packages/design/src/empty/demo/customize-icon-desc.tsx b/packages/design/src/empty/demo/customize-icon-desc.tsx index 3ac1f6fcb..449d6095b 100644 --- a/packages/design/src/empty/demo/customize-icon-desc.tsx +++ b/packages/design/src/empty/demo/customize-icon-desc.tsx @@ -2,5 +2,10 @@ import React from 'react'; import { Empty } from '@oceanbase/design'; import { GithubOutlined } from '@oceanbase/icons'; export default () => { - return } description="这是一段描述文字" />; + return ( + } + description="这是一段描述文字" + /> + ); }; diff --git a/packages/design/src/empty/demo/empty-guide-page.tsx b/packages/design/src/empty/demo/empty-guide-page.tsx index 9000345ae..8d704b054 100644 --- a/packages/design/src/empty/demo/empty-guide-page.tsx +++ b/packages/design/src/empty/demo/empty-guide-page.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Empty, Button, Steps } from '@oceanbase/design'; +import { Empty, Button } from '@oceanbase/design'; import EmptyIcon from '../icon/EmptyIcon'; export default () => { @@ -19,17 +19,13 @@ export default () => { }, { title: '第四步', - description, + description: + 'This is a description.This is a description.This is a description.This is a description.This is a description.', }, ]; return ( - } - title="Your description title" - description={} - > + } title="Your description title" steps={steps}> ); diff --git a/packages/design/src/empty/demo/empty-page.tsx b/packages/design/src/empty/demo/empty-page.tsx index c2114ac9a..5fcbc110f 100644 --- a/packages/design/src/empty/demo/empty-page.tsx +++ b/packages/design/src/empty/demo/empty-page.tsx @@ -47,7 +47,6 @@ export default () => { mode="page" title="Your description title" description="Your description title content" - // style={{ height: 500, marginTop: 24 }} >