|
@@ -1,24 +1,29 @@
|
|
|
import { Link } from "react-router-dom";
|
|
import { Link } from "react-router-dom";
|
|
|
-import { Col, Row,Input, Layout } from 'antd';
|
|
|
|
|
|
|
+import { Col, Row, Input, Layout } from "antd";
|
|
|
|
|
+
|
|
|
|
|
+import img_banner from "../../assets/studio/images/wikipali_banner.svg";
|
|
|
|
|
+
|
|
|
const { Search } = Input;
|
|
const { Search } = Input;
|
|
|
const { Header } = Layout;
|
|
const { Header } = Layout;
|
|
|
|
|
+
|
|
|
const onSearch = (value: string) => console.log(value);
|
|
const onSearch = (value: string) => console.log(value);
|
|
|
|
|
|
|
|
const Widget = () => {
|
|
const Widget = () => {
|
|
|
- return (
|
|
|
|
|
- <Header className="header">
|
|
|
|
|
- <Row>
|
|
|
|
|
- <Col flex="100px">
|
|
|
|
|
- <Link to="/">studio</Link>
|
|
|
|
|
- </Col>
|
|
|
|
|
- <Col flex="auto">
|
|
|
|
|
- <Search placeholder="input search text" onSearch={onSearch} style={{ width: 200 }} />
|
|
|
|
|
- </Col>
|
|
|
|
|
- <Col flex="200px">登录信息</Col>
|
|
|
|
|
- </Row>
|
|
|
|
|
- </Header>
|
|
|
|
|
-
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ return (
|
|
|
|
|
+ <Header className="header">
|
|
|
|
|
+ <Row>
|
|
|
|
|
+ <Col flex="100px">
|
|
|
|
|
+ <Link to="/">
|
|
|
|
|
+ <img alt="code" src={img_banner} />
|
|
|
|
|
+ </Link>
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col flex="auto">
|
|
|
|
|
+ <Search placeholder="input search text" onSearch={onSearch} style={{ width: 200 }} />
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col flex="200px">登录信息</Col>
|
|
|
|
|
+ </Row>
|
|
|
|
|
+ </Header>
|
|
|
|
|
+ );
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default Widget;
|
|
export default Widget;
|