vxe-table 3.8.7-beta.5 → 3.8.7-beta.7

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.
Files changed (37) hide show
  1. package/lib/all.js +2 -2
  2. package/lib/all.min.js +1 -1
  3. package/lib/export/index.js +1 -1
  4. package/lib/export/index.min.js +1 -1
  5. package/lib/form/src/form.js +33 -41
  6. package/lib/form/src/form.min.js +1 -1
  7. package/lib/icon/style/style.css +1 -1
  8. package/lib/icon/style/style.min.css +1 -1
  9. package/lib/index.css +1 -1
  10. package/lib/index.umd.js +59 -56
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/style.css +1 -1
  13. package/lib/style.min.css +1 -1
  14. package/lib/table/src/methods.js +8 -2
  15. package/lib/table/src/methods.min.js +1 -1
  16. package/lib/table/style/style.css +1 -1
  17. package/lib/table/style/style.min.css +1 -1
  18. package/lib/tools/log.js +1 -1
  19. package/lib/tools/log.min.js +1 -1
  20. package/lib/v-x-e-table/index.js +1 -1
  21. package/lib/v-x-e-table/index.min.js +1 -1
  22. package/lib/validator/src/mixin.js +12 -12
  23. package/lib/vxe-table/style/style.css +1 -1
  24. package/lib/vxe-table/style/style.min.css +1 -1
  25. package/package.json +1 -1
  26. package/packages/all.js +3 -3
  27. package/packages/export/index.js +1 -1
  28. package/packages/form/src/form.js +4 -11
  29. package/packages/table/src/methods.js +8 -2
  30. package/packages/validator/src/mixin.js +12 -12
  31. package/styles/table.scss +1 -1
  32. /package/lib/icon/style/{iconfont.1716214381092.ttf → iconfont.1716544406262.ttf} +0 -0
  33. /package/lib/icon/style/{iconfont.1716214381092.woff → iconfont.1716544406262.woff} +0 -0
  34. /package/lib/icon/style/{iconfont.1716214381092.woff2 → iconfont.1716544406262.woff2} +0 -0
  35. /package/lib/{iconfont.1716214381092.ttf → iconfont.1716544406262.ttf} +0 -0
  36. /package/lib/{iconfont.1716214381092.woff → iconfont.1716544406262.woff} +0 -0
  37. /package/lib/{iconfont.1716214381092.woff2 → iconfont.1716544406262.woff2} +0 -0
@@ -128,18 +128,18 @@ export default {
128
128
  const validRest = {}
129
129
  const { editRules, afterFullData, visibleColumn, treeConfig, treeOpts } = this
130
130
  const childrenField = treeOpts.children || treeOpts.childrenField
131
- let validDatas
131
+ let validList
132
132
  if (rows === true) {
133
- validDatas = afterFullData
133
+ validList = afterFullData
134
134
  } else if (rows) {
135
135
  if (XEUtils.isFunction(rows)) {
136
136
  cb = rows
137
137
  } else {
138
- validDatas = XEUtils.isArray(rows) ? rows : [rows]
138
+ validList = XEUtils.isArray(rows) ? rows : [rows]
139
139
  }
140
140
  }
141
- if (!validDatas) {
142
- validDatas = this.getInsertRecords().concat(this.getUpdateRecords())
141
+ if (!validList) {
142
+ validList = this.getInsertRecords().concat(this.getUpdateRecords())
143
143
  }
144
144
  const rowValidErrs = []
145
145
  this.lastCallTime = Date.now()
@@ -188,9 +188,9 @@ export default {
188
188
  }
189
189
  }
190
190
  if (treeConfig) {
191
- XEUtils.eachTree(validDatas, handleVaild, { children: childrenField })
191
+ XEUtils.eachTree(validList, handleVaild, { children: childrenField })
192
192
  } else {
193
- validDatas.forEach(handleVaild)
193
+ validList.forEach(handleVaild)
194
194
  }
195
195
  return Promise.all(rowValidErrs).then(() => {
196
196
  const ruleProps = Object.keys(validRest)
@@ -279,7 +279,7 @@ export default {
279
279
  const { editRules } = this
280
280
  const { property } = column
281
281
  const errorRules = []
282
- const syncVailds = []
282
+ const syncValidList = []
283
283
  if (property && editRules) {
284
284
  const rules = XEUtils.get(editRules, property)
285
285
  if (rules) {
@@ -324,7 +324,7 @@ export default {
324
324
  errorRules.push(new Rule({ type: 'custom', trigger, content: customValid.message, rule: new Rule(rule) }))
325
325
  } else if (customValid.catch) {
326
326
  // 如果为异步校验(注:异步校验是并发无序的)
327
- syncVailds.push(
327
+ syncValidList.push(
328
328
  customValid.catch(e => {
329
329
  this.validRuleErr = true
330
330
  errorRules.push(new Rule({ type: 'custom', trigger, content: e && e.message ? e.message : (rule.content || rule.message), rule: new Rule(rule) }))
@@ -352,7 +352,7 @@ export default {
352
352
  })
353
353
  }
354
354
  }
355
- return Promise.all(syncVailds).then(() => {
355
+ return Promise.all(syncValidList).then(() => {
356
356
  if (errorRules.length) {
357
357
  const rest = { rules: errorRules, rule: errorRules[0] }
358
358
  return Promise.reject(rest)
@@ -384,9 +384,9 @@ export default {
384
384
  })
385
385
  })
386
386
  } else if (rowList.length) {
387
- const rowidList = rowList.map(row => `${getRowid(this, row)}`)
387
+ const rowIdList = rowList.map(row => `${getRowid(this, row)}`)
388
388
  XEUtils.each(validErrorMaps, (item, key) => {
389
- if (rowidList.indexOf(key.split(':')[0]) > -1) {
389
+ if (rowIdList.indexOf(key.split(':')[0]) > -1) {
390
390
  validErrMaps[key] = item
391
391
  }
392
392
  })
package/styles/table.scss CHANGED
@@ -609,7 +609,7 @@
609
609
  }
610
610
  }
611
611
  &.cell--area {
612
- .vxe-table--main-wrapper {
612
+ .vxe-body--row {
613
613
  user-select: none;
614
614
  }
615
615
  }