ant-customize-formhttps://www.npmjs.com/package/ant-customize-form
1:安装 npm install ant-customize-form 或者 yarn add ant-customize-form
2:开箱即用,支持所有的 ant 组件属性 基本的使用
# 自定义表单 show 属性的介绍-------也是支持复杂动态表单的控制显示
## 1:一个表单控制的情况 例子联动类型 1:
show: () => {
return {
dependencies: ['1'], //依赖项
flag: formRef.getFieldValue('1') === 1, //显示的条件
};
},
## - 2:boolen 控制表单的情况 例子联动类型 2:
const [isShow, setIsShow] = useState(true);
show: isShow,
## - 3:多个表单控制的情况 例子联动类型 3:
show: () => {
return