Files
cunkebao_v3/Cunkebao/src/pages/pc/ckbox/test.tsx
2025-08-12 09:27:50 +08:00

225 lines
7.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from "react";
import { Card, Typography, Space, Button, Tag } from "antd";
import {
MessageOutlined,
UserOutlined,
TeamOutlined,
PhoneOutlined,
VideoCameraOutlined,
} from "@ant-design/icons";
const { Title, Paragraph } = Typography;
const CkboxTestPage: React.FC = () => {
return (
<div style={{ padding: "24px", maxWidth: "1200px", margin: "0 auto" }}>
<Title level={2}>
<MessageOutlined style={{ marginRight: "8px" }} />
</Title>
<Paragraph>
</Paragraph>
<Space direction="vertical" size="large" style={{ width: "100%" }}>
{/* 功能特性 */}
<Card title="功能特性" size="small">
<Space wrap>
<Tag color="blue" icon={<MessageOutlined />}>
</Tag>
<Tag color="green" icon={<UserOutlined />}>
</Tag>
<Tag color="orange" icon={<TeamOutlined />}>
</Tag>
<Tag color="purple" icon={<PhoneOutlined />}>
</Tag>
<Tag color="red" icon={<VideoCameraOutlined />}>
</Tag>
</Space>
</Card>
{/* 界面布局 */}
<Card title="界面布局" size="small">
<div
style={{
border: "1px solid #d9d9d9",
borderRadius: "8px",
padding: "16px",
backgroundColor: "#fafafa",
}}
>
<div style={{ display: "flex", gap: "16px", height: "400px" }}>
{/* 左侧边栏 */}
<div
style={{
width: "300px",
backgroundColor: "#fff",
border: "1px solid #e8e8e8",
borderRadius: "8px",
padding: "16px",
}}
>
<div style={{ marginBottom: "16px" }}>
<strong></strong>
</div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
</div>
{/* 主聊天区域 */}
<div
style={{
flex: 1,
backgroundColor: "#fff",
border: "1px solid #e8e8e8",
borderRadius: "8px",
display: "flex",
flexDirection: "column",
}}
>
{/* 聊天头部 */}
<div
style={{
padding: "16px",
borderBottom: "1px solid #e8e8e8",
backgroundColor: "#fafafa",
}}
>
<strong></strong>
</div>
{/* 聊天内容 */}
<div
style={{
flex: 1,
padding: "16px",
backgroundColor: "#f5f5f5",
}}
>
<strong></strong>
<div
style={{
marginTop: "16px",
fontSize: "12px",
color: "#666",
}}
>
<br />
<br />
<br /> 线
</div>
</div>
{/* 输入区域 */}
<div
style={{
padding: "16px",
borderTop: "1px solid #e8e8e8",
backgroundColor: "#fafafa",
}}
>
<strong></strong>
</div>
</div>
{/* 右侧个人资料 */}
<div
style={{
width: "280px",
backgroundColor: "#fff",
border: "1px solid #e8e8e8",
borderRadius: "8px",
padding: "16px",
}}
>
<div style={{ marginBottom: "16px" }}>
<strong></strong>
</div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
<div style={{ marginBottom: "8px" }}> </div>
</div>
</div>
</div>
</Card>
{/* 使用说明 */}
<Card title="使用说明" size="small">
<Paragraph>
<strong>1. </strong>
</Paragraph>
<Paragraph>
<strong>2. </strong>
Enter键或点击发送按钮发送消息
</Paragraph>
<Paragraph>
<strong>3. </strong>
</Paragraph>
<Paragraph>
<strong>4. </strong>
使
</Paragraph>
<Paragraph>
<strong>5. </strong>
</Paragraph>
</Card>
{/* 技术特点 */}
<Card title="技术特点" size="small">
<Space direction="vertical" style={{ width: "100%" }}>
<div>
<strong> React 18 + TypeScript</strong>
</div>
<div>
<strong> Ant Design</strong>
UI组件库
</div>
<div>
<strong> SCSS Modules</strong>
</div>
<div>
<strong> </strong>
</div>
<div>
<strong> </strong>
便
</div>
</Space>
</Card>
{/* 操作按钮 */}
<Card title="操作" size="small">
<Space>
<Button type="primary" icon={<MessageOutlined />}>
</Button>
<Button icon={<UserOutlined />}></Button>
<Button icon={<TeamOutlined />}></Button>
</Space>
</Card>
</Space>
</div>
);
};
export default CkboxTestPage;