From 95eae081bce373865b446f4070f275f5645250fb Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Tue, 16 Jan 2018 22:26:00 +0100 Subject: [PATCH] refactor Datepicker --- src/components/date-picker/base/date-table.vue | 176 ++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------ src/components/date-picker/base/mixin.js | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/date-picker/base/month-table.vue | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/date-picker/base/prefixCls.js | 2 ++ src/components/date-picker/picker.vue | 388 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/components/date-picker/picker/date-picker.js | 35 ++++++++++++----------------------- src/components/date-picker/picker/time-picker.js | 45 ++++++++++++++++----------------------------- 7 files changed, 332 insertions(+), 439 deletions(-) create mode 100644 src/components/date-picker/base/mixin.js create mode 100644 src/components/date-picker/base/month-table.vue create mode 100644 src/components/date-picker/base/prefixCls.js diff --git a/src/components/date-picker/base/date-table.vue b/src/components/date-picker/base/date-table.vue index 23be43a..12fbb2b 100644 --- a/src/components/date-picker/base/date-table.vue +++ b/src/components/date-picker/base/date-table.vue @@ -1,88 +1,40 @@ diff --git a/src/components/date-picker/base/prefixCls.js b/src/components/date-picker/base/prefixCls.js new file mode 100644 index 0000000..571b218 --- /dev/null +++ b/src/components/date-picker/base/prefixCls.js @@ -0,0 +1,2 @@ + +export default 'ivu-date-picker-cells'; \ No newline at end of file diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index 5211fcc..52c39b4 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -29,12 +29,33 @@ ref="drop" :data-transfer="transfer" v-transfer-dom> -
+
+ +