jd-opensource / drip-form

基于React和JSONSchema的动态表单解决方案

Home Page:https://jd-opensource.github.io/drip-form/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] <demo中填写级联,填写JSON就会出错>

MikeJiangInno opened this issue · comments

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

image

Steps to reproduce

  1. 选择”级联选择“
  2. 在样式->选项中填写,国家省份的JSON
    国家省份JSON
    3.就会出现”发生错误,请联系管理员!“

Current behavior

image
image

Expected behavior

能够显示数据

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

目前这块转换存在问题,schema中需要数组格式的,这边配置是string格式的。
暂时解决方案:直接json编辑中配置。
后续会优化配置组件