UNPKG

element-ui

Version:

A Component Library for Vue.js.

19 lines (14 loc) 357 B
import Picker from '../picker'; import TimePanel from '../panel/time'; import TimeRangePanel from '../panel/time-range'; export default { mixins: [Picker], name: 'ElTimePicker', props: { isRange: Boolean }, created() { this.type = this.isRange ? 'timerange' : 'time'; this.panel = this.isRange ? TimeRangePanel : TimePanel; } };