Welcome.jsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import React from 'react'
  2. import { PageContainer } from '@ant-design/pro-layout'
  3. import { Card, Alert, Typography } from 'antd'
  4. import styles from './Welcome.less'
  5. const CodePreview = ({ children }) => (
  6. <pre className={styles.pre}>
  7. <code>
  8. <Typography.Text copyable>{children}</Typography.Text>
  9. </code>
  10. </pre>
  11. )
  12. export default () => (
  13. <PageContainer>
  14. <Card>
  15. <Alert
  16. message="更快更强的重型组件,已经发布。"
  17. type="success"
  18. showIcon
  19. banner
  20. style={{
  21. margin: -12,
  22. marginBottom: 24
  23. }}
  24. />
  25. <Typography.Text strong>
  26. 高级表格{' '}
  27. <a
  28. href="https://procomponents.ant.design/components/table"
  29. rel="noopener noreferrer"
  30. target="__blank"
  31. >
  32. 欢迎使用
  33. </a>
  34. </Typography.Text>
  35. <CodePreview>yarn add @ant-design/pro-table</CodePreview>
  36. <Typography.Text
  37. strong
  38. style={{
  39. marginBottom: 12
  40. }}
  41. >
  42. 高级布局{' '}
  43. <a
  44. href="https://procomponents.ant.design/components/layout"
  45. rel="noopener noreferrer"
  46. target="__blank"
  47. >
  48. 欢迎使用
  49. </a>
  50. </Typography.Text>
  51. <CodePreview>yarn add @ant-design/pro-layout</CodePreview>
  52. </Card>
  53. </PageContainer>
  54. )