Closed GoRolo closed 1 year ago
{ "type": "object", "properties": { "fr-a5u7": { "title": "任务列表", "description": "", "type": "array", "items": { "title": "任务", "description": "", "column": 1, "type": "object", "widget": "card", "properties": { "ruleType": { "title": "任务类型", "type": "string", "props": { "options": [ { "label": "分享任务", "value": "share" }, { "label": "购课", "value": "buy" } ], "placeholder": "请选择" }, "span": 24, "widget": "select" }, "fr-azfz": { "title": "分享渠道", "description": "", "type": "array", "hidden": "{{rootValue.ruleType === 'buy'}}", "items": { "title": "分享渠道", "description": "", "column": 1, "type": "object", "widget": "card", "properties": { "shareType": { "title": "分享类型", "type": "string", "props": { "options": [ { "label": "微信卡片", "value": "1" }, { "label": "小程序", "value": "2" } ], "placeholder": "请选择" }, "widget": "select" }, "fr-1eca": { "title": "小程序ID", "type": "string", "widget": "input", "hidden": "{{rootValue.shareType === '1'}}" }, "fr-7qk6": { "title": "分享缩略图", "widget": "imageInput", "hidden": "{{rootValue.shareType === '2'}}" } } }, "widget": "cardList", "labelCol": { "span": 4 }, "wrapperCol": { "span": 6 } } } }, "widget": "cardList", "labelCol": { "span": 4 }, "wrapperCol": { "span": 6 } } }, "displayType": "row", "maxWidth": "340px" }
具体是什么判断不生效
schema中【分享类型】选择和【小程序ID】、【分享缩略图】这三个字段通过form-render渲染后的关联判断不生效,通过playground测试是没问题的
已修复,2.2.13
2.2.13
修复了,感谢大佬