4 changed files with 281 additions and 69 deletions
@ -1,4 +1,4 @@ |
|||
// 将设置放入此文件中以覆盖默认值和用户设置。 |
|||
{ |
|||
"editor.fontSize": 16, |
|||
"editor.fontSize": 12, |
|||
} |
@ -0,0 +1,74 @@ |
|||
import React, { useState, useEffect } from "react"; |
|||
import { SideSheet, Tabs, TabPane } from "@douyinfe/semi-ui"; |
|||
|
|||
function SideSheets(props) { |
|||
const { dispatch, actions, user, loading, visible, close, SETUPS } = props; |
|||
const [checkeds, setCheckeds] = useState([]); |
|||
const [check, setCheck] = useState([]); |
|||
const list = [ |
|||
{ name: "1111", a: "a", b: "B", c: "C", d: "C" }, |
|||
{ name: "2222", a: "a", b: "B", c: "C", d: "C" }, |
|||
{ name: "3333", a: "a", b: "B", c: "C", d: "C" }, |
|||
{ name: "4444", a: "a", b: "B", c: "C", d: "C" }, |
|||
]; |
|||
const styles = { |
|||
width: 180, |
|||
textAlign: "center", |
|||
background: "#FFFFFF", |
|||
padding: "12px 17px", |
|||
margin: "30px 0 0 10px", |
|||
lineHeight: "20px", |
|||
|
|||
}; |
|||
|
|||
useEffect(() => {}, []); |
|||
|
|||
return ( |
|||
<SideSheet |
|||
visible={visible} |
|||
title="智慧设备NVR" |
|||
style={{ background: "#F9FBFF" }} |
|||
size="large" |
|||
onCancel={() => { |
|||
close(); |
|||
}} |
|||
> |
|||
<Tabs type="line"> |
|||
<TabPane tab="项目信息" itemKey="1"> |
|||
{list.map((item) => { |
|||
return ( |
|||
<div |
|||
key={item.name} |
|||
style={{ |
|||
display: "inline-block", |
|||
width: 200, |
|||
margin: "12px 8px", |
|||
}} |
|||
> |
|||
<div |
|||
style={{ |
|||
lineHeight: "32px", |
|||
background: "#1859C1", |
|||
borderRadius: 3, |
|||
textAlign: "center", |
|||
}} |
|||
> |
|||
{item.name} |
|||
</div> |
|||
<div style={styles}>{item.a}</div> |
|||
<div style={styles}>{item.b}</div> |
|||
<div style={styles}>{item.c}</div> |
|||
<div style={styles}>{item.d}</div> |
|||
</div> |
|||
); |
|||
})} |
|||
</TabPane> |
|||
<TabPane tab="设备信息" itemKey="2"> |
|||
快速起步 |
|||
</TabPane> |
|||
</Tabs> |
|||
</SideSheet> |
|||
); |
|||
} |
|||
|
|||
export default SideSheets; |
Loading…
Reference in new issue