@bit-sun/business-component 2.4.9 → 2.4.10

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
@@ -2754,7 +2754,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2754
2754
  _ref$extralHeaders = _ref.extralHeaders,
2755
2755
  extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
2756
2756
  _ref$specialBracket = _ref.specialBracket,
2757
- specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket;
2757
+ specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket,
2758
+ _ref$noNeedSplit = _ref.noNeedSplit,
2759
+ noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit;
2758
2760
  var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode');
2759
2761
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
2760
2762
  var initVal = value || (selectMode ? [] : null);
@@ -3536,9 +3538,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
3536
3538
  })
3537
3539
  }, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
3538
3540
  };
3539
- var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, item) {
3541
+ var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
3540
3542
  var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
3541
- return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
3543
+ if (noNeedSplit) {
3544
+ return item.text;
3545
+ } else {
3546
+ return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
3547
+ }
3542
3548
  };
3543
3549
  return /*#__PURE__*/React.createElement("div", {
3544
3550
  className: 'search_select'
@@ -3609,7 +3615,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
3609
3615
  key: item.value,
3610
3616
  label: item.text
3611
3617
  }, LightHeightOption({
3612
- text: handleSelectOptionsShowValue(specialBracket, item),
3618
+ text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
3613
3619
  filterTxt: searchValue
3614
3620
  }));
3615
3621
  })), needModalTable && /*#__PURE__*/React.createElement(Button, {
package/dist/index.js CHANGED
@@ -2774,7 +2774,9 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2774
2774
  _ref$extralHeaders = _ref.extralHeaders,
2775
2775
  extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
2776
2776
  _ref$specialBracket = _ref.specialBracket,
2777
- specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket;
2777
+ specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket,
2778
+ _ref$noNeedSplit = _ref.noNeedSplit,
2779
+ noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit;
2778
2780
  var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode');
2779
2781
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
2780
2782
  var initVal = value || (selectMode ? [] : null);
@@ -3556,9 +3558,13 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3556
3558
  })
3557
3559
  }, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
3558
3560
  };
3559
- var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, item) {
3561
+ var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
3560
3562
  var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
3561
- return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
3563
+ if (noNeedSplit) {
3564
+ return item.text;
3565
+ } else {
3566
+ return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
3567
+ }
3562
3568
  };
3563
3569
  return /*#__PURE__*/React__default['default'].createElement("div", {
3564
3570
  className: 'search_select'
@@ -3629,7 +3635,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3629
3635
  key: item.value,
3630
3636
  label: item.text
3631
3637
  }, LightHeightOption({
3632
- text: handleSelectOptionsShowValue(specialBracket, item),
3638
+ text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
3633
3639
  filterTxt: searchValue
3634
3640
  }));
3635
3641
  })), needModalTable && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import './index.less';
3
+ declare const MenuSetting: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default MenuSetting;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './drawContent.less';
3
+ declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => React.JSX.Element;
4
+ export default DrawContent;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
3
+ export default CustomerMenuHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -42,6 +42,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
42
42
  init = true,// 是否初始请求
43
43
  extralHeaders = {},// 额外请求头参数
44
44
  specialBracket = false,// 是否使用特殊括弧显示选项 【value】text
45
+ noNeedSplit = false,// label显示不需要任何特殊化
45
46
  } = requestConfig || {};
46
47
  const resultSourceKey = handleSourceName(sourceName || requestConfig?.sourceName || 'supplierCode')
47
48
 
@@ -736,12 +737,16 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
736
737
  )
737
738
  }
738
739
 
739
- const handleSelectOptionsShowValue = (specialBracket: boolean, item: object) => {
740
+ const handleSelectOptionsShowValue = (specialBracket: boolean, noNeedSplit: boolean, item: object) => {
740
741
  let showText = Array.isArray(item.textShowText) &&
741
742
  item.textShowText.join(' ') || item.textShowText;
742
- return specialBracket
743
- ? `【${item.textShowKey}】${showText}`
744
- : `${item.textShowKey} ${showText}`
743
+ if (noNeedSplit) {
744
+ return item.text;
745
+ } else {
746
+ return specialBracket
747
+ ? `【${item.textShowKey}】${showText}`
748
+ : `${item.textShowKey} ${showText}`
749
+ }
745
750
  };
746
751
 
747
752
  return (
@@ -794,7 +799,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
794
799
  {items.map(item => (
795
800
  <Option key={item.value} label={item.text}>
796
801
  {LightHeightOption({
797
- text: handleSelectOptionsShowValue(specialBracket, item),
802
+ text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
798
803
  filterTxt: searchValue
799
804
  })}
800
805
  </Option>