提交 95fee5b19dd576d6a7d02bc0ca7fd9a15adcb053

作者 愚道
1 个父辈 6b533be7

add antd

1 export default { 1 export default {
2 plugins: [ 2 plugins: [
3 ['umi-plugin-block-dev', {}], 3 ['umi-plugin-block-dev', {}],
  4 + ['umi-plugin-react', {
  5 + antd: true,
  6 + }],
4 ], 7 ],
5 } 8 }
@@ -16,7 +16,8 @@ @@ -16,7 +16,8 @@
16 }, 16 },
17 "devDependencies": { 17 "devDependencies": {
18 "umi": "^2.0.0", 18 "umi": "^2.0.0",
19 - "umi-plugin-block-dev": "^1.0.0" 19 + "umi-plugin-block-dev": "^1.0.0",
  20 + "umi-plugin-react": "^1.2.3"
20 }, 21 },
21 "author": "yutingzhao1991 <yutingzhao1991@sina.com>", 22 "author": "yutingzhao1991 <yutingzhao1991@sina.com>",
22 "license": "ISC" 23 "license": "ISC"
1 import { getText } from '@/utils/helper'; 1 import { getText } from '@/utils/helper';
2 import styles from './index.less'; 2 import styles from './index.less';
  3 +import React from 'react';
  4 +import { Button } from 'antd';
3 5
4 export default () => { 6 export default () => {
5 - return <div className={styles.container}>{getText()}</div> 7 + return <Button className={styles.container}>{getText()}</Button>
6 } 8 }
注册登录 后发表评论