fix
This commit is contained in:
parent
161d4573c7
commit
e0b1063df9
@ -8,8 +8,17 @@
|
|||||||
export abstract class ControlModel {
|
export abstract class ControlModel {
|
||||||
protected data: Record<string, string|number|boolean> = {};
|
protected data: Record<string, string|number|boolean> = {};
|
||||||
|
|
||||||
public abstract get object(): Record<string, string|number|boolean>;
|
public get object (): Record<string, string|number|boolean> {
|
||||||
public abstract set object(obj: Record<string, string|number|boolean>);
|
return this.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public set object (obj: Record<string, string|number|boolean>) {
|
||||||
|
this.data = obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
public constructor (obj: Record<string, string|number|boolean>) {
|
||||||
|
this.object = obj;
|
||||||
|
}
|
||||||
|
|
||||||
public get (key: string): string|number|boolean {
|
public get (key: string): string|number|boolean {
|
||||||
return this.data[key];
|
return this.data[key];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user