Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
4999a606
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4999a606
编写于
11月 10, 2017
作者:
A
afc163
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update form demo
上级
58e3743c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
14 deletion
+14
-14
components/form/__tests__/__snapshots__/demo.test.js.snap
components/form/__tests__/__snapshots__/demo.test.js.snap
+6
-6
components/form/demo/coordinated.md
components/form/demo/coordinated.md
+5
-5
components/form/demo/register.md
components/form/demo/register.md
+1
-1
components/form/index.en-US.md
components/form/index.en-US.md
+1
-1
components/form/index.zh-CN.md
components/form/index.zh-CN.md
+1
-1
未找到文件。
components/form/__tests__/__snapshots__/demo.test.js.snap
浏览文件 @
4999a606
...
...
@@ -431,7 +431,7 @@ exports[`renders ./components/form/demo/coordinated.md correctly 1`] = `
class="ant-row ant-form-item"
>
<div
class="ant-col-
4
ant-form-item-label"
class="ant-col-
5
ant-form-item-label"
>
<label
class="ant-form-item-required"
...
...
@@ -442,7 +442,7 @@ exports[`renders ./components/form/demo/coordinated.md correctly 1`] = `
</label>
</div>
<div
class="ant-col-
8
ant-form-item-control-wrapper"
class="ant-col-
12
ant-form-item-control-wrapper"
>
<div
class="ant-form-item-control "
...
...
@@ -462,7 +462,7 @@ exports[`renders ./components/form/demo/coordinated.md correctly 1`] = `
class="ant-row ant-form-item"
>
<div
class="ant-col-
4
ant-form-item-label"
class="ant-col-
5
ant-form-item-label"
>
<label
class="ant-form-item-required"
...
...
@@ -473,7 +473,7 @@ exports[`renders ./components/form/demo/coordinated.md correctly 1`] = `
</label>
</div>
<div
class="ant-col-
8
ant-form-item-control-wrapper"
class="ant-col-
12
ant-form-item-control-wrapper"
>
<div
class="ant-form-item-control "
...
...
@@ -517,7 +517,7 @@ exports[`renders ./components/form/demo/coordinated.md correctly 1`] = `
class="ant-row ant-form-item"
>
<div
class="ant-col-
8 ant-col-offset-4
ant-form-item-control-wrapper"
class="ant-col-
12 ant-col-offset-5
ant-form-item-control-wrapper"
>
<div
class="ant-form-item-control "
...
...
@@ -1456,7 +1456,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
>
<div
class="ant-select ant-select-enabled"
style="width:
64
px"
style="width:
70
px"
>
<div
aria-autocomplete="list"
...
...
components/form/demo/coordinated.md
浏览文件 @
4999a606
...
...
@@ -39,8 +39,8 @@ class App extends React.Component {
<
Form
onSubmit
=
{
this
.
handleSubmit
}
>
<
FormItem
label
=
"Note"
labelCol
=
{
{
span
:
4
}
}
wrapperCol
=
{
{
span
:
8
}
}
labelCol
=
{
{
span
:
5
}
}
wrapperCol
=
{
{
span
:
12
}
}
>
{
getFieldDecorator
(
'
note
'
,
{
rules
:
[{
required
:
true
,
message
:
'
Please input your note!
'
}],
...
...
@@ -50,8 +50,8 @@ class App extends React.Component {
</
FormItem
>
<
FormItem
label
=
"Gender"
labelCol
=
{
{
span
:
4
}
}
wrapperCol
=
{
{
span
:
8
}
}
labelCol
=
{
{
span
:
5
}
}
wrapperCol
=
{
{
span
:
12
}
}
>
{
getFieldDecorator
(
'
gender
'
,
{
rules
:
[{
required
:
true
,
message
:
'
Please select your gender!
'
}],
...
...
@@ -66,7 +66,7 @@ class App extends React.Component {
)
}
</
FormItem
>
<
FormItem
wrapperCol
=
{
{
span
:
8
,
offset
:
4
}
}
wrapperCol
=
{
{
span
:
12
,
offset
:
5
}
}
>
<
Button
type
=
"primary"
htmlType
=
"submit"
>
Submit
...
...
components/form/demo/register.md
浏览文件 @
4999a606
...
...
@@ -115,7 +115,7 @@ class RegistrationForm extends React.Component {
const
prefixSelector
=
getFieldDecorator
(
'
prefix
'
,
{
initialValue
:
'
86
'
,
})(
<
Select
style
=
{
{
width
:
64
}
}
>
<
Select
style
=
{
{
width
:
70
}
}
>
<
Option
value
=
"86"
>
+86
</
Option
>
<
Option
value
=
"87"
>
+87
</
Option
>
</
Select
>
...
...
components/form/index.en-US.md
浏览文件 @
4999a606
...
...
@@ -161,7 +161,7 @@ See more advanced usage at [async-validator](https://github.com/yiminghe/async-v
<style>
.code-box-demo .ant-form:not(.ant-form-inline):not(.ant-form-vertical) {
max-width:
54
0px;
max-width:
60
0px;
}
</style>
...
...
components/form/index.zh-CN.md
浏览文件 @
4999a606
...
...
@@ -162,7 +162,7 @@ CustomizedForm = Form.create({})(CustomizedForm);
<style>
.code-box-demo .ant-form:not(.ant-form-inline):not(.ant-form-vertical) {
max-width:
54
0px;
max-width:
60
0px;
}
</style>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录