holyes-table 1.0.9 → 1.0.10

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/README.md CHANGED
@@ -421,7 +421,7 @@ const expandConfig = {
421
421
  | updateFooter | `()` | `void` | 更新表尾行数据 |
422
422
  | updateFooterCellLabel | `(field: string, rowIndex: number, label: string)` | `void` | 更新表尾单元格文本 |
423
423
  | setTreeExpand | `(rows: any[], expanded: boolean)` | `void` | 设置树形节点展开/收起 |
424
- | setAllTreeExpand | `(isExpand: boolean)` | `void` | 设置所有树形节点展开/收起 |
424
+ | setAllTreeExpand | `(isExpand: boolean)` | `void` | 设置所有树形节点展开/收起,不包含懒加载节点 |
425
425
  | clearTreeExpand | `()` | `void` | 清除所有树形节点展开状态 |
426
426
  | setRowExpand | `(rows: any[], expanded: boolean)` | `void` | 设置展开行展开/收起 |
427
427
 
package/dist/index.mjs CHANGED
@@ -916,8 +916,17 @@ var _e = (e) => {
916
916
  }
917
917
  }), tt = () => {
918
918
  S(_.value), N(), B();
919
- }, nt = (e) => {
920
- e ? at(_.value, !0) : rt();
919
+ }, nt = (t) => {
920
+ if (t) {
921
+ let t = e.props.treeConfig?.childrenField || G.childrenField, n = [], r = (e) => {
922
+ if (e[t]?.length) {
923
+ n.push(e);
924
+ for (let n of e[t]) r(n);
925
+ }
926
+ };
927
+ for (let e of _.value) r(e);
928
+ at(n, !0);
929
+ } else rt();
921
930
  }, rt = () => {
922
931
  it.forEach((e) => {
923
932
  e[t.isCollapsed] = !1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holyes-table",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "合力思虚拟滚动表格组件",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -44,6 +44,8 @@
44
44
  "vue-tsc": "^2.2.12"
45
45
  },
46
46
  "dependencies": {
47
- "normalize.css": "^8.0.1"
47
+ "normalize.css": "^8.0.1",
48
+ "vxe-pc-ui": "^4.14.11",
49
+ "xe-utils": "^4.0.7"
48
50
  }
49
51
  }