@hzab/hierarchical-statistics 0.0.1 → 0.0.3

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,2 +1,4 @@
1
+ # @hzab/component-boilerplate@0.0.2
2
+ - fix: 适配mobile的ItemRender自定义字段
1
3
  # @hzab/component-boilerplate@0.0.1
2
4
  组件初始化
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  ## 示例
12
12
 
13
13
  ```jsx
14
- import { InfiniteListUIPc, InfiniteListUIMobile } from "@hzab/hierarchical-statistics";
14
+ import InfiniteListUIPc from "@hzab/hierarchical-statistics/src/components/InfiniteListUiPc";
15
15
  <InfiniteListUIPc
16
16
  ref={listRef}
17
17
  style={{
@@ -30,9 +30,7 @@ import { InfiniteListUIPc, InfiniteListUIMobile } from "@hzab/hierarchical-stati
30
30
  value: "orgId",
31
31
  label: "orgName",
32
32
  }}
33
- virtualPagedListProps={{
34
- height: 300,
35
- dynamicHeightMode: true,
33
+ Slots={{
36
34
  renderItem: (record) => (
37
35
  <div
38
36
  onClick={() => {
@@ -42,7 +40,11 @@ import { InfiniteListUIPc, InfiniteListUIMobile } from "@hzab/hierarchical-stati
42
40
  >
43
41
  <div>{record?.orgName}</div>
44
42
  </div>
45
- ),
43
+ )
44
+ }}
45
+ virtualPagedListProps={{
46
+ height: 300,
47
+ dynamicHeightMode: true,
46
48
  noMoreComponent: <div>没有更多数据了</div>,
47
49
  }}
48
50
  ></InfiniteListUIPc>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/hierarchical-statistics",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -50,7 +50,7 @@ const InfiniteListUIMobile = (props: InfiniteListProps, ref: ForwardedRef<Infini
50
50
 
51
51
  <div className={styles["list-box-main"]} style={listStyle}>
52
52
  {/* 移动端 */}
53
- <ListRender ref={listRef} model={listModal} {...listRenderProps} renderItem={Slots.renderItem} />
53
+ <ListRender ref={listRef} model={listModal} {...listRenderProps} ItemRender={Slots.renderItem} />
54
54
  </div>
55
55
  </Spin>
56
56
  </div>