bri-components 1.4.10 → 1.4.12
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/lib/0.bri-components.min.js +1 -0
- package/lib/1.bri-components.min.js +1 -0
- package/lib/10.bri-components.min.js +1 -0
- package/lib/11.bri-components.min.js +1 -0
- package/lib/2.bri-components.min.js +1 -0
- package/lib/3.bri-components.min.js +1 -0
- package/lib/4.bri-components.min.js +1 -0
- package/lib/5.bri-components.min.js +1 -0
- package/lib/6.bri-components.min.js +1 -0
- package/lib/7.bri-components.min.js +1 -0
- package/lib/8.bri-components.min.js +1 -0
- package/lib/9.bri-components.min.js +1 -0
- package/lib/bri-components.min.js +90 -0
- package/package.json +1 -1
- package/src/components/controls/base/BriUpload/uploadList.vue +12 -3
- package/src/components/controls/base/DshNumber/DshNumber.vue +27 -2
- package/src/components/controls/mixins/controlMixin.js +103 -99
- package/src/components/controls/senior/flatTable.vue +0 -2
- package/src/components/list/DshCascaderTable.vue +14 -8
- package/src/components/list/DshFlatTable.vue +15 -25
- package/src/components/list/DshTreeTable.vue +13 -4
- package/src/components/list/mixins/DshCascaderTableMixin.js +10 -0
- package/src/components/list/mixins/DshFlatTableMixin.js +27 -29
- package/src/components/list/mixins/tableBaseMixin.js +13 -8
|
@@ -102,7 +102,7 @@ export default {
|
|
|
102
102
|
showImportModal: false,
|
|
103
103
|
exportTimer: null,
|
|
104
104
|
isEnlarge: false,
|
|
105
|
-
isEnlargeFlag:
|
|
105
|
+
isEnlargeFlag: false, // 为重渲染膜态框内容而用
|
|
106
106
|
|
|
107
107
|
baseOperationMap: {
|
|
108
108
|
canCreate: {
|
|
@@ -565,6 +565,12 @@ export default {
|
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
},
|
|
568
|
+
tableInModalPropsObj () {
|
|
569
|
+
return {
|
|
570
|
+
...this.tablePropsObj,
|
|
571
|
+
maxHeight: undefined
|
|
572
|
+
};
|
|
573
|
+
},
|
|
568
574
|
|
|
569
575
|
hideColKeys () {
|
|
570
576
|
return this.selfPropsObj._hideColKeys;
|
|
@@ -712,6 +718,7 @@ export default {
|
|
|
712
718
|
isEnlarge (bool) {
|
|
713
719
|
setTimeout(() => {
|
|
714
720
|
this.isEnlargeFlag = bool;
|
|
721
|
+
this.dealingOpenModal && this.dealingOpenModal();
|
|
715
722
|
}, 0);
|
|
716
723
|
}
|
|
717
724
|
},
|
|
@@ -1050,7 +1057,7 @@ export default {
|
|
|
1050
1057
|
e.stopPropagation();
|
|
1051
1058
|
}
|
|
1052
1059
|
}
|
|
1053
|
-
|
|
1060
|
+
});
|
|
1054
1061
|
},
|
|
1055
1062
|
topSearchRender (h) {
|
|
1056
1063
|
return this.searchFormList.length
|
|
@@ -1340,7 +1347,7 @@ export default {
|
|
|
1340
1347
|
getRowDelBtnCanEdit (row, rowIndex) {
|
|
1341
1348
|
return row.__readonly__ !== true && // 不能为只读数据
|
|
1342
1349
|
(this.disabledDeleteDftRow ? row.__isDefault__ !== true : true) && // 默认数据可删除
|
|
1343
|
-
|
|
1350
|
+
(this.disabledDeleteOldRow ? row.__old__ !== true : true); // 老数据可删除
|
|
1344
1351
|
},
|
|
1345
1352
|
// 行内容是否可编辑
|
|
1346
1353
|
getRowCanEdit (row, rowIndex) {
|
|
@@ -1592,11 +1599,9 @@ export default {
|
|
|
1592
1599
|
? compareRow[curColKey].length === row[curColKey].length && compareRow[curColKey].every((item, index) => item._key === row[curColKey][index]._key)
|
|
1593
1600
|
: compareRow[curColKey] === row[curColKey];
|
|
1594
1601
|
},
|
|
1595
|
-
// 行id
|
|
1596
|
-
getMixKey (row, column,
|
|
1597
|
-
return
|
|
1598
|
-
? `${row._id}dsh${column._key}`
|
|
1599
|
-
: `${row._id}${column._key}`;
|
|
1602
|
+
// 行id + 分隔符 + 列key 组成键
|
|
1603
|
+
getMixKey (row, column, splitStr = "--") {
|
|
1604
|
+
return `${row._id}${splitStr}${column._key}`;
|
|
1600
1605
|
}
|
|
1601
1606
|
}
|
|
1602
1607
|
};
|