@bit-sun/business-component 4.0.6 → 4.0.7
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
|
@@ -35994,6 +35994,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
35994
35994
|
_props$defRuleDetail = props.defRuleDetail,
|
|
35995
35995
|
defRuleDetail = _props$defRuleDetail === void 0 ? {} : _props$defRuleDetail,
|
|
35996
35996
|
customerValidator = props.customerValidator,
|
|
35997
|
+
parseCustomParams = props.parseCustomParams,
|
|
35997
35998
|
_props$saveUrl = props.saveUrl,
|
|
35998
35999
|
saveUrl = _props$saveUrl === void 0 ? '' : _props$saveUrl;
|
|
35999
36000
|
var sceneId = scenceParams === null || scenceParams === void 0 ? void 0 : scenceParams.sceneId;
|
|
@@ -36270,11 +36271,15 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36270
36271
|
})];
|
|
36271
36272
|
var handleUrl = saveUrl || "/basic/ruleDetail/addAndUpdate";
|
|
36272
36273
|
var handleMethod = 'POST';
|
|
36274
|
+
var finalParams;
|
|
36275
|
+
if (parseCustomParams) {
|
|
36276
|
+
finalParams = parseCustomParams(params);
|
|
36277
|
+
}
|
|
36273
36278
|
return request$2({
|
|
36274
36279
|
url: handleUrl,
|
|
36275
36280
|
method: handleMethod,
|
|
36276
36281
|
convertParams: function convertParams() {
|
|
36277
|
-
return params;
|
|
36282
|
+
return finalParams || params;
|
|
36278
36283
|
},
|
|
36279
36284
|
converter: function converter(res) {
|
|
36280
36285
|
return res;
|
|
@@ -36531,6 +36536,7 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36531
36536
|
}, /*#__PURE__*/React$1.createElement(BaseRule, {
|
|
36532
36537
|
ref: baseRuleRef,
|
|
36533
36538
|
customerValidator: props === null || props === void 0 ? void 0 : props.customerValidator,
|
|
36539
|
+
parseCustomParams: props === null || props === void 0 ? void 0 : props.parseCustomParams,
|
|
36534
36540
|
saveUrl: props === null || props === void 0 ? void 0 : props.saveUrl,
|
|
36535
36541
|
scenceParams: {
|
|
36536
36542
|
sceneId: currentSceneId,
|
package/dist/index.js
CHANGED
|
@@ -36017,6 +36017,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
36017
36017
|
_props$defRuleDetail = props.defRuleDetail,
|
|
36018
36018
|
defRuleDetail = _props$defRuleDetail === void 0 ? {} : _props$defRuleDetail,
|
|
36019
36019
|
customerValidator = props.customerValidator,
|
|
36020
|
+
parseCustomParams = props.parseCustomParams,
|
|
36020
36021
|
_props$saveUrl = props.saveUrl,
|
|
36021
36022
|
saveUrl = _props$saveUrl === void 0 ? '' : _props$saveUrl;
|
|
36022
36023
|
var sceneId = scenceParams === null || scenceParams === void 0 ? void 0 : scenceParams.sceneId;
|
|
@@ -36293,11 +36294,15 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
36293
36294
|
})];
|
|
36294
36295
|
var handleUrl = saveUrl || "/basic/ruleDetail/addAndUpdate";
|
|
36295
36296
|
var handleMethod = 'POST';
|
|
36297
|
+
var finalParams;
|
|
36298
|
+
if (parseCustomParams) {
|
|
36299
|
+
finalParams = parseCustomParams(params);
|
|
36300
|
+
}
|
|
36296
36301
|
return bssula.request({
|
|
36297
36302
|
url: handleUrl,
|
|
36298
36303
|
method: handleMethod,
|
|
36299
36304
|
convertParams: function convertParams() {
|
|
36300
|
-
return params;
|
|
36305
|
+
return finalParams || params;
|
|
36301
36306
|
},
|
|
36302
36307
|
converter: function converter(res) {
|
|
36303
36308
|
return res;
|
|
@@ -36554,6 +36559,7 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
36554
36559
|
}, /*#__PURE__*/React__default['default'].createElement(BaseRule, {
|
|
36555
36560
|
ref: baseRuleRef,
|
|
36556
36561
|
customerValidator: props === null || props === void 0 ? void 0 : props.customerValidator,
|
|
36562
|
+
parseCustomParams: props === null || props === void 0 ? void 0 : props.parseCustomParams,
|
|
36557
36563
|
saveUrl: props === null || props === void 0 ? void 0 : props.saveUrl,
|
|
36558
36564
|
scenceParams: {
|
|
36559
36565
|
sceneId: currentSceneId,
|
package/package.json
CHANGED
|
@@ -29,6 +29,7 @@ export default forwardRef((props: any, ref) => {
|
|
|
29
29
|
systemVariableList = [],
|
|
30
30
|
defRuleDetail = {},
|
|
31
31
|
customerValidator,
|
|
32
|
+
parseCustomParams,
|
|
32
33
|
saveUrl = '',
|
|
33
34
|
} = props;
|
|
34
35
|
const sceneId = scenceParams?.sceneId;
|
|
@@ -338,11 +339,16 @@ export default forwardRef((props: any, ref) => {
|
|
|
338
339
|
const handleUrl = saveUrl || `/basic/ruleDetail/addAndUpdate`;
|
|
339
340
|
const handleMethod = 'POST';
|
|
340
341
|
|
|
342
|
+
let finalParams: any;
|
|
343
|
+
if (parseCustomParams) {
|
|
344
|
+
finalParams = parseCustomParams(params);
|
|
345
|
+
}
|
|
346
|
+
|
|
341
347
|
return request({
|
|
342
348
|
url: handleUrl,
|
|
343
349
|
method: handleMethod,
|
|
344
350
|
convertParams: () => {
|
|
345
|
-
return params;
|
|
351
|
+
return finalParams || params;
|
|
346
352
|
},
|
|
347
353
|
converter: (res: any) => {
|
|
348
354
|
return res;
|
|
@@ -183,6 +183,7 @@ export default forwardRef((props: any, ref) => {
|
|
|
183
183
|
<BaseRule
|
|
184
184
|
ref={baseRuleRef}
|
|
185
185
|
customerValidator={props?.customerValidator}
|
|
186
|
+
parseCustomParams={props?.parseCustomParams}
|
|
186
187
|
saveUrl={props?.saveUrl}
|
|
187
188
|
scenceParams={{
|
|
188
189
|
sceneId: currentSceneId,
|