xaboy / form-create

:fire::fire::fire: 强大的动态表单生成器,通过数据驱动表单渲染,支持可视化设计。提高开发者对表单的开发效率。目前在OA系统、ERP系统、电商系统、流程管理等系统中已稳定应用。

Home Page:https://www.form-create.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

group数组组件无法获取以及更新group中的规则

chenyuqiua opened this issue · comments

getRule和updateRule 无法获取以及更新group中的规则, 例如如下代码

{
      type: 'group',
      field: 'eventDetails',
      ... ,
     rules: [
       {
            type: 'el-radio-group',
            field: 'businessLine',
            ...
        }
     ]
}

我使用 this.fApi.getRule('businessLine') 或者 this.fApi.updateRule('businessLine', { value: xxx }); 没有办法获取或更新, 获取到的值为undefined, 我发现this.fApi.getRule('eventDetails')可以获取到这个数组, 但是数组内部的rules没办法获取到
有没有什么办法可以操作到rules中的一系列表单