新增PrintIcon
parent
74a5c96edd
commit
efe0b5b0e0
|
|
@ -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;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import { PrinterOutlined } from "@ant-design/icons";
|
||||
|
||||
const PrintIcon = props => (
|
||||
<PrinterOutlined {...props} />
|
||||
);
|
||||
|
||||
PrintIcon.displayName = "PrintIcon";
|
||||
|
||||
export default PrintIcon;
|
||||
|
|
@ -11,33 +11,7 @@ function DepartmentSelectTree(props) {
|
|||
...restProps
|
||||
} = props;
|
||||
|
||||
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 [treeData, setTreeData] = useState([]);
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await request("/basic-info/department/listTree", "post", params);
|
||||
|
|
|
|||
Loading…
Reference in New Issue