From eb0c4703ec7cd21dc921ae113b7e3be69c641c1d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 17 九月 2021 15:18:06 +0800 Subject: [PATCH] 2021-09-17 --- src/tabviews/custom/components/card/prop-card/index.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx index 3ac9350..66bd1f7 100644 --- a/src/tabviews/custom/components/card/prop-card/index.jsx +++ b/src/tabviews/custom/components/card/prop-card/index.jsx @@ -319,6 +319,13 @@ data: _data, loading: false }) + + if (config.timer && config.clearField) { + let vals = (config.clearValue || '').split(',') + if (vals.includes(_data[config.clearField])) { + clearTimeout(this.timer) + } + } } else { this.setState({ loading: false, -- Gitblit v1.8.0