bri-components 1.3.41 → 1.3.42

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.3.41",
3
+ "version": "1.3.42",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -650,18 +650,18 @@ export default {
650
650
  },
651
651
  // 列本身是否可编辑
652
652
  getColCanEdit (col, row) {
653
- return !(
653
+ return (
654
654
  ["cascaderTable"].includes(this.controlType)
655
655
  ? (
656
656
  // 树形表格 -“需要计算的数字列 且 不是叶子行的”不可编辑(必须用isLeaf !== false判断,因为牵扯内部表格也在用)
657
657
  ["number"].includes(col._type) && ![undefined, null, "", "no"].includes(col._summaryType)
658
- ? row.isLeaf !== false
658
+ ? row.isLeaf === true
659
659
  : true
660
660
  ) && (
661
661
  // 树形表格 -“需要限制的日期列 且 不是叶子行的”不可编辑(必须用isLeaf !== false判断,因为牵扯内部表格也在用)
662
662
  ["date"].includes(col._type)
663
663
  ? ["downToUp"].includes(col._writeSort)
664
- ? row.isLeaf !== false
664
+ ? row.isLeaf === true
665
665
  : ["upToDown"].includes(col._writeSort)
666
666
  ? row.level === 1 || !!this.getParentNode(row, this.allTreeData)[col._key]
667
667
  : true