From bfc43ca0e4683c1c0322a6cad5d5be2bc07decc3 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 24 七月 2025 15:00:44 +0800 Subject: [PATCH] 新增调拔单功能 盘点功能优化 --- rsf-admin/src/page/settings/index.jsx | 34 +++++++++++++++------------------- 1 files changed, 15 insertions(+), 19 deletions(-) diff --git a/rsf-admin/src/page/settings/index.jsx b/rsf-admin/src/page/settings/index.jsx index a5bde35..ff3f665 100644 --- a/rsf-admin/src/page/settings/index.jsx +++ b/rsf-admin/src/page/settings/index.jsx @@ -1,25 +1,11 @@ import React, { useState, useRef, useEffect, useMemo } from "react"; import { useNavigate } from 'react-router-dom'; import { - Edit, - SimpleForm, - FormDataConsumer, useTranslate, - TextInput, - NumberInput, - BooleanInput, - SaveButton, - SelectInput, - Toolbar, - Labeled, - NumberField, - required, - useRecordContext, - useTheme, useAuthProvider, } from 'react-admin'; import { useWatch, useFormContext } from "react-hook-form"; -import { Stack, Grid, Box, Typography, Card, CardContent, Tabs, Tab } from '@mui/material'; +import { Stack, Grid, Box, Typography, Card, CardContent, Tabs, Tab, useTheme } from '@mui/material'; import * as Common from '@/utils/common'; import BaseSettings from "./BaseSettings"; import SecuritySettings from "./SecuritySettings" @@ -56,9 +42,10 @@ flexGrow: 1, bgcolor: 'background.paper', display: 'flex', - // height: 224, - border: `1px solid #${theme[0] === 'light' ? 'ddd' : '333'}`, - borderRadius: 2 + border: `1px solid #${theme.palette.mode === 'light' ? 'ddd' : '333'}`, + borderRadius: 2, + pt: 1, + pb: 1, }} > <Tabs @@ -68,8 +55,17 @@ onChange={(event, newValue) => { setValue(newValue); }} - indicatorColor="secondary" + indicatorColor="primary" textColor="inherit" + TabIndicatorProps={{ + style: { + left: 0, + right: 'auto', + width: '5px', + borderRadius: '2px', + opacity: .8, + } + }} sx={{ borderRight: 1, borderColor: 'divider', -- Gitblit v1.9.1