form-create icon indicating copy to clipboard operation
form-create copied to clipboard

group数组规则中加入自定义组件报错 组件不存在 在基本规则中是能正确显示的(引入组件正确)

Open Feellove opened this issue 3 years ago • 6 comments

版本号 (version) @form-create/[email protected]

UI 框架的版本 (UI version) :view-design4.7

group数组规则中加入自定义组件报错 组件不存在 在基本规则中是能正确显示的(引入组件正确)

a = { type: "group", field: "group712-93000", title: "", value: [ { hazards: "有", hazardName: "2", hazardsNumber: "2", hazardsLevel: "四级", hazardsAssessment: "2", hazardsRecord: "备案中", hazardAssessmentReport: "未编制", attach: "" } ], orderSeq: 93000, className: "btn-o mb0", props: { button: true, disabled: false, fontSize: 22, defaultValue: {}, rules: [ { type: "fieldComponent", field: "attach", title: "评估报告附件", value: "", orderSeq: 100000, className: " width-half", col: { span: 12, labelWidth: 180 } } ] }, on: {}, options: [], children: [], hidden: false, display: true };

Feellove avatar Aug 15 '22 09:08 Feellove

组件需要全局挂载或者通过 form-create 挂载

xaboy avatar Aug 16 '22 01:08 xaboy

再问下 ,为什么用iview 使用group 分组无论是下拉框还是输入框这些第一次操作都会无效,每一组只有操作过其中一个才可以正常使用下拉 输入这些操作

Feellove avatar Aug 17 '22 09:08 Feellove

更新一下 form-create 的版本再试试 @Feellove

xaboy avatar Aug 17 '22 13:08 xaboy

用了 fapi.refresh();解决了

Feellove avatar Aug 18 '22 01:08 Feellove

@xaboy 怎么对group 组的按钮进行 操作 有api方法?

Feellove avatar Aug 19 '22 09:08 Feellove

没有API, 只能通过插槽修改

xaboy avatar Aug 21 '22 12:08 xaboy