From 1d5e5b1f7dc5e80e502445b8b8af7a729420bc7c Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Thu, 27 Feb 2020 11:08:49 +0800
Subject: [PATCH] feat: time-picker add clearIcon
---
build/config.js | 2 +-
.../__tests__/__snapshots__/demo.test.js.snap | 6 +-
.../time-picker/__tests__/index.test.js | 4 +-
components/time-picker/demo/index.vue | 20 ++---
components/time-picker/index.en-US.md | 53 ++++++-------
components/time-picker/index.jsx | 75 +++++++++++--------
components/time-picker/index.zh-CN.md | 53 ++++++-------
components/vc-time-picker/Combobox.jsx | 7 ++
components/vc-time-picker/Header.jsx | 18 ++---
components/vc-time-picker/Panel.jsx | 14 ++--
components/vc-time-picker/Select.jsx | 26 ++++++-
components/vc-time-picker/TimePicker.jsx | 24 +++---
components/vc-time-picker/index.js | 2 +-
13 files changed, 170 insertions(+), 134 deletions(-)
diff --git a/build/config.js b/build/config.js
index fac7ac199..09321ec8e 100644
--- a/build/config.js
+++ b/build/config.js
@@ -1,5 +1,5 @@
module.exports = {
dev: {
- componentName: 'timeline', // dev components
+ componentName: 'time-picker', // dev components
},
};
diff --git a/components/time-picker/__tests__/__snapshots__/demo.test.js.snap b/components/time-picker/__tests__/__snapshots__/demo.test.js.snap
index 0dba5a7f7..d705a27fd 100644
--- a/components/time-picker/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/time-picker/__tests__/__snapshots__/demo.test.js.snap
@@ -6,11 +6,7 @@ exports[`renders ./components/time-picker/demo/addon.md correctly 1`] = `
`;
-exports[`renders ./components/time-picker/demo/disabled.md correctly 1`] = `
-
-`;
+exports[`renders ./components/time-picker/demo/disabled.md correctly 1`] = ``;
exports[`renders ./components/time-picker/demo/hide-column.md correctly 1`] = `