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
@@ -1,3 +1,6 @@
1
+ ## 3.4.80(2025-08-10)
2
+ feat: 新增table2固定列对树状支持
3
+
1
4
  ## 3.4.79(2025-08-09)
2
5
  feat: table2组件支持左侧固定列功能
3
6
 
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
- this.tableHeight = size.height + 'px';
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
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙跨端移动组件库,组件丰富维护更新稳定。",
5
- "version": "3.4.79",
5
+ "version": "3.4.80",
6
6
  "description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",