ht-components-taro-v3 1.0.3 → 1.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/README.md ADDED
@@ -0,0 +1,20 @@
1
+
2
+ # HTScrollView
3
+
4
+ ## 参数
5
+
6
+ | 参数 | 类型 | 含义 | 必填 | 默认值 |
7
+ | :------: | :-------: | :-------: | :------: | :------: |
8
+ | ajaxFn | function | 请求函数 | 是 | - |
9
+ | api | string | 请求接口 - h5环境下使用 | 是 | - |
10
+ | method | string | 请求方法,默认GET | 是 | 'GET' |
11
+ | resListKey | string | 返回数据列表的key | 是 | - |
12
+ | renderItemFn | function | 列表项渲染函数,函数参数为item和index | 是 | - |
13
+ | className | string | 组件的自定义类名 | - | - |
14
+ | isShowNoMoreDataTips | boolean | 是否显示没有更多数据的提示,默认显示 | - | true |
15
+ | noMoreDataTipsText | string | 没有更多数据的提示内容 | - | '没有更多数据了' |
16
+ | ajaxData | object | 额外的请求参数 | - | {} |
17
+ | limit | number | 每次请求的数据条数,默认10 | - | 10 |
18
+ | dealReqDataFn | function | 请求回来的数据处理函数 | - | - |
19
+ | onReqErrorFn | function | 请求失败回调函数 | - | - |
20
+
@@ -0,0 +1 @@
1
+ .ht-scroll-component-view{display:flex;flex-wrap:wrap;height:100%;width:100%}.ht-scroll-component-view .request-loading-view{align-items:center;color:#9a9b9c;display:flex;font-family:PingFangSC-Regular,PingFang SC;font-size:40px;font-weight:400;justify-content:center;width:100%}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ht-scroll-component-view .request-loading-view .request-loading-icon{animation:rotate 3s linear infinite;display:block;height:40px;margin-right:8px;width:40px}.ht-scroll-component-view .no-more-data-tip{color:#9a9b9c;font-family:PingFangSC-Regular,PingFang SC;font-size:40px;font-weight:400;line-height:58px;text-align:center;width:100%}