ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.11k stars 14.64k forks source link

[bug report] El time picker: picker options are not valid when using is range time range #19251

Open 963072676 opened 4 years ago

963072676 commented 4 years ago

Element UI version

2.13.0

OS/Browsers version

WIN10/Google Chrome 版本 84.0.4115.5(正式版本)dev (64 位)

Vue version

3.0.0-alpha.11

Reproduction Link

https://jsfiddle.net/6Lb3s0z9/2/

Steps to reproduce

<el-time-picker v-model="amStartEndTime" :picker-options="{ selectableRange: ['00:00:00 - 12:59:59', '00:00:00 - 12:59:59'] }" format="HH:mm" is-range value-format="HH:mm:ss" placeholder style="width:100%;" @change="changeAmTime" />

:picker-options="{ selectableRange: ['00:00:00 - 12:59:59', '00:00:00 - 12:59:59'] }"限制无效

What is Expected?

The time selector can disable the selection from 13:00:00 to 23:59:59 该时间选择器可以禁止选择13:00:00 - 23:59:59

What is actually happening?

There are no restrictions on the optional time range 对可选时间范围没有做任何限制

element-bot commented 4 years ago

Translation of this issue:

Element UI version

2.13.0

OS/Browsers version

Win10 / Google Chrome version 84.0.4115.5 (official version) dev (64 bit)

Vue version

3.0.0-alpha.11

Reproduction Link

https://jsfiddle.net/6Lb3s0z9/2/

Steps to reproduce

<el-time-picker

v-model="amStartEndTime" :picker-options="{

selectableRange: ['00:00:00 - 12:59:59', '00:00:00 - 12:59:59'] }

format="HH:mm" is-range

value-format="HH:mm:ss" placeholder

style="width:100%;" @change="changeAmTime"


:picker-options="{ selectableRange: ['00:00:00 - 12:59:59', '00:00:00 - 12:59:59']

}"Invalid restriction

What is Expected?

The time selector can disable the selection from 13:00:00 to 23:59:59 The time selector can disable the selection of 13:00:00 - 23:59:59

What is actually happening?

There are no restrictions on the optional time range

There are no restrictions on the optional time range

polichan commented 4 years ago

Same issue here.

natanio commented 4 years ago

Same issue: reproduction link

Has someone looked into it yet?

quannt commented 4 years ago

Yeah, seeing the same issue here.

zxloading commented 4 years ago

这个问题该怎么解决。版本:2.13.0,options无效 :picker-options="{ step: '00:15' }"

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

omokhov commented 3 years ago

I have the same problem

omokhov commented 2 years ago

I have the same problem

omokhov commented 2 years ago

ping

lory1508 commented 2 years ago

same problem, any update on this issue?

omokhov commented 2 years ago

same problem, any update on this issue?

leonardo110 commented 2 years ago

遇到同样的问题,难搞啊