我正在尝试寻找答案,但是效率不高,所以我在这里。
如何在这些字段中添加工具提示?工具提示仅包含一个句子,并不复杂。 我应该为更多字段执行此操作,但是对于示例,我将显示两个字段。
customerFields: FormlyFieldConfig[] = [{
{
className: 'col-sm-6',
type: 'input',
key: 'companyName',
templateOptions: {
translate: true,
label: 'Customer.companyName',
required: true
}
},
{
className: 'col-sm-6',
type: 'input',
key: 'legalForm',
templateOptions: {
translate: true,
label: 'Customer.legalForm'
}
}
}]
答案 0 :(得分:0)
最好的解决方案是制作自己的模板或包装器,以便您轻松扩展模板以及文档中的内容 https://formly.dev/guide/custom-formly-wrapper https://formly.dev/guide/custom-formly-field