diff --git a/.dumi/pages/index/index/ComponentsList.tsx b/.dumi/pages/index/index/ComponentsList.tsx
index 7b1ff28016..4f5f6b5a81 100644
--- a/.dumi/pages/index/index/ComponentsList.tsx
+++ b/.dumi/pages/index/index/ComponentsList.tsx
@@ -1,16 +1,28 @@
import useSiteToken from '../../../hooks/useSiteToken';
import React from 'react';
-import { Button, Space, Typography, Tag, TimePicker } from 'antd';
+import { Button, Space, Typography, Tag, TimePicker, Alert, Modal } from 'antd';
import dayjs from 'dayjs';
import { css } from '@emotion/react';
const PLACEHOLDER_WIDTH = 400;
+const SAMPLE_CONTENT =
+ 'Ant Design 5.0 support dynamic theme switching. Which helps developer to build flexible web application.';
+
const COMPONENTS: {
title: React.ReactNode;
type: 'new' | 'update';
node: React.ReactNode;
}[] = [
+ {
+ title: 'Modal',
+ type: 'update',
+ node: (
+
+ {SAMPLE_CONTENT}
+
+ ),
+ },
{
title: 'Tour',
type: 'new',
@@ -23,23 +35,35 @@ const COMPONENTS: {
),
},
+ // {
+ // title: 'DatePicker',
+ // type: 'update',
+ // node: (
+ //
+ // ),
+ // },
+ // {
+ // title: 'Steps',
+ // type: 'update',
+ // node: ,
+ // },
+ // {
+ // title: 'Progress',
+ // type: 'update',
+ // node: ,
+ // },
{
- title: 'DatePicker',
+ title: 'Alert',
type: 'update',
node: (
-
+
),
},
- {
- title: 'Steps',
- type: 'update',
- node: ,
- },
- {
- title: 'Progress',
- type: 'update',
- node: ,
- },
];
const useStyle = () => {
@@ -53,6 +77,13 @@ const useStyle = () => {
flex: none;
overflow: hidden;
position: relative;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+
+ > * {
+ flex: none;
+ }
`,
cardCircle: css`
position: absolute;
@@ -96,7 +127,16 @@ export default function ComponentsList() {
{tagText}
-
{node}
+
+ {node}
+
);
})}