嗨,我们如何使用 angular formly 库为选择字段设置默认值
this.uiFormFactory.createSelect(
Location,
this.store.select(StoreUtil.getParameterOptions(ParameterId.Location)),
PersonDetailsFieldLabel.location,
{
required: true,
select: { searchable: true, virtualScroll: true, defaultValue: 'Home' },
readonly: false,
}
),