Div class 相当于 Angular-Formly

Div class equivilent for Angular-Formly

我们最近发现了 AngularFormly。这似乎是一种减少表单创建时间和表单通常附带的令人头脑麻木的维护的好方法。

我已经做了一些研究,如果以下可能的话,我找不到一个好的例子...

假设我目前有一个表单,其中每个 label/inputfield 都包含在一个 div 中,其中包含一个特定的 class。此 class 处理页面上的所有 formatting/aligning/etc。这个class是我们公司标准布局的一部分,所以必须使用它。

有没有办法为 Formly 的 fields 数组中的每个项目包含这样的内容?

Div 示例(我想重新创建 form__section class):

<div class="form__section">
    <label id="Label10" class="form__label">Relationship</label>
    <div class="form__input--small">
    <select name="relationship" required type="number" ng-model="con.Relationship" style="width: 150px" ng-options="option.Value for option in relationships">
        <option value="">Select one</option>
    </select>

我能够使用包装器创建我正在寻找的东西。然后我将包装器添加到我创建的各种类型中。