2

定义:

schema: {
    salutation: {
        type: 'Select',
        validators: ['required'],
        editorClass: 'form-control',
        isRequired: true,
        title: 'Salutation',
    },
    address: {
        type: 'Object',
        subSchema: {
            address: {
                type: 'Text',
                validators: ['required'],
                editorClass: 'form-control',
                isRequired: true,
                title: 'Address',
            },
        }
    },

在我的模板中,我data-fields用来渲染字段:

<div data-fields="fieldname"></div>

如何从中加载元素subSchema

4

0 回答 0