From efe0b5b0e0b73a4f263068b7d24f1c45a0c4e8ba Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Tue, 4 Nov 2025 17:41:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EPrintIcon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Icon/PrintIcon/index.d.ts | 6 ++++ components/Icon/PrintIcon/index.js | 9 ++++++ components/SelectTree/Department/Gwj/index.js | 28 +------------------ 3 files changed, 16 insertions(+), 27 deletions(-) create mode 100644 components/Icon/PrintIcon/index.d.ts create mode 100644 components/Icon/PrintIcon/index.js 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);