From 5f70cf024a300f9c92393fdb57ee9b09e44f87f6 Mon Sep 17 00:00:00 2001 From: SimaQ Date: Mon, 3 Aug 2015 13:34:40 +0800 Subject: [PATCH] feat: add form-validation --- components/form/demo/horizontal-form.md | 4 +- components/form/demo/inputs.md | 5 +- components/form/demo/validate.md | 24 +-- components/validation/demo/basic.md | 240 +++++++++++++++++++++++ components/validation/demo/customize.md | 249 ++++++++++++++++++++++++ components/validation/index.jsx | 3 + components/validation/index.md | 63 ++++++ index.js | 3 +- package.json | 1 + style/components/form.less | 73 +++++++ style/mixins/form.less | 6 +- 11 files changed, 646 insertions(+), 25 deletions(-) create mode 100644 components/validation/demo/basic.md create mode 100644 components/validation/demo/customize.md create mode 100644 components/validation/index.jsx create mode 100644 components/validation/index.md diff --git a/components/form/demo/horizontal-form.md b/components/form/demo/horizontal-form.md index fb9b5aafe6..5b3600c4e2 100644 --- a/components/form/demo/horizontal-form.md +++ b/components/form/demo/horizontal-form.md @@ -4,11 +4,11 @@ 为 `
` 标签添加 `.ant-form-horizontal` 类(这让 `.ant-form-item` 表现为栅格系统中的 `row`),并结合使用我们提供的 [栅格系统](http://ant.design/components/layout/),可以实现 label 标签和表单控件的水平排列。 -如需将一行静态文本和 `