ant-design/components/form/demo/dynamic-form-item.md

36 lines
668 B
Markdown
Raw Normal View History

## zh-CN
2020-06-03 10:40:12 +08:00
动态增加、减少表单项。`add` 方法参数可用于设置初始值。
## en-US
2020-06-03 10:40:12 +08:00
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;
}
```
2019-12-25 17:12:36 +08:00
<style>
[data-theme="dark"] .dynamic-delete-button {
color: rgba(255,255,255,.45);
}
[data-theme="dark"] .dynamic-delete-button:hover {
color: rgba(255,255,255,.65);
}
</style>