Skip to content

Commit 590e37d

Browse files
committed
fix(lib): 修复默认schema生成formData和默认值相等时导致可能不能及时更新的问题
1 parent 323889e commit 590e37d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/lib/src/JsonSchemaForm/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ export default {
2020
data() {
2121
const formData = this.getStateFromData(this.$props.schema, this.$props.value);
2222

23-
// 计算form默认值和用户传入的值不相等
2423
// 保持v-model双向数据及时性
25-
if (!deepEquals(formData, this.value)) {
26-
this.handlerFormDataChange(formData, this.value);
27-
}
24+
this.handlerFormDataChange(formData, this.value);
2825

2926
return {
3027
formData

0 commit comments

Comments
 (0)