Skip to content

Commit

Permalink
Merge pull request #1318 from alibaba/fix-schema
Browse files Browse the repository at this point in the history
fix: 修复 schema 依赖更新异常
  • Loading branch information
lhbxs committed Jun 26, 2023
2 parents 567ed5f + d605545 commit d739add
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/form-render-mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-render-mobile",
"version": "1.0.6",
"version": "1.0.7",
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
"keywords": [
"Form",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default (props: any) => {
const rootPath = [...preRootPath, ...path];

return (
<Grid.Item span={24} className="frm-list">
<Grid.Item className="frm-list">
<Form.Array
name={path}
initialValue={defaultValue}
Expand Down
2 changes: 2 additions & 0 deletions packages/form-render/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 更新日志

### 2.2.9
- [-] 修复 schema 依赖更新异常
### 2.2.8
- [+] SearchForm 增加 onReset 自定义重置方法
- [-] 修复 setSchemaByPath 判断,在某些情况不生效
Expand Down
2 changes: 1 addition & 1 deletion packages/form-render/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-render",
"version": "2.2.8",
"version": "2.2.9",
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
"keywords": [
"Form",
Expand Down
2 changes: 1 addition & 1 deletion packages/form-render/src/form-core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const FormCore:FC<FRProps> = (props) => {

useEffect(() => {
form.setSchema(props.schema, true);
}, [props.schema]);
}, [JSON.stringify(props.schema || {})]);

useEffect(() => {
const context = {
Expand Down

1 comment on commit d739add

@vercel
Copy link

@vercel vercel bot commented on d739add Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

x-render – ./

x-render-tw93.vercel.app
x-render-git-master-tw93.vercel.app
www.xrender.fun
xrender.fun

Please sign in to comment.