@signalplus/params-about 1.0.23 → 1.0.24

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 +5 -5
  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
- * Generated: 2024-05-17
4
- * Version: 1.0.23
3
+ * Generated: 2024-05-24
4
+ * Version: 1.0.24
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -971,7 +971,7 @@ var ExpiriesLimit = /*#__PURE__*/function (_PureComponent) {
971
971
  this.value = ((_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (it) {
972
972
  return !isExpired(it.expiry);
973
973
  })) || [];
974
- if (!this.value.length) this.value.push({
974
+ if (!this.value.length && !this.props.readonly) this.value.push({
975
975
  expiry: ''
976
976
  });
977
977
  return /*#__PURE__*/React.createElement("div", {
@@ -1130,7 +1130,7 @@ var ExpiriesValueList = /*#__PURE__*/function (_PureComponent) {
1130
1130
  this.value = ((_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (it) {
1131
1131
  return !isExpired(it.expiry);
1132
1132
  })) || [];
1133
- if (!this.value.length) this.value.push({
1133
+ if (!this.value.length && !this.props.readonly) this.value.push({
1134
1134
  expiry: ''
1135
1135
  });
1136
1136
  return /*#__PURE__*/React.createElement("div", {
@@ -1443,7 +1443,7 @@ var InstrumentsValueList = /*#__PURE__*/function (_PureComponent) {
1443
1443
  _this2 = this;
1444
1444
 
1445
1445
  this.value = this.props.value || [];
1446
- if (!this.value.length) this.value.push({
1446
+ if (!this.value.length && !this.props.readonly) this.value.push({
1447
1447
  instrument: ''
1448
1448
  });
1449
1449
  return /*#__PURE__*/React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",