Skip to content

Commit 13d0ad0

Browse files
committed
doc changelog
1 parent d268b49 commit 13d0ad0

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

docs/form-render/advanced/watch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const Demo = () => {
111111

112112
const watch = {
113113
input1: val => {
114-
if (val.length > 2) {
114+
if (val && val.length > 2) {
115115
form.setSchemaByPath('obj1.select', ({ enumNames }) => {
116116
return {
117117
enumNames: enumNames.map(item => item + 'a'),

packages/form-render/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

3-
## 1.6.3
3+
## 1.6.4
4+
5+
- [!] 修复了 setSchemaByPath 和 setSchema 无效的 bug
6+
- [!] 修复了外部传入的 schema 变化时,表单不重新渲染的问题
7+
8+
## 1.6.3(setSchema 出现有时了无效的问题)
49

510
这个版本在底层实现机制上做了大量的优化和一定量的重构,主要包括
611

packages/form-render/src/utils.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,12 +1129,6 @@ const updateSingleSchema = schema => {
11291129
}
11301130
};
11311131

1132-
// 旧版schema转新版schema
1133-
export const parseExpression = (schema, formData) => {
1134-
let schema1 = parseRootValue(schema);
1135-
let schema2 = replaceParseValue(schema1);
1136-
};
1137-
11381132
// 检验一个string是 function(传统活箭头函数)
11391133
export const parseFunctionString = string => {
11401134
if (typeof string !== 'string') return false;

0 commit comments

Comments
 (0)