diff --git a/components/Icon/PrintIcon/index.d.ts b/components/Icon/PrintIcon/index.d.ts new file mode 100644 index 0000000..c63b031 --- /dev/null +++ b/components/Icon/PrintIcon/index.d.ts @@ -0,0 +1,6 @@ +import type { AntdIconProps } from "@ant-design/icons/lib/components/AntdIcon"; +import type { FC } from "react"; + +declare const PrintIcon: FC; + +export default PrintIcon; diff --git a/components/Icon/PrintIcon/index.js b/components/Icon/PrintIcon/index.js new file mode 100644 index 0000000..e575618 --- /dev/null +++ b/components/Icon/PrintIcon/index.js @@ -0,0 +1,9 @@ +import { PrinterOutlined } from "@ant-design/icons"; + +const PrintIcon = props => ( + +); + +PrintIcon.displayName = "PrintIcon"; + +export default PrintIcon; diff --git a/components/SelectTree/Department/Gwj/index.js b/components/SelectTree/Department/Gwj/index.js index f327f62..cc03b45 100644 --- a/components/SelectTree/Department/Gwj/index.js +++ b/components/SelectTree/Department/Gwj/index.js @@ -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: sss, id: "0-0-1-0" }], - }, - ], - }, - ]); + const [treeData, setTreeData] = useState([]); const getData = async () => { const { data } = await request("/basic-info/department/listTree", "post", params);