Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
b051c59e9e | |||
653fc7b09d | |||
620154793b |
15
README.md
15
README.md
@@ -1,15 +0,0 @@
|
|||||||
# umi project
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
Install dependencies,
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ yarn
|
|
||||||
```
|
|
||||||
|
|
||||||
Start the dev server,
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ yarn start
|
|
||||||
```
|
|
||||||
|
BIN
public/user.jpg
Normal file
BIN
public/user.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/user.jpg
Normal file
BIN
src/assets/user.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
13
src/components/Box.tsx
Normal file
13
src/components/Box.tsx
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import {useState} from "react";
|
||||||
|
import { Button } from 'antd'
|
||||||
|
export function BoxDiv(){
|
||||||
|
let [number, setNumber] = useState(0)
|
||||||
|
function clickHandler(){
|
||||||
|
setNumber(number+1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (<div>
|
||||||
|
<h1>Box-{number}</h1>
|
||||||
|
<Button onClick={ clickHandler }>+</Button>
|
||||||
|
</div>)
|
||||||
|
}
|
@@ -1,14 +1,12 @@
|
|||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
import { Button } from 'antd'
|
import { Button } from 'antd'
|
||||||
import { Button as ButtonMobileV2 } from 'antd-mobile-v2'
|
import { BoxDiv } from '@/components/Box'
|
||||||
import { Button as ButtonMobileV5 } from 'antd-mobile'
|
|
||||||
export default function IndexPage() {
|
export default function IndexPage() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1 className={styles.title}>Page index</h1>
|
<h1 className={styles.title}>Page index</h1>
|
||||||
<Button type={"primary"}>Click</Button>
|
<Button type={"primary"}>Click</Button>
|
||||||
<ButtonMobileV2>Click</ButtonMobileV2>
|
<BoxDiv></BoxDiv>
|
||||||
<ButtonMobileV5>Click</ButtonMobileV5>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user