ht-components-taro-v3 1.0.7 → 1.0.9

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.
@@ -1 +1 @@
1
- .ht-scroll-component-view{height:100%;width:100%}.ht-scroll-component-view .ht-scroll-component-inner{box-sizing:border-box;display:flex;flex-wrap:wrap;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;padding:200px 0;text-align:center;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-img{display:block;height:128px;margin-bottom:20px;width:128px}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-label{color:#424242;font-family:PingFangSC-Regular,PingFang SC;font-size:26px;font-weight:400}.ht-scroll-component-view .ht-scroll-component-inner .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 .ht-scroll-component-inner .request-loading-view .request-loading-icon{animation:rotate 3s linear infinite;display:block;height:40px;margin-right:8px;width:40px}.ht-scroll-component-view .ht-scroll-component-inner .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%}
1
+ .ht-scroll-component-view{height:100%;width:100%}.ht-scroll-component-view .ht-scroll-component-inner{box-sizing:border-box;display:flex;flex-wrap:wrap;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;padding:200px 0;text-align:center;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-img{display:block;height:220px;margin-bottom:24px;width:382px}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-label,.ht-scroll-component-view .ht-scroll-component-inner .request-loading-view{color:#9a9b9c;font-family:PingFangSC-Regular,PingFang SC;font-size:40px;font-weight:400}.ht-scroll-component-view .ht-scroll-component-inner .request-loading-view{align-items:center;display:flex;justify-content:center;width:100%}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ht-scroll-component-view .ht-scroll-component-inner .request-loading-view .request-loading-icon{animation:rotate 3s linear infinite;display:block;height:40px;margin-right:8px;width:40px}.ht-scroll-component-view .ht-scroll-component-inner .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%}
package/dist/cjs/index.js CHANGED
@@ -2548,11 +2548,14 @@ var HTScrollView = function HTScrollView(props) {
2548
2548
  className: "blank-data-view"
2549
2549
  }, /*#__PURE__*/React__default["default"].createElement(components.Image, {
2550
2550
  className: "blank-data-img",
2551
- src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-question/h5/list-blank.png"
2551
+ src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-live/taroComponentsV3/scroll-list-empty-icon.png"
2552
2552
  }), /*#__PURE__*/React__default["default"].createElement(components.View, {
2553
2553
  className: "blank-data-label"
2554
2554
  }, "\u6682\u65E0\u6570\u636E"));
2555
2555
  };
2556
+
2557
+ // 是否为空列表
2558
+ var isEmpty = !isRequesting && !dataList.length;
2556
2559
  return /*#__PURE__*/React__default["default"].createElement(components.ScrollView, {
2557
2560
  className: "ht-scroll-component-view ".concat(scrollClassName || ''),
2558
2561
  scrollY: true,
@@ -2562,12 +2565,12 @@ var HTScrollView = function HTScrollView(props) {
2562
2565
  className: "ht-scroll-component-inner ".concat(className || '')
2563
2566
  }, dataList.map(function (item, index) {
2564
2567
  return renderItemFn(item, index);
2565
- }), !isRequesting && !dataList.length ? renderEmptyFn ? renderEmptyFn() : renderEmptyDefaultFn() : '', isRequesting && /*#__PURE__*/React__default["default"].createElement(components.View, {
2568
+ }), isEmpty ? renderEmptyFn ? renderEmptyFn() : renderEmptyDefaultFn() : '', isRequesting && /*#__PURE__*/React__default["default"].createElement(components.View, {
2566
2569
  className: "request-loading-view"
2567
2570
  }, /*#__PURE__*/React__default["default"].createElement(components.Image, {
2568
2571
  className: "request-loading-icon",
2569
2572
  src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-live/taroComponentsV3/scroll-bottom-loading-icon.png"
2570
- }), "\u6B63\u5728\u52A0\u8F7D\u4E2D..."), isCompleteAllData && !!isShowNoMoreDataTips && /*#__PURE__*/React__default["default"].createElement(components.View, {
2573
+ }), "\u6B63\u5728\u52A0\u8F7D\u4E2D..."), !isEmpty && isCompleteAllData && !!isShowNoMoreDataTips && /*#__PURE__*/React__default["default"].createElement(components.View, {
2571
2574
  className: "no-more-data-tip"
2572
2575
  }, noMoreDataTipsText)));
2573
2576
  };
@@ -1 +1 @@
1
- .ht-scroll-component-view{height:100%;width:100%}.ht-scroll-component-view .ht-scroll-component-inner{box-sizing:border-box;display:flex;flex-wrap:wrap;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;padding:200px 0;text-align:center;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-img{display:block;height:128px;margin-bottom:20px;width:128px}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-label{color:#424242;font-family:PingFangSC-Regular,PingFang SC;font-size:26px;font-weight:400}.ht-scroll-component-view .ht-scroll-component-inner .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 .ht-scroll-component-inner .request-loading-view .request-loading-icon{animation:rotate 3s linear infinite;display:block;height:40px;margin-right:8px;width:40px}.ht-scroll-component-view .ht-scroll-component-inner .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%}
1
+ .ht-scroll-component-view{height:100%;width:100%}.ht-scroll-component-view .ht-scroll-component-inner{box-sizing:border-box;display:flex;flex-wrap:wrap;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;padding:200px 0;text-align:center;width:100%}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-img{display:block;height:220px;margin-bottom:24px;width:382px}.ht-scroll-component-view .ht-scroll-component-inner .blank-data-view .blank-data-label,.ht-scroll-component-view .ht-scroll-component-inner .request-loading-view{color:#9a9b9c;font-family:PingFangSC-Regular,PingFang SC;font-size:40px;font-weight:400}.ht-scroll-component-view .ht-scroll-component-inner .request-loading-view{align-items:center;display:flex;justify-content:center;width:100%}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ht-scroll-component-view .ht-scroll-component-inner .request-loading-view .request-loading-icon{animation:rotate 3s linear infinite;display:block;height:40px;margin-right:8px;width:40px}.ht-scroll-component-view .ht-scroll-component-inner .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%}
package/dist/esm/index.js CHANGED
@@ -2539,11 +2539,14 @@ var HTScrollView = function HTScrollView(props) {
2539
2539
  className: "blank-data-view"
2540
2540
  }, /*#__PURE__*/React.createElement(Image, {
2541
2541
  className: "blank-data-img",
2542
- src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-question/h5/list-blank.png"
2542
+ src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-live/taroComponentsV3/scroll-list-empty-icon.png"
2543
2543
  }), /*#__PURE__*/React.createElement(View, {
2544
2544
  className: "blank-data-label"
2545
2545
  }, "\u6682\u65E0\u6570\u636E"));
2546
2546
  };
2547
+
2548
+ // 是否为空列表
2549
+ var isEmpty = !isRequesting && !dataList.length;
2547
2550
  return /*#__PURE__*/React.createElement(ScrollView, {
2548
2551
  className: "ht-scroll-component-view ".concat(scrollClassName || ''),
2549
2552
  scrollY: true,
@@ -2553,12 +2556,12 @@ var HTScrollView = function HTScrollView(props) {
2553
2556
  className: "ht-scroll-component-inner ".concat(className || '')
2554
2557
  }, dataList.map(function (item, index) {
2555
2558
  return renderItemFn(item, index);
2556
- }), !isRequesting && !dataList.length ? renderEmptyFn ? renderEmptyFn() : renderEmptyDefaultFn() : '', isRequesting && /*#__PURE__*/React.createElement(View, {
2559
+ }), isEmpty ? renderEmptyFn ? renderEmptyFn() : renderEmptyDefaultFn() : '', isRequesting && /*#__PURE__*/React.createElement(View, {
2557
2560
  className: "request-loading-view"
2558
2561
  }, /*#__PURE__*/React.createElement(Image, {
2559
2562
  className: "request-loading-icon",
2560
2563
  src: "https://xiaobangkj.oss-cn-hangzhou.aliyuncs.com/mini-live/taroComponentsV3/scroll-bottom-loading-icon.png"
2561
- }), "\u6B63\u5728\u52A0\u8F7D\u4E2D..."), isCompleteAllData && !!isShowNoMoreDataTips && /*#__PURE__*/React.createElement(View, {
2564
+ }), "\u6B63\u5728\u52A0\u8F7D\u4E2D..."), !isEmpty && isCompleteAllData && !!isShowNoMoreDataTips && /*#__PURE__*/React.createElement(View, {
2562
2565
  className: "no-more-data-tip"
2563
2566
  }, noMoreDataTipsText)));
2564
2567
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ht-components-taro-v3",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "基于 Rollup 构建的 Taro 多端组件库",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",