@bit-sun/business-component 4.0.13-alpha.24 → 4.0.13-alpha.25
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
|
@@ -5609,7 +5609,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5609
5609
|
currentPage: currentPage
|
|
5610
5610
|
}, otherParams), fixedParam), params);
|
|
5611
5611
|
if (isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
|
|
5612
|
-
|
|
5612
|
+
var _searchValue$trim;
|
|
5613
|
+
queryParams[selectParamsKey] = searchValue === null || searchValue === void 0 ? void 0 : (_searchValue$trim = searchValue.trim) === null || _searchValue$trim === void 0 ? void 0 : _searchValue$trim.call(searchValue);
|
|
5613
5614
|
}
|
|
5614
5615
|
var getRequest;
|
|
5615
5616
|
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
@@ -5874,7 +5875,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5874
5875
|
}
|
|
5875
5876
|
};
|
|
5876
5877
|
var onSearchChange = function onSearchChange(v) {
|
|
5877
|
-
|
|
5878
|
+
var _v$trim;
|
|
5879
|
+
setSearchValue((v === null || v === void 0 ? void 0 : (_v$trim = v.trim) === null || _v$trim === void 0 ? void 0 : _v$trim.call(v)) || '');
|
|
5878
5880
|
if (!!searchStartLength && (v === null || v === void 0 ? void 0 : v.length) < searchStartLength) return;
|
|
5879
5881
|
refreshItems();
|
|
5880
5882
|
};
|
|
@@ -37231,7 +37233,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37231
37233
|
});
|
|
37232
37234
|
};
|
|
37233
37235
|
_this.renderRuleItem = function (itemDetail, parentDetail, floorIndex, classDataIndex, relateDatas) {
|
|
37234
|
-
var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2
|
|
37236
|
+
var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2;
|
|
37235
37237
|
var ruleTreeData = _this.state.ruleTreeData;
|
|
37236
37238
|
var _this$props3 = _this.props,
|
|
37237
37239
|
callBack = _this$props3.callBack,
|
|
@@ -37417,7 +37419,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37417
37419
|
}, item.name);
|
|
37418
37420
|
}) : null), /*#__PURE__*/React$1.createElement(Input, {
|
|
37419
37421
|
disabled: disabled,
|
|
37420
|
-
value: (itemDetail === null || itemDetail === void 0 ? void 0 : (_itemDetail$params2 = itemDetail.params) === null || _itemDetail$params2 === void 0 ? void 0 :
|
|
37422
|
+
value: (itemDetail === null || itemDetail === void 0 ? void 0 : (_itemDetail$params2 = itemDetail.params) === null || _itemDetail$params2 === void 0 ? void 0 : _itemDetail$params2[0]) || '',
|
|
37421
37423
|
style: {
|
|
37422
37424
|
width: '150px',
|
|
37423
37425
|
marginLeft: '10px',
|
|
@@ -37427,7 +37429,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37427
37429
|
var value = e.target.value;
|
|
37428
37430
|
var ruleClassData = _this.state.ruleClassData;
|
|
37429
37431
|
itemDetail.params = [value || ''];
|
|
37430
|
-
itemDetail.paramNames = [
|
|
37432
|
+
itemDetail.paramNames = [''];
|
|
37431
37433
|
_this.setState({
|
|
37432
37434
|
ruleClassData: ruleClassData
|
|
37433
37435
|
}, function () {
|
package/dist/index.js
CHANGED
|
@@ -5632,7 +5632,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5632
5632
|
currentPage: currentPage
|
|
5633
5633
|
}, otherParams), fixedParam), params);
|
|
5634
5634
|
if (_.isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
|
|
5635
|
-
|
|
5635
|
+
var _searchValue$trim;
|
|
5636
|
+
queryParams[selectParamsKey] = searchValue === null || searchValue === void 0 ? void 0 : (_searchValue$trim = searchValue.trim) === null || _searchValue$trim === void 0 ? void 0 : _searchValue$trim.call(searchValue);
|
|
5636
5637
|
}
|
|
5637
5638
|
var getRequest;
|
|
5638
5639
|
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
@@ -5897,7 +5898,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5897
5898
|
}
|
|
5898
5899
|
};
|
|
5899
5900
|
var onSearchChange = function onSearchChange(v) {
|
|
5900
|
-
|
|
5901
|
+
var _v$trim;
|
|
5902
|
+
setSearchValue((v === null || v === void 0 ? void 0 : (_v$trim = v.trim) === null || _v$trim === void 0 ? void 0 : _v$trim.call(v)) || '');
|
|
5901
5903
|
if (!!searchStartLength && (v === null || v === void 0 ? void 0 : v.length) < searchStartLength) return;
|
|
5902
5904
|
refreshItems();
|
|
5903
5905
|
};
|
|
@@ -37254,7 +37256,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37254
37256
|
});
|
|
37255
37257
|
};
|
|
37256
37258
|
_this.renderRuleItem = function (itemDetail, parentDetail, floorIndex, classDataIndex, relateDatas) {
|
|
37257
|
-
var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2
|
|
37259
|
+
var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2;
|
|
37258
37260
|
var ruleTreeData = _this.state.ruleTreeData;
|
|
37259
37261
|
var _this$props3 = _this.props,
|
|
37260
37262
|
callBack = _this$props3.callBack,
|
|
@@ -37440,7 +37442,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37440
37442
|
}, item.name);
|
|
37441
37443
|
}) : null), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
37442
37444
|
disabled: disabled,
|
|
37443
|
-
value: (itemDetail === null || itemDetail === void 0 ? void 0 : (_itemDetail$params2 = itemDetail.params) === null || _itemDetail$params2 === void 0 ? void 0 :
|
|
37445
|
+
value: (itemDetail === null || itemDetail === void 0 ? void 0 : (_itemDetail$params2 = itemDetail.params) === null || _itemDetail$params2 === void 0 ? void 0 : _itemDetail$params2[0]) || '',
|
|
37444
37446
|
style: {
|
|
37445
37447
|
width: '150px',
|
|
37446
37448
|
marginLeft: '10px',
|
|
@@ -37450,7 +37452,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37450
37452
|
var value = e.target.value;
|
|
37451
37453
|
var ruleClassData = _this.state.ruleClassData;
|
|
37452
37454
|
itemDetail.params = [value || ''];
|
|
37453
|
-
itemDetail.paramNames = [
|
|
37455
|
+
itemDetail.paramNames = [''];
|
|
37454
37456
|
_this.setState({
|
|
37455
37457
|
ruleClassData: ruleClassData
|
|
37456
37458
|
}, function () {
|
package/package.json
CHANGED
|
@@ -232,7 +232,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
232
232
|
...params,
|
|
233
233
|
};
|
|
234
234
|
if (isNil(queryParams[selectParamsKey])&&searchValue?.length) {
|
|
235
|
-
queryParams[selectParamsKey] = searchValue;
|
|
235
|
+
queryParams[selectParamsKey] = searchValue?.trim?.();
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
let getRequest;
|
|
@@ -468,7 +468,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
const onSearchChange = (v) => {
|
|
471
|
-
setSearchValue(v);
|
|
471
|
+
setSearchValue(v?.trim?.()||'');
|
|
472
472
|
if(!!searchStartLength && v?.length < searchStartLength) return;
|
|
473
473
|
refreshItems();
|
|
474
474
|
}
|
|
@@ -932,7 +932,7 @@ class RuleObjectComponent extends Component {
|
|
|
932
932
|
</Select>
|
|
933
933
|
<Input
|
|
934
934
|
disabled={disabled}
|
|
935
|
-
value={itemDetail?.params?.[0]
|
|
935
|
+
value={itemDetail?.params?.[0]||''}
|
|
936
936
|
style={{
|
|
937
937
|
width: '150px',
|
|
938
938
|
marginLeft: '10px',
|
|
@@ -942,7 +942,7 @@ class RuleObjectComponent extends Component {
|
|
|
942
942
|
const value = e.target.value;
|
|
943
943
|
const { ruleClassData } = this.state;
|
|
944
944
|
itemDetail.params = [value || ''];
|
|
945
|
-
itemDetail.paramNames = [
|
|
945
|
+
itemDetail.paramNames = [''];
|
|
946
946
|
this.setState(
|
|
947
947
|
{
|
|
948
948
|
ruleClassData,
|