@signalplus/params-about 1.0.26-alpha19 → 1.0.26-alpha20

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.
Files changed (2) hide show
  1. package/lib/es/index.js +21 -14
  2. package/package.json +1 -1
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
3
  * Generated: 2025-11-07
4
- * Version: 1.0.26-alpha19
4
+ * Version: 1.0.26-alpha20
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -2920,7 +2920,12 @@ var ExpiryVegaAlphaByEdgeList = /*#__PURE__*/function (_PureComponent) {
2920
2920
  onChange: function onChange(val) {
2921
2921
  return _this2.onChange(i, val[0], 'expiry');
2922
2922
  },
2923
- onBlur: _this2.props.onBlur
2923
+ onBlur: _this2.props.onBlur,
2924
+ calcDisabled: function calcDisabled(option) {
2925
+ return !!_this2.value.find(function (vega) {
2926
+ return vega.expiry === option;
2927
+ });
2928
+ }
2924
2929
  })), /*#__PURE__*/React.createElement("div", {
2925
2930
  style: {
2926
2931
  width: 80
@@ -3441,16 +3446,18 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
3441
3446
  return emptyErrText(i, "delta range's min");
3442
3447
  }
3443
3448
 
3444
- if (Number(vegaRule.deltaRange.min) < 0) {
3445
- return zeroErrText(i, "delta range's min", 'max', true);
3449
+ if (Number(vegaRule.deltaRange.min) < 0 || Number(vegaRule.deltaRange.min) > 1) {
3450
+ // return zeroErrText(i, "delta range's min", 'max', true);
3451
+ return "The ".concat(i + 1).concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th', " item: delta range's min only support 0 ~ 1");
3446
3452
  }
3447
3453
 
3448
3454
  if (isEmpty(vegaRule.deltaRange.max)) {
3449
3455
  return emptyErrText(i, "delta range's max");
3450
3456
  }
3451
3457
 
3452
- if (Number(vegaRule.deltaRange.max) < 0) {
3453
- return zeroErrText(i, "delta range's max", 'max', true);
3458
+ if (Number(vegaRule.deltaRange.max) < 0 || Number(vegaRule.deltaRange.max) > 1) {
3459
+ // return zeroErrText(i, "delta range's max", 'max', true);
3460
+ return "The ".concat(i + 1).concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th', " item: delta range's max only support 0 ~ 1");
3454
3461
  }
3455
3462
 
3456
3463
  if (isEmpty(vegaRule.bidEdgeSpan.from)) {
@@ -3470,37 +3477,37 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
3470
3477
  }
3471
3478
 
3472
3479
  if (Number(val.vegaTarget) > 0) {
3473
- if (Number(vegaRule.bidEdgeSpan.from) <= 0) {
3480
+ if (Number(vegaRule.bidEdgeSpan.from) < 0) {
3474
3481
  return zeroErrText(i, "bid edge range's from", 'max');
3475
3482
  }
3476
3483
 
3477
- if (Number(vegaRule.bidEdgeSpan.to) <= 0) {
3484
+ if (Number(vegaRule.bidEdgeSpan.to) < 0) {
3478
3485
  return zeroErrText(i, "bid edge range's to", 'max');
3479
3486
  }
3480
3487
 
3481
- if (Number(vegaRule.askEdgeSpan.from) <= 0) {
3488
+ if (Number(vegaRule.askEdgeSpan.from) < 0) {
3482
3489
  return zeroErrText(i, "ask edge range's from", 'max');
3483
3490
  }
3484
3491
 
3485
- if (Number(vegaRule.askEdgeSpan.to) <= 0) {
3492
+ if (Number(vegaRule.askEdgeSpan.to) < 0) {
3486
3493
  return zeroErrText(i, "ask edge range's to", 'max');
3487
3494
  }
3488
3495
  }
3489
3496
 
3490
3497
  if (Number(val.vegaTarget) < 0) {
3491
- if (Number(vegaRule.bidEdgeSpan.from) >= 0) {
3498
+ if (Number(vegaRule.bidEdgeSpan.from) > 0) {
3492
3499
  return zeroErrText(i, "bid edge range's from", 'min');
3493
3500
  }
3494
3501
 
3495
- if (Number(vegaRule.bidEdgeSpan.to) >= 0) {
3502
+ if (Number(vegaRule.bidEdgeSpan.to) > 0) {
3496
3503
  return zeroErrText(i, "bid edge range's to", 'min');
3497
3504
  }
3498
3505
 
3499
- if (Number(vegaRule.askEdgeSpan.from) >= 0) {
3506
+ if (Number(vegaRule.askEdgeSpan.from) > 0) {
3500
3507
  return zeroErrText(i, "ask edge range's from", 'min');
3501
3508
  }
3502
3509
 
3503
- if (Number(vegaRule.askEdgeSpan.to) >= 0) {
3510
+ if (Number(vegaRule.askEdgeSpan.to) > 0) {
3504
3511
  return zeroErrText(i, "ask edge range's to", 'min');
3505
3512
  }
3506
3513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.26-alpha19",
3
+ "version": "1.0.26-alpha20",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",