mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
update form demo
This commit is contained in:
parent
c9768e1099
commit
8c0875239e
@ -1231,7 +1231,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1242,7 +1242,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1261,7 +1261,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1272,7 +1272,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1291,7 +1291,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1302,7 +1302,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1321,7 +1321,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1337,7 +1337,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1356,7 +1356,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1367,7 +1367,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control has-success"
|
||||
@ -1404,7 +1404,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1415,7 +1415,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1480,7 +1480,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1491,7 +1491,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1554,7 +1554,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-6"
|
||||
class="ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
||||
>
|
||||
<label
|
||||
class="ant-form-item-required"
|
||||
@ -1565,7 +1565,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
</label>
|
||||
</div>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-14"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-sm-16"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1613,7 +1613,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
style="margin-bottom:8px;"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-xs-offset-0 ant-col-sm-14 ant-col-sm-offset-6"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-xs-offset-0 ant-col-sm-16 ant-col-sm-offset-8"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
@ -1649,7 +1649,7 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
|
||||
class="ant-row ant-form-item"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-xs-offset-0 ant-col-sm-14 ant-col-sm-offset-6"
|
||||
class="ant-form-item-control-wrapper ant-col-xs-24 ant-col-xs-offset-0 ant-col-sm-16 ant-col-sm-offset-8"
|
||||
>
|
||||
<div
|
||||
class="ant-form-item-control "
|
||||
|
@ -93,11 +93,11 @@ class RegistrationForm extends React.Component {
|
||||
const formItemLayout = {
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 6 },
|
||||
sm: { span: 8 },
|
||||
},
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 14 },
|
||||
sm: { span: 16 },
|
||||
},
|
||||
};
|
||||
const tailFormItemLayout = {
|
||||
@ -107,8 +107,8 @@ class RegistrationForm extends React.Component {
|
||||
offset: 0,
|
||||
},
|
||||
sm: {
|
||||
span: 14,
|
||||
offset: 6,
|
||||
span: 16,
|
||||
offset: 8,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user