diff --git a/docs/API/SchemaForm_React.md b/docs/API/SchemaForm_React.md index 79f74216ea2..efe2643417a 100644 --- a/docs/API/SchemaForm_React.md +++ b/docs/API/SchemaForm_React.md @@ -18,7 +18,6 @@ import SchemaForm from '@uform/react' | 属性名称 | 属性描述 | 属性类型 | 默认值 | | ---- | ---- | ---- | --- | -| --- | --- | --- | --- | | actions | 需要握手的表单actions,只接收通过[createFormActions](#/97UlUl/XEFAF7HoHV)/[createAsyncFormActions](#/97UlUl/leFLFGHMHK)创建出来的actions | Object | | | defaultValue | 表单默认值 | Object | | | editable | 控制表单字段是否可编辑状态 | `Boolean | Function(name : String) : Boolean` | | diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index 2865098ffd4..4fabb67a427 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -3,6 +3,7 @@ - [UForm 原理](./Tutorials/UForm原理.md) - [快速入门](./Tutorials/快速入门.md) - [Form Schema 扩展规范](./Tutorials/FormSchema扩展规范.md) + - [Q/A](./Tutorials/Questions.md) - API 文档 - @uform/next or antd - [](./API/SchemaForm.md) diff --git a/docs/Tutorials/Questions.md b/docs/Tutorials/Questions.md new file mode 100644 index 00000000000..a9052df349d --- /dev/null +++ b/docs/Tutorials/Questions.md @@ -0,0 +1,17 @@ +# Q/A + +## 1. UForm会考虑支持Vue吗? + +## 2. UForm会考虑支持React Native吗? + +## 3. UForm会考虑支持Typescript吗? + +## 4. 为什么UForm的联动关系不用JSON Schema标准联动? + +## 5. UForm的数据驱动如何解决服务端层面的逻辑控制? + +## 6. UForm有表单设计器吗? + +## 7. 如何定制UForm的样式? + +## 8. value和initialValues的差别是什么? diff --git a/packages/utils/src/accessor.js b/packages/utils/src/accessor.js index cdc48656993..7f7233a2db9 100644 --- a/packages/utils/src/accessor.js +++ b/packages/utils/src/accessor.js @@ -404,6 +404,7 @@ function _setIn(obj, path, value) { const p = pathArr[i] if (!isObj(obj[p])) { + if (obj[p] === undefined && value === undefined) return obj[p] = {} }