@bit-sun/business-component 2.4.11 → 2.4.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
|
@@ -2723,7 +2723,7 @@ var handleSourceName = function handleSourceName(sName) {
|
|
|
2723
2723
|
var Option$1 = Select.Option;
|
|
2724
2724
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
2725
2725
|
var value = props.value,
|
|
2726
|
-
|
|
2726
|
+
onChangeTemp = props.onChange,
|
|
2727
2727
|
_props$selectProps = props.selectProps,
|
|
2728
2728
|
selectProps = _props$selectProps === void 0 ? {} : _props$selectProps,
|
|
2729
2729
|
_props$modalTableProp = props.modalTableProps,
|
|
@@ -3142,7 +3142,18 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3142
3142
|
}); // 调用api方法
|
|
3143
3143
|
}
|
|
3144
3144
|
};
|
|
3145
|
-
|
|
3145
|
+
// 下拉框改变事件
|
|
3146
|
+
var onChange = function onChange() {
|
|
3147
|
+
var _props$selectProps2;
|
|
3148
|
+
onChangeTemp.apply(void 0, arguments);
|
|
3149
|
+
if (props === null || props === void 0 ? void 0 : props.selectChangeCallback) {
|
|
3150
|
+
props.selectChangeCallback.apply(props, arguments);
|
|
3151
|
+
}
|
|
3152
|
+
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.selectChangeCallback) {
|
|
3153
|
+
var _props$selectProps3;
|
|
3154
|
+
(_props$selectProps3 = props.selectProps).selectChangeCallback.apply(_props$selectProps3, arguments);
|
|
3155
|
+
}
|
|
3156
|
+
};
|
|
3146
3157
|
useEffect(function () {
|
|
3147
3158
|
if (init) {
|
|
3148
3159
|
run('init');
|
|
@@ -29861,9 +29872,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29861
29872
|
};
|
|
29862
29873
|
}) || undefined;
|
|
29863
29874
|
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
|
|
29864
|
-
} else
|
|
29865
|
-
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29866
|
-
}
|
|
29875
|
+
} else ;
|
|
29867
29876
|
var child = {
|
|
29868
29877
|
title: "".concat(item.name, "-").concat(element.name),
|
|
29869
29878
|
key: element.id,
|
|
@@ -29905,9 +29914,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29905
29914
|
};
|
|
29906
29915
|
}) || undefined;
|
|
29907
29916
|
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
|
|
29908
|
-
} else
|
|
29909
|
-
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29910
|
-
}
|
|
29917
|
+
} else ;
|
|
29911
29918
|
var child = {
|
|
29912
29919
|
title: "".concat(parentTitle, "-").concat(element.name),
|
|
29913
29920
|
key: "".concat(parentKey, ".").concat(element.id),
|
package/dist/index.js
CHANGED
|
@@ -2743,7 +2743,7 @@ var handleSourceName = function handleSourceName(sName) {
|
|
|
2743
2743
|
var Option$1 = antd.Select.Option;
|
|
2744
2744
|
var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2745
2745
|
var value = props.value,
|
|
2746
|
-
|
|
2746
|
+
onChangeTemp = props.onChange,
|
|
2747
2747
|
_props$selectProps = props.selectProps,
|
|
2748
2748
|
selectProps = _props$selectProps === void 0 ? {} : _props$selectProps,
|
|
2749
2749
|
_props$modalTableProp = props.modalTableProps,
|
|
@@ -3162,7 +3162,18 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3162
3162
|
}); // 调用api方法
|
|
3163
3163
|
}
|
|
3164
3164
|
};
|
|
3165
|
-
|
|
3165
|
+
// 下拉框改变事件
|
|
3166
|
+
var onChange = function onChange() {
|
|
3167
|
+
var _props$selectProps2;
|
|
3168
|
+
onChangeTemp.apply(void 0, arguments);
|
|
3169
|
+
if (props === null || props === void 0 ? void 0 : props.selectChangeCallback) {
|
|
3170
|
+
props.selectChangeCallback.apply(props, arguments);
|
|
3171
|
+
}
|
|
3172
|
+
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.selectChangeCallback) {
|
|
3173
|
+
var _props$selectProps3;
|
|
3174
|
+
(_props$selectProps3 = props.selectProps).selectChangeCallback.apply(_props$selectProps3, arguments);
|
|
3175
|
+
}
|
|
3176
|
+
};
|
|
3166
3177
|
React.useEffect(function () {
|
|
3167
3178
|
if (init) {
|
|
3168
3179
|
run('init');
|
|
@@ -29881,9 +29892,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29881
29892
|
};
|
|
29882
29893
|
}) || undefined;
|
|
29883
29894
|
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = list;
|
|
29884
|
-
} else
|
|
29885
|
-
_this.propertyCodeToRangeIdMap["".concat(item.code, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29886
|
-
}
|
|
29895
|
+
} else ;
|
|
29887
29896
|
var child = {
|
|
29888
29897
|
title: "".concat(item.name, "-").concat(element.name),
|
|
29889
29898
|
key: element.id,
|
|
@@ -29925,9 +29934,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
29925
29934
|
};
|
|
29926
29935
|
}) || undefined;
|
|
29927
29936
|
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = _list;
|
|
29928
|
-
} else
|
|
29929
|
-
_this.propertyCodeToRangeIdMap["".concat(rootObjCode, ".").concat(parentKey, ".").concat(element.code)] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
29930
|
-
}
|
|
29937
|
+
} else ;
|
|
29931
29938
|
var child = {
|
|
29932
29939
|
title: "".concat(parentTitle, "-").concat(element.name),
|
|
29933
29940
|
key: "".concat(parentKey, ".").concat(element.id),
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const { Option } = Select;
|
|
|
16
16
|
const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
17
17
|
const {
|
|
18
18
|
value, // 必传
|
|
19
|
-
onChange,
|
|
19
|
+
onChange: onChangeTemp,
|
|
20
20
|
selectProps = {},
|
|
21
21
|
modalTableProps = {},
|
|
22
22
|
labelInValue = false,
|
|
@@ -390,6 +390,17 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
// 下拉框改变事件
|
|
394
|
+
const onChange = (...arg) => {
|
|
395
|
+
onChangeTemp(...arg)
|
|
396
|
+
if(props?.selectChangeCallback){
|
|
397
|
+
props.selectChangeCallback(...arg)
|
|
398
|
+
}
|
|
399
|
+
if(props?.selectProps?.selectChangeCallback) {
|
|
400
|
+
props.selectProps.selectChangeCallback(...arg)
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
393
404
|
useEffect(() => {
|
|
394
405
|
if (init) {
|
|
395
406
|
run('init')
|
|
@@ -138,9 +138,9 @@ class RuleObjectComponent extends Component {
|
|
|
138
138
|
`${item.code}.${element.code}`
|
|
139
139
|
] = list;
|
|
140
140
|
} else {
|
|
141
|
-
this.propertyCodeToRangeIdMap[
|
|
142
|
-
|
|
143
|
-
] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
141
|
+
// this.propertyCodeToRangeIdMap[
|
|
142
|
+
// `${item.code}.${element.code}`
|
|
143
|
+
// ] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
144
144
|
}
|
|
145
145
|
let child = {
|
|
146
146
|
title: `${item.name}-${element.name}`,
|
|
@@ -200,9 +200,9 @@ class RuleObjectComponent extends Component {
|
|
|
200
200
|
`${rootObjCode}.${parentKey}.${element.code}`
|
|
201
201
|
] = list;
|
|
202
202
|
} else {
|
|
203
|
-
this.propertyCodeToRangeIdMap[
|
|
204
|
-
|
|
205
|
-
] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
203
|
+
// this.propertyCodeToRangeIdMap[
|
|
204
|
+
// `${rootObjCode}.${parentKey}.${element.code}`
|
|
205
|
+
// ] = Object.keys(infoVo).length ? infoVo : undefined;
|
|
206
206
|
}
|
|
207
207
|
let child = {
|
|
208
208
|
title: `${parentTitle}-${element.name}`,
|