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 }} >