uview-plus 3.4.79 → 3.4.80
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/changelog.md
CHANGED
|
File without changes
|
|
@@ -146,6 +146,22 @@
|
|
|
146
146
|
</slot>
|
|
147
147
|
</view>
|
|
148
148
|
</view>
|
|
149
|
+
<!-- 子级渲染 -->
|
|
150
|
+
<template v-if="isExpanded(row) && row[treeProps.children] && row[treeProps.children].length">
|
|
151
|
+
<view v-for="childRow in row[treeProps.children]" :key="childRow[rowKey]"
|
|
152
|
+
class="u-table-row u-table-row-child">
|
|
153
|
+
<view v-for="(col2, col2Index) in visibleFixedLeftColumns" :key="col2.key" class="u-table-cell"
|
|
154
|
+
:style="cellStyleInner({row: childRow, column: col2,
|
|
155
|
+
rowIndex: index, columnIndex: col2Index, level: 1})">
|
|
156
|
+
<slot name="cell" :row="childRow" :column="col2" :prow="row"
|
|
157
|
+
:rowIndex="index" :columnIndex="col2Index" :level="1">
|
|
158
|
+
<view class="u-table-cell_content">
|
|
159
|
+
{{ childRow[col2.key] }}
|
|
160
|
+
</view>
|
|
161
|
+
</slot>
|
|
162
|
+
</view>
|
|
163
|
+
</view>
|
|
164
|
+
</template>
|
|
149
165
|
</template>
|
|
150
166
|
</template>
|
|
151
167
|
</view>
|
|
@@ -476,9 +492,9 @@ export default {
|
|
|
476
492
|
})
|
|
477
493
|
|
|
478
494
|
// 获取表格高度
|
|
479
|
-
this.$uGetRect('.u-table2').then(size => {
|
|
480
|
-
|
|
481
|
-
})
|
|
495
|
+
// this.$uGetRect('.u-table2').then(size => {
|
|
496
|
+
// this.tableHeight = size.height + 'px';
|
|
497
|
+
// })
|
|
482
498
|
},
|
|
483
499
|
// 将setup中的函数转换为methods
|
|
484
500
|
handleRowClick(row) {
|
package/package.json
CHANGED