新增PrintIcon

master
LiuJiaNan 2025-11-04 17:41:15 +08:00
parent 74a5c96edd
commit efe0b5b0e0
3 changed files with 16 additions and 27 deletions

6
components/Icon/PrintIcon/index.d.ts vendored Normal file
View File

@ -0,0 +1,6 @@
import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon";
import type { FC } from "react";
declare const PrintIcon: FC<AntdIconProps>;
export default PrintIcon;

View File

@ -0,0 +1,9 @@
import { PrinterOutlined } from "@ant-design/icons";
const PrintIcon = props => (
<PrinterOutlined {...props} />
);
PrintIcon.displayName = "PrintIcon";
export default PrintIcon;

View File

@ -11,33 +11,7 @@ function DepartmentSelectTree(props) {
...restProps ...restProps
} = props; } = props;
const [treeData, setTreeData] = useState([ const [treeData, setTreeData] = useState([]);
{
name: "parent 1",
id: "0-0",
childrenList: [
{
name: "parent 1-0",
id: "0-0-0",
childrenList: [
{
name: "leaf",
id: "0-0-0-0",
},
{
name: "leaf",
id: "0-0-0-1",
},
],
},
{
name: "parent 1-1",
id: "0-0-1",
childrenList: [{ name: <span style={{ color: "#1677ff" }}>sss</span>, id: "0-0-1-0" }],
},
],
},
]);
const getData = async () => { const getData = async () => {
const { data } = await request("/basic-info/department/listTree", "post", params); const { data } = await request("/basic-info/department/listTree", "post", params);