shineout 3.8.1-beta.1 → 3.8.1-beta.2

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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.1-beta.1'
525
+ version: '3.8.1-beta.2'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.1-beta.1');
12389
+ /* harmony default export */ var version = ('3.8.1-beta.2');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -42975,6 +42975,7 @@ var Cascader = function Cascader(props0) {
42975
42975
  return renderLoading();
42976
42976
  }
42977
42977
  if (isDataEmpty) {
42978
+ // todo: 空数据时 是否 支持一下也能走到renderOptionList
42978
42979
  return renderEmpty();
42979
42980
  }
42980
42981
  if (!filterText || filterText && mode !== undefined || data && data.length === 0) {
@@ -57927,6 +57928,7 @@ function Select(props0) {
57927
57928
  });
57928
57929
  };
57929
57930
  var renderEmpty = function renderEmpty() {
57931
+ if (props.emptyText === false) return null;
57930
57932
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
57931
57933
  className: styles === null || styles === void 0 ? void 0 : styles.option,
57932
57934
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -57941,13 +57943,13 @@ function Select(props0) {
57941
57943
  var renderOptions = function renderOptions() {
57942
57944
  if (loading) return renderLoading();
57943
57945
  var isEmpty = !(filterData !== null && filterData !== void 0 && filterData.length);
57944
- if (isEmpty && props.emptyText !== false) return renderEmpty();
57945
57946
  var options = 'treeData' in props ? renderTreeList() : renderList();
57946
57947
  if (renderOptionList) {
57947
- return renderOptionList(options, {
57948
+ return renderOptionList(isEmpty ? renderEmpty() : options, {
57948
57949
  loading: loading
57949
57950
  });
57950
57951
  }
57952
+ if (isEmpty) return renderEmpty();
57951
57953
  return options;
57952
57954
  };
57953
57955
  var renderHeader = function renderHeader() {
@@ -73024,7 +73026,7 @@ var upload_interface = __webpack_require__(8821);
73024
73026
 
73025
73027
 
73026
73028
  /* harmony default export */ var src_0 = ({
73027
- version: '3.8.1-beta.1'
73029
+ version: '3.8.1-beta.2'
73028
73030
  });
73029
73031
  }();
73030
73032
  /******/ return __webpack_exports__;