jd-opensource / drip-form

基于React和JSONSchema的动态表单解决方案
https://jd-opensource.github.io/drip-form/
MIT License
613 stars 73 forks source link

[Bug] <在对象容器中使用组件,默认值会失效> #280

Closed 1379255913 closed 3 months ago

1379255913 commented 3 months ago

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

在对象容器中使用组件,默认值会失效 image image

Steps to reproduce

  1. Generator中创建一个对象容器
  2. 在对象容器中任意添加一个组件,并设置默认值
  3. 默认值失效,从对象容器中取出至最外层时,默认值出现

Current behavior

在对象容器中使用组件,默认值会失效

Expected behavior

在对象容器中使用组件,默认值依然生效

Your environment

Reproducible demo

No response

Self-service

mengshang918 commented 3 months ago

参考数组、对象设置默认值

github-actions[bot] commented 3 months ago

This issue has been automatically marked as no-issue-activity because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.