bri-components 1.4.77 → 1.4.79
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
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
...this.selfColumns
|
|
47
47
|
.filter((colItem, colIndex) => colIndex > firstNormalIndex && this.mergeRowColKeys.includes(colItem._key))
|
|
48
48
|
.map(colItem => colItem._key)
|
|
49
|
-
|
|
49
|
+
];
|
|
50
50
|
} else {
|
|
51
51
|
return [];
|
|
52
52
|
}
|
|
@@ -83,10 +83,11 @@ export default {
|
|
|
83
83
|
curPageShowListData () {
|
|
84
84
|
return this.pagePropsObj.page >= 1
|
|
85
85
|
? (this.pagePropsObj.page - 1) * this.pagePropsObj.pagesize >= this.showListData.length
|
|
86
|
-
? this.showListData.slice(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
? this.showListData.slice(-(
|
|
87
|
+
this.showListData.length % this.pagePropsObj.pagesize === 0
|
|
88
|
+
? this.pagePropsObj.pagesize
|
|
89
|
+
: this.showListData.length % this.pagePropsObj.pagesize
|
|
90
|
+
))
|
|
90
91
|
: this.showListData.slice(
|
|
91
92
|
(this.pagePropsObj.page - 1) * this.pagePropsObj.pagesize,
|
|
92
93
|
this.pagePropsObj.page * this.pagePropsObj.pagesize
|
|
@@ -176,6 +177,7 @@ export default {
|
|
|
176
177
|
changePageSize (pagesize) {
|
|
177
178
|
this.pagePropsObj.page = 1;
|
|
178
179
|
this.pagePropsObj.pagesize = pagesize;
|
|
180
|
+
this.loadingFunc();
|
|
179
181
|
},
|
|
180
182
|
|
|
181
183
|
// 点击 -添加行
|
|
@@ -443,7 +445,7 @@ export default {
|
|
|
443
445
|
.forEach(rowItem => {
|
|
444
446
|
console.log(rowItem[column._key]);
|
|
445
447
|
rowItem[column._key] = this.$deepCopy(row[column._key]);
|
|
446
|
-
|
|
448
|
+
});
|
|
447
449
|
}
|
|
448
450
|
}
|
|
449
451
|
}
|
|
@@ -805,6 +805,12 @@ export default {
|
|
|
805
805
|
this.loadingFunc();
|
|
806
806
|
},
|
|
807
807
|
|
|
808
|
+
// 共外部使用
|
|
809
|
+
validate () {
|
|
810
|
+
this.showRuleMessage = true;
|
|
811
|
+
|
|
812
|
+
return this.allListData.every((row, rowIndex) => this.getRowRuleResult(row, rowIndex));
|
|
813
|
+
},
|
|
808
814
|
// 重置
|
|
809
815
|
reset () {
|
|
810
816
|
this.initFlag = true;
|
|
@@ -824,11 +830,12 @@ export default {
|
|
|
824
830
|
|
|
825
831
|
this.selfReset && this.selfReset();
|
|
826
832
|
},
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
833
|
+
loadingFunc () {
|
|
834
|
+
this.isLoading = true;
|
|
835
|
+
setTimeout(() => {
|
|
836
|
+
this.changeSelect();
|
|
837
|
+
this.isLoading = false;
|
|
838
|
+
});
|
|
832
839
|
},
|
|
833
840
|
|
|
834
841
|
// 筛选回调
|
|
@@ -840,14 +847,8 @@ export default {
|
|
|
840
847
|
}
|
|
841
848
|
},
|
|
842
849
|
// 列表选择项改变
|
|
843
|
-
changeSelect (...params) {
|
|
844
|
-
this.$emit("changeSelect",
|
|
845
|
-
},
|
|
846
|
-
loadingFunc () {
|
|
847
|
-
this.isLoading = true;
|
|
848
|
-
setTimeout(() => {
|
|
849
|
-
this.isLoading = false;
|
|
850
|
-
});
|
|
850
|
+
changeSelect (selections = [], ...params) {
|
|
851
|
+
this.$emit("changeSelect", selections.map(item => item._id), selections, ...params);
|
|
851
852
|
},
|
|
852
853
|
|
|
853
854
|
// 输入框失去焦点
|