@byteluck-fe/model-driven-controls 2.23.0 → 2.23.1-beta.2
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,
|
package/dist/esm/framework.js
CHANGED
|
@@ -114,6 +114,21 @@ 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
|
+
/**
|
|
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
|
+
/**
|
|
117
132
|
* 备注
|
|
118
133
|
* */ _define_property(this, "remark", void 0);
|
|
119
134
|
var _props_type;
|
|
@@ -132,6 +147,18 @@ export var UndersignedPerson = function UndersignedPerson(props) {
|
|
|
132
147
|
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
148
|
type: 'form'
|
|
134
149
|
});
|
|
150
|
+
var _props_indexSignature, _props_indexSignature1;
|
|
151
|
+
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 : {
|
|
152
|
+
type: 'form'
|
|
153
|
+
});
|
|
154
|
+
var _props_signaturePosition;
|
|
155
|
+
this.signaturePosition = (_props_signaturePosition = props === null || props === void 0 ? void 0 : props.signaturePosition) !== null && _props_signaturePosition !== void 0 ? _props_signaturePosition : 'free';
|
|
156
|
+
var _props_platformAutoSign;
|
|
157
|
+
this.platformAutoSign = (_props_platformAutoSign = props === null || props === void 0 ? void 0 : props.platformAutoSign) !== null && _props_platformAutoSign !== void 0 ? _props_platformAutoSign : false;
|
|
158
|
+
var _props_posX;
|
|
159
|
+
this.posX = (_props_posX = props === null || props === void 0 ? void 0 : props.posX) !== null && _props_posX !== void 0 ? _props_posX : 0;
|
|
160
|
+
var _props_posY;
|
|
161
|
+
this.posY = (_props_posY = props === null || props === void 0 ? void 0 : props.posY) !== null && _props_posY !== void 0 ? _props_posY : 0;
|
|
135
162
|
var _props_remark;
|
|
136
163
|
this.remark = (_props_remark = props === null || props === void 0 ? void 0 : props.remark) !== null && _props_remark !== void 0 ? _props_remark : '';
|
|
137
164
|
};
|