vsyswin-ui 0.2.77 → 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/lib/vsyswin-ui.common.js +55 -50
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +55 -50
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +7 -7
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/table/src/table.vue +7 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
488
|
+
getSummariesNum ({ columns, data }) {
|
|
484
489
|
this.$nextTick(() => {
|
|
485
490
|
this.doLayout();
|
|
486
491
|
});
|