From 3c4de9b0be06350f0d9ad97bfb5f7f773c38be38 Mon Sep 17 00:00:00 2001 From: Vben Date: Wed, 17 Mar 2021 20:59:49 +0800 Subject: [PATCH] fix(input-count): make sure the reset function works close #381 --- CHANGELOG.zh_CN.md | 4 +++ src/components/CountDown/src/CountButton.vue | 15 ++++++---- .../CountDown/src/CountdownInput.vue | 5 ++-- src/components/CountDown/src/useCountdown.ts | 2 +- src/components/Form/src/componentMap.ts | 2 ++ src/hooks/component/useFormItem.ts | 1 + src/views/demo/form/RuleForm.vue | 30 +++++++++++++------ src/views/demo/table/FetchTable.vue | 3 -- src/views/sys/login/ForgetPasswordForm.vue | 10 +++---- 9 files changed, 45 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 9092b4f6..1e0c34d1 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -4,6 +4,10 @@ - 重构路由多层模式,解决嵌套 keepalive 执行多次问题 +### 🐛 Bug Fixes + +- 确保 CountDownInput 组件重置清空值 + ## 2.1.0 (2021-03-15) ### ✨ Features diff --git a/src/components/CountDown/src/CountButton.vue b/src/components/CountDown/src/CountButton.vue index 59c58393..d71f2188 100644 --- a/src/components/CountDown/src/CountButton.vue +++ b/src/components/CountDown/src/CountButton.vue @@ -8,22 +8,21 @@