<el-time-picker is-range v-model="value1" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"> </el-time-picker>
data() { return { value1: [] }; }
当value1为空数组时,在组件内无论选择了哪个时间,时间总会自动回退到00:00:00的时间,即组件根本无法使用(实际选到了,显示有问题)
处理方法:给value1设置初始时间,eg:
value1: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)] 或 value1: ['00:00:00','23:59:59']