提交 7a55f0ac 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 6d9802a8
...@@ -66,7 +66,7 @@ export class PanelButtonModel extends PanelDetailModel { ...@@ -66,7 +66,7 @@ export class PanelButtonModel extends PanelDetailModel {
this.buttonStyle = opts.buttonStyle; this.buttonStyle = opts.buttonStyle;
this.renderMode = opts.renderMode; this.renderMode = opts.renderMode;
this.iconAlign = opts.iconAlign || 'LEFT'; this.iconAlign = opts.iconAlign || 'LEFT';
this.disabled = opts.disabled ? true : false; this.disabled = opts.disabled;
this.borderStyle = opts.borderStyle ? opts.borderStyle : 'NONE'; this.borderStyle = opts.borderStyle ? opts.borderStyle : 'NONE';
} }
......
...@@ -88,6 +88,14 @@ export class PanelFieldModel extends PanelDetailModel { ...@@ -88,6 +88,14 @@ export class PanelFieldModel extends PanelDetailModel {
*/ */
public hAlign: string | 'LEFT' | 'CENTER' | 'RIGHT' | 'JUSTIFY' = 'LEFT'; public hAlign: string | 'LEFT' | 'CENTER' | 'RIGHT' | 'JUSTIFY' = 'LEFT';
/**
* 必填
*
* @type {boolean}
* @memberof PanelFieldModel
*/
public required: boolean;
/** /**
* Creates an instance of PanelFieldModel. * Creates an instance of PanelFieldModel.
* PanelFieldModel 实例 * PanelFieldModel 实例
...@@ -105,6 +113,7 @@ export class PanelFieldModel extends PanelDetailModel { ...@@ -105,6 +113,7 @@ export class PanelFieldModel extends PanelDetailModel {
this.wrapMode = opts.wrapMode ? opts.wrapMode : 'WRAP'; this.wrapMode = opts.wrapMode ? opts.wrapMode : 'WRAP';
this.vAlign = opts.vAlign ? opts.vAlign : 'MIDDLE'; this.vAlign = opts.vAlign ? opts.vAlign : 'MIDDLE';
this.hAlign = opts.hAlign ? opts.hAlign : 'LEFT'; this.hAlign = opts.hAlign ? opts.hAlign : 'LEFT';
this.required = opts.required;
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册