@bit-sun/business-component 2.0.15 → 2.0.16
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
|
@@ -3486,7 +3486,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3486
3486
|
_props$needModalTable = props.needModalTable,
|
|
3487
3487
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
3488
3488
|
_props$getPopupContai = props.getPopupContainer,
|
|
3489
|
-
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai
|
|
3489
|
+
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
|
|
3490
|
+
fieldComponent = props.fieldComponent;
|
|
3490
3491
|
|
|
3491
3492
|
var _ref = requestConfig || {},
|
|
3492
3493
|
url = _ref.url,
|
|
@@ -4322,7 +4323,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4322
4323
|
|
|
4323
4324
|
return /*#__PURE__*/React.createElement("div", {
|
|
4324
4325
|
className: 'search_select'
|
|
4325
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
4326
|
+
}, fieldComponent ? /*#__PURE__*/React.createElement("div", {
|
|
4327
|
+
onClick: function onClick() {
|
|
4328
|
+
var _fieldComponent$props, _fieldComponent$props2;
|
|
4329
|
+
|
|
4330
|
+
(_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
|
|
4331
|
+
showModal();
|
|
4332
|
+
}
|
|
4333
|
+
}, fieldComponent) : /*#__PURE__*/React.createElement("div", {
|
|
4326
4334
|
className: "search_select_show",
|
|
4327
4335
|
id: "search_select_div_".concat(uniqueValue)
|
|
4328
4336
|
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
package/dist/index.js
CHANGED
|
@@ -3497,7 +3497,8 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3497
3497
|
_props$needModalTable = props.needModalTable,
|
|
3498
3498
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
3499
3499
|
_props$getPopupContai = props.getPopupContainer,
|
|
3500
|
-
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai
|
|
3500
|
+
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
|
|
3501
|
+
fieldComponent = props.fieldComponent;
|
|
3501
3502
|
|
|
3502
3503
|
var _ref = requestConfig || {},
|
|
3503
3504
|
url = _ref.url,
|
|
@@ -4333,7 +4334,14 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4333
4334
|
|
|
4334
4335
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4335
4336
|
className: 'search_select'
|
|
4336
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4337
|
+
}, fieldComponent ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4338
|
+
onClick: function onClick() {
|
|
4339
|
+
var _fieldComponent$props, _fieldComponent$props2;
|
|
4340
|
+
|
|
4341
|
+
(_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
|
|
4342
|
+
showModal();
|
|
4343
|
+
}
|
|
4344
|
+
}, fieldComponent) : /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4337
4345
|
className: "search_select_show",
|
|
4338
4346
|
id: "search_select_div_".concat(uniqueValue)
|
|
4339
4347
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
package/package.json
CHANGED
|
@@ -22,7 +22,8 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
22
22
|
ctx,
|
|
23
23
|
sourceName,
|
|
24
24
|
needModalTable = true,
|
|
25
|
-
getPopupContainer = undefined
|
|
25
|
+
getPopupContainer = undefined,
|
|
26
|
+
fieldComponent,
|
|
26
27
|
} = props;
|
|
27
28
|
const {
|
|
28
29
|
url,
|
|
@@ -666,7 +667,12 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
666
667
|
|
|
667
668
|
return (
|
|
668
669
|
<div className={'search_select'}>
|
|
669
|
-
|
|
670
|
+
{fieldComponent ?
|
|
671
|
+
(<div onClick={() => {
|
|
672
|
+
fieldComponent.props?.onClick?.()
|
|
673
|
+
showModal()
|
|
674
|
+
}}>{fieldComponent}</div>) :
|
|
675
|
+
(<div className="search_select_show" id={`search_select_div_${uniqueValue}`}>
|
|
670
676
|
<Select
|
|
671
677
|
virtual
|
|
672
678
|
labelInValue={labelInValue}
|
|
@@ -717,7 +723,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
717
723
|
<SearchOutlined />
|
|
718
724
|
</Button>
|
|
719
725
|
)}
|
|
720
|
-
</div>
|
|
726
|
+
</div>)}
|
|
721
727
|
{needModalTable && isModalVisible && (
|
|
722
728
|
<Modal
|
|
723
729
|
width='80%'
|