ant-design/components/form/demo/dynamic-form-item.md
lijianan b9a6b7b578
demo: update demo (#40318)
* demo: update demo

* add form

* clear

* add Select

* add

* fix style

* fix style

* fix

* revert
2023-01-19 15:37:54 +08:00

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;
}
```