cloud-web-corejs 1.0.54-dev.242 → 1.0.54-dev.243

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.242",
4
+ "version": "1.0.54-dev.243",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -2391,13 +2391,13 @@ modules = {
2391
2391
  },
2392
2392
  validate(callback) {
2393
2393
  this.$refs['renderForm'].$baseValidate(valid => {
2394
- if(!valid){
2395
- // this.scrollToFirstError();
2396
- }
2394
+ /*if(!valid){
2395
+ this.scrollToFirstError();
2396
+ }*/
2397
2397
  callback && callback(valid);
2398
2398
  })
2399
2399
  },
2400
- scrollToFirstError() {
2400
+ /*scrollToFirstError() {
2401
2401
  // 获取第一个验证失败的字段
2402
2402
  let formTarget = this.$refs['renderForm'];
2403
2403
  const firstErrorField = Object.keys(formTarget.fields).find(key => {
@@ -2405,7 +2405,7 @@ modules = {
2405
2405
  });
2406
2406
 
2407
2407
  if (firstErrorField) {
2408
- const field = this.$refs.form.fields[firstErrorField];
2408
+ const field = formTarget.fields[firstErrorField];
2409
2409
 
2410
2410
  // 滚动到该字段位置
2411
2411
  field.$el.scrollIntoView({
@@ -2421,7 +2421,7 @@ modules = {
2421
2421
  field.$el.classList.remove('highlight');
2422
2422
  }, 3000);
2423
2423
  }
2424
- },
2424
+ },*/
2425
2425
  openSearchDialog(option) {
2426
2426
  this.searchDialogOption = option;
2427
2427
  this.showSearchDialog = true;