element icon indicating copy to clipboard operation
element copied to clipboard

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

Open 963072676 opened this issue 4 years ago • 11 comments

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 对可选时间范围没有做任何限制

963072676 avatar Apr 23 '20 09:04 963072676

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

element-bot avatar Apr 23 '20 09:04 element-bot

Same issue here.

polichan avatar Apr 27 '20 09:04 polichan

Same issue: reproduction link

Has someone looked into it yet?

natanio avatar Jun 16 '20 15:06 natanio

Yeah, seeing the same issue here.

quannt avatar Jun 22 '20 14:06 quannt

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

zxloading avatar Jul 17 '20 07:07 zxloading

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.

stale[bot] avatar Jul 21 '21 06:07 stale[bot]

I have the same problem

omokhov avatar Sep 14 '21 16:09 omokhov

I have the same problem

omokhov avatar Dec 15 '21 07:12 omokhov

ping

omokhov avatar Jan 25 '22 15:01 omokhov

same problem, any update on this issue?

lory1508 avatar May 12 '22 13:05 lory1508

same problem, any update on this issue?

omokhov avatar Aug 22 '22 06:08 omokhov

遇到同样的问题,难搞啊

leonardo110 avatar Oct 17 '22 11:10 leonardo110