mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Merge branch master into develop-1.0.0
This commit is contained in:
commit
e5c8179189
@ -78,7 +78,7 @@ ReactDOM.render(
|
||||
<Row>
|
||||
<Col span="8" offset="16" style={{ textAlign: 'right' }}>
|
||||
<Button type="primary" htmlType="submit">搜索</Button>
|
||||
<Button type="ghost">清除条件</Button>
|
||||
<Button>清除条件</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
|
@ -86,6 +86,8 @@ CustomizedForm = Form.create({})(CustomizedForm);
|
||||
|
||||
`getFieldProps` 返回的属性包括 `id`、`value`(或你设置的其它 `valuePropName`)、`ref`、`onChange`(或者你设置的其它 `trigger` `validateTrigger`),所以不应再设置同样的属性,以免冲突。如果对其返回值的细节有兴趣,可以 `console.log` 出来查看。
|
||||
|
||||
> 在表单中 `defaultValue` 也不应该被设置,请使用下面的 `initialValue`。
|
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 |默认值 |
|
||||
|-----------|------------------------------------------|------------|-------|--------|
|
||||
| options.id | 必填输入控件唯一标志 | string | | |
|
||||
@ -93,7 +95,7 @@ CustomizedForm = Form.create({})(CustomizedForm);
|
||||
| options.initialValue | 子节点的初始值,类型、可选值均由子节点决定 | | | |
|
||||
| options.trigger | 收集子节点的值的时机 | string | | 'onChange' |
|
||||
| options.validateTrigger | 校验子节点值的时机 | string | | 'onChange' |
|
||||
| options.rules | 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) | array | | |
|
||||
| options.rules | 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) | array | | |
|
||||
| options.onXXX | 由于 `getFieldProps` 会占用 `onChange` 等事件(即你所设置的 `trigger` `validateTrigger`),所以如果仍需绑定事件,请在 `options` 内设置 | function | | 无 |
|
||||
|
||||
|
||||
|
@ -32,7 +32,8 @@ ReactDOM.render(
|
||||
height: 120px;
|
||||
margin-top: -16px;
|
||||
}
|
||||
.card-container > .ant-tabs-card .ant-tabs-tabs-bar,
|
||||
|
||||
.card-container > .ant-tabs-card .ant-tabs-bar,
|
||||
.card-container > .ant-tabs-card .ant-tabs-tab-active {
|
||||
border-color: #fff;
|
||||
}
|
||||
|
@ -48,6 +48,7 @@
|
||||
}
|
||||
|
||||
&-item-active,
|
||||
&-submenu-active,
|
||||
&-submenu-title:hover {
|
||||
transform: translateZ(0);
|
||||
background-color: tint(@primary-color, 90%);
|
||||
@ -125,6 +126,7 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
& > &-item-divider {
|
||||
height: 1px;
|
||||
margin: 1px 0;
|
||||
@ -136,6 +138,7 @@
|
||||
|
||||
&-submenu {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
> .@{menu-prefix-cls} {
|
||||
background-color: #fff;
|
||||
|
Loading…
Reference in New Issue
Block a user