diff --git a/src/date-picker.js b/src/date-picker.js index f8fda9e..fa79450 100644 --- a/src/date-picker.js +++ b/src/date-picker.js @@ -4,6 +4,7 @@ import { pick, isObject, mergeDeep } from './util/base'; import { getLocale } from './locale'; import Popup from './popup'; import IconCalendar from './icon/icon-calendar'; +import IconTime from './icon/icon-time'; import IconClose from './icon/icon-close'; import CalendarPanel from './calendar/calendar-panel'; import CalendarRange from './calendar/calendar-range'; @@ -465,6 +466,7 @@ export default { events, } ); + const calendarIcon = this.type === 'time' ? : ; return (
{input} @@ -474,7 +476,7 @@ export default { ) : null} - {this.renderSlot('icon-calendar', )} + {this.renderSlot('icon-calendar', calendarIcon)}
); diff --git a/src/icon/icon-time.vue b/src/icon/icon-time.vue new file mode 100644 index 0000000..edaccfc --- /dev/null +++ b/src/icon/icon-time.vue @@ -0,0 +1,9 @@ +