@byteluck-fe/model-driven-controls 6.2.0-1-beta.18 → 6.2.0-1-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,8 +160,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
160
160
  attributes: Employee2Control.controlCustomAttributes
161
161
  });
162
162
  var _props_datasourceType;
163
- _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL //默认内部组织 EXTERNAL 外部组织
164
- ;
163
+ _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
165
164
  var _props_insideType;
166
165
  _this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
167
166
  var _props_externalType;
@@ -97,14 +97,11 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
97
97
  var _props_placeholder;
98
98
  _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadImg', null, '上传图片');
99
99
  var _props_compressTypeCode;
100
- _this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS // 默认不压缩
101
- ;
100
+ _this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS; // 默认不压缩
102
101
  var _props_compressRatio;
103
- _this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1 // 默认压缩比例1
104
- ;
102
+ _this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1; // 默认压缩比例1
105
103
  var _props_maxPixel;
106
- _this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080 // 默认最大像素1080
107
- ;
104
+ _this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080; // 默认最大像素1080
108
105
  return _this;
109
106
  }
110
107
  return ImageProperty;
@@ -59,13 +59,10 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
59
59
  ]
60
60
  };
61
61
  _class_call_check(this, LimitDate);
62
- _define_property(this, "dateConfigType", void 0 // 范围类型
63
- );
64
- _define_property(this, "dateLimitType", void 0 // 限制类型
65
- );
62
+ _define_property(this, "dateConfigType", void 0); // 范围类型
63
+ _define_property(this, "dateLimitType", void 0); // 限制类型
66
64
  _define_property(this, "id", void 0);
67
- _define_property(this, "value", void 0 // 存储值
68
- );
65
+ _define_property(this, "value", void 0); // 存储值
69
66
  this.id = props.id;
70
67
  this.dateConfigType = props.dateConfigType;
71
68
  this.dateLimitType = props.dateLimitType;
@@ -378,10 +375,8 @@ export var PrintTemplate = function PrintTemplate(props) {
378
375
  _class_call_check(this, PrintTemplate);
379
376
  _define_property(this, "fileId", void 0);
380
377
  _define_property(this, "fileName", void 0);
381
- _define_property(this, "ruleName", void 0 //规则名称
382
- );
383
- _define_property(this, "isDefault", void 0 //是否是默认模板
384
- );
378
+ _define_property(this, "ruleName", void 0); //规则名称
379
+ _define_property(this, "isDefault", void 0); //是否是默认模板
385
380
  _define_property(this, "rules", void 0);
386
381
  var _props_fileId;
387
382
  this.fileId = (_props_fileId = props === null || props === void 0 ? void 0 : props.fileId) !== null && _props_fileId !== void 0 ? _props_fileId : '';
@@ -146,6 +146,10 @@ _define_property(TableLayoutControl, "setting", [
146
146
  key: 'text-align',
147
147
  visible: true
148
148
  },
149
+ {
150
+ key: 'vertical-align',
151
+ visible: true
152
+ },
149
153
  {
150
154
  key: 'dynamic-border',
151
155
  visible: true
@@ -85,7 +85,8 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
85
85
  ), _define_property(_this, "colWidthType", void 0 //列宽分配, average 平均分配,custom为自定义分配
86
86
  ), _define_property(_this, "colWidth", void 0 //列宽分配以冒号分割, 12:12为自定义分配
87
87
  ), _define_property(_this, "labelWidth", void 0 // label宽度
88
- ), _define_property(_this, "padding", void 0), _define_property(_this, "margin", void 0), _define_property(_this, "border", void 0), _define_property(_this, "background", void 0), _define_property(_this, "borderRadius", void 0), _define_property(_this, "align", void 0 //内容对齐方式
88
+ ), _define_property(_this, "padding", void 0), _define_property(_this, "margin", void 0), _define_property(_this, "border", void 0), _define_property(_this, "background", void 0), _define_property(_this, "borderRadius", void 0), _define_property(_this, "align", void 0 //标题水平对齐方式
89
+ ), _define_property(_this, "verticalAlign", void 0 //标题垂直对齐方式
89
90
  ), _define_property(_this, "innerBorder", void 0 //表格内边框
90
91
  );
91
92
  var _props_rowCount;
@@ -102,6 +103,8 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
102
103
  _this.labelWidth = (_props_labelWidth = props === null || props === void 0 ? void 0 : props.labelWidth) !== null && _props_labelWidth !== void 0 ? _props_labelWidth : '';
103
104
  var _props_align;
104
105
  _this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
106
+ var _props_verticalAlign;
107
+ _this.verticalAlign = (_props_verticalAlign = props === null || props === void 0 ? void 0 : props.verticalAlign) !== null && _props_verticalAlign !== void 0 ? _props_verticalAlign : 'top';
105
108
  var _props_padding;
106
109
  _this.padding = (_props_padding = props === null || props === void 0 ? void 0 : props.padding) !== null && _props_padding !== void 0 ? _props_padding : {
107
110
  paddingTop: '',
@@ -134,6 +134,10 @@ _define_property(TableLayoutColControl, "setting", [
134
134
  key: 'col-span',
135
135
  visible: true
136
136
  },
137
+ {
138
+ key: 'is-label-col',
139
+ visible: true
140
+ },
137
141
  {
138
142
  key: 'layout-config',
139
143
  visible: true
@@ -86,7 +86,8 @@ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty
86
86
  _define_property(_this, "layout", void 0), //主轴方向
87
87
  _define_property(_this, "flexDirection", void 0), // 侧轴对齐方式
88
88
  _define_property(_this, "alignItems", void 0), // 主轴对齐方式
89
- _define_property(_this, "justifyContent", void 0), _define_property(_this, "background", void 0);
89
+ _define_property(_this, "justifyContent", void 0), _define_property(_this, "background", void 0), // 设置该列与标题同宽
90
+ _define_property(_this, "isLabelCol", void 0);
90
91
  var _props_span;
91
92
  _this.span = (_props_span = props === null || props === void 0 ? void 0 : props.span) !== null && _props_span !== void 0 ? _props_span : BASE_SPAN;
92
93
  var _props_offset;
@@ -110,6 +111,8 @@ var TableLayoutColControlProperty = /*#__PURE__*/ function(LayoutControlProperty
110
111
  backgroundImage: '',
111
112
  placementMode: 'contain'
112
113
  };
114
+ var _props_isLabelCol;
115
+ _this.isLabelCol = (_props_isLabelCol = props === null || props === void 0 ? void 0 : props.isLabelCol) !== null && _props_isLabelCol !== void 0 ? _props_isLabelCol : false;
113
116
  return _this;
114
117
  }
115
118
  return TableLayoutColControlProperty;