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

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,33 @@ 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
+ * 签署顺序
142
+ * */ _define_property(this, "signOrder", void 0);
143
+ /**
144
+ * 强制阅读时间
145
+ * */ _define_property(this, "forceReadTime", void 0);
146
+ /**
147
+ * 印章ID
148
+ * */ _define_property(this, "seal", void 0);
149
+ /**
123
150
  * 备注
124
151
  * */ _define_property(this, "remark", void 0);
125
152
  var _props_type;
@@ -144,6 +171,23 @@ export var UndersignedPerson = function UndersignedPerson(props) {
144
171
  });
145
172
  var _props_signaturePosition;
146
173
  this.signaturePosition = (_props_signaturePosition = props === null || props === void 0 ? void 0 : props.signaturePosition) !== null && _props_signaturePosition !== void 0 ? _props_signaturePosition : 'free';
174
+ var _props_seal;
175
+ this.seal = new RightVariable((_props_seal = props === null || props === void 0 ? void 0 : props.seal) !== null && _props_seal !== void 0 ? _props_seal : {
176
+ type: 'form'
177
+ });
178
+ var _props_platformAutoSign;
179
+ this.platformAutoSign = (_props_platformAutoSign = props === null || props === void 0 ? void 0 : props.platformAutoSign) !== null && _props_platformAutoSign !== void 0 ? _props_platformAutoSign : false;
180
+ var _props_signDateBeanType;
181
+ this.signDateBeanType = (_props_signDateBeanType = props === null || props === void 0 ? void 0 : props.signDateBeanType) !== null && _props_signDateBeanType !== void 0 ? _props_signDateBeanType : 0;
182
+ var _props_signDateFontSize;
183
+ this.signDateFontSize = (_props_signDateFontSize = props === null || props === void 0 ? void 0 : props.signDateFontSize) !== null && _props_signDateFontSize !== void 0 ? _props_signDateFontSize : 12;
184
+ var _props_signOrder;
185
+ this.signOrder = (_props_signOrder = props === null || props === void 0 ? void 0 : props.signOrder) !== null && _props_signOrder !== void 0 ? _props_signOrder : 1;
186
+ this.forceReadTime = props === null || props === void 0 ? void 0 : props.forceReadTime;
187
+ var _props_posX;
188
+ this.posX = (_props_posX = props === null || props === void 0 ? void 0 : props.posX) !== null && _props_posX !== void 0 ? _props_posX : 0;
189
+ var _props_posY;
190
+ this.posY = (_props_posY = props === null || props === void 0 ? void 0 : props.posY) !== null && _props_posY !== void 0 ? _props_posY : 0;
147
191
  var _props_remark;
148
192
  this.remark = (_props_remark = props === null || props === void 0 ? void 0 : props.remark) !== null && _props_remark !== void 0 ? _props_remark : '';
149
193
  };