sadais-piui 1.2.7-beta171 → 1.2.7-beta172
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.
|
@@ -260,7 +260,7 @@ export default {
|
|
|
260
260
|
if (this.errorType === 'toast' && failedResults.length > 0) {
|
|
261
261
|
this.$toast(failedResults[0].validateMessage)
|
|
262
262
|
}
|
|
263
|
-
return failedResults
|
|
263
|
+
return failedResults.sort((a, b) => a.sort - b.sort)
|
|
264
264
|
},
|
|
265
265
|
/* @vuese
|
|
266
266
|
* 重置表单项,支持传入prop来重置单个或部分表单项
|
|
@@ -274,9 +274,8 @@ export default {
|
|
|
274
274
|
},
|
|
275
275
|
// 排序
|
|
276
276
|
sort: {
|
|
277
|
-
type: String,
|
|
277
|
+
type: [String, Number],
|
|
278
278
|
default() {
|
|
279
|
-
// ''
|
|
280
279
|
return formItem.sort
|
|
281
280
|
}
|
|
282
281
|
}
|
|
@@ -484,6 +483,7 @@ export default {
|
|
|
484
483
|
const _getResolve = () => {
|
|
485
484
|
return {
|
|
486
485
|
prop: this.prop,
|
|
486
|
+
sort: this.sort,
|
|
487
487
|
validateState: this.validateState,
|
|
488
488
|
validateMessage: this.validateMessage
|
|
489
489
|
}
|