From 8affe400fcc3b5c650d3f1b00b963c3970ddbdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Wed, 15 Mar 2023 10:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E3=80=81=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8B=96=E6=8B=BD=E5=9B=BE=E6=A0=87=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.less | 6 ++++++ src/pages/department/index.tsx | 14 +++++++++++++- src/pages/resource/resource-category/index.tsx | 14 +++++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/index.less b/src/index.less index d397acb..c18e44f 100644 --- a/src/index.less +++ b/src/index.less @@ -428,6 +428,12 @@ textarea.ant-input { opacity: 0.8; } } +.ant-tree-treenode { + position: relative; + .ant-tree-draggable-icon { + display: none; + } +} .form-column { width: 1px; diff --git a/src/pages/department/index.tsx b/src/pages/department/index.tsx index f3e8785..92dfdfc 100644 --- a/src/pages/department/index.tsx +++ b/src/pages/department/index.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { Button, Tree, Modal, message } from "antd"; +import { Button, Tree, Modal, message, Tooltip } from "antd"; import styles from "./index.module.less"; import { PlusOutlined, ExclamationCircleFilled } from "@ant-design/icons"; import { department } from "../../api/index"; @@ -72,6 +72,12 @@ export const DepartmentPage: React.FC = () => { title: (