@byteluck-fe/model-driven-controls 2.23.1 → 2.23.2-beta.0

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.
@@ -141,6 +141,19 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
141
141
  callback();
142
142
  }
143
143
  },
144
+ indexSignature: {
145
+ type: 'object',
146
+ required: true,
147
+ validator: function validator(rule, value, callback) {
148
+ // 是外部,就需要校验
149
+ // 数组长度为0,就是错误的
150
+ if ((current === null || current === void 0 ? void 0 : current.signaturePosition) === 'index' && isArray(value.value) && value.value.length === 0) {
151
+ callback(getLocaleText('CMD.pleaseSelect', null, '请选择'));
152
+ return;
153
+ }
154
+ callback();
155
+ }
156
+ },
144
157
  company: {
145
158
  type: 'object',
146
159
  required: true,
@@ -135,6 +135,12 @@ var Employee2Control = /*#__PURE__*/ function(DesignerFormControl) {
135
135
  return Employee2Control;
136
136
  }(DesignerFormControl);
137
137
  _define_property(Employee2Control, "controlFieldType", FieldTypes.EMPLOYEES);
138
+ _define_property(Employee2Control, "controlEventKeys", [
139
+ 'on_change',
140
+ 'on_focus',
141
+ 'on_blur',
142
+ 'on_option_selected'
143
+ ]);
138
144
  _define_property(Employee2Control, "setting", [
139
145
  {
140
146
  key: 'data-bind',
@@ -120,6 +120,27 @@ export var UndersignedPerson = function UndersignedPerson(props) {
120
120
  * 指定位置
121
121
  * */ _define_property(this, "indexSignature", void 0);
122
122
  /**
123
+ * 指定X轴位置
124
+ * */ _define_property(this, "posX", void 0);
125
+ /**
126
+ * 指定Y轴位置
127
+ * */ _define_property(this, "posY", void 0);
128
+ /**
129
+ * 平台是否自动签署
130
+ * */ _define_property(this, "platformAutoSign", void 0);
131
+ /**
132
+ * 是否需要添加签署日期 0-禁止 1-必须 2-不限制,默认0
133
+ * */ _define_property(this, "signDateBeanType", void 0);
134
+ /**
135
+ * 签署日期字体大小
136
+ * */ _define_property(this, "signDateFontSize", void 0);
137
+ /**
138
+ * 签署日期格式
139
+ * */ _define_property(this, "signDateFormat", void 0);
140
+ /**
141
+ * 印章ID
142
+ * */ _define_property(this, "seal", void 0);
143
+ /**
123
144
  * 备注
124
145
  * */ _define_property(this, "remark", void 0);
125
146
  var _props_type;
@@ -144,6 +165,20 @@ export var UndersignedPerson = function UndersignedPerson(props) {
144
165
  });
145
166
  var _props_signaturePosition;
146
167
  this.signaturePosition = (_props_signaturePosition = props === null || props === void 0 ? void 0 : props.signaturePosition) !== null && _props_signaturePosition !== void 0 ? _props_signaturePosition : 'free';
168
+ var _props_seal;
169
+ this.seal = new RightVariable((_props_seal = props === null || props === void 0 ? void 0 : props.seal) !== null && _props_seal !== void 0 ? _props_seal : {
170
+ type: 'form'
171
+ });
172
+ var _props_platformAutoSign;
173
+ this.platformAutoSign = (_props_platformAutoSign = props === null || props === void 0 ? void 0 : props.platformAutoSign) !== null && _props_platformAutoSign !== void 0 ? _props_platformAutoSign : false;
174
+ var _props_signDateBeanType;
175
+ this.signDateBeanType = (_props_signDateBeanType = props === null || props === void 0 ? void 0 : props.signDateBeanType) !== null && _props_signDateBeanType !== void 0 ? _props_signDateBeanType : 0;
176
+ var _props_signDateFontSize;
177
+ this.signDateFontSize = (_props_signDateFontSize = props === null || props === void 0 ? void 0 : props.signDateFontSize) !== null && _props_signDateFontSize !== void 0 ? _props_signDateFontSize : 12;
178
+ var _props_posX;
179
+ this.posX = (_props_posX = props === null || props === void 0 ? void 0 : props.posX) !== null && _props_posX !== void 0 ? _props_posX : 0;
180
+ var _props_posY;
181
+ this.posY = (_props_posY = props === null || props === void 0 ? void 0 : props.posY) !== null && _props_posY !== void 0 ? _props_posY : 0;
147
182
  var _props_remark;
148
183
  this.remark = (_props_remark = props === null || props === void 0 ? void 0 : props.remark) !== null && _props_remark !== void 0 ? _props_remark : '';
149
184
  };