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