From 84f9a0ff34d54b990aaffd36e915740109b04b7b Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Fri, 6 Nov 2020 17:22:47 +0800 Subject: [PATCH] refactor: remove base/icon --- src/_base/icon/index.js | 3 -- src/_base/icon/src/Icon.vue | 54 ------------------- .../src/panel/commonCalendarMixin.js | 12 ++++- src/date-picker/src/panel/date.vue | 13 +++-- src/date-picker/src/panel/daterange.vue | 20 ++++--- src/date-picker/src/panel/datetime.vue | 10 ++-- src/date-picker/src/panel/datetimerange.vue | 40 ++++---------- .../src/styles/themed-base.cssr.js | 3 +- src/pagination/src/Pagination.vue | 40 ++++++++------ src/pagination/src/styles/themed-base.cssr.js | 3 ++ 10 files changed, 70 insertions(+), 128 deletions(-) delete mode 100644 src/_base/icon/index.js delete mode 100644 src/_base/icon/src/Icon.vue diff --git a/src/_base/icon/index.js b/src/_base/icon/index.js deleted file mode 100644 index e98978a09..000000000 --- a/src/_base/icon/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import Icon from './src/Icon.vue' - -export default Icon diff --git a/src/_base/icon/src/Icon.vue b/src/_base/icon/src/Icon.vue deleted file mode 100644 index 7817407b9..000000000 --- a/src/_base/icon/src/Icon.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - diff --git a/src/date-picker/src/panel/commonCalendarMixin.js b/src/date-picker/src/panel/commonCalendarMixin.js index bb846a600..6f9b41888 100644 --- a/src/date-picker/src/panel/commonCalendarMixin.js +++ b/src/date-picker/src/panel/commonCalendarMixin.js @@ -1,4 +1,10 @@ import FocusDetector from '../../../_base/focus-detector' +import { + ArrowRight20Filled as FastForwardIcon, + ArrowLeft20Filled as FastBackwardIcon, + ChevronLeft24Filled as BackwardIcon, + ChevronRight24Filled as ForwardIcon +} from 'vicons/fluent' import { locale } from '../../../_mixins' @@ -21,7 +27,11 @@ export default { } }, components: { - FocusDetector + FocusDetector, + FastForwardIcon, + FastBackwardIcon, + BackwardIcon, + ForwardIcon }, props: { theme: { diff --git a/src/date-picker/src/panel/date.vue b/src/date-picker/src/panel/date.vue index 3ec698079..3bd9d7a75 100644 --- a/src/date-picker/src/panel/date.vue +++ b/src/date-picker/src/panel/date.vue @@ -14,13 +14,13 @@ class="n-date-panel-month__fast-prev" @click="prevYear" > - +
- +
{{ calendarMonth }} {{ calendarYear }} @@ -29,13 +29,13 @@ class="n-date-panel-month__next" @click="nextMonth" > - +
- +
@@ -105,7 +105,7 @@