import { nodeType } from "@/enums/element";
export class CollectElement implements IBaseElement {
  constructor(id?: string) {
    if (id) {
      this.id = id;
    }
  }
  public name = "未命名集合";
  public children = new Array<IBaseElement>();
  public id = "";
  public type = nodeType.collect;
  public attribute = new Attribute();
}
export class Attribute implements IAttribute {
  public self = new Array<IAttributeValue>();
  public parent = new Array<IAttributeValue>();
}
// export class AttributeValue implements IAttributeValue {
//   public name = "未命名";
//   public type = elementAttributeType.input;
//   public id = "0";
// }
export class NormalElement implements IBaseElement {
  constructor(id?: string) {
    if (id) {
      this.id = id;
    }
  }
  public name = "未命名项";
  public children = new Array<CollectElement>();
  public id = "";
  public type = nodeType.normal;
  public attribute = new Attribute();
}
