meixioacomponent 2.0.50 → 2.0.51
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
|
@@ -509,7 +509,12 @@ export default {
|
|
|
509
509
|
// 使用序号下标
|
|
510
510
|
useIndex: {
|
|
511
511
|
type: Boolean,
|
|
512
|
-
default:
|
|
512
|
+
default: false
|
|
513
|
+
},
|
|
514
|
+
|
|
515
|
+
indexDefaultValue: {
|
|
516
|
+
type: Number,
|
|
517
|
+
default: 0
|
|
513
518
|
},
|
|
514
519
|
|
|
515
520
|
expandId: {
|
|
@@ -636,19 +641,19 @@ export default {
|
|
|
636
641
|
},
|
|
637
642
|
mixins: [tableSectionMixins],
|
|
638
643
|
methods: {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
644
|
+
/**
|
|
645
|
+
* 初始化表格下标
|
|
646
|
+
*/
|
|
647
|
+
initTableIndex() {
|
|
648
|
+
if (this.$props.useIndex) {
|
|
649
|
+
this.tableConfigColumnList.unshift({
|
|
650
|
+
key: ColIndexStr,
|
|
651
|
+
colKey: ColIndexStr,
|
|
652
|
+
label: '序号',
|
|
653
|
+
title: '序号',
|
|
654
|
+
})
|
|
655
|
+
}
|
|
656
|
+
},
|
|
652
657
|
rehandleExpandChange(value, params) {
|
|
653
658
|
this.$emit('rehandleExpandChange', value)
|
|
654
659
|
},
|
|
@@ -1008,7 +1013,7 @@ export default {
|
|
|
1008
1013
|
if (this.$props.useIndex) {
|
|
1009
1014
|
const size = this.$props.pageProps[this.$props.pageConfig.size];
|
|
1010
1015
|
data.forEach((item, index) => {
|
|
1011
|
-
item[`${ColIndexStr}`] = (((pageNum - 1) * size) + (index+
|
|
1016
|
+
item[`${ColIndexStr}`] = (((pageNum - 1) * size) + (index + this.$props.indexDefaultValue))
|
|
1012
1017
|
})
|
|
1013
1018
|
}
|
|
1014
1019
|
this.tableData = [];
|