Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

TabPicker 多级联动选择器在一级选项仅有一级时,未清空其他多级选项的子选项。 #252

@Lorca-R

Description

@Lorca-R

Mand Mobile Version

OS Version & Browser Version

chrome 70.0,3538

Node Version, Package Management Tool

Recurring Links

Recurring Steps

举例:data结构如下。

{
  data: [
        {
          label: '每周',
          value: 'week',
          children: [
            {
              label: '周日',
              value: '0',
            },
            {
              label: '周一',
              value: '1',
            },
          ],
        },
        {
          label: '每日',
          value: 'day',
          children: [],
        },
      ],
}
  1. 一级选项选择“每周”、二级选项选择“周一”并确定。
    image

  2. 再次打开 TabPicker ,一级选项选择“每日”。此时可以看到二级选项的"周一"并未被清除,并且还能选择二级选项。

image

image

Expectant Behaviors

当一级选项仅有一级时,选择它后应当清除其他多级选项的选择结果

Actual Behaviors

当已经选择其他多级选项后,重新打开 TabPicker 再选择仅有一级的选项,上次选择的子选项并未被清除。

Metadata

Metadata

Assignees

No one assigned

    Labels

    @ComponentsComponents relatedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions