@bit-sun/business-component 4.0.13-alpha.11 → 4.0.13-alpha.13

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/dist/index.esm.js CHANGED
@@ -4651,6 +4651,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4651
4651
  var callback = arguments.length > 1 ? arguments[1] : undefined;
4652
4652
  if (!requestConfig) return;
4653
4653
  if (!url) return;
4654
+ if (!(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) return; // 空值默认不查询
4654
4655
  setFetching(true);
4655
4656
  var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
4656
4657
  if (isNil(queryParams[selectParamsKey])) {
@@ -17914,7 +17915,7 @@ var BsSulaQueryTable = (function (props) {
17914
17915
  }
17915
17916
  });
17916
17917
  }
17917
- handleBssulaColumnsSpecialParams(d);
17918
+ // handleBssulaColumnsSpecialParams(d);
17918
17919
  });
17919
17920
  setCommonRenderFn(props.columns);
17920
17921
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
@@ -17944,7 +17945,7 @@ var BsSulaQueryTable = (function (props) {
17944
17945
  var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
17945
17946
  showColumns.forEach(function (item, index) {
17946
17947
  item.width = item.width || getItemDefaultWidth(item);
17947
- handleBssulaColumnsSpecialParams(item);
17948
+ // handleBssulaColumnsSpecialParams(item);
17948
17949
  item.onHeaderCell = function (column) {
17949
17950
  return _objectSpread2(_objectSpread2({}, item), {}, {
17950
17951
  width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
@@ -17957,7 +17958,7 @@ var BsSulaQueryTable = (function (props) {
17957
17958
  var showExportColumns = getSettingFieldOrColumn(exportColumnConfig, columns, 'columns');
17958
17959
  showExportColumns.forEach(function (item, index) {
17959
17960
  item.width = item.width || getItemDefaultWidth(item);
17960
- handleBssulaColumnsSpecialParams(item);
17961
+ // handleBssulaColumnsSpecialParams(item);
17961
17962
  item.onHeaderCell = function (column) {
17962
17963
  return _objectSpread2(_objectSpread2({}, item), {}, {
17963
17964
  width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
@@ -18184,9 +18185,9 @@ var BsSulaQueryTable = (function (props) {
18184
18185
  newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
18185
18186
  width: size.width
18186
18187
  });
18187
- newColumns.forEach(function (d) {
18188
- handleBssulaColumnsSpecialParams(d);
18189
- });
18188
+ // newColumns.forEach((d: any) => {
18189
+ // handleBssulaColumnsSpecialParams(d);
18190
+ // });
18190
18191
  return _toConsumableArray(newColumns);
18191
18192
  });
18192
18193
  };
package/dist/index.js CHANGED
@@ -4674,6 +4674,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4674
4674
  var callback = arguments.length > 1 ? arguments[1] : undefined;
4675
4675
  if (!requestConfig) return;
4676
4676
  if (!url) return;
4677
+ if (!(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) return; // 空值默认不查询
4677
4678
  setFetching(true);
4678
4679
  var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
4679
4680
  if (_.isNil(queryParams[selectParamsKey])) {
@@ -17937,7 +17938,7 @@ var BsSulaQueryTable = (function (props) {
17937
17938
  }
17938
17939
  });
17939
17940
  }
17940
- handleBssulaColumnsSpecialParams(d);
17941
+ // handleBssulaColumnsSpecialParams(d);
17941
17942
  });
17942
17943
  setCommonRenderFn(props.columns);
17943
17944
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
@@ -17967,7 +17968,7 @@ var BsSulaQueryTable = (function (props) {
17967
17968
  var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
17968
17969
  showColumns.forEach(function (item, index) {
17969
17970
  item.width = item.width || getItemDefaultWidth(item);
17970
- handleBssulaColumnsSpecialParams(item);
17971
+ // handleBssulaColumnsSpecialParams(item);
17971
17972
  item.onHeaderCell = function (column) {
17972
17973
  return _objectSpread2(_objectSpread2({}, item), {}, {
17973
17974
  width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
@@ -17980,7 +17981,7 @@ var BsSulaQueryTable = (function (props) {
17980
17981
  var showExportColumns = getSettingFieldOrColumn(exportColumnConfig, columns, 'columns');
17981
17982
  showExportColumns.forEach(function (item, index) {
17982
17983
  item.width = item.width || getItemDefaultWidth(item);
17983
- handleBssulaColumnsSpecialParams(item);
17984
+ // handleBssulaColumnsSpecialParams(item);
17984
17985
  item.onHeaderCell = function (column) {
17985
17986
  return _objectSpread2(_objectSpread2({}, item), {}, {
17986
17987
  width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
@@ -18207,9 +18208,9 @@ var BsSulaQueryTable = (function (props) {
18207
18208
  newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
18208
18209
  width: size.width
18209
18210
  });
18210
- newColumns.forEach(function (d) {
18211
- handleBssulaColumnsSpecialParams(d);
18212
- });
18211
+ // newColumns.forEach((d: any) => {
18212
+ // handleBssulaColumnsSpecialParams(d);
18213
+ // });
18213
18214
  return _toConsumableArray(newColumns);
18214
18215
  });
18215
18216
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.13-alpha.11",
3
+ "version": "4.0.13-alpha.13",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -370,7 +370,7 @@ export default (props: any) => {
370
370
  }
371
371
  });
372
372
  }
373
- handleBssulaColumnsSpecialParams(d);
373
+ // handleBssulaColumnsSpecialParams(d);
374
374
  });
375
375
  setCommonRenderFn(props.columns);
376
376
  const authButton = localStorage.getItem(getMenuAuthDataKey())
@@ -405,7 +405,7 @@ export default (props: any) => {
405
405
 
406
406
  showColumns.forEach((item, index) => {
407
407
  item.width = item.width || getItemDefaultWidth(item);
408
- handleBssulaColumnsSpecialParams(item);
408
+ // handleBssulaColumnsSpecialParams(item);
409
409
  item.onHeaderCell = (column) => ({
410
410
  ...item,
411
411
  width:
@@ -429,7 +429,7 @@ export default (props: any) => {
429
429
 
430
430
  showExportColumns.forEach((item, index) => {
431
431
  item.width = item.width || getItemDefaultWidth(item);
432
- handleBssulaColumnsSpecialParams(item);
432
+ // handleBssulaColumnsSpecialParams(item);
433
433
  item.onHeaderCell = (column) => ({
434
434
  ...item,
435
435
  width:
@@ -715,9 +715,9 @@ export default (props: any) => {
715
715
  ...newColumns[index],
716
716
  width: size.width,
717
717
  };
718
- newColumns.forEach((d: any) => {
719
- handleBssulaColumnsSpecialParams(d);
720
- });
718
+ // newColumns.forEach((d: any) => {
719
+ // handleBssulaColumnsSpecialParams(d);
720
+ // });
721
721
  return [...newColumns];
722
722
  });
723
723
  };
@@ -91,6 +91,7 @@ const QueryMutipleSearchSelect = ({ onValueChange, requestConfig={}, selectProps
91
91
  const getData = (params: any = {}, callback?: any) => {
92
92
  if (!requestConfig) return;
93
93
  if (!url) return;
94
+ if(!searchValue?.length) return; // 空值默认不查询
94
95
 
95
96
  setFetching(true)
96
97