feat(migrate): template migrations
This commit is contained in:
parent
abe0755abc
commit
a4f8c651a4
6 changed files with 224 additions and 3 deletions
|
|
@ -63,7 +63,8 @@ function parseOptions(field: any): SelectOption[] {
|
|||
function parseField(raw: any): FieldDef {
|
||||
const base = {
|
||||
label: raw['@_label'],
|
||||
...(raw['@_required'] === 'true' && { required: true })
|
||||
...(raw['@_required'] === 'true' && { required: true }),
|
||||
...(raw['@_from'] && { from: raw['@_from'] })
|
||||
};
|
||||
const type = raw['@_type'];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue