• 请不要在回答技术问题时复制粘贴 AI 生成的内容
yantianqi
V2EX  ›  程序员

vue 中表单验证怎么处理?类似 iview 的表单验证能提出去吗?

  •  
  •   yantianqi · Feb 26, 2018 · 3119 views
    This topic created in 3173 days ago, the information mentioned may be changed or developed.

    表单验证感觉要写很多东西,能不能写成通用的
    提取的组件中如何进行表单验证呢?
    类似 iview 的表单验证,能不能抽离到外层?
    https://www.iviewui.com/components/form

    1 replies  •  2018-02-26 18:10:46 +08:00
    leemove
    leemove
    Feb 26, 2018
    1
    底层都是用的这个 https://github.com/yiminghe/async-validator
    你可以自己封装一个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2912 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:28 · PVG 20:28 · LAX 04:28 · JFK 07:28
    ♥ Do have faith in what you're doing.