@signalplus/params-about 1.0.11 → 1.0.12-alpha

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 +14 -3
  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-01-22
4
- * Version: 1.0.11
3
+ * Generated: 2024-01-24
4
+ * Version: 1.0.12-alpha
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -2043,6 +2043,7 @@ var InstrumentArray = /*#__PURE__*/function (_PureComponent) {
2043
2043
  key: "render",
2044
2044
  value: function render() {
2045
2045
  var _this$props$options2,
2046
+ _this$props$options3,
2046
2047
  _this2 = this,
2047
2048
  _Array$from,
2048
2049
  _this$props$value2;
@@ -2050,6 +2051,7 @@ var InstrumentArray = /*#__PURE__*/function (_PureComponent) {
2050
2051
  var expiries = Array.from(new Set((_this$props$options2 = this.props.options) === null || _this$props$options2 === void 0 ? void 0 : _this$props$options2.map(function (it) {
2051
2052
  return it.split('-')[1];
2052
2053
  })));
2054
+ var token = (_this$props$options3 = this.props.options) === null || _this$props$options3 === void 0 ? void 0 : _this$props$options3[0].split('-')[0];
2053
2055
  var instrumentOptions = expiries === null || expiries === void 0 ? void 0 : expiries.map(function (it) {
2054
2056
  var _this2$props$options;
2055
2057
 
@@ -2141,7 +2143,16 @@ var InstrumentArray = /*#__PURE__*/function (_PureComponent) {
2141
2143
  onChange: this.onChange,
2142
2144
  multiple: true,
2143
2145
  maxTagCount: "responsive",
2144
- showSearch: true,
2146
+ showSearch: {
2147
+ render: function render(_, path) {
2148
+ var str = path.map(function (it) {
2149
+ return it.label === 'All' ? token : it.label;
2150
+ }).join('-');
2151
+ return /*#__PURE__*/React.createElement("div", {
2152
+ key: str
2153
+ }, str);
2154
+ }
2155
+ },
2145
2156
  expandTrigger: "hover",
2146
2157
  suffixIcon: /*#__PURE__*/React.createElement(DownOutlined, null),
2147
2158
  displayRender: function displayRender(label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "1.0.11",
3
+ "version": "1.0.12-alpha",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",