fix: list fields

This commit is contained in:
Chareice 2024-01-25 23:07:45 +08:00
parent 591c061f18
commit c78a132164
No known key found for this signature in database

View File

@ -270,6 +270,9 @@ export class Collection<
return this.fields.get(name); return this.fields.get(name);
} }
getFields() {
return [...this.fields.values()];
}
addField(name: string, options: FieldOptions): Field { addField(name: string, options: FieldOptions): Field {
return this.setField(name, options); return this.setField(name, options);
} }