bri-components 1.2.98 → 1.2.99

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,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.2.98",
3
+ "version": "1.2.99",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -411,8 +411,9 @@
411
411
  validate () {
412
412
  this.showRuleMessage = true;
413
413
 
414
+ const subColumns = this.columns.filter(col => col.colType === "data");
414
415
  return this.rows.every((row, rowIndex) =>
415
- this.subColumns.every(col => this.getRuleResult(col, row, rowIndex, true).bool)
416
+ subColumns.every(col => this.getRuleResult(col, row[col.nodeKey], rowIndex, true).bool)
416
417
  );
417
418
  },
418
419