feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -16,6 +16,15 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import {
|
||||
ChevronRight as ActionChevronRight,
|
||||
ChevronDown as ActionChevronDown,
|
||||
Users as ActionUsers,
|
||||
Plus as ActionPlus,
|
||||
Pencil as ActionPencil,
|
||||
Trash2 as ActionTrash2,
|
||||
LayoutGrid as ActionLayoutGrid,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, {
|
||||
memo,
|
||||
useCallback,
|
||||
@@ -50,17 +59,7 @@ import {
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Plus,
|
||||
Pencil,
|
||||
Trash2,
|
||||
LayoutGrid,
|
||||
Network,
|
||||
Building2,
|
||||
ChevronDown,
|
||||
ChevronRight,
|
||||
Users,
|
||||
} from 'lucide-react';
|
||||
import { Network, Building2 } from 'lucide-react';
|
||||
import OrgScopedLimitButtons from './OrgScopedLimitButtons';
|
||||
import { buildDeptFullNameMap } from './deptTree';
|
||||
import { renderQuota } from '../../../helpers/render';
|
||||
@@ -188,7 +187,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
>
|
||||
<button
|
||||
type='button'
|
||||
className='nodrag inline-flex h-5 items-center gap-0.5 rounded-md px-1 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
|
||||
className='app-action-button nodrag inline-flex h-5 items-center gap-0.5 rounded-md px-1 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onToggleCollapse(dept.id);
|
||||
@@ -197,11 +196,11 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
>
|
||||
{collapsed ? (
|
||||
<>
|
||||
<ChevronRight size={13} />
|
||||
<ActionChevronRight size={13} />
|
||||
<span className='font-medium'>+{hiddenCount}</span>
|
||||
</>
|
||||
) : (
|
||||
<ChevronDown size={13} />
|
||||
<ActionChevronDown size={13} />
|
||||
)}
|
||||
</button>
|
||||
</Tooltip>
|
||||
@@ -218,14 +217,14 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
<Tooltip content={t('查看直属成员')}>
|
||||
<button
|
||||
type='button'
|
||||
className='nodrag inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
|
||||
className='app-action-button nodrag inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-gray-500 transition-colors hover:bg-brand/10 hover:text-brand dark:text-gray-400'
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onShowMembers(dept);
|
||||
}}
|
||||
onDoubleClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
<Users size={11} />
|
||||
<ActionUsers size={11} />
|
||||
{memberCount}
|
||||
</button>
|
||||
</Tooltip>
|
||||
@@ -299,7 +298,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
size='small'
|
||||
theme='borderless'
|
||||
type='tertiary'
|
||||
icon={<Plus size={14} />}
|
||||
icon={<ActionPlus size={14} />}
|
||||
onClick={() => onAddChild(dept)}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -309,7 +308,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
size='small'
|
||||
theme='borderless'
|
||||
type='tertiary'
|
||||
icon={<Pencil size={14} />}
|
||||
icon={<ActionPencil size={14} />}
|
||||
onClick={() => onEdit(dept)}
|
||||
/>
|
||||
</Tooltip>
|
||||
@@ -322,7 +321,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
size='small'
|
||||
theme='borderless'
|
||||
type='danger'
|
||||
icon={<Trash2 size={14} />}
|
||||
icon={<ActionTrash2 size={14} />}
|
||||
/>
|
||||
</Popconfirm>
|
||||
</div>
|
||||
@@ -727,7 +726,7 @@ const FlowInner = ({
|
||||
<Button
|
||||
size='small'
|
||||
theme='light'
|
||||
icon={<LayoutGrid size={13} />}
|
||||
icon={<ActionLayoutGrid size={13} />}
|
||||
onClick={relayout}
|
||||
>
|
||||
{t('整理布局')}
|
||||
|
||||
Reference in New Issue
Block a user