@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.
@@ -2426,12 +2426,15 @@ const SelectInput = p => {
2426
2426
  onMouseOut: () => {
2427
2427
  setHover(false);
2428
2428
  }
2429
- }), prefix && /*#__PURE__*/React.createElement("span", {
2430
- className: classnames(style$3['select-input-prefix'], 'select-input-prefix'),
2431
- onClick: e => {
2432
- e.stopPropagation();
2433
- }
2434
- }, typeof prefix === 'function' ? prefix(contextProps) : prefix), /*#__PURE__*/React.createElement("div", {
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)), suffix && /*#__PURE__*/React.createElement("span", {
2456
- className: classnames(style$3['select-input-suffix'], 'select-input-suffix'),
2457
- onClick: e => {
2458
- e.stopPropagation();
2459
- }
2460
- }, typeof suffix === 'function' ? suffix(contextProps) : suffix));
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,