import { action, observable } from "mobx";
import { WeaForm } from "comsMobx";


export class BaseFormStore {
  // 全局设置仓库
  @observable form = new WeaForm(); // 规则渲染form
  @action("初始化form表单") initForm = () => this.form = new WeaForm();
  @observable formExtra = new WeaForm(); // 规则渲染form
  @action("初始化form表单") initFormExtra = () => this.formExtra = new WeaForm();
  @observable logVisible = false; // 控制日志弹框的显影
  @action("日志显隐开关")
  setLogVisible = bool => this.logVisible = bool;
}
