@bit-sun/business-component 4.0.13-alpha.19 → 4.0.13-alpha.20

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
@@ -6003,7 +6003,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6003
6003
  };
6004
6004
  var formItem = function formItem(list) {
6005
6005
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
6006
- var _list$concat;
6007
6006
  var setDisabled = function setDisabled(name) {
6008
6007
  if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
6009
6008
  return item === name;
@@ -6021,7 +6020,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6021
6020
  type: 'kong'
6022
6021
  };
6023
6022
  })) || [];
6024
- return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
6023
+ var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6024
+ return searchList.map(function (i, index) {
6025
6025
  var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
6026
6026
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
6027
6027
  span: ColSpan,
@@ -10550,7 +10550,8 @@ function commonFun(type, prefixUrl, parentProps) {
10550
10550
  }, {
10551
10551
  title: '品类',
10552
10552
  dataIndex: 'className'
10553
- }]
10553
+ }],
10554
+ noEmptySearchField: true
10554
10555
  }, modalTableBusProps);
10555
10556
  }
10556
10557
  // 商品选择器skc
package/dist/index.js CHANGED
@@ -6026,7 +6026,6 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6026
6026
  };
6027
6027
  var formItem = function formItem(list) {
6028
6028
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
6029
- var _list$concat;
6030
6029
  var setDisabled = function setDisabled(name) {
6031
6030
  if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
6032
6031
  return item === name;
@@ -6044,7 +6043,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6044
6043
  type: 'kong'
6045
6044
  };
6046
6045
  })) || [];
6047
- return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
6046
+ var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6047
+ return searchList.map(function (i, index) {
6048
6048
  var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
6049
6049
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6050
6050
  span: ColSpan,
@@ -10573,7 +10573,8 @@ function commonFun(type, prefixUrl, parentProps) {
10573
10573
  }, {
10574
10574
  title: '品类',
10575
10575
  dataIndex: 'className'
10576
- }]
10576
+ }],
10577
+ noEmptySearchField: true
10577
10578
  }, modalTableBusProps);
10578
10579
  }
10579
10580
  // 商品选择器skc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.13-alpha.19",
3
+ "version": "4.0.13-alpha.20",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -816,6 +816,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
816
816
  dataIndex: 'className',
817
817
  },
818
818
  ],
819
+ noEmptySearchField: true,
819
820
  ...modalTableBusProps
820
821
  }
821
822
  }
@@ -576,7 +576,8 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
576
576
 
577
577
  const { emptyArray, ColSpan } = getFormRowInfo(list, modalTableProps?.tableSearchColSpan);
578
578
  const addKong = emptyArray?.map((i: any) =>({ type: 'kong'}))||[];
579
- return list?.concat(addKong)?.map((i: any, index: number) => {
579
+ const searchList = modalTableProps?.noEmptySearchField ? list : list?.concat(addKong);
580
+ return searchList.map((i: any, index: number) => {
580
581
  if(i?.type === 'kong') return <Col span={ColSpan} key={i}></Col>;
581
582
 
582
583
  if (i?.type === 'select' || i?.field?.type === 'select') {