@byteluck-fe/model-driven-controls 2.23.0 → 2.23.1-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,
@@ -114,6 +114,12 @@ export var UndersignedPerson = function UndersignedPerson(props) {
114
114
  * 公司名称
115
115
  * */ _define_property(this, "company", void 0);
116
116
  /**
117
+ * 签署位置 自由签署 指定签署
118
+ * */ _define_property(this, "signaturePosition", void 0);
119
+ /**
120
+ * 指定位置
121
+ * */ _define_property(this, "indexSignature", void 0);
122
+ /**
117
123
  * 备注
118
124
  * */ _define_property(this, "remark", void 0);
119
125
  var _props_type;
@@ -132,6 +138,12 @@ export var UndersignedPerson = function UndersignedPerson(props) {
132
138
  this.company = (_props_company1 = props === null || props === void 0 ? void 0 : props.company) !== null && _props_company1 !== void 0 ? _props_company1 : new RightVariable((_props_company = props === null || props === void 0 ? void 0 : props.company) !== null && _props_company !== void 0 ? _props_company : {
133
139
  type: 'form'
134
140
  });
141
+ var _props_indexSignature, _props_indexSignature1;
142
+ this.indexSignature = (_props_indexSignature1 = props === null || props === void 0 ? void 0 : props.indexSignature) !== null && _props_indexSignature1 !== void 0 ? _props_indexSignature1 : new RightVariable((_props_indexSignature = props === null || props === void 0 ? void 0 : props.indexSignature) !== null && _props_indexSignature !== void 0 ? _props_indexSignature : {
143
+ type: 'form'
144
+ });
145
+ var _props_signaturePosition;
146
+ this.signaturePosition = (_props_signaturePosition = props === null || props === void 0 ? void 0 : props.signaturePosition) !== null && _props_signaturePosition !== void 0 ? _props_signaturePosition : 'free';
135
147
  var _props_remark;
136
148
  this.remark = (_props_remark = props === null || props === void 0 ? void 0 : props.remark) !== null && _props_remark !== void 0 ? _props_remark : '';
137
149
  };