diff --git a/package.json b/package.json index f5e2e91b..7a905897 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "analyze": "cross-env ANALYZE=1 umi build", "build": "umi build", + "ui":"umi ui", "deploy": "cross-env ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION=site npm run site && npm run gh-pages", "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", diff --git a/src/pages/Welcome.tsx b/src/pages/Welcome.tsx index c8aad33c..52c8549e 100644 --- a/src/pages/Welcome.tsx +++ b/src/pages/Welcome.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Card, Typography } from 'antd'; +import { Card, Typography, Alert } from 'antd'; import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { FormattedMessage } from 'umi-plugin-react/locale'; @@ -20,6 +20,16 @@ const CodePreview: React.FC<{}> = ({ children }) => ( export default (): React.ReactNode => ( +