Giter Club home page Giter Club logo

Comments (3)

danranVm avatar danranVm commented on August 17, 2024

@coolyuantao @hele10086 负责此组件的 review, API 设计完成后请 @ 他们

from idux.

zymoplastic avatar zymoplastic commented on August 17, 2024

touch 令人想到触摸屏的 touchEvent, 但是这里的语义应该是 blur, 我们组件库不支持手机端, 能否考虑换个名字

from idux.

danranVm avatar danranVm commented on August 17, 2024

收到几个疑问:

  • Validators 这里的校验不通过后的提示信息是否放在required, min,max内部约定好,是否可配置?
  • useFormGroup这里的函数的声明是怎样的?(这里会有自定义的validator)
  • 是否要支持指令的形式,比如 ix-input v-model="xxx" :rules="[min(0), max(100)]" />
  • 需要有关于一些统一的错误提示方式的配置吧?

回复:

  • 内部约定好,可以配置和扩展
  • 只要是符合我们 Validator 类型声明的函数,就可以传到 useFormGroup 中,大概的类型就是 (value)=> ValidMessage | null 这种格式
  • 这个暂时先不支持吧,后面可以加上来,而且这个是要每个组件都去实现 rules 这个 API 的,跟我CDK 的关系可能不是很大,最多我提供一个注册 rules 的API
  • 这个肯定是有的,也是在具体的 form 组件去是实现, CDK 里暂不考虑。。

from idux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.