vsyswin-ui 0.2.76 → 0.2.78

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": "vsyswin-ui",
3
- "version": "0.2.76",
3
+ "version": "0.2.78",
4
4
  "main": "lib/vsyswin-ui.umd.min.js",
5
5
  "private": false,
6
6
  "description": "Vue2.x的应用组件库.",
@@ -8,7 +8,7 @@
8
8
  class="cusTable"
9
9
  :row-key="rowKey"
10
10
  :show-summary="showSummary"
11
- :summary-method="getSummaries"
11
+ :summary-method="customSum ? getSummaries : getSummariesNum"
12
12
  ref="cusTable"
13
13
  height='100%'
14
14
  :indent="indent"
@@ -224,6 +224,11 @@ export default {
224
224
  type: Boolean,
225
225
  default: () => false
226
226
  },
227
+ // 合计的处理方法
228
+ getSummaries: {
229
+ type: Function,
230
+ default: () => {}
231
+ },
227
232
  // 行数据的 Key,用来优化 Table 的渲染;在使用 reserve-selection 功能与显示树形数据时,该属性是必填的。
228
233
  rowKey: {
229
234
  type: String,
@@ -480,7 +485,7 @@ export default {
480
485
  this.$refs.cusTable.clearSort();
481
486
  },
482
487
  // 自定义合计方法
483
- getSummaries ({ columns, data }) {
488
+ getSummariesNum ({ columns, data }) {
484
489
  this.$nextTick(() => {
485
490
  this.doLayout();
486
491
  });