mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
b9a6b7b578
* demo: update demo * add form * clear * add Select * add * fix style * fix style * fix * revert
27 lines
474 B
Markdown
27 lines
474 B
Markdown
## zh-CN
|
|
|
|
动态增加、减少表单项。`add` 方法参数可用于设置初始值。
|
|
|
|
## en-US
|
|
|
|
Add or remove form items dynamically. `add` function support config initial value.
|
|
|
|
```css
|
|
.dynamic-delete-button {
|
|
position: relative;
|
|
top: 4px;
|
|
margin: 0 8px;
|
|
color: #999;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
.dynamic-delete-button:hover {
|
|
color: #777;
|
|
}
|
|
.dynamic-delete-button[disabled] {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
```
|