bri-components 1.3.76 → 1.3.77
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.
package/package.json
CHANGED
|
@@ -198,16 +198,14 @@
|
|
|
198
198
|
},
|
|
199
199
|
|
|
200
200
|
forceValidateTypes: [
|
|
201
|
-
"select", "cascader", "regions", "cascaders", "file", "coordinates", "editor",
|
|
201
|
+
"select", "region", "cascader", "regions", "cascaders", "file", "coordinates", "editor",
|
|
202
202
|
"users", "departments", "labels", "flatTable", "reference", "referenceBy"
|
|
203
203
|
],
|
|
204
204
|
ignoreProperties: [
|
|
205
|
-
"_name", "_key", "_default", "_required", "_span", "_br", "_line", "_noLabel", "_clearable",
|
|
205
|
+
"_name", "_key", "_default", "_required", "_regStr", "_regMessage", "_span", "_br", "_line", "_noLabel", "_clearable",
|
|
206
206
|
"_disabledBtns", "_disabledOldDataRow"
|
|
207
|
-
],
|
|
208
|
-
subIgnoreProperties: [
|
|
209
|
-
"_regStr", "_regMessage"
|
|
210
207
|
]
|
|
208
|
+
// subIgnoreProperties: []
|
|
211
209
|
};
|
|
212
210
|
},
|
|
213
211
|
computed: {
|
|
@@ -290,11 +288,9 @@
|
|
|
290
288
|
if (this.$refs.dshFormUnit) {
|
|
291
289
|
errorRefs = this.$refs.dshFormUnit.filter(refItem => !refItem.validate());
|
|
292
290
|
bool = !errorRefs.length;
|
|
293
|
-
} else {
|
|
294
|
-
bool = true;
|
|
295
291
|
}
|
|
296
|
-
cb && cb(bool, errorRefs.map(errorRefItem => errorRefItem.formItem));
|
|
297
292
|
|
|
293
|
+
cb && cb(bool, errorRefs.map(errorRefItem => errorRefItem.formItem));
|
|
298
294
|
return bool;
|
|
299
295
|
},
|
|
300
296
|
// iview的校验回调
|
|
@@ -342,9 +338,9 @@
|
|
|
342
338
|
_displayType: "show",
|
|
343
339
|
canEdit: !["createdAt", "updatedAt", "_creaters"].includes(formData._key)
|
|
344
340
|
}).forEach(arr => {
|
|
345
|
-
!this.ignoreProperties.includes(arr[0])
|
|
346
|
-
(formData.__parentKey__ ? !this.subIgnoreProperties.includes(arr[0]) : true) &&
|
|
341
|
+
if (!this.ignoreProperties.includes(arr[0])) {
|
|
347
342
|
this.$set(formItem, arr[0], arr[1]);
|
|
343
|
+
}
|
|
348
344
|
});
|
|
349
345
|
}
|
|
350
346
|
|
|
@@ -378,7 +374,7 @@
|
|
|
378
374
|
if (ruleConfig.regs && ruleConfig.regs.length) {
|
|
379
375
|
rules.push({
|
|
380
376
|
message: formItem._regMessage || `${formItem._name}格式不正确!`,
|
|
381
|
-
trigger: "blur",
|
|
377
|
+
trigger: "blur, change",
|
|
382
378
|
type: "string",
|
|
383
379
|
transform: (val) => {
|
|
384
380
|
return this.$isEmptyData(val)
|