|
|
|
@ -2,22 +2,17 @@ import * as React from "react"; |
|
|
|
import { connect, Dispatch } from "react-redux"; |
|
|
|
import { StMainView, StAppWithMainView } from "."; |
|
|
|
import { Grid, Row, Col, Table, ButtonToolbar, Button, Panel, FormControl, Checkbox } from "react-bootstrap"; |
|
|
|
import { Led } from "mammoth/ui/led"; |
|
|
|
|
|
|
|
interface Props { }; |
|
|
|
|
|
|
|
interface Callbacks { }; |
|
|
|
|
|
|
|
function mainView(props: Props & Callbacks) { |
|
|
|
const weightPanel = { |
|
|
|
color: "#ff4300", |
|
|
|
backgroundColor: "black", |
|
|
|
fontSize: "7rem", |
|
|
|
fontFamily: "\"7bar\"", |
|
|
|
}; |
|
|
|
return <Grid> |
|
|
|
<Row style={{ height: "calc(20vh - 50px)" }}> |
|
|
|
<Row style={{ height: "20vh" }}> |
|
|
|
<Col lg={3}> |
|
|
|
<div style={weightPanel}>0.00</div> |
|
|
|
<Led text="0.00" /> |
|
|
|
<ButtonToolbar> |
|
|
|
<Button>启用称重</Button> |
|
|
|
<Button disabled>停止称重</Button> |
|
|
|
@ -43,8 +38,8 @@ function mainView(props: Props & Callbacks) { |
|
|
|
</Row> |
|
|
|
<Row> |
|
|
|
<Col lg={8}> |
|
|
|
<Row> |
|
|
|
<Panel style={{ height: "40vh" }} header="烫褪"> |
|
|
|
<Row style={{ height: "40vh" }}> |
|
|
|
<Panel header="烫褪"> |
|
|
|
<Col lg={6} > |
|
|
|
<Table > |
|
|
|
<thead> |
|
|
|
@ -66,8 +61,8 @@ function mainView(props: Props & Callbacks) { |
|
|
|
</Col> |
|
|
|
</Panel> |
|
|
|
</Row> |
|
|
|
<Row> |
|
|
|
<Panel style={{ height: "40vh" }} header="毛剥"> |
|
|
|
<Row style={{ height: "40vh" }} > |
|
|
|
<Panel header="毛剥"> |
|
|
|
<Col lg={6}> |
|
|
|
<Table> |
|
|
|
<thead> |
|
|
|
@ -90,8 +85,8 @@ function mainView(props: Props & Callbacks) { |
|
|
|
</Panel> |
|
|
|
</Row> |
|
|
|
</Col> |
|
|
|
<Col lg={4}> |
|
|
|
<Panel style={{ height: "calc(80vh + 20px)" }} header="记录"> |
|
|
|
<Col lg={4} style={{ height: "80vh" }} > |
|
|
|
<Panel header="记录"> |
|
|
|
<Table> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
|