From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 09 十二月 2022 15:53:32 +0800
Subject: [PATCH] 2022-12-09

---
 src/menu/components/share/clockcomponent/index.jsx |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/menu/components/share/clockcomponent/index.jsx b/src/menu/components/share/clockcomponent/index.jsx
index 25da4eb..24de95e 100644
--- a/src/menu/components/share/clockcomponent/index.jsx
+++ b/src/menu/components/share/clockcomponent/index.jsx
@@ -1,6 +1,5 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { is, fromJS } from 'immutable'
 import { Modal } from 'antd'
 import { ClockCircleOutlined } from '@ant-design/icons'
 
@@ -16,10 +15,6 @@
     visible: false
   }
 
-  shouldComponentUpdate (nextProps, nextState) {
-    return !is(fromJS(this.state), fromJS(nextState))
-  }
-
   trigger = () => {
     this.setState({
       visible: true
@@ -33,7 +28,7 @@
       this.setState({
         visible: false
       })
-      this.props.updateConfig({...config, timer: res.timer, clearField: res.clearField || '', clearValue: res.clearValue || ''})
+      this.props.updateConfig({...config, timer: res.timer, timerRepeats: res.timerRepeats, clearField: res.clearField || '', clearValue: res.clearValue || ''})
     })
   }
 
@@ -42,7 +37,7 @@
     const { visible, loading } = this.state
 
     return (
-      <div className="clock-component-wrap">
+      <div className={'clock-component-wrap' + (config.timer ? ' tip-sign' : '')}>
         <ClockCircleOutlined title="瀹氭椂鍣�" onClick={this.trigger} />
         <Modal
           title="瀹氭椂鍣ㄨ缃�"

--
Gitblit v1.8.0