@hzab/hierarchical-statistics 0.0.4 → 0.0.5

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,5 @@
1
+ # @hzab/component-boilerplate@0.0.5
2
+ - fix: 暴露面包屑回显数据breadcrumbData
1
3
  # @hzab/component-boilerplate@0.0.4
2
4
  - fix: dependencies改成peerDependencies
3
5
  - fix: 样式index.module.less改成index.less引入
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/hierarchical-statistics",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -31,6 +31,7 @@ const InfiniteListUIMobile = (props: InfiniteListProps, ref: ForwardedRef<Infini
31
31
  listModal,
32
32
  breadModel,
33
33
  fetchBreadData,
34
+ breadcrumbData,
34
35
  }));
35
36
  return (
36
37
  <div className={`infinite-level-box ${className || ""}`} style={style}>
@@ -9,6 +9,7 @@ const InfiniteListUIPc = (props: InfiniteListProps, ref: ForwardedRef<InfiniteLi
9
9
  const {
10
10
  states: {
11
11
  listModal,
12
+ breadModel,
12
13
  readcrumbStyle,
13
14
  separatorStyle,
14
15
  separator,
@@ -22,7 +23,7 @@ const InfiniteListUIPc = (props: InfiniteListProps, ref: ForwardedRef<InfiniteLi
22
23
  virtualPagedListProps,
23
24
  className,
24
25
  },
25
- actions: { handleSelectId, handleNodeClick, handleBreadcrumbClick },
26
+ actions: { handleSelectId, handleNodeClick, handleBreadcrumbClick, fetchBreadData },
26
27
  } = useInfiniteList({ ...props, terminal: "pc" });
27
28
 
28
29
  useImperativeHandle(ref, () => ({
@@ -30,6 +31,9 @@ const InfiniteListUIPc = (props: InfiniteListProps, ref: ForwardedRef<InfiniteLi
30
31
  handleSelectId,
31
32
  listRef: listRef?.current,
32
33
  listModal,
34
+ breadModel,
35
+ fetchBreadData,
36
+ breadcrumbData,
33
37
  }));
34
38
 
35
39
  const loadData = async (pageNum) => {
package/src/type.d.ts CHANGED
@@ -24,6 +24,11 @@ export interface InfiniteListInstance {
24
24
  handleSelectId?: (item: ListItem) => void;
25
25
  listRef?: any;
26
26
  listModal?: any;
27
+ breadModel?: any;
28
+ /** 面包屑回显数据 */
29
+ breadcrumbData?: any;
30
+ /** 面包屑数据请求方法 */
31
+ fetchBreadData?: () => Promise<void>;
27
32
  }
28
33
  export interface InfiniteListProps {
29
34
  /** 添加外层类名 */