@signalplus/params-about 1.0.22 → 1.0.23
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/lib/es/index.js +15 -14
- 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
|
-
* Generated: 2024-05-
|
|
4
|
-
* Version: 1.0.
|
|
3
|
+
* Generated: 2024-05-17
|
|
4
|
+
* Version: 1.0.23
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -1661,7 +1661,7 @@ var TextValueList = /*#__PURE__*/function (_PureComponent) {
|
|
|
1661
1661
|
_this2 = this;
|
|
1662
1662
|
|
|
1663
1663
|
this.value = this.props.value || [];
|
|
1664
|
-
if (!this.value.length) this.value.push({
|
|
1664
|
+
if (!this.value.length && !this.props.readonly) this.value.push({
|
|
1665
1665
|
key: ''
|
|
1666
1666
|
});
|
|
1667
1667
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -2303,12 +2303,10 @@ var OneWayHandlerList = /*#__PURE__*/function (_PureComponent) {
|
|
|
2303
2303
|
value: [it.expiry],
|
|
2304
2304
|
onChange: function onChange(val) {
|
|
2305
2305
|
return _this2.onChange(i, val[0], 'expiry');
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
});
|
|
2311
|
-
},
|
|
2306
|
+
} // calcDisabled={(expiry) =>
|
|
2307
|
+
// this.value.some((item) => item !== it && item.expiry === expiry)
|
|
2308
|
+
// }
|
|
2309
|
+
,
|
|
2312
2310
|
onBlur: _this2.props.onBlur
|
|
2313
2311
|
}), /*#__PURE__*/React.createElement(TextSelector, {
|
|
2314
2312
|
style: {
|
|
@@ -2433,7 +2431,7 @@ var TenorBucketHandlerList = /*#__PURE__*/function (_PureComponent) {
|
|
|
2433
2431
|
_this2 = this;
|
|
2434
2432
|
|
|
2435
2433
|
this.value = this.props.value || [];
|
|
2436
|
-
if (!this.value.length) this.value.push({
|
|
2434
|
+
if (!this.value.length && !this.props.readonly) this.value.push({
|
|
2437
2435
|
key: ''
|
|
2438
2436
|
});
|
|
2439
2437
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -2774,11 +2772,14 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
|
|
|
2774
2772
|
|
|
2775
2773
|
if (isNullLike(val.offloadRisk)) {
|
|
2776
2774
|
return emptyErrText(i, 'OffloadRisk');
|
|
2777
|
-
}
|
|
2775
|
+
} // if (expiries.includes(val.expiry)) {
|
|
2776
|
+
// return `The ${i + 1} ${
|
|
2777
|
+
// i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th'
|
|
2778
|
+
// } expiry is same as the ${expiries.indexOf(val.expiry) + 1} ${
|
|
2779
|
+
// i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th'
|
|
2780
|
+
// }`;
|
|
2781
|
+
// }
|
|
2778
2782
|
|
|
2779
|
-
if (expiries.includes(val.expiry)) {
|
|
2780
|
-
return "The ".concat(i + 1, " ").concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th', " expiry is same as the ").concat(expiries.indexOf(val.expiry) + 1, " ").concat(i === 0 ? 'st' : i === 1 ? 'nd' : i === 2 ? 'rd' : 'th');
|
|
2781
|
-
}
|
|
2782
2783
|
|
|
2783
2784
|
expiries.push(val.expiry);
|
|
2784
2785
|
}
|