Skip to content

✨ [Feature]: popover组件未实现controlled属性 #97

Closed
@AlanLee97

Description

@AlanLee97

What problem does this feature solve

问题描述

Form组件中使用了popover组件,其中遇到一个问题是校验时机为change的情况下,popover显示之后又关闭了的情况。

我这边排查到的原因是popover组件使用了clickoutside指令,导致先显示了popover组件,然后点击popover组件之外的区域,把popover组件给关闭了。
image

解决点

  • Popover应实现controlled属性
    controlled属性,用于手动控制popover显示方式(ng版有该API
    image
    Popover组件实现controlled属性之后,Form组件中可以手动控制popover是否需要点击外部区域关闭popover

What does the proposed API look like

期望API

  • 增加controlled属性
  • 通过controlled属性控制是否执行clickoutside指令,实现手动控制是否关闭popover组件

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions