-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccd7c55
commit 59d53ca
Showing
8 changed files
with
189 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,62 @@ | ||
import ReactECharts from 'echarts-for-react'; | ||
import {Col, Row} from "antd"; | ||
import React from "react"; | ||
import ReactECharts from "echarts-for-react"; | ||
import { Col, Row } from "antd"; | ||
|
||
const option = { | ||
xAxis: { | ||
type: 'category', | ||
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] | ||
xAxis: { | ||
type: "category", | ||
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], | ||
}, | ||
yAxis: { | ||
type: "value", | ||
}, | ||
series: [ | ||
{ | ||
data: [150, 230, 224, 218, 135, 147, 260], | ||
type: "line", | ||
}, | ||
yAxis: { | ||
type: 'value' | ||
}, | ||
series: [ | ||
{ | ||
data: [150, 230, 224, 218, 135, 147, 260], | ||
type: 'line' | ||
} | ||
] | ||
], | ||
}; | ||
|
||
function Chart() { | ||
return ( | ||
<ReactECharts | ||
option={option} | ||
notMerge={true} | ||
lazyUpdate={true} | ||
/> | ||
) | ||
return <ReactECharts option={option} notMerge={true} lazyUpdate={true} />; | ||
} | ||
|
||
export default function Charts() { | ||
return ( | ||
<div> | ||
<Row> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
<Col span={8}> | ||
<Chart/> | ||
</Col> | ||
</Row> | ||
</div> | ||
) | ||
return ( | ||
<div> | ||
<Row> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
<Col span={8}> | ||
<Chart /> | ||
</Col> | ||
</Row> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,29 @@ | ||
import React from "react"; | ||
import {Menu, Layout} from "antd"; | ||
import { Menu, Layout } from "antd"; | ||
|
||
const {Header} = Layout; | ||
const { Header } = Layout; | ||
import SearchBar from "../SearchBar"; | ||
|
||
const items = [ | ||
{ | ||
key: "home", | ||
title: "首页", | ||
label: ( | ||
<a href="/">首页</a> | ||
), | ||
}, | ||
{ | ||
key: "home", | ||
title: "首页", | ||
label: <a href="/">首页</a>, | ||
}, | ||
]; | ||
|
||
export default function Navbar() { | ||
return ( | ||
<Header | ||
className="flex justify-between items-center bg-gray-800" | ||
> | ||
<div className="text-white text-xl">5piderMan</div> | ||
<div className="flex justify-between items-center"> | ||
<Menu | ||
className="bg-transparent" | ||
theme="dark" | ||
mode="horizontal" | ||
items={items} | ||
/> | ||
<SearchBar className="w-12"/> | ||
</div> | ||
</Header> | ||
) | ||
} | ||
return ( | ||
<Header className="flex justify-between items-center bg-gray-800"> | ||
<div className="text-white text-xl">5piderMan</div> | ||
<div className="flex justify-between items-center"> | ||
<Menu | ||
className="bg-transparent" | ||
theme="dark" | ||
mode="horizontal" | ||
items={items} | ||
/> | ||
<SearchBar className="w-12" /> | ||
</div> | ||
</Header> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
import React from 'react'; | ||
import {Input} from 'antd'; | ||
import { Input } from "antd"; | ||
|
||
const {Search} = Input; | ||
const { Search } = Input; | ||
|
||
const onSearch = (value, _e, info) => console.log(info?.source, value); | ||
|
||
export default function SearchBar() { | ||
return ( | ||
<Search | ||
placeholder="输入以搜索岗位" | ||
onSearch={onSearch} | ||
/> | ||
); | ||
} | ||
return <Search placeholder="输入以搜索岗位" onSearch={onSearch} />; | ||
} |