Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
circlle opened this issue Aug 30, 2019 · 0 comments
Open

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

circlle opened this issue Aug 30, 2019 · 0 comments

Comments

@circlle
Copy link

circlle commented Aug 30, 2019

  • 类型:改进
  • 问题描述:目前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 
       }
    
undoZen pushed a commit to undoZen/react-imvc that referenced this issue Dec 13, 2022
* feat(config): add defineConfig

* docs: update defineConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant