bri-components 1.4.75 → 1.4.76
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
|
@@ -485,10 +485,15 @@ export default {
|
|
|
485
485
|
// 全部数据 或 筛选时符合条件的数据 -当前页的
|
|
486
486
|
curPageShowListData () {
|
|
487
487
|
return this.pagePropsObj.page >= 1
|
|
488
|
-
? this.showListData.
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
488
|
+
? (this.pagePropsObj.page - 1) * this.pagePropsObj.pagesize >= this.showListData.length
|
|
489
|
+
? this.showListData.slice(
|
|
490
|
+
(this.pagePropsObj.page - 2) * this.pagePropsObj.pagesize,
|
|
491
|
+
(this.pagePropsObj.page - 1) * this.pagePropsObj.pagesize
|
|
492
|
+
)
|
|
493
|
+
: this.showListData.slice(
|
|
494
|
+
(this.pagePropsObj.page - 1) * this.pagePropsObj.pagesize,
|
|
495
|
+
this.pagePropsObj.page * this.pagePropsObj.pagesize
|
|
496
|
+
)
|
|
492
497
|
: [];
|
|
493
498
|
},
|
|
494
499
|
// 全部数据 或 筛选时符合条件的数据 -总数
|
|
@@ -512,11 +517,16 @@ export default {
|
|
|
512
517
|
const initDftVal = this.initDftValMap[column._type];
|
|
513
518
|
|
|
514
519
|
return Object.assign(obj, {
|
|
515
|
-
[column._key]:
|
|
516
|
-
?
|
|
520
|
+
[column._key]: dftInRowVal === undefined
|
|
521
|
+
? dftVal === undefined
|
|
517
522
|
? initDftVal
|
|
518
523
|
: dftVal
|
|
519
524
|
: dftInRowVal
|
|
525
|
+
// [column._key]: this.$isEmptyData(dftInRowVal)
|
|
526
|
+
// ? this.$isEmptyData(dftVal)
|
|
527
|
+
// ? initDftVal
|
|
528
|
+
// : dftVal
|
|
529
|
+
// : dftInRowVal
|
|
520
530
|
});
|
|
521
531
|
}, {});
|
|
522
532
|
},
|
|
@@ -602,6 +612,13 @@ export default {
|
|
|
602
612
|
// clickHighlight: true,
|
|
603
613
|
// stripe: true // 斑马纹
|
|
604
614
|
// },
|
|
615
|
+
...(
|
|
616
|
+
this.selfPropsObj.checkboxOption
|
|
617
|
+
? {
|
|
618
|
+
checkboxOption: this.selfPropsObj.checkboxOption
|
|
619
|
+
}
|
|
620
|
+
: {}
|
|
621
|
+
),
|
|
605
622
|
maxHeight: this.contentHeight,
|
|
606
623
|
// 通过实例方法 hideColumnsByKeys(keys)将列隐藏,通过实例方法 showColumnsByKeys(keys)将隐藏的列显示
|
|
607
624
|
columnHiddenOption: {
|
|
@@ -854,8 +871,8 @@ export default {
|
|
|
854
871
|
}
|
|
855
872
|
},
|
|
856
873
|
// 列表选择项改变
|
|
857
|
-
changeSelect (
|
|
858
|
-
this.$emit("changeSelect",
|
|
874
|
+
changeSelect (...params) {
|
|
875
|
+
this.$emit("changeSelect", params[0].map(item => item._id), ...params);
|
|
859
876
|
},
|
|
860
877
|
// 切换正倒序
|
|
861
878
|
changeSort () {
|