@signalplus/params-about 1.0.11 → 1.0.12
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 +17 -4
- 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-
|
|
4
|
-
* Version: 1.0.
|
|
3
|
+
* Generated: 2024-01-24
|
|
4
|
+
* Version: 1.0.12
|
|
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,11 +2143,22 @@ var InstrumentArray = /*#__PURE__*/function (_PureComponent) {
|
|
|
2141
2143
|
onChange: this.onChange,
|
|
2142
2144
|
multiple: true,
|
|
2143
2145
|
maxTagCount: "responsive",
|
|
2144
|
-
showSearch:
|
|
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) {
|
|
2148
|
-
return label.length === 1 ? label : label.
|
|
2159
|
+
return label.length === 1 ? label : label.map(function (it) {
|
|
2160
|
+
return it === 'All' ? token : it;
|
|
2161
|
+
}).join('-');
|
|
2149
2162
|
}
|
|
2150
2163
|
}));
|
|
2151
2164
|
}
|