element-plus icon indicating copy to clipboard operation
element-plus copied to clipboard

[Component] [date-picker] ec-date-picker type=monthrange 月份无法联动

Open arkfancy opened this issue 2 years ago • 1 comments

Bug Type: Component

Environment

  • Vue Version: 3.2.36
  • Element Plus Version: 2.2.13
  • Browser / OS: Chrome/104.0.0.0
  • Build Tool: Webpack

Reproduction

Related Component

  • el-date-picker

Reproduction Link

Element Plus Playground

Steps to reproduce

示例从官方文档中扒下,可直接查看官方文档 https://element-plus.org/zh-CN/component/date-picker.html#%E9%80%89%E6%8B%A9%E6%9C%88%E4%BB%BD%E8%8C%83%E5%9B%B4

在月份面板中,每个面板只有一半的箭头,点击箭头时,只有箭头所在的面板会变,另一个面板没联动,导致年份无法回选。

What is Expected?

左右面板联动,或者各面板有双箭头可以来回选择年份

What is actually happening?

年份回不回来

Additional comments

(empty)

image

arkfancy avatar Aug 16 '22 03:08 arkfancy

如果希望两个面板各自独立切换当前年份,可以使用 unlink-panels 属性解除联动。

lm312 avatar Aug 17 '22 02:08 lm312

fixed #10292.

chenxch avatar Oct 29 '22 11:10 chenxch