Skip to content

Commit

Permalink
fix(@uform/utils): Fix the exception of setIn when undefiend value is…
Browse files Browse the repository at this point in the history
… assigned undefined property
  • Loading branch information
janryWang committed Jul 1, 2019
1 parent 56cbfa1 commit 7cb6316
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/API/SchemaForm_React.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | |
Expand Down
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [<SchemaForm/>](./API/SchemaForm.md)
Expand Down
17 changes: 17 additions & 0 deletions docs/Tutorials/Questions.md
Original file line number Diff line number Diff line change
@@ -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的差别是什么?
1 change: 1 addition & 0 deletions packages/utils/src/accessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {}
}

Expand Down

0 comments on commit 7cb6316

Please sign in to comment.