meixioacomponent 1.1.63 → 1.1.64

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": "meixioacomponent",
3
- "version": "1.1.63",
3
+ "version": "1.1.64",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -256,6 +256,7 @@ import componentConfig from "../../config/componentConfig";
256
256
  import {tableSectionMixins} from "../mixins/tableSectionMixins";
257
257
  import TableCheckControl from "./TableCheckControl";
258
258
  import proTableLocalConfigManage from "../../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
259
+
259
260
  const ColIndexStr = 'colIndex'
260
261
  export default {
261
262
  name: "baseProTable",
@@ -517,7 +518,11 @@ export default {
517
518
  // 使用序号下标
518
519
  useIndex: {
519
520
  type: Boolean,
520
- default: true
521
+ default: false
522
+ },
523
+ indexDefaultValue: {
524
+ type: Number,
525
+ default: 0
521
526
  }
522
527
 
523
528
  },
@@ -639,7 +644,7 @@ export default {
639
644
  colKey: ColIndexStr,
640
645
  label: '序号',
641
646
  title: '序号',
642
- disabledSortable:true
647
+ disabledSortable: true
643
648
  })
644
649
  }
645
650
  },
@@ -1001,7 +1006,7 @@ export default {
1001
1006
  if (this.$props.useIndex) {
1002
1007
  const size = this.$props.pageProps[this.$props.pageConfig.size];
1003
1008
  data.forEach((item, index) => {
1004
- item[`${ColIndexStr}`] = (((pageNum - 1) * size) + (index+1))
1009
+ item[`${ColIndexStr}`] = (((pageNum - 1) * size) + (index + this.$props.indexDefaultValue))
1005
1010
  })
1006
1011
  }
1007
1012