@kne/super-select 0.1.7 → 0.1.8
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/dist/index.js +18 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2429,12 +2429,15 @@ const SelectInput = p => {
|
|
|
2429
2429
|
onMouseOut: () => {
|
|
2430
2430
|
setHover(false);
|
|
2431
2431
|
}
|
|
2432
|
-
}),
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2432
|
+
}), (() => {
|
|
2433
|
+
const current = typeof prefix === 'function' ? prefix(contextProps) : prefix;
|
|
2434
|
+
return current && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2435
|
+
className: classnames__default["default"](style$3['select-input-prefix'], 'select-input-prefix'),
|
|
2436
|
+
onClick: e => {
|
|
2437
|
+
e.stopPropagation();
|
|
2438
|
+
}
|
|
2439
|
+
}, current);
|
|
2440
|
+
})(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2438
2441
|
className: classnames__default["default"](style$3['select-input-inner'], 'select-input-inner')
|
|
2439
2442
|
}, value.length > 0 ? single || value[0].value === selectedAllValue.value ? value[0].label : value.map(item => {
|
|
2440
2443
|
return /*#__PURE__*/React__default["default"].createElement(antd.Tag, {
|
|
@@ -2455,12 +2458,15 @@ const SelectInput = p => {
|
|
|
2455
2458
|
e.stopPropagation();
|
|
2456
2459
|
setValue([]);
|
|
2457
2460
|
}
|
|
2458
|
-
}) : /*#__PURE__*/React__default["default"].createElement(icons.DownOutlined, null)),
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2461
|
+
}) : /*#__PURE__*/React__default["default"].createElement(icons.DownOutlined, null)), (() => {
|
|
2462
|
+
const current = typeof suffix === 'function' ? suffix(contextProps) : suffix;
|
|
2463
|
+
return current && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2464
|
+
className: classnames__default["default"](style$3['select-input-suffix'], 'select-input-suffix'),
|
|
2465
|
+
onClick: e => {
|
|
2466
|
+
e.stopPropagation();
|
|
2467
|
+
}
|
|
2468
|
+
}, current);
|
|
2469
|
+
})());
|
|
2464
2470
|
};
|
|
2465
2471
|
const contextProps = {
|
|
2466
2472
|
props,
|