leisure-core 1.0.5 → 1.0.7
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/le-report/src/main.vue +8 -0
- package/package.json +1 -1
package/le-report/src/main.vue
CHANGED
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
:scroll-y="{ gt: 0 }"
|
|
44
44
|
:show-footer="showSummary && summaryPosition === 'bottom'"
|
|
45
45
|
:footer-method="summaryPosition === 'bottom' ? footerMethod : null"
|
|
46
|
+
:tree-config="treeConfig"
|
|
47
|
+
@toggle-tree-expand="$emit('toggle-expand', $event)"
|
|
46
48
|
>
|
|
47
49
|
<!-- 加载状态插槽 -->
|
|
48
50
|
<template #loading>
|
|
@@ -61,6 +63,7 @@
|
|
|
61
63
|
fixed="left"
|
|
62
64
|
v-if="showIndex"
|
|
63
65
|
show-overflow-tooltip
|
|
66
|
+
:tree-node="treeConfig != null"
|
|
64
67
|
>
|
|
65
68
|
<template #default="{ row, rowIndex }">
|
|
66
69
|
<span v-if="row._isSummary"></span>
|
|
@@ -280,6 +283,11 @@ export default {
|
|
|
280
283
|
type: Array,
|
|
281
284
|
default: () => ["currency", "number", "percent"],
|
|
282
285
|
},
|
|
286
|
+
// 树形配置,传入后 vxe-table 启用树形模式(如 {children:'children'})
|
|
287
|
+
treeConfig: {
|
|
288
|
+
type: Object,
|
|
289
|
+
default: null,
|
|
290
|
+
},
|
|
283
291
|
},
|
|
284
292
|
watch: {
|
|
285
293
|
searchParam: {
|