export default class DSJBase { isFormItem = false; //是否为表单项 assignData = () => {}; // 赋值数据 fetchOptions = () => {}; //获取数据 modelValue = ''; //绑定值 update = (opt?:any) => { //更新配置 Object.assign(this,opt,{}); } dsjOptions = {}; constructor(opt?: any) { this.dsjOptions = (window as any).dsjOptions || {}; this.update(opt); } }