Closed tinymoo closed 11 months ago
1.依赖仓库的版本(Dependencies versions):
2.问题描述(Bug description): 无法获取列表中的 hidden 字段值
3.出现问题的 schema demo(Reproduction schema demo):
const schema = { type: "object", displayType: "row", properties: { list: { title: "对象数组", tooltip: "对象数组嵌套功能", type: "array", display: "inline", widget: "cardList", labelWidth: 100, items: { type: "object", title: "卡片主题", description: "这是一个对象类型", column: 3, widget: "card", properties: { input1: { title: "输入框 A", type: "string", hidden: true }, input2: { title: "输入框 B", type: "string" } } } } } };
4.最小复现 demo(Reproduction demo): https://codesandbox.io/s/funny-cookies-yhczxk?file=/App.tsx:131-812
我看这个是可以的呢,你这个例子有点问题,你直接把 input1 输入框给隐藏了,难道你想获取 input1: undefined。或者你升级到最新版试试
1.依赖仓库的版本(Dependencies versions):
2.问题描述(Bug description): 无法获取列表中的 hidden 字段值
3.出现问题的 schema demo(Reproduction schema demo):
4.最小复现 demo(Reproduction demo): https://codesandbox.io/s/funny-cookies-yhczxk?file=/App.tsx:131-812