Skip to content

component/Input组件的value数据结构不一致 #32

@circlle

Description

@circlle
  • 类型:改进
  • 问题描述:目前Input组件中, 根据check字段确定value的数据结构。 let path = check ? `${name}.value` : name 某个需求如下:
    1. 初始化时input为需要提示warn(check为true)
    2. 更新input内容
    3. input由于另一个字段导致不需要check。此时,value为[object object]
  • 期望:value的数据结构应当始终保持一致
       interface Value {
           value: string
           isWarn?: boolean 
       }
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions