mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 20:26:29 +00:00
16 lines
293 B
TypeScript
16 lines
293 B
TypeScript
|
import { FieldOptions, IField } from './types';
|
||
|
|
||
|
export class CollectionField implements IField {
|
||
|
options;
|
||
|
constructor(options: FieldOptions) {
|
||
|
this.updateOptions(options);
|
||
|
}
|
||
|
|
||
|
updateOptions(options: any) {
|
||
|
this.options = {
|
||
|
...this.options,
|
||
|
...options,
|
||
|
};
|
||
|
}
|
||
|
}
|