Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
620154793b | |||
e9557c1ef3 |
@@ -20,4 +20,9 @@ export default defineConfig({
|
||||
favicon: '/favicon.ico',// 网站图标
|
||||
dynamicImport: {}, // 按需加载
|
||||
mountElementId: 'root', // 指定 reactapp 渲染到元素的根元素 id
|
||||
|
||||
// 主题
|
||||
theme: {
|
||||
'@primary-color': 'red',
|
||||
},
|
||||
});
|
||||
|
@@ -28,7 +28,7 @@
|
||||
"devDependencies": {
|
||||
"@types/react": "^17.0.0",
|
||||
"@types/react-dom": "^17.0.0",
|
||||
"@umijs/preset-react": "1.x",
|
||||
"@umijs/preset-react": "latest",
|
||||
"@umijs/test": "^3.5.41",
|
||||
"lint-staged": "^10.0.7",
|
||||
"prettier": "^2.2.0",
|
||||
|
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 |
@@ -1,9 +1,16 @@
|
||||
import styles from './index.less';
|
||||
|
||||
import { Button } from 'antd'
|
||||
import { Button as ButtonMobileV2 } from 'antd-mobile-v2'
|
||||
import { Button as ButtonMobileV5 } from 'antd-mobile'
|
||||
export default function IndexPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className={styles.title}>Page index</h1>
|
||||
<Button type={"primary"}>Click</Button>
|
||||
<ButtonMobileV2>Click</ButtonMobileV2>
|
||||
<ButtonMobileV5>Click</ButtonMobileV5>
|
||||
<img src={ require('@/assets/user.jpg') } alt="" draggable={false} />
|
||||
<img src="/user.jpg" alt="" draggable={false}/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user