From 10761f3c66b5a5ebb1a852d2f9f4379bf29dfde3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 20 九月 2024 13:45:38 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/components/PulseSignal.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zy-acs-flow/src/page/components/PulseSignal.jsx b/zy-acs-flow/src/page/components/PulseSignal.jsx index b4a0750..1b98d49 100644 --- a/zy-acs-flow/src/page/components/PulseSignal.jsx +++ b/zy-acs-flow/src/page/components/PulseSignal.jsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { Paper, Typography, Box, Chip, Avatar } from '@mui/material'; +import { teal } from '@mui/material/colors'; const PulseSignal = (props) => { const { flag = true, width = 8, ...rest } = props; @@ -12,9 +13,9 @@ width: width, height: width, borderRadius: '50%', - backgroundColor: flag ? '#3f51b5' : '#f44336', + backgroundColor: flag ? `${teal[400]}` : '#f44336', display: 'inline-block', - animation: 'pulse 1.5s infinite', + animation: 'pulse 1.2s infinite', '@keyframes pulse': { '0%': { transform: 'scale(1)', -- Gitblit v1.9.1