Skip to content

Commit 9ad8da6

Browse files
author
谢明
committed
feat: 新增antdv3.9.2组件
1 parent d1f2957 commit 9ad8da6

File tree

8 files changed

+1569
-11
lines changed

8 files changed

+1569
-11
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Next.js是服务端渲染呈现的React应用程序的简约框架,这个项目
1818
+ Express v4.16.3
1919
+ React v16.4.2
2020
+ next-routes
21+
+ antd v3.9.2
2122

2223
## 功能
2324

components/HomePage/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import cowsay from 'cowsay-browser';
33
import styles from './index.less';
44
import { Router } from '../../routers';
55
import { observer, inject } from 'mobx-react';
6+
import { Button } from 'antd';
67

78
function HomePage({ homeStore }) {
89
return (
910
<React.Fragment>
1011
<h2 className={styles.title}>Hello World!{homeStore.name}</h2>
11-
<p className={styles.click} onClick={() => {Router.pushRoute('/demo/455')}}>动态路由</p>
12-
<p className={styles.click} onClick={() => {Router.pushRoute('/nested_router')}}>嵌套路由</p>
12+
<Button type="primary" onClick={() => {Router.pushRoute('/demo/455')}}>动态路由</Button>
13+
&nbsp;&nbsp;
14+
<Button type="primary" onClick={() => {Router.pushRoute('/nested_router')}}>嵌套路由</Button>
1315
<pre>
1416
{cowsay.say({ text: 'hi there!' })}
1517
</pre>

0 commit comments

Comments
 (0)