export default class DSJButton { label!: string; //标签 //标签 click!: Function; //点击事件 //点击事件 size!: string; //尺寸 //尺寸 type!: string; //类型 //类型 plain!: boolean; //是否朴素按钮 //是否朴素按钮 round!: boolean; //是否朴素按钮 //是否朴素按钮 circle!: boolean; //是否圆角按钮 //是否圆角按钮 loading!: boolean; //是否圆形按钮 //是否圆形按钮 disabled!: boolean; //是否加载中状态 //是否加载中状态 icon!: string; //图标类名 //图标类名 autofocus!: boolean; //是否默认聚焦 //是否默认聚焦 nativeType!: string; //原生 type 属性 //原生 type 属性 others!: Object; //其余字段 //其余字段 constructor(opt: any) { Object.assign(this,{ label: 'button', size: 'medium', type: 'info', plain: false, round: false, circle: false, loading: false, disabled: false, icon: '', autofocus: false, nativeType: 'button', others: {}, click: () =>{} }, opt, {}); } }