|
@@ -0,0 +1,156 @@
|
|
|
|
+import {
|
|
|
|
+ Card,
|
|
|
|
+ Select,
|
|
|
|
+ InputNumber,
|
|
|
|
+ Button,
|
|
|
|
+ Switch,
|
|
|
|
+ Carousel,
|
|
|
|
+ Row,
|
|
|
|
+ Col,
|
|
|
|
+ Divider,
|
|
|
|
+ Tooltip,
|
|
|
|
+} from 'antd';
|
|
|
|
+import {
|
|
|
|
+ DeleteOutlined,
|
|
|
|
+ CopyOutlined,
|
|
|
|
+ SaveOutlined,
|
|
|
|
+ CameraOutlined,
|
|
|
|
+ CloseOutlined,
|
|
|
|
+} from '@ant-design/icons';
|
|
|
|
+
|
|
|
|
+const ContentAreaSmall = ({ className }: { className?: string }) => {
|
|
|
|
+ console.log('ContentAreaSmall component rendered');
|
|
|
|
+ console.log('ContentAreaSmall component rendered');
|
|
|
|
+ return (
|
|
|
|
+ <Carousel
|
|
|
|
+ autoplay={false}
|
|
|
|
+ effect="fade"
|
|
|
|
+ adaptiveHeight={true}
|
|
|
|
+ className={`w-full max-w-[800px] h-full ${className}`}
|
|
|
|
+ >
|
|
|
|
+ <div className="h-full">
|
|
|
|
+ <Card title="体位列表">体位列表</Card>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <Card title="体位详情">体位详情</Card>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <Row gutter={16} align="middle">
|
|
|
|
+ <Col span={9}>
|
|
|
|
+ <Select
|
|
|
|
+ placeholder="选择体型"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ >
|
|
|
|
+ <Select.Option value="体型1">体型1</Select.Option>
|
|
|
|
+ <Select.Option value="体型2">体型2</Select.Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={15}>
|
|
|
|
+ <Select
|
|
|
|
+ placeholder="选择工作位"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ >
|
|
|
|
+ <Select.Option value="工作位1">工作位1</Select.Option>
|
|
|
|
+ <Select.Option value="工作位2">工作位2</Select.Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </Col>
|
|
|
|
+ </Row>
|
|
|
|
+ <div>
|
|
|
|
+ <InputNumber
|
|
|
|
+ placeholder="mA"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ />
|
|
|
|
+ <InputNumber
|
|
|
|
+ placeholder="ms"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ />
|
|
|
|
+ <InputNumber
|
|
|
|
+ placeholder="mAs"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ />
|
|
|
|
+ <InputNumber
|
|
|
|
+ placeholder="KV"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ />
|
|
|
|
+ <InputNumber
|
|
|
|
+ placeholder="density"
|
|
|
|
+ style={{ width: '100%', marginBottom: 8 }}
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ <Row gutter={16} align="middle">
|
|
|
|
+ <Col span={12}>
|
|
|
|
+ <Select placeholder="选择曝光模式" style={{ width: '100%' }}>
|
|
|
|
+ <Select.Option value="mAs">mAs</Select.Option>
|
|
|
|
+ <Select.Option value="time">time</Select.Option>
|
|
|
|
+ </Select>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={9}>
|
|
|
|
+ <Switch
|
|
|
|
+ checkedChildren="开启AEC"
|
|
|
|
+ unCheckedChildren="关闭AEC"
|
|
|
|
+ defaultChecked
|
|
|
|
+ />
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={3}>
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
+ icon={<DeleteOutlined />}
|
|
|
|
+ title="重置参数"
|
|
|
|
+ />
|
|
|
|
+ </Col>
|
|
|
|
+ </Row>
|
|
|
|
+ <Divider />
|
|
|
|
+ <Row gutter={16} align="middle">
|
|
|
|
+ <Col span={4}>
|
|
|
|
+ <Tooltip title="删除选择的体位">
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
+ icon={<DeleteOutlined />}
|
|
|
|
+ />
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={4}>
|
|
|
|
+ <Tooltip title="复制选择的体位">
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
+ icon={<CopyOutlined />}
|
|
|
|
+ />
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={4}>
|
|
|
|
+ <Tooltip title="保存参数">
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
+ icon={<SaveOutlined />}
|
|
|
|
+ />
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={4}>
|
|
|
|
+ <Tooltip title="打开/关闭摄像头">
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
+ icon={<CameraOutlined />}
|
|
|
|
+ />
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </Col>
|
|
|
|
+ <Col span={4}>
|
|
|
|
+ <Tooltip title="拒绝">
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
+ icon={<CloseOutlined />}
|
|
|
|
+ />
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </Col>
|
|
|
|
+ </Row>
|
|
|
|
+ </div>
|
|
|
|
+ </Carousel>
|
|
|
|
+ );
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export default ContentAreaSmall;
|